This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
sdk:status-values-via-snmp [2015/07/07 11:16] fachet [Extended example] |
sdk:status-values-via-snmp [2020/07/21 08:31] (current) fachet [Access via SNMP] |
||
---|---|---|---|
Line 54: | Line 54: | ||
*if you use SNMP v1/2c with the MibBrowser please set either the "Community" (=read only) or the "Write Commuinity" (=read-write), but not both at the same time. | *if you use SNMP v1/2c with the MibBrowser please set either the "Community" (=read only) or the "Write Commuinity" (=read-write), but not both at the same time. | ||
+ | For easier use please copy the NetModule private MIB (NETMODULE-VENDOR-MIB.mib into the MIB directory (e.g. C:\Program Files\MibBrowser Free Tool\mibs) and load it File->Load MIB . | ||
===== Useful ===== | ===== Useful ===== | ||
Line 128: | Line 129: | ||
if (s.name == "RESET_DATA" && s.value == "reset") { | if (s.name == "RESET_DATA" && s.value == "reset") { | ||
nb_reset_statistics("wanlink0"); | nb_reset_statistics("wanlink0"); | ||
- | if (nb_snmp_update("RESET_DATA", strftime("%d.%m.%Y %H:%M:%S", localtime(time()))) == -1) exit(10); | + | if (nb_snmp_update("RESET_DATA", strftime("%d.%m.%Y %H:%M:%S", localtime(time()))) == -1) exit(11); |
} | } | ||
} </code> | } </code> |