From 5612efdef70dca2c8f02578cc1b119be4b794d08 Mon Sep 17 00:00:00 2001 From: Mohit Mehta Date: Thu, 3 Apr 2008 21:59:25 +0000 Subject: 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 --- templates/show/interfaces/ethernet/node.tag/capture/node.def | 2 ++ templates/show/interfaces/ethernet/node.tag/capture/not/node.def | 1 + templates/show/interfaces/ethernet/node.tag/capture/not/port/node.def | 1 + .../interfaces/ethernet/node.tag/capture/not/port/node.tag/node.def | 3 +++ templates/show/interfaces/ethernet/node.tag/capture/port/node.def | 1 + .../show/interfaces/ethernet/node.tag/capture/port/node.tag/node.def | 3 +++ 6 files changed, 11 insertions(+) create mode 100644 templates/show/interfaces/ethernet/node.tag/capture/node.def create mode 100644 templates/show/interfaces/ethernet/node.tag/capture/not/node.def create mode 100644 templates/show/interfaces/ethernet/node.tag/capture/not/port/node.def create mode 100644 templates/show/interfaces/ethernet/node.tag/capture/not/port/node.tag/node.def create mode 100644 templates/show/interfaces/ethernet/node.tag/capture/port/node.def create mode 100644 templates/show/interfaces/ethernet/node.tag/capture/port/node.tag/node.def (limited to 'templates/show') 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>' -- cgit v1.2.3