On 3 May 2012 05:01, Durga Sree <durga.s...@lnties.com> wrote:
> Am able to solve that problem if i run with sysName am getting the correct 
> result
> but when i use other objects am getting the following error
>
> root@newuser-desktop:/home/newuser# snmpset -v 2c -c private localhost 
> sysName.0 s "office"
> SNMPv2-MIB::sysName.0 = STRING: office

Note :   this request is being sent to 'localhost'

> root@newuser-desktop:/home/newuser# snmpset -v 2c -c private XXX-MIB::XXX.0 i 
> "4"
> i: Bad object type: 4

while this request is being sent to the host called "XXX-MIB:XXX.0"


> root@newuser-desktop:/home/newuser# snmpset -v 2c -c private sysORUpTime.4 t 
> "10:01:11:00"
> t: Bad object type: 1
>
> snmpset -v 2c -c private XXX-MIB::XXX.0 s "office" (here am giving 's' 
> instead of 'i' just to check which error i get)
> s: Needs value

Same here.


> so can anyone pls help where i went wrong?

You need to tell the "snmpset" command where to send the request.
It doesn't remember this from one invocation to the next!

Dave

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to