summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2008-10-23 14:56:05 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2008-10-23 14:56:05 -0700
commite24e8fd4e50a6e692bed1d9b1c0d4b5aa47d8e93 (patch)
tree8f48c7c5f4486fb92c1209a45736a4325384ede1
parent4a864dde3e169356ec8fee22e302359ea3cf5d70 (diff)
downloadvyatta-op-e24e8fd4e50a6e692bed1d9b1c0d4b5aa47d8e93.tar.gz
vyatta-op-e24e8fd4e50a6e692bed1d9b1c0d4b5aa47d8e93.zip
Add commands to display open sockets
Workalikes for IOS 'show tcp brief'
-rw-r--r--templates/show/tcp/all/node.def2
-rw-r--r--templates/show/tcp/node.def2
-rw-r--r--templates/show/tcp/numeric/node.def2
-rw-r--r--templates/show/udp/node.def2
-rw-r--r--templates/show/udp/numeric/node.def2
5 files changed, 10 insertions, 0 deletions
diff --git a/templates/show/tcp/all/node.def b/templates/show/tcp/all/node.def
new file mode 100644
index 0000000..52c3893
--- /dev/null
+++ b/templates/show/tcp/all/node.def
@@ -0,0 +1,2 @@
+help: show all TCP connections
+run: ss -t -a
diff --git a/templates/show/tcp/node.def b/templates/show/tcp/node.def
new file mode 100644
index 0000000..07d04a6
--- /dev/null
+++ b/templates/show/tcp/node.def
@@ -0,0 +1,2 @@
+help: show TCP connection information
+run: ss -t -r
diff --git a/templates/show/tcp/numeric/node.def b/templates/show/tcp/numeric/node.def
new file mode 100644
index 0000000..35a13fe
--- /dev/null
+++ b/templates/show/tcp/numeric/node.def
@@ -0,0 +1,2 @@
+help: show TCP connection without resolving names
+run: ss -t -n
diff --git a/templates/show/udp/node.def b/templates/show/udp/node.def
new file mode 100644
index 0000000..29e7548
--- /dev/null
+++ b/templates/show/udp/node.def
@@ -0,0 +1,2 @@
+help: show UDP socket information
+run: ss -u -a -r
diff --git a/templates/show/udp/numeric/node.def b/templates/show/udp/numeric/node.def
new file mode 100644
index 0000000..6eae466
--- /dev/null
+++ b/templates/show/udp/numeric/node.def
@@ -0,0 +1,2 @@
+help: show UDP socket information without resolving names
+run: ss -u -a -n