On 20 January 2011 14:40, deepa ramar <login2de...@gmail.com> wrote:
>
> 1). when i am accessing  snmpget -O qv -I r -c public x.x.x.x -v 3 -u  admin
> -a  MD5 -A Key -x DES -X Key -l authPriv
> mibname.id.mac-address(01.00.5E.01.01.01)
> it shows that:
> Unknown Object Identifier (Index out of range: 5E)
> what could be the problem?
> How i will give the mac-address ?So, that the net-snmp validate.

What is the *exact* command that you are giving?
In particular, the exact OID that you use?
   It's very difficult to try and guess what the problem might be,
when you've omitted some of the necessary information.



> 2).I need a some clarification on using the datatype for octetstring.
>   when i searched in net it doesn't show that octetstring datatype,
> How i will pass the datatype for octetstring so, that netsnmp access the
> value?

What exactly do you mean here?
Are you talking about a string-valued index within the OID that you
are requesting, or requesting an OID that returns a string value?

Both of these are supported, but it would help to know what
you are trying to do, before telling you how to do it.


> What is the format of octet string?

What do you mean by this?
A string is represented as a string - a sequence of characters.
What do you mean by the "format" of this string?


>                       I searched in  net, it shows that it
> having a different datatype for different input like  ipaddress
>  and macaddress.

SNMP does define a specific type for (v4) IP addresses, yes.
But physical (mac) addresses are simply a "textual convention"
on top of the basic octet string.
    And Net-SNMP handles them all in the same way as basic
strings - using the 'val.string' pointer of the varbind structure.

What led you to believe that these use a different datatype?
A reference would be useful - if there is misleading documentation
floating about, it would be sensible to correct this.

Dave

------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to