On 14/02/07, marco <[EMAIL PROTECTED]> wrote:
> I have a problem in setting and getting values from a table with two
> indexes, an integer ID and a Mac Address.


> wmanIfBsSsProvMacAddress in the agent is a fixed length string (length = 6).
> When I give this command from console:
>
> 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 ?

> 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).

But you'll need to make sure that the agent is registering
the table correctly first.  Concentrate on getting snmpwalk
to display the indexes properly before you move on to
handling SET requests.

Dave

-------------------------------------------------------------------------
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

Reply via email to