Re: what data type i should use in the SNMP SET.

venkatgiri <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hi,
thanks for the reply, but i have a question on this,

This looks like i am giving extra work to the user who is giving the 
SNMP SET command, is this right? If he wants to set an IP address, he 
has convert it to network byte order and then give it in binary string.

the data type InetAddress is [octet string of 0 to 255 length], the 
agent can covert this to network byte order and store it in the binary 
string, is this correct behavior or not?
when the user is given like
snmpset  ..... localhost   b.1 s "192.16.10.14 "

I don;t the things.

-- 
Regards,
Venkat


Dave Shield wrote:
> 2009/8/12 venkatgiri <[email protected]>:
>   
>> xyz::= SEQUENCE {
>>  a     InetAddressType,  MAX-ACCESS read-create
>>  b     InetAddress,  MAX-ACCESS read-create
>>  d     RowStatus, MAX-ACCESS read-create
>>  }
>> If SNMP SET command given for the object "b", then what data type i
>> should use.
>>     
>
>   
>> 2.  snmpset ......localhost   b.1 x oxco100a16
>>     
>
> That looks like the most appropriate syntax,
> since InetAddress is a binary string type.
>
> Dave
>
>

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july

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