snmpset problem in windows
Vivek Singh Bhadauria <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
Hi,
I have just get one problem with my subagent for snmpset command.
I am using Net-SNMP 5.4.2.1 for both Linux and Windows.
In Linux, I am able to get/set the object values for my own enterprise mibs.
But I face the problem in windows. I installed the same subagent application in windows using cygwin.
On Cygwin, snmpwalk and get commands are working but snmpset is not working fine.
In some system it gives no response while on others it says that set is done but actually there is no value set.
Below are the commands for Linux :
snmpwalk -On -v2c -c private localhost ONE97-ALARM-CONFIG-MIB::one97FilterdLogConfigTable
.1.3.6.1.4.1.33830.1.1.4.2.1.2.2 = STRING: "app"
.1.3.6.1.4.1.33830.1.1.4.2.1.2.6 = ""
.1.3.6.1.4.1.33830.1.1.4.2.1.3.2 = STRING: "app2"
.1.3.6.1.4.1.33830.1.1.4.2.1.3.6 = ""
.1.3.6.1.4.1.33830.1.1.4.2.1.4.2 = INTEGER: minor(5)
.1.3.6.1.4.1.33830.1.1.4.2.1.4.6 = INTEGER: critical(3)
.1.3.6.1.4.1.33830.1.1.4.2.1.5.2 = INTEGER: createAndWait(5)
.1.3.6.1.4.1.33830.1.1.4.2.1.5.6 = INTEGER: 0
snmpset -On -v2c -c private localhost .1.3.6.1.4.1.33830.1.1.4.2.1.3.2 s "app2"
.1.3.6.1.4.1.33830.1.1.4.2.1.3.2 = STRING: "app3"
snmpget -On -v2c -c private localhost .1.3.6.1.4.1.33830.1.1.4.2.1.3.2
.1.3.6.1.4.1.33830.1.1.4.2.1.3.2 = STRING: "app3"
Below are the same commands for Cygwin :
snmpwalk -On -v2c -c private localhost ONE97-ALARM-CONFIG-MIB::one97FilterdLogConfigTable
.1.3.6.1.4.1.33830.1.1.4.2.1.2.2 = STRING: "app"
.1.3.6.1.4.1.33830.1.1.4.2.1.2.6 = ""
.1.3.6.1.4.1.33830.1.1.4.2.1.3.2 = STRING: "app2"
.1.3.6.1.4.1.33830.1.1.4.2.1.3.6 = ""
.1.3.6.1.4.1.33830.1.1.4.2.1.4.2 = INTEGER: minor(5)
.1.3.6.1.4.1.33830.1.1.4.2.1.4.6 = INTEGER: critical(3)
.1.3.6.1.4.1.33830.1.1.4.2.1.5.2 = INTEGER: createAndWait(5)
.1.3.6.1.4.1.33830.1.1.4.2.1.5.6 = INTEGER: 0
snmpset -On -v2c -c private localhost .1.3.6.1.4.1.33830.1.1.4.2.1.3.2 s "app4"
no response from localhost
snmpget -On -v2c -c private localhost .1.3.6.1.4.1.33830.1.1.4.2.1.3.2
.1.3.6.1.4.1.33830.1.1.4.2.1.3.2 = STRING: "app2"
Note:
On some Cygwin machine, I get the response on set command but actually it is not setting any values
snmpwalk -On -v2c -c private localhost ONE97-ALARM-CONFIG-MIB::one97FilterdLogConfigTable
.1.3.6.1.4.1.33830.1.1.4.2.1.2.2 = STRING: "app"
.1.3.6.1.4.1.33830.1.1.4.2.1.2.6 = ""
.1.3.6.1.4.1.33830.1.1.4.2.1.3.2 = STRING: "app2"
.1.3.6.1.4.1.33830.1.1.4.2.1.3.6 = ""
.1.3.6.1.4.1.33830.1.1.4.2.1.4.2 = INTEGER: minor(5)
.1.3.6.1.4.1.33830.1.1.4.2.1.4.6 = INTEGER: critical(3)
.1.3.6.1.4.1.33830.1.1.4.2.1.5.2 = INTEGER: createAndWait(5)
.1.3.6.1.4.1.33830.1.1.4.2.1.5.6 = INTEGER: 0
snmpset -On -v2c -c private localhost .1.3.6.1.4.1.33830.1.1.4.2.1.3.2 s "app5"
.1.3.6.1.4.1.33830.1.1.4.2.1.3.2 = STRING: "app5"
snmpget -On -v2c -c private localhost .1.3.6.1.4.1.33830.1.1.4.2.1.3.2
.1.3.6.1.4.1.33830.1.1.4.2.1.3.2 = STRING: "app2"
Any suggestions why it is behaving like this??
The INTERNET now has a personality. YOURS! See your Yahoo! Homepage. http://in.yahoo.com/
------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
_______________________________________________
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