diff --git a/mbadmin.jps b/mbadmin.jps
index dcbf799..dc11dc1 100644
--- a/mbadmin.jps
+++ b/mbadmin.jps
@@ -591,6 +591,32 @@ actions:
- return:
type: info
message: "${response.out}"
+ diagnose_litespeed_config:
+ - cmd[cp]:
+ user: root
+ commands:
+ - |
+ CONF_FILE="/var/www/conf/httpd_config.xml"
+ echo "Analyzing LiteSpeed configuration tags..."
+ echo "-----------------------------------"
+ grep -c '' "${CONF_FILE}" | { echo "Number of tags: $(cat)"; }
+ grep -c '' "${CONF_FILE}" | { echo "Number of tags: $(cat)"; }
+ grep -c '' "${CONF_FILE}" | { echo "Number of tags: $(cat)"; }
+ grep -c '' "${CONF_FILE}" | { echo "Number of tags: $(cat)"; }
+ echo "-----------------------------------"
+ echo "First 5 instances of tags:"
+ grep -n '' "${CONF_FILE}" | head -5
+ echo "-----------------------------------"
+ echo "Testing sed command effectiveness:"
+ cp "${CONF_FILE}" /tmp/test_config.xml
+ sed -i 's|||g' /tmp/test_config.xml
+ sed -i 's|||g' /tmp/test_config.xml
+ echo "After sed, remaining tags: $(grep -c '' /tmp/test_config.xml)"
+ echo "After sed, remaining tags: $(grep -c '' /tmp/test_config.xml)"
+ echo "-----------------------------------"
+ - return:
+ type: info
+ message: "${response.out}"
responses:
enableSuccess: