When using snmpgetnext, snmpget command, I can get the total result only one row. The result is
SNMPv2-SMI::enterprises.232.6.2.17.2.1.5.0.1 = INTEGER: 1
or
SNMPv2-SMI::enterprises.232.6.2.17.2.1.5.0 = No Such Instance currently exists at this OID.
How can I get the real result like 1 or No Such Instance currently exists at this OID? Also, Why people have told me that using regex isn't good for this?
When using snmpwalk, it returns many rows. I want the map<oid,reuslt> like <1.3.6.1.4.1.2352.2.4.1.4.1.3.18.1,36>. I think the question may be the same with snmpgetnext.
snmpwalk -v 2c -c testro 172.0.0.1 -On .1.3.6.1.4.1.2352.2.4.1.4.1.3
.1.3.6.1.4.1.2352.2.4.1.4.1.3.18.1 = Gauge32: 36
.1.3.6.1.4.1.2352.2.4.1.4.1.3.31.1 = Gauge32: 35
.1.3.6.1.4.1.2352.2.4.1.4.1.3.36.1 = Gauge32: 35