From e982b78f24d1dca3d2bc92a39b8e9fcf35b39a37 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Sat, 9 Jan 2021 14:31:48 +0100 Subject: xml: op-mode: add preprocessor support as known from configuration mode --- op-mode-definitions/show-system.xml.in | 183 +++++++++++++++++++++++++++++++++ 1 file changed, 183 insertions(+) create mode 100644 op-mode-definitions/show-system.xml.in (limited to 'op-mode-definitions/show-system.xml.in') diff --git a/op-mode-definitions/show-system.xml.in b/op-mode-definitions/show-system.xml.in new file mode 100644 index 000000000..0623e3b62 --- /dev/null +++ b/op-mode-definitions/show-system.xml.in @@ -0,0 +1,183 @@ + + + + + + + Show system information + + + + + Show active network connections on the system + + netstat -an + + + + Show TCP connection information + + ss -t -r + + + + Show all TCP connections + + ss -t -a + + + + Show TCP connection without resolving names + + ss -t -n + + + + + + Show UDP socket information + + ss -u -a -r + + + + Show UDP socket information without resolving names + + ss -u -a -n + + + + + + + + Show CPU information + + ${vyos_op_scripts_dir}/show_cpu.py + + + + Checks overall system integrity + + sudo ${vyos_op_scripts_dir}/show_system_integrity.py + + + + Show messages in kernel ring buffer + + sudo dmesg + + + + Show user accounts + + + + + Show user account information + + ${vyos_libexec_dir}/vyos-sudo.py ${vyos_op_scripts_dir}/show_users.py + + + + Show information about all accounts + + ${vyos_libexec_dir}/vyos-sudo.py ${vyos_op_scripts_dir}/show_users.py all + + + + Show information about locked accounts + + ${vyos_libexec_dir}/vyos-sudo.py ${vyos_op_scripts_dir}/show_users.py locked + + + + Show information about non VyOS user accounts + + ${vyos_libexec_dir}/vyos-sudo.py ${vyos_op_scripts_dir}/show_users.py other + + + + Show information about VyOS user accounts + + ${vyos_libexec_dir}/vyos-sudo.py ${vyos_op_scripts_dir}/show_users.py vyos + + + + + + + + Show system memory usage + + ${vyos_op_scripts_dir}/show_ram.sh + + + + Show kernel cache information + + sudo slabtop -o + + + + Show detailed system memory usage + + cat /proc/meminfo + + + + Show memory usage of all routing protocols + + /usr/bin/vtysh -c "show memory" + + + + + + Show system processes + + ps ax + + + + Show extensive process info + + top -b -n1 + + + + Show summary of system processes + + uptime + + + + Show process tree + + ps -ejH + + + + + + Show Quagga routing daemons + + /usr/bin/vtysh -c "show daemons" + + + + Show filesystem usage + + df -h -x squashfs + + + + Show how long the system has been up + + uptime + + + + + + -- cgit v1.2.3