Re: Problems with table indexed by MacAddress
marco <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
2007/2/14, Dave Shield <[email protected]>: > > > snmpwalk -v2c -c RW_community -m ALL localhost > > wmanIfBsSsProvisionedForSfTable > > > > I obtain this response: > > > > WMAN-IF-MIB::wmanIfBsSsProvisionedForSfRowStatus.'.abcde'.102.1 > > = INTEGER: active(1) > > > > that is right except for indexes values. A "." appears as first > character of > > index and the "f" appears as .102. Does anybody know why? > > How are you registering the table with the agent? > In particular, what types are you specifying for the string index? > > ASN_OCTET_STR or ASN_PRIV_IMPLIED_OCTET_STR ? Thank you, Dave! The first question seems to be resolved! :-) Using "ASN_PRIV_IMPLIED_OCTET_STR" instead of "ASN_OCTET_STR" I obtain: $ snmpwalk -v2c -c RW_community -m ALL localhost wmanIfBsSsProvisionedForSfTable WMAN-IF-MIB::wmanIfBsSsProvisionedForSfRowStatus.'abcdef'.1 = INTEGER: active(1) that is exactly what I expect. Anyway the problem with set rimains... :--( > In set operations (to create new rows) I don't know how to correctly > specify > > the new index. > > > $ snmpset -v2c -c RW_community -m ALL localhost > > wmanIfBsSsProvisionedForSfRowStatus.'abcdef'.2 i 4 > > Close. > Try > wmanIfBsSsProvisionedForSfRowStatus.\'abcdef\'.2 i 4 > > (so that the quotes are picked up by the snmpset command, > not swallowed by the shell). I obtain: $ snmpset -v2c -c RW_community -m ALL localhost wmanIfBsSsProvisionedForSfRowStatus.\'abcdef\'.2 i 4 wmanIfBsSsProvisionedForSfRowStatus.'abcdef'.2: Unknown Object Identifier (Index out of range: 'abcdef (wmanIfBsSsProvMacAddress)) $ snmpset -v2c -c RW_community -m ALL localhost wmanIfBsSsProvisionedForSfRowStatus.'abcdef'.2 i 4 wmanIfBsSsProvisionedForSfRowStatus.abcdef.2: Unknown Object Identifier (Index out of range: abcdef (wmanIfBsSsProvMacAddress)) $ snmpset -v2c -c RW_community -m ALL localhost wmanIfBsSsProvisionedForSfRowStatus.abcdef.2 i 4 wmanIfBsSsProvisionedForSfRowStatus.abcdef.2: Unknown Object Identifier (Index out of range: abcdef (wmanIfBsSsProvMacAddress)) Why "out of range"? I generated code with mib2c using table_iterator helper, so the only thing I do on indexes is to register them as you, Dave, suggested me (in the netsnmp_table_helper_add_indexes() call). Thank you, Ynjo -- And then one day you find ten years have got behind you. No one told you when to run You missed the starting gun ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ 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