diff options
author | Mohit Mehta <mohit.mehta@vyatta.com> | 2008-08-09 11:52:33 +0000 |
---|---|---|
committer | Mohit Mehta <mohit.mehta@vyatta.com> | 2008-08-09 11:52:33 +0000 |
commit | fd255fe92ff63534dd8a61df0466f8c52abe6fdd (patch) | |
tree | 7dd2e02fab0b7f8ebea876b684e28a519fc3bb34 /templates/show | |
parent | 66222be044d65fe045d4148ddf4eb5d178294150 (diff) | |
download | vyatta-op-fd255fe92ff63534dd8a61df0466f8c52abe6fdd.tar.gz vyatta-op-fd255fe92ff63534dd8a61df0466f8c52abe6fdd.zip |
dns-forwarding op-mode commands:
'clear dns forwarding cache'
'show dns forwarding statistics'
Diffstat (limited to 'templates/show')
-rw-r--r-- | templates/show/dns/forwarding/nameservers/node.def | 2 | ||||
-rw-r--r-- | templates/show/dns/forwarding/node.def | 1 | ||||
-rw-r--r-- | templates/show/dns/forwarding/statistics/node.def | 8 | ||||
-rw-r--r-- | templates/show/dns/node.def | 1 |
4 files changed, 12 insertions, 0 deletions
diff --git a/templates/show/dns/forwarding/nameservers/node.def b/templates/show/dns/forwarding/nameservers/node.def new file mode 100644 index 0000000..0609f6a --- /dev/null +++ b/templates/show/dns/forwarding/nameservers/node.def @@ -0,0 +1,2 @@ +help: Show DNS forwarding nameservers information +run: sudo /opt/vyatta/bin/sudo-users/vyatta-op-dns-forwarding.pl --show-nameservers diff --git a/templates/show/dns/forwarding/node.def b/templates/show/dns/forwarding/node.def new file mode 100644 index 0000000..eb9ce4b --- /dev/null +++ b/templates/show/dns/forwarding/node.def @@ -0,0 +1 @@ +help: Show DNS forwarding information diff --git a/templates/show/dns/forwarding/statistics/node.def b/templates/show/dns/forwarding/statistics/node.def new file mode 100644 index 0000000..a73b49d --- /dev/null +++ b/templates/show/dns/forwarding/statistics/node.def @@ -0,0 +1,8 @@ +help: Show DNS forwarding statistics +run: + if ps ax | grep dnsmasq | grep -v grep > /dev/null + then + sudo /opt/vyatta/bin/sudo-users/vyatta-op-dns-forwarding.pl --show-statistics + else + echo "DNS forwarding not configured" + fi diff --git a/templates/show/dns/node.def b/templates/show/dns/node.def new file mode 100644 index 0000000..45d0e4f --- /dev/null +++ b/templates/show/dns/node.def @@ -0,0 +1 @@ +help: Show Domain Name Server (DNS) information |