diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-06-19 16:13:01 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2020-06-19 16:13:01 +0200 |
commit | 96a4b6f46c99dd41a44505f929feda0422f4dca7 (patch) | |
tree | 1cc8956a89b5901f7a94535ac871cd1eff4e2695 /op-mode-definitions/show-ip-ports.xml | |
parent | 587416ef606827c5cbf6ac49834fc65283794fbb (diff) | |
download | vyos-1x-96a4b6f46c99dd41a44505f929feda0422f4dca7.tar.gz vyos-1x-96a4b6f46c99dd41a44505f929feda0422f4dca7.zip |
op-mode: add "show ip ports" to list local opened ports
Diffstat (limited to 'op-mode-definitions/show-ip-ports.xml')
-rw-r--r-- | op-mode-definitions/show-ip-ports.xml | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/op-mode-definitions/show-ip-ports.xml b/op-mode-definitions/show-ip-ports.xml new file mode 100644 index 000000000..a74b68ffc --- /dev/null +++ b/op-mode-definitions/show-ip-ports.xml @@ -0,0 +1,17 @@ +<?xml version="1.0"?> +<interfaceDefinition> + <node name="show"> + <children> + <node name="ip"> + <children> + <leafNode name="ports"> + <properties> + <help>Show IP ports in use by various system services</help> + </properties> + <command>sudo /usr/bin/netstat -tulnp</command> + </leafNode> + </children> + </node> + </children> + </node> +</interfaceDefinition> |