summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xfunctions/tech-support25
-rwxr-xr-xscripts/node-exists.pl4
2 files changed, 18 insertions, 11 deletions
diff --git a/functions/tech-support b/functions/tech-support
index 30ae875..667747f 100755
--- a/functions/tech-support
+++ b/functions/tech-support
@@ -379,7 +379,7 @@ echo "BGP is not configured"
fi
header CLUSTERING
-perl /opt/vyatta/bin/node-exists.pl cluster cluster
+perl /opt/vyatta/bin/node-exists.pl cluster
ret_val=$?
if [ $ret_val -eq 0 ]; then
header Cluster Status
@@ -443,7 +443,7 @@ fi
header FIREWALL
-perl /opt/vyatta/bin/node-exists.pl firewall firewall
+perl /opt/vyatta/bin/node-exists.pl firewall
ret_val=$?
if [ $ret_val -eq 0 ]; then
header Firewall Group
@@ -457,7 +457,7 @@ echo "Firewall is not configured"
fi
header IPS
-perl /opt/vyatta/bin/node-exists.pl content-inspection content-inspection
+perl /opt/vyatta/bin/node-exists.pl content-inspection
ret_val=$?
if [ $ret_val -eq 0 ]; then
header IPS log
@@ -554,15 +554,15 @@ echo "OSPFV3 is not configured"
fi
header Policy
-perl /opt/vyatta/bin/node-exists.pl policy policy
+perl /opt/vyatta/bin/node-exists.pl policy
ret_val=$?
if [ $ret_val -eq 0 ]; then
header IP Route Maps
show ip protocol
header Route-Map
show route-map
-header IP Access Lists
-show ip access-lists
+#header IP Access Lists
+#show ip access-lists
header IP Community List
show ip community-list
else
@@ -570,10 +570,10 @@ echo "Policy is not configured"
fi
header QoS
-perl /opt/vyatta/bin/node-exists.pl qos-policy qos-policy
+perl /opt/vyatta/bin/node-exists.pl traffic-policy
ret_val=$?
if [ $ret_val -eq 0 ]; then
-header Current QoS Policies
+header Current Traffic Policies
show queueing
else
echo "QoS is not configured"
@@ -635,12 +635,17 @@ echo "VPN PPTP is not configured"
fi
header VRRP
-perl /opt/vyatta/bin/node-exists.pl ospf protocols
+found=0
+for eth in $(cd /sys/class/net; echo eth*)
+do perl /opt/vyatta/bin/node-exists.pl vrrp interfaces ethernet $eth
ret_val=$?
if [ $ret_val -eq 0 ]; then
header \''show vrrp'\'
show vrrp
-else
+found=1
+fi
+done
+if [ $found -eq 0 ]; then
echo "VRRP is not configured"
fi
diff --git a/scripts/node-exists.pl b/scripts/node-exists.pl
index 8a77ea3..4a7505f 100755
--- a/scripts/node-exists.pl
+++ b/scripts/node-exists.pl
@@ -39,8 +39,10 @@ if ($ARGV[0])
$level = $level . " " . $sublevel;
$i++;
}
-
+ if ($ARGV[1])
+ {
$config->setLevel($level);
+ }
if ($config->existsOrig($node))
{ exit 0; }
else { exit 1; }