summaryrefslogtreecommitdiff
path: root/templates/show/interfaces
diff options
context:
space:
mode:
authorMohit Mehta <mohit.mehta@vyatta.com>2008-04-03 21:59:25 +0000
committerMohit Mehta <mohit.mehta@vyatta.com>2008-04-03 21:59:25 +0000
commit5612efdef70dca2c8f02578cc1b119be4b794d08 (patch)
treebb4893de453981d6b7dcf22ec966379c54199a5f /templates/show/interfaces
parentd14dee306fe9a8f497e20d9fa58bd199615569c3 (diff)
downloadvyatta-op-5612efdef70dca2c8f02578cc1b119be4b794d08.tar.gz
vyatta-op-5612efdef70dca2c8f02578cc1b119be4b794d08.zip
Fix Bug 1059 Feature Request: integrate 'tcpdump' and 'tethereal' into Vyatta CLI
- 'show interfaces ethernet <> capture' captures traffic at specified interface - 'show interfaces ethernet <> capture port <>' captures traffic at specified interface port - 'show interfaces ethernet <> capture not port <>' captures traffic at specified interface excluding specified port
Diffstat (limited to 'templates/show/interfaces')
-rw-r--r--templates/show/interfaces/ethernet/node.tag/capture/node.def2
-rw-r--r--templates/show/interfaces/ethernet/node.tag/capture/not/node.def1
-rw-r--r--templates/show/interfaces/ethernet/node.tag/capture/not/port/node.def1
-rw-r--r--templates/show/interfaces/ethernet/node.tag/capture/not/port/node.tag/node.def3
-rw-r--r--templates/show/interfaces/ethernet/node.tag/capture/port/node.def1
-rw-r--r--templates/show/interfaces/ethernet/node.tag/capture/port/node.tag/node.def3
6 files changed, 11 insertions, 0 deletions
diff --git a/templates/show/interfaces/ethernet/node.tag/capture/node.def b/templates/show/interfaces/ethernet/node.tag/capture/node.def
new file mode 100644
index 0000000..318f6cf
--- /dev/null
+++ b/templates/show/interfaces/ethernet/node.tag/capture/node.def
@@ -0,0 +1,2 @@
+help: Show captured traffic on specified ethernet interface
+run: /opt/vyatta/bin/vyatta-tshark-interface-port.pl "$4"
diff --git a/templates/show/interfaces/ethernet/node.tag/capture/not/node.def b/templates/show/interfaces/ethernet/node.tag/capture/not/node.def
new file mode 100644
index 0000000..ca8a2ed
--- /dev/null
+++ b/templates/show/interfaces/ethernet/node.tag/capture/not/node.def
@@ -0,0 +1 @@
+help: Show captured traffic excluding the specified ethernet interface port
diff --git a/templates/show/interfaces/ethernet/node.tag/capture/not/port/node.def b/templates/show/interfaces/ethernet/node.tag/capture/not/port/node.def
new file mode 100644
index 0000000..ca8a2ed
--- /dev/null
+++ b/templates/show/interfaces/ethernet/node.tag/capture/not/port/node.def
@@ -0,0 +1 @@
+help: Show captured traffic excluding the specified ethernet interface port
diff --git a/templates/show/interfaces/ethernet/node.tag/capture/not/port/node.tag/node.def b/templates/show/interfaces/ethernet/node.tag/capture/not/port/node.tag/node.def
new file mode 100644
index 0000000..a350ac5
--- /dev/null
+++ b/templates/show/interfaces/ethernet/node.tag/capture/not/port/node.tag/node.def
@@ -0,0 +1,3 @@
+help: Show captured traffic excluding the specified ethernet interface port
+run: /opt/vyatta/bin/vyatta-tshark-interface-port.pl "$4" "$8" 1
+allowed: echo -n '<1-65535>'
diff --git a/templates/show/interfaces/ethernet/node.tag/capture/port/node.def b/templates/show/interfaces/ethernet/node.tag/capture/port/node.def
new file mode 100644
index 0000000..7f6d889
--- /dev/null
+++ b/templates/show/interfaces/ethernet/node.tag/capture/port/node.def
@@ -0,0 +1 @@
+help: Show captured traffic on specified ethernet interface port
diff --git a/templates/show/interfaces/ethernet/node.tag/capture/port/node.tag/node.def b/templates/show/interfaces/ethernet/node.tag/capture/port/node.tag/node.def
new file mode 100644
index 0000000..f1aedc4
--- /dev/null
+++ b/templates/show/interfaces/ethernet/node.tag/capture/port/node.tag/node.def
@@ -0,0 +1,3 @@
+help: Show captured traffic on specified ethernet interface port
+run: /opt/vyatta/bin/vyatta-tshark-interface-port.pl "$4" "$7" 0
+allowed: echo -n '<1-65535>'