diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/show/dhcp/client/interface/node.def | 1 | ||||
-rw-r--r-- | templates/show/dhcp/client/interface/node.tag/node.def | 5 | ||||
-rw-r--r-- | templates/show/dhcp/client/node.def | 2 | ||||
-rw-r--r-- | templates/show/vrrp/interface/node.tag/node.def | 2 |
4 files changed, 9 insertions, 1 deletions
diff --git a/templates/show/dhcp/client/interface/node.def b/templates/show/dhcp/client/interface/node.def new file mode 100644 index 0000000..458e0ec --- /dev/null +++ b/templates/show/dhcp/client/interface/node.def @@ -0,0 +1 @@ +help: Show dhcp client information for a given interface diff --git a/templates/show/dhcp/client/interface/node.tag/node.def b/templates/show/dhcp/client/interface/node.tag/node.def new file mode 100644 index 0000000..03fd1d9 --- /dev/null +++ b/templates/show/dhcp/client/interface/node.tag/node.def @@ -0,0 +1,5 @@ +help: Show dhcp client information for interface +allowed: local -a array ; + array=( /sys/class/net/eth* ) ; + echo -n ${array[@]##*/} +run: /opt/vyatta/bin/vyatta-show-dhclient.pl $5 diff --git a/templates/show/dhcp/client/node.def b/templates/show/dhcp/client/node.def new file mode 100644 index 0000000..e94212f --- /dev/null +++ b/templates/show/dhcp/client/node.def @@ -0,0 +1,2 @@ +help: Show dhcp client information +run: /opt/vyatta/bin/vyatta-show-dhclient.pl diff --git a/templates/show/vrrp/interface/node.tag/node.def b/templates/show/vrrp/interface/node.tag/node.def index 8556884..05fbede 100644 --- a/templates/show/vrrp/interface/node.tag/node.def +++ b/templates/show/vrrp/interface/node.tag/node.def @@ -2,4 +2,4 @@ help: Show VRRP information for interface allowed: local -a array ; array=( /sys/class/net/eth* ) ; echo -n ${array[@]##*/} -run: /opt/vyatta/sbin/vyatta-show-vrrp.pl $4 +run: /opt/vyatta/sbin/vyatta-show-vrrp.pl $5 |