diff options
author | Saurabh Mohan <saurabh.mohan@vyatta.com> | 2012-08-09 13:14:49 -0700 |
---|---|---|
committer | Saurabh Mohan <saurabh.mohan@vyatta.com> | 2012-08-09 13:14:49 -0700 |
commit | 6aaca3a4bdc77c804e21ad0a3c1ab5ce4d7d8686 (patch) | |
tree | 0fdbf6cb955c1d3231c90fe093a130b18350973c /templates/monitor/interfaces | |
parent | c60e40528702f0a3b358925c00d52d5879a9948a (diff) | |
download | vyatta-op-6aaca3a4bdc77c804e21ad0a3c1ab5ce4d7d8686.tar.gz vyatta-op-6aaca3a4bdc77c804e21ad0a3c1ab5ce4d7d8686.zip |
Bugfix 8217: VTI: add clear and monitor interfaces commands.
Add support for interface vti for operational commands clear and monitor.
Diffstat (limited to 'templates/monitor/interfaces')
16 files changed, 33 insertions, 0 deletions
diff --git a/templates/monitor/interfaces/vti/node.def b/templates/monitor/interfaces/vti/node.def new file mode 100644 index 0000000..b7429bd --- /dev/null +++ b/templates/monitor/interfaces/vti/node.def @@ -0,0 +1,2 @@ +help: Monitor a vti interface +run: bmon -p vti* diff --git a/templates/monitor/interfaces/vti/node.tag/node.def b/templates/monitor/interfaces/vti/node.tag/node.def new file mode 100644 index 0000000..7244589 --- /dev/null +++ b/templates/monitor/interfaces/vti/node.tag/node.def @@ -0,0 +1,4 @@ +help: Monitor specified vti interface +allowed: ${vyatta_sbindir}/vyatta-interfaces.pl --show vti +run: bmon -p $4 + diff --git a/templates/monitor/interfaces/vti/node.tag/traffic/detail/filter/node.def b/templates/monitor/interfaces/vti/node.tag/traffic/detail/filter/node.def new file mode 100644 index 0000000..a6a9444 --- /dev/null +++ b/templates/monitor/interfaces/vti/node.tag/traffic/detail/filter/node.def @@ -0,0 +1 @@ +help: Monitor detailed filtered traffic for the specified vti interface diff --git a/templates/monitor/interfaces/vti/node.tag/traffic/detail/filter/node.tag/node.def b/templates/monitor/interfaces/vti/node.tag/traffic/detail/filter/node.tag/node.def new file mode 100644 index 0000000..63742c3 --- /dev/null +++ b/templates/monitor/interfaces/vti/node.tag/traffic/detail/filter/node.tag/node.def @@ -0,0 +1,3 @@ +help: Monitor detailed filtered traffic for the specified vti interface +allowed: echo -e '<pcap-filter>' +run: ${vyatta_bindir}/vyatta-tshark.pl --intf $4 --detail --filter "${@:8}" diff --git a/templates/monitor/interfaces/vti/node.tag/traffic/detail/node.def b/templates/monitor/interfaces/vti/node.tag/traffic/detail/node.def new file mode 100644 index 0000000..b759e3d --- /dev/null +++ b/templates/monitor/interfaces/vti/node.tag/traffic/detail/node.def @@ -0,0 +1,2 @@ +help: Monitor detailed traffic for the specified vti interface +run: ${vyatta_bindir}/vyatta-tshark.pl --intf $4 --detail diff --git a/templates/monitor/interfaces/vti/node.tag/traffic/detail/unlimited/filter/node.def b/templates/monitor/interfaces/vti/node.tag/traffic/detail/unlimited/filter/node.def new file mode 100644 index 0000000..a6a9444 --- /dev/null +++ b/templates/monitor/interfaces/vti/node.tag/traffic/detail/unlimited/filter/node.def @@ -0,0 +1 @@ +help: Monitor detailed filtered traffic for the specified vti interface diff --git a/templates/monitor/interfaces/vti/node.tag/traffic/detail/unlimited/filter/node.tag/node.def b/templates/monitor/interfaces/vti/node.tag/traffic/detail/unlimited/filter/node.tag/node.def new file mode 100644 index 0000000..f54a40b --- /dev/null +++ b/templates/monitor/interfaces/vti/node.tag/traffic/detail/unlimited/filter/node.tag/node.def @@ -0,0 +1,3 @@ +help: Monitor detailed filtered traffic for the specified vti interface +allowed: echo -e '<pcap-filter>' +run: ${vyatta_bindir}/vyatta-tshark.pl --intf $4 --detail --unlimited --filter "${@:9}" diff --git a/templates/monitor/interfaces/vti/node.tag/traffic/detail/unlimited/node.def b/templates/monitor/interfaces/vti/node.tag/traffic/detail/unlimited/node.def new file mode 100644 index 0000000..1158b46 --- /dev/null +++ b/templates/monitor/interfaces/vti/node.tag/traffic/detail/unlimited/node.def @@ -0,0 +1,2 @@ +help: Monitor detailed traffic for the specified vti interface +run: ${vyatta_bindir}/vyatta-tshark.pl --intf $4 --detail --unlimited diff --git a/templates/monitor/interfaces/vti/node.tag/traffic/filter/node.def b/templates/monitor/interfaces/vti/node.tag/traffic/filter/node.def new file mode 100644 index 0000000..4ee8e39 --- /dev/null +++ b/templates/monitor/interfaces/vti/node.tag/traffic/filter/node.def @@ -0,0 +1 @@ +help: Monitor filtered traffic for the specified vti interface diff --git a/templates/monitor/interfaces/vti/node.tag/traffic/filter/node.tag/node.def b/templates/monitor/interfaces/vti/node.tag/traffic/filter/node.tag/node.def new file mode 100644 index 0000000..c88e0e6 --- /dev/null +++ b/templates/monitor/interfaces/vti/node.tag/traffic/filter/node.tag/node.def @@ -0,0 +1,3 @@ +help: Monitor filtered traffic for the specified vti interface +allowed: echo -e '<pcap-filter>' +run: ${vyatta_bindir}/vyatta-tshark.pl --intf $4 --filter "${@:7}" diff --git a/templates/monitor/interfaces/vti/node.tag/traffic/node.def b/templates/monitor/interfaces/vti/node.tag/traffic/node.def new file mode 100644 index 0000000..e38107c --- /dev/null +++ b/templates/monitor/interfaces/vti/node.tag/traffic/node.def @@ -0,0 +1,2 @@ +help: Montior captured traffic on specified vti interface +run: ${vyatta_bindir}/vyatta-tshark.pl --intf $4 diff --git a/templates/monitor/interfaces/vti/node.tag/traffic/save/node.def b/templates/monitor/interfaces/vti/node.tag/traffic/save/node.def new file mode 100644 index 0000000..402f47c --- /dev/null +++ b/templates/monitor/interfaces/vti/node.tag/traffic/save/node.def @@ -0,0 +1 @@ +help: Save monitored traffic to a file diff --git a/templates/monitor/interfaces/vti/node.tag/traffic/save/node.tag/node.def b/templates/monitor/interfaces/vti/node.tag/traffic/save/node.tag/node.def new file mode 100644 index 0000000..bd747b5 --- /dev/null +++ b/templates/monitor/interfaces/vti/node.tag/traffic/save/node.tag/node.def @@ -0,0 +1,2 @@ +help: Save monitored traffic to a file +run: ${vyatta_bindir}/vyatta-tshark.pl --intf $4 --save "${@:7}" diff --git a/templates/monitor/interfaces/vti/node.tag/traffic/unlimited/filter/node.def b/templates/monitor/interfaces/vti/node.tag/traffic/unlimited/filter/node.def new file mode 100644 index 0000000..4ee8e39 --- /dev/null +++ b/templates/monitor/interfaces/vti/node.tag/traffic/unlimited/filter/node.def @@ -0,0 +1 @@ +help: Monitor filtered traffic for the specified vti interface diff --git a/templates/monitor/interfaces/vti/node.tag/traffic/unlimited/filter/node.tag/node.def b/templates/monitor/interfaces/vti/node.tag/traffic/unlimited/filter/node.tag/node.def new file mode 100644 index 0000000..9346ce2 --- /dev/null +++ b/templates/monitor/interfaces/vti/node.tag/traffic/unlimited/filter/node.tag/node.def @@ -0,0 +1,3 @@ +help: Monitor filtered traffic for the specified vti interface +allowed: echo -e '<pcap-filter>' +run: ${vyatta_bindir}/vyatta-tshark.pl --intf $4 --unlimited --filter "${@:8}" diff --git a/templates/monitor/interfaces/vti/node.tag/traffic/unlimited/node.def b/templates/monitor/interfaces/vti/node.tag/traffic/unlimited/node.def new file mode 100644 index 0000000..c4a9143 --- /dev/null +++ b/templates/monitor/interfaces/vti/node.tag/traffic/unlimited/node.def @@ -0,0 +1,2 @@ +help: Monitor traffic for the specified vti interface +run: ${vyatta_bindir}/vyatta-tshark.pl --intf $4 --unlimited |