Re: SNMPSET illusion?

"Richard Horton" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
2008/7/23 Raghavendra Prasad <[email protected]>:


> For invalid snmpset values instead of complaining that the value is
> out of bounds - it shows as if the value has been set even for out of
> bounds value - although in reality the value has not been changed/set
> creating an illusion - instead of complaining - why???
>

In the code used to handle your mib there are two ways of checking for
a valid integer in the SET_RESERVE# blocks generated by mib2c:

One is a simple check to see if the value passed is an integer, the
other is a range check.

Usually mib2c uses the former call rather an range check.

At the moment I've not got my development machine with me to check
exact syntax but if you look in your agent code (assuming you used
mib2c to generate it) for the column in question in the SET_RESERVE1
block there is a comment refering to the option to use a check range
rather than the simple check type call (check range will validate the
type as well so its a straight swap - I believe from memory the
parameter list is the same with the addition of the upper and lower
bounds).





-- 
Richard Horton
Users are like a virus: Each causing a thousand tiny crises until the
host finally dies.
http://www.solstans.co.uk - Solstans Japanese Bobtails and Norwegian Forest Cats
http://www.pbase.com/arimus - My online photogallery

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
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.