SNMPSET - Error - :(genError) A general failure occured

jack n <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hi All,

I had placed my private MIBs under /usr/share/snmp/mibs and compiled them
using mib2c.

I got .c and .h files, added my code in the .c file and placed them under
/agent/mibgroup.

Now when I try to run snmpwalk and SNMPGET request they work succesfully,
but when I run SNMPSET for the same OID, it fails and returns an error.

*# snmpwalk -v 1 localhost -c public 1.3.6.1.8.1.1.2321.79.2.1.5.4*
*.1.3.6.1.8.1.1.2321.79.2.1.5.4.0 = INTEGER: 123

**# snmpget -v 1 localhost -c public 1.3.6.1.8.1.1.2321.79.2.1.5.4.0
.1.3.6.1.8.1.1.2321.79.2.1.5.4.0 = INTEGER: 123*

But when I run *snmpset* ,

*snmpset -v 1 -c public localhost .1.3.6.1.8.1.1.2321.79.2.1.5.4.0 i 12345*
*Error in packet *
**
*Reason:(genError) A general failure occured*


My snmpd.conf file contains the following entries:

#       sec.name  source        community
com2sec Anyone    127.0.0.1/32  public
# create some groups
#     group name  security model  security name
group Group       v1              Anyone
group Group       v2c             Anyone
#view  all   included   xx.xx.xx.xx.xx.xx.xx
view  wview included   .1.3.6.1.8.1.1.2321.79.2.1.5.4.0
master agentx
#agentxPerms 0660 0550 nobody snmp
agentxPerms 600
agentxSocket /tmp/agentx
agentxTimeout 60
agentxRetries 1

rwcommunity  public

Is there anything else that I need to do?
Am i missing something? Please let me know.

Thanks and Regard,
Jack.

------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-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
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.