System information
Manual:SNMP
74
Reboot
It's possible to reboot the router with SNMP set commamd, you need to set value for reboot SNMP settings, which is
not equal to 0,
snmpset -c public -v 1 192.168.0.0 1.3.6.1.4.1.14988.1.1.7.1.0 s 1
• 1.3.6.1.4.1.14988.1.1.7.1.0, SNMP value for the router reboot;
• s 1, snmpset command to set value, value should not be equal to 0;
Reboot snmpset command is equal to the RouterOS command,
/system reboot
Run Script
SNMP write allows to run scripts on the router from system script menu, when you need to set value for SNMP
setting of the script,
snmpset -c public -v 1 192.168.0.0 1.3.6.1.4.1.14988.1.1.8.1.1.3.X s 1
• X, script number, numeration starts from 1;
• s 1, snmpset command to set value, value should not be equal to 0;
The same command on RouterOS,
/system script> print
Flags: I - invalid
0 name="kaka" owner="admin" policy=ftp,reboot,read,write,policy,
test,winbox,password,sniff last-started=jan/01/1970
01:31:57 run-count=23 source=:beep
/system script run 0
See Also
•• SNMP MRTG
[ Top | Back to Content ]
References
[1] http:/ / www. mikrotik. com/ thedude. php
[2] http:/ / mikrotik. com/ download/ Mikrotik. mib