summaryrefslogtreecommitdiff
path: root/templates/monitor/interfaces/pseudo-ethernet
diff options
context:
space:
mode:
authorJohn Southworth <john.southworth@vyatta.com>2011-09-15 16:51:05 -0700
committerJohn Southworth <john.southworth@vyatta.com>2011-10-27 17:11:29 -0500
commitb04673afd899d2032200799a9d9b0c72901ad262 (patch)
treecdc31bc0d25a189341aa31facfa678120650d7e5 /templates/monitor/interfaces/pseudo-ethernet
parent5abab7cc94b1eb8784a34c5efd0a1a685979630d (diff)
downloadvyatta-op-b04673afd899d2032200799a9d9b0c72901ad262.tar.gz
vyatta-op-b04673afd899d2032200799a9d9b0c72901ad262.zip
More monitor interface traffic commands
(cherry picked from commit 3358412ae5e8d7ba94aedeb78080d2509d82239f)
Diffstat (limited to 'templates/monitor/interfaces/pseudo-ethernet')
-rw-r--r--templates/monitor/interfaces/pseudo-ethernet/node.tag/node.def4
-rw-r--r--templates/monitor/interfaces/pseudo-ethernet/node.tag/traffic/detail/filter/node.def1
-rw-r--r--templates/monitor/interfaces/pseudo-ethernet/node.tag/traffic/detail/filter/node.tag/node.def2
-rw-r--r--templates/monitor/interfaces/pseudo-ethernet/node.tag/traffic/detail/node.def2
-rw-r--r--templates/monitor/interfaces/pseudo-ethernet/node.tag/traffic/detail/unlimited/filter/node.def1
-rw-r--r--templates/monitor/interfaces/pseudo-ethernet/node.tag/traffic/detail/unlimited/filter/node.tag/node.def2
-rw-r--r--templates/monitor/interfaces/pseudo-ethernet/node.tag/traffic/detail/unlimited/node.def2
-rw-r--r--templates/monitor/interfaces/pseudo-ethernet/node.tag/traffic/filter/node.def1
-rw-r--r--templates/monitor/interfaces/pseudo-ethernet/node.tag/traffic/filter/node.tag/node.def2
-rw-r--r--templates/monitor/interfaces/pseudo-ethernet/node.tag/traffic/node.def4
-rw-r--r--templates/monitor/interfaces/pseudo-ethernet/node.tag/traffic/save/node.def2
-rw-r--r--templates/monitor/interfaces/pseudo-ethernet/node.tag/traffic/unlimited/filter/node.def1
-rw-r--r--templates/monitor/interfaces/pseudo-ethernet/node.tag/traffic/unlimited/filter/node.tag/node.def2
-rw-r--r--templates/monitor/interfaces/pseudo-ethernet/node.tag/traffic/unlimited/node.def2
14 files changed, 25 insertions, 3 deletions
diff --git a/templates/monitor/interfaces/pseudo-ethernet/node.tag/node.def b/templates/monitor/interfaces/pseudo-ethernet/node.tag/node.def
index 459219b..b538150 100644
--- a/templates/monitor/interfaces/pseudo-ethernet/node.tag/node.def
+++ b/templates/monitor/interfaces/pseudo-ethernet/node.tag/node.def
@@ -1 +1,3 @@
-help: Monitor a specified pseudo-ethernet interface
+help: Monitor specified pseudo-ethernet interface
+allowed: ${vyatta_sbindir}/vyatta-interfaces.pl --show pseudo-ethernet
+run: ${vyatta_bindir}/vyatta-show-interfaces.pl --intf=""
diff --git a/templates/monitor/interfaces/pseudo-ethernet/node.tag/traffic/detail/filter/node.def b/templates/monitor/interfaces/pseudo-ethernet/node.tag/traffic/detail/filter/node.def
new file mode 100644
index 0000000..1981911
--- /dev/null
+++ b/templates/monitor/interfaces/pseudo-ethernet/node.tag/traffic/detail/filter/node.def
@@ -0,0 +1 @@
+help: Monitor detailed filtered traffic for the specified pseudo-ethernet interface
diff --git a/templates/monitor/interfaces/pseudo-ethernet/node.tag/traffic/detail/filter/node.tag/node.def b/templates/monitor/interfaces/pseudo-ethernet/node.tag/traffic/detail/filter/node.tag/node.def
new file mode 100644
index 0000000..9b80e96
--- /dev/null
+++ b/templates/monitor/interfaces/pseudo-ethernet/node.tag/traffic/detail/filter/node.tag/node.def
@@ -0,0 +1,2 @@
+help: Monitor detailed filtered traffic for the specified pseudo-ethernet interface
+run: ${vyatta_bindir}/vyatta-tshark.pl --intf $4 --detail --filter "${@:8}"
diff --git a/templates/monitor/interfaces/pseudo-ethernet/node.tag/traffic/detail/node.def b/templates/monitor/interfaces/pseudo-ethernet/node.tag/traffic/detail/node.def
new file mode 100644
index 0000000..7e304a2
--- /dev/null
+++ b/templates/monitor/interfaces/pseudo-ethernet/node.tag/traffic/detail/node.def
@@ -0,0 +1,2 @@
+help: Monitor detailed traffic for the specified pseudo-ethernet interface
+run: ${vyatta_bindir}/vyatta-tshark.pl --intf $4 --detail
diff --git a/templates/monitor/interfaces/pseudo-ethernet/node.tag/traffic/detail/unlimited/filter/node.def b/templates/monitor/interfaces/pseudo-ethernet/node.tag/traffic/detail/unlimited/filter/node.def
new file mode 100644
index 0000000..1981911
--- /dev/null
+++ b/templates/monitor/interfaces/pseudo-ethernet/node.tag/traffic/detail/unlimited/filter/node.def
@@ -0,0 +1 @@
+help: Monitor detailed filtered traffic for the specified pseudo-ethernet interface
diff --git a/templates/monitor/interfaces/pseudo-ethernet/node.tag/traffic/detail/unlimited/filter/node.tag/node.def b/templates/monitor/interfaces/pseudo-ethernet/node.tag/traffic/detail/unlimited/filter/node.tag/node.def
new file mode 100644
index 0000000..b64818d
--- /dev/null
+++ b/templates/monitor/interfaces/pseudo-ethernet/node.tag/traffic/detail/unlimited/filter/node.tag/node.def
@@ -0,0 +1,2 @@
+help: Monitor detailed filtered traffic for the specified pseudo-ethernet interface
+run: ${vyatta_bindir}/vyatta-tshark.pl --intf $4 --detail --unlimited --filter "${@:9}"
diff --git a/templates/monitor/interfaces/pseudo-ethernet/node.tag/traffic/detail/unlimited/node.def b/templates/monitor/interfaces/pseudo-ethernet/node.tag/traffic/detail/unlimited/node.def
new file mode 100644
index 0000000..63c645f
--- /dev/null
+++ b/templates/monitor/interfaces/pseudo-ethernet/node.tag/traffic/detail/unlimited/node.def
@@ -0,0 +1,2 @@
+help: Monitor detailed traffic for the specified pseudo-ethernet interface
+run: ${vyatta_bindir}/vyatta-tshark.pl --intf $4 --detail --unlimited
diff --git a/templates/monitor/interfaces/pseudo-ethernet/node.tag/traffic/filter/node.def b/templates/monitor/interfaces/pseudo-ethernet/node.tag/traffic/filter/node.def
new file mode 100644
index 0000000..5302dd7
--- /dev/null
+++ b/templates/monitor/interfaces/pseudo-ethernet/node.tag/traffic/filter/node.def
@@ -0,0 +1 @@
+help: Monitor filtered traffic for the specified pseudo-ethernet interface
diff --git a/templates/monitor/interfaces/pseudo-ethernet/node.tag/traffic/filter/node.tag/node.def b/templates/monitor/interfaces/pseudo-ethernet/node.tag/traffic/filter/node.tag/node.def
new file mode 100644
index 0000000..fded0bf
--- /dev/null
+++ b/templates/monitor/interfaces/pseudo-ethernet/node.tag/traffic/filter/node.tag/node.def
@@ -0,0 +1,2 @@
+help: Monitor filtered traffic for the specified pseudo-ethernet interface
+run: ${vyatta_bindir}/vyatta-tshark.pl --intf $4 --filter "${@:7}"
diff --git a/templates/monitor/interfaces/pseudo-ethernet/node.tag/traffic/node.def b/templates/monitor/interfaces/pseudo-ethernet/node.tag/traffic/node.def
index 8f0fc18..173dee1 100644
--- a/templates/monitor/interfaces/pseudo-ethernet/node.tag/traffic/node.def
+++ b/templates/monitor/interfaces/pseudo-ethernet/node.tag/traffic/node.def
@@ -1,2 +1,2 @@
-help: Monitor captured traffic on specified pseudo ethernet interface
-run: /opt/vyatta/bin/vyatta-tshark-interface-port.pl "$4"
+help: Montior captured traffic on specified pseudo-ethernet interface
+run: ${vyatta_bindir}/vyatta-tshark.pl --intf $4
diff --git a/templates/monitor/interfaces/pseudo-ethernet/node.tag/traffic/save/node.def b/templates/monitor/interfaces/pseudo-ethernet/node.tag/traffic/save/node.def
new file mode 100644
index 0000000..bd747b5
--- /dev/null
+++ b/templates/monitor/interfaces/pseudo-ethernet/node.tag/traffic/save/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/pseudo-ethernet/node.tag/traffic/unlimited/filter/node.def b/templates/monitor/interfaces/pseudo-ethernet/node.tag/traffic/unlimited/filter/node.def
new file mode 100644
index 0000000..5302dd7
--- /dev/null
+++ b/templates/monitor/interfaces/pseudo-ethernet/node.tag/traffic/unlimited/filter/node.def
@@ -0,0 +1 @@
+help: Monitor filtered traffic for the specified pseudo-ethernet interface
diff --git a/templates/monitor/interfaces/pseudo-ethernet/node.tag/traffic/unlimited/filter/node.tag/node.def b/templates/monitor/interfaces/pseudo-ethernet/node.tag/traffic/unlimited/filter/node.tag/node.def
new file mode 100644
index 0000000..2b78797
--- /dev/null
+++ b/templates/monitor/interfaces/pseudo-ethernet/node.tag/traffic/unlimited/filter/node.tag/node.def
@@ -0,0 +1,2 @@
+help: Monitor filtered traffic for the specified pseudo-ethernet interface
+run: ${vyatta_bindir}/vyatta-tshark.pl --intf $4 --unlimited --filter "${@:8}"
diff --git a/templates/monitor/interfaces/pseudo-ethernet/node.tag/traffic/unlimited/node.def b/templates/monitor/interfaces/pseudo-ethernet/node.tag/traffic/unlimited/node.def
new file mode 100644
index 0000000..9202afb
--- /dev/null
+++ b/templates/monitor/interfaces/pseudo-ethernet/node.tag/traffic/unlimited/node.def
@@ -0,0 +1,2 @@
+help: Monitor traffic for the specified pseudo-ethernet interface
+run: ${vyatta_bindir}/vyatta-tshark.pl --intf $4 --unlimited