SNMPSET illusion?
"Raghavendra Prasad" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
Hi all,
I have the following MIB node in my MIB
cdsprAlcActivity OBJECT-TYPE
SYNTAX INTEGER
{
alc-on ( 1 ),
alc-off ( 2 )
}
ACCESS read-write
STATUS mandatory
DESCRIPTION
"Use regulated or fixed output power
1 - ALC on
2 - ALC off"
::= { alc 1}
The agent should accept only the following two snmpset requests
snmpset -c private -v2c localhost REPEATER-MIB::cdsprAlcActivity.0 i 1
snmpset -c private -v2c localhost REPEATER-MIB::cdsprAlcActivity.0 i 2
But I have a peculiar problem, when I set values to other than 0 and
1, it responds this way. For example:
snmpset -c private -v2c localhost REPEATER-MIB::cdsprAlcActivity.0 i 100
REPEATER-MIB::cdsprAlcActivity.0 = INTEGER: 100
Interestingly when I do snmpget it gives me the correct value(which
was originally set to value 2 before the above snmpset)
snmpget -c private -v2c localhost XM-RADIO-REPEATER-MIB::cdsprAlcActivity.0
REPEATER-MIB::cdsprAlcActivity.0 = INTEGER: alc-off(2)
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???
Ofcourse snmpset works fine for values 1 and 0, which was validated
with snmpget requests.
With regards,
Raghavendra
-------------------------------------------------------------------------
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