RE: I don't know why the table iterator works well on snmp v1 but it doesn't work on snmp v2c or v3!

=?ks_c_5601-1987?B?sejAur+1?= <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <!&!AAAAAAAAAAAYAAAAAAAAAKSY9OBwngZEgk1HGRtLOiPCgAAAEAAAAAt6khVOPwZLjM3ntv82nXcBAAAAAA==@radiantech.net>
> snmpgetnext -v1 -c public localhost   RADFINDER-MIB::rfcEngineAirIFType
> snmpgetnext -v2c -c public localhost   RADFINDER-MIB::rfcEngineAirIFType
> snmpgetnext -v3 -u jupiter localhost   RADFINDER-MIB::rfcEngineAirIFType
> ------------
> RADFINDER-MIB::rfcEngineAirIFType.1 = INTEGER: WCDMA(30)
> RADFINDER-MIB::rfcEngineAirIFType.1 = INTEGER: WCDMA(30)
> RADFINDER-MIB::rfcEngineAirIFType.1 = INTEGER: WCDMA(30)

OK - so the basic data is visible for all three versions.
That's a start.

Try running a  "snmpwalk" on these tables for all three versions.
Do you see the full results each time?
==>
I did these:
------------
snmpwalk -v1 -c public localhost   RADFINDER-MIB::rfcEngineTable
snmpwalk -v2c -c public localhost   RADFINDER-MIB::rfcEngineTable
snmpwalk -v3 -u jupiter localhost   RADFINDER-MIB::rfcEngineTable
------------
And the results were:
------------
RADFINDER-MIB::rfcEngineIndex.1 = INTEGER: 1
RADFINDER-MIB::rfcEngineIndex.2 = INTEGER: 2
RADFINDER-MIB::rfcEngineIndex.3 = INTEGER: 3
RADFINDER-MIB::rfcEngineIndex.1 = INTEGER: 1
RADFINDER-MIB::rfcEngineIndex.2 = INTEGER: 2
RADFINDER-MIB::rfcEngineIndex.3 = INTEGER: 3
RADFINDER-MIB::rfcEngineIndex.1 = INTEGER: 1
RADFINDER-MIB::rfcEngineIndex.2 = INTEGER: 2
RADFINDER-MIB::rfcEngineIndex.3 = INTEGER: 3
------------

> But, still, I've got the same garbage values for snmptable queries
> via v2c/v3.
> What should I do?

Hmmm....  I wonder.....
Try adding the option "-CB" to the snmptable - does that make a difference?
==>
I've got the right results for all queries with "-CB" option!
Thank you very much!

But, I'm still wondering why I've got wrong results when I queried without
"-CB" option...

Catherine




------------------------------------------------------------------------------
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.