On 5 June 2011 13:26, Leo Cacciari <[email protected]> wrote: > AFAIK, there is no way for > the user of snmpset to specify a type of opaque
That's correct. In general, use of Opaque-based types works best when they are handled within the library (as is done with the Float/Double special types). Providing direct access to the basic Opaque type is typically not generally useful - which is why snmpset doesn't currently support it. What you've been describing is probably starting to stretch the meaning of "Simple" in SNMP. The work that has been going on recently to support more structured data types has essentially given up on the SNMP protocol, and is starting again. Which isn't to say that what you're proposing is a bad idea, or won't work. It should be perfectly feasible, if you're sure that this is what you need. > What I'm thinking is adding a 'X' type flag meaning something > like "the data is to be sent as 'opaque' and here it follows the data > itself ber-encoded and written as an hex string." Yes - that seems a perfectly sensible extension. I'm not sure how widely useful it would be to anyone else, but it wouldn't do any harm either. I think that about the only code you'd need to touch would be 'snmp_add_var' (in snmp_api.c), plus the type validation in snmpset itself. Dave ------------------------------------------------------------------------------ Simplify data backup and recovery for your virtual environment with vRanger. Installation's a snap, and flexible recovery options mean your data is safe, secure and there when you need it. Discover what all the cheering's about. Get your free trial download today. http://p.sf.net/sfu/quest-dev2dev2 _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
