2009/8/12 venkatgiri <[email protected]>: > 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.
Not quite. That's the format which the agent is expecting, so the management application needs to provide the address in this form, yes. But that doesn't necessarily mean that the *user* needs to worry about this level of detail. If you are providing a suitable management interface, then that can accept the address in whatever form is most convenient, and convert it into the binary format internally. Remember that the Net-SNMP suite is primarily a programming toolkit (plus an SNMP agent). We do not claim to provide advanced client tools - the command line applications are mostly simple low-level interfaces to the basic protocol operations. If you need anything more, then you'll need to develop these yourself. > 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? No. The agent is expecting to *receive* the request in the appropriate format. That's the responsibility of the client application. You can't push this responsibility onto the agent. Remember, this is the *SIMPLE* Network Management Protocol. This means that what you can ask for is limited, and what you can expect the agent to do is limited. Anything complicated is the responsibility of the management applications. 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
