From 79a02470c4f9f2184913a959545b54a2dfd76d1e Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Fri, 15 Jan 2021 21:35:06 +0100 Subject: snmp: T652: enable interface_replace_old option and restart command - Remove all old ifTable entries with the same ifName as newly appeared interface (with different ifIndex) - this is the case on e.g. ppp interfaces - Add new op-mode command "restart snmp" to restart the daemon --- op-mode-definitions/restart-snmp.xml.in | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 op-mode-definitions/restart-snmp.xml.in (limited to 'op-mode-definitions/restart-snmp.xml.in') diff --git a/op-mode-definitions/restart-snmp.xml.in b/op-mode-definitions/restart-snmp.xml.in new file mode 100644 index 000000000..7de27df64 --- /dev/null +++ b/op-mode-definitions/restart-snmp.xml.in @@ -0,0 +1,13 @@ + + + + + + + Restart SNMP service + + if cli-shell-api existsActive service snmp; then sudo systemctl restart snmpd.service; else echo "Service SNMP not configured"; fi + + + + -- cgit v1.2.3