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/snmp.xml.in | 111 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 111 insertions(+) create mode 100644 op-mode-definitions/snmp.xml.in (limited to 'op-mode-definitions/snmp.xml.in') diff --git a/op-mode-definitions/snmp.xml.in b/op-mode-definitions/snmp.xml.in new file mode 100644 index 000000000..a0a47da40 --- /dev/null +++ b/op-mode-definitions/snmp.xml.in @@ -0,0 +1,111 @@ + + + + + + + Show status of SNMP on localhost + + + + + Show status of SNMP community + + + + + ${vyos_op_scripts_dir}/snmp.py --community="$4" + + + + Show status of SNMP on remote host + + ${vyos_op_scripts_dir}/snmp.py --community="$4" --host "$6" + + + + + + Show SNMP MIB information + + + + + Show all SNMP interfaces MIB information + + ${vyos_op_scripts_dir}/snmp_ifmib.py + + + + Show SNMP ifAlias for specified interface + + + + + ${vyos_op_scripts_dir}/snmp_ifmib.py --ifalias="$6" + + + + Show SNMP ifDescr for specified interface + + + + + ${vyos_op_scripts_dir}/snmp_ifmib.py --ifdescr="$6" + + + + Show SNMP ifDescr for specified interface + + + + + ${vyos_op_scripts_dir}/snmp_ifmib.py --ifindex="$6" + + + + + + + + Show SNMP v3 status on localhost + + ${vyos_op_scripts_dir}/snmp_v3.py --all + + + + Show TSM certificates + + ${vyos_op_scripts_dir}/snmp_v3_showcerts.sh + + + + Show the list of configured groups + + ${vyos_op_scripts_dir}/snmp_v3.py --group + + + + Show the list of configured targets + + ${vyos_op_scripts_dir}/snmp_v3.py --trap + + + + Show the list of configured users + + ${vyos_op_scripts_dir}/snmp_v3.py --user + + + + Show the list of configured views + + ${vyos_op_scripts_dir}/snmp_v3.py --view + + + + + + + + -- cgit v1.2.3