RouterOS ver 7.14
Global environment declared before:
test=123
Script code:
Listing name from SNMP:Trying to get value from snmpwalk:Trying to get value from snmpget:
SNMP Scripts can't read global var?
Global environment declared before:
test=123
Script code:
Code:
/system script add dont-require-permissions=no name=test policy=read,write,policy,test source=":global test; :put \$test;"
Listing name from SNMP:
Code:
snmpwalk -v3 -l authPriv -u mkuser -a SHA -A xxxxxxxx -x DES -X xxxxxxxxxxx 10.100.200.300 1.3.6.1.4.1.14988.1.1.8.1.1.2Result:iso.3.6.1.4.1.14988.1.1.8.1.1.2.11 = STRING: "test"
Code:
snmpwalk -v3 -l authPriv -u mkuser -a SHA -A xxxxxxxx -x DES -X xxxxxxxxxxx 10.100.200.300 1.3.6.1.4.1.14988.1.1.18.1.1.2.11Result:iso.3.6.1.4.1.14988.1.1.18.1.1.2.11 = STRING: ""
Code:
snmpget -v3 -l authPriv -u mkuser -a SHA -A xxxxxxxx -x DES -X xxxxxxxxxxx 10.100.200.300 1.3.6.1.4.1.14988.1.1.18.1.1.2.11Result:iso.3.6.1.4.1.14988.1.1.18.1.1.2.11 = STRING: ""
SNMP Scripts can't read global var?
Statistics: Posted by thiagomedeiros — Sat Mar 09, 2024 5:02 pm