diff options
Diffstat (limited to 'templates/ping')
-rw-r--r-- | templates/ping/ipv4/node.def | 4 | ||||
-rw-r--r-- | templates/ping/ipv4/node.tag/node.def | 8 | ||||
-rw-r--r-- | templates/ping/ipv4/node.tag/options/node.def | 8 | ||||
-rw-r--r-- | templates/ping/ipv4/node.tag/options/node.tag/node.def | 8 | ||||
-rw-r--r-- | templates/ping/ipv6/node.def | 4 | ||||
-rw-r--r-- | templates/ping/ipv6/node.tag/node.def | 8 | ||||
-rw-r--r-- | templates/ping/ipv6/node.tag/options/node.def | 8 | ||||
-rw-r--r-- | templates/ping/ipv6/node.tag/options/node.tag/node.def | 8 | ||||
-rw-r--r-- | templates/ping/node.def | 1 | ||||
-rw-r--r-- | templates/ping/node.tag/node.def | 6 | ||||
-rw-r--r-- | templates/ping/node.tag/options/node.def | 8 | ||||
-rw-r--r-- | templates/ping/node.tag/options/node.tag/node.def | 8 |
12 files changed, 76 insertions, 3 deletions
diff --git a/templates/ping/ipv4/node.def b/templates/ping/ipv4/node.def new file mode 100644 index 0000000..500ee3a --- /dev/null +++ b/templates/ping/ipv4/node.def @@ -0,0 +1,4 @@ +# +# Operational mode template for the "ping" command +# +help: Send IPv4 Internet Control Message Protocol (ICMP) echo request diff --git a/templates/ping/ipv4/node.tag/node.def b/templates/ping/ipv4/node.tag/node.def new file mode 100644 index 0000000..3b5d1a9 --- /dev/null +++ b/templates/ping/ipv4/node.tag/node.def @@ -0,0 +1,8 @@ +# +# Operational mode front-end for "ping" command +# + +help: Send IPv4 ICMP echo request to specified <hostname|IPv4 address> +allowed: echo -n '<hostname> <x:x:x:x:x>' + +run: /bin/ping $2 diff --git a/templates/ping/ipv4/node.tag/options/node.def b/templates/ping/ipv4/node.tag/options/node.def new file mode 100644 index 0000000..90b225d --- /dev/null +++ b/templates/ping/ipv4/node.tag/options/node.def @@ -0,0 +1,8 @@ +# +# Operational mode front-end for "ping" command +# + +help: Supply advanced options to ping +allowed: echo -n 'option text' + + diff --git a/templates/ping/ipv4/node.tag/options/node.tag/node.def b/templates/ping/ipv4/node.tag/options/node.tag/node.def new file mode 100644 index 0000000..9d4fdca --- /dev/null +++ b/templates/ping/ipv4/node.tag/options/node.tag/node.def @@ -0,0 +1,8 @@ +# +# Operational mode front-end for "ping" command +# + +help: Supply advanced options to ping +allowed: echo -n '<ping-options>' + +run: /bin/ping ${*:5} $3 diff --git a/templates/ping/ipv6/node.def b/templates/ping/ipv6/node.def new file mode 100644 index 0000000..20cc018 --- /dev/null +++ b/templates/ping/ipv6/node.def @@ -0,0 +1,4 @@ +# +# Operational mode template for the "ping" command +# +help: Send IPv6 Internet Control Message Protocol (ICMP) echo request diff --git a/templates/ping/ipv6/node.tag/node.def b/templates/ping/ipv6/node.tag/node.def new file mode 100644 index 0000000..d5ec570 --- /dev/null +++ b/templates/ping/ipv6/node.tag/node.def @@ -0,0 +1,8 @@ +# +# Operational mode front-end for "ping" command +# + +help: Send IPv6 ICMP echo request to specified <hostname|IPv6 address> +allowed: echo -n '<hostname> <h:h:h:h:h:h:h:h>' + +run: /bin/ping6 $2 diff --git a/templates/ping/ipv6/node.tag/options/node.def b/templates/ping/ipv6/node.tag/options/node.def new file mode 100644 index 0000000..90b225d --- /dev/null +++ b/templates/ping/ipv6/node.tag/options/node.def @@ -0,0 +1,8 @@ +# +# Operational mode front-end for "ping" command +# + +help: Supply advanced options to ping +allowed: echo -n 'option text' + + diff --git a/templates/ping/ipv6/node.tag/options/node.tag/node.def b/templates/ping/ipv6/node.tag/options/node.tag/node.def new file mode 100644 index 0000000..10c13a5 --- /dev/null +++ b/templates/ping/ipv6/node.tag/options/node.tag/node.def @@ -0,0 +1,8 @@ +# +# Operational mode front-end for "ping" command +# + +help: Supply advanced options to ping +allowed: echo -n '<ping-options>' + +run: /bin/ping6 ${*:5} $3 diff --git a/templates/ping/node.def b/templates/ping/node.def index 2639ddb..a1bac16 100644 --- a/templates/ping/node.def +++ b/templates/ping/node.def @@ -2,3 +2,4 @@ # Operational mode template for the "ping" command # help: Send Internet Control Message Protocol (ICMP) echo request +allowed: echo -n '<hostname> <x.x.x.x> <h:h:h:h:h:h:h:h>' diff --git a/templates/ping/node.tag/node.def b/templates/ping/node.tag/node.def index efd7127..fe6dbce 100644 --- a/templates/ping/node.tag/node.def +++ b/templates/ping/node.tag/node.def @@ -2,7 +2,7 @@ # Operational mode front-end for "ping" command # -help: Send ICMP echo request to specified <hostname|IPv4 address> -allowed: echo -n '<hostname> <x.x.x.x>' +help: Send ICMP echo request to specified node +allowed: echo -n '<hostname> <x.x.x.x> <h:h:h:h:h:h:h:h>' -run: /bin/ping $2 +run: /opt/vyatta/bin/vyatta-ping $2 diff --git a/templates/ping/node.tag/options/node.def b/templates/ping/node.tag/options/node.def new file mode 100644 index 0000000..90b225d --- /dev/null +++ b/templates/ping/node.tag/options/node.def @@ -0,0 +1,8 @@ +# +# Operational mode front-end for "ping" command +# + +help: Supply advanced options to ping +allowed: echo -n 'option text' + + diff --git a/templates/ping/node.tag/options/node.tag/node.def b/templates/ping/node.tag/options/node.tag/node.def new file mode 100644 index 0000000..cd1efa8 --- /dev/null +++ b/templates/ping/node.tag/options/node.tag/node.def @@ -0,0 +1,8 @@ +# +# Operational mode front-end for "ping" command +# + +help: Supply advanced options to ping +allowed: echo -n '<ping-options>' + +run: /opt/vyatta/bin/vyatta-ping $2 "${@:4}" |