I was trying with different confiurations in snmpd.conf, but I 'd got no success.
snmpd.conf 1:
# rwuser: a SNMPv3 read-write user rwuser tenroses # rouser: a SNMPv3 read-only user rouser tenroses
rocommunity tenroses rwcommunity rwtenroses
trap2sink monitor1 trapcommunity tenroses
# Unknown directives read in from other files by snmpconf
com2sec local localhost tenroses com2sec mynetwork 192.168.100.0/24 tenroses
group MyRWGroup v1 local group MyRWGroup v2c local group MyRWGroup usm local group MyROGroup v1 mynetwork group MyROGroup v2c mynetwork group MyROGroup usm mynetwork view all included .1 80 access MyROGroup "" any noauth exact all none none access MyRWGroup "" any noauth exact all all none ============================================================================ snmpd.conf 1 - B: (just a few differences from conf 1) # rwuser: a SNMPv3 read-write user rwuser tenroses
# rouser: a SNMPv3 read-only user rouser rotenroses
# rocommunity: a SNMPv1/SNMPv2c read-only access community name rocommunity rotenroses
# rwcommunity: a SNMPv1/SNMPv2c read-write access community name rwcommunity tenroses
=============================================================================
snmpd.conf 2: #rwuser: a SNMPv3 read-write user rwuser tenroses # rouser: a SNMPv3 read-only user rouser rotenroses # rocommunity: a SNMPv1/SNMPv2c read-only access community name rocommunity rotenroses # rwcommunity: a SNMPv1/SNMPv2c read-write access community name rwcommunity tenroses
trap2sink monitor1
trapcommunity tenroses # sec.name source community com2sec readonly default public com2sec readwrite 127.0.0.1 private
# sec.model sec.name group MyROSystem v1 paranoid group MyROSystem v2c paranoid group MyROSystem usm paranoid group MyROGroup v1 readonly group MyROGroup v2c readonly group MyROGroup usm readonly group MyRWGroup v1 readwrite group MyRWGroup v2c readwrite group MyRWGroup usm readwrite #MyRWGroup usm readwrite group
# incl/excl subtree mask view all included .1 80 view system included .iso.org.dod.internet.mgmt.mib-2.system
# context sec.model sec.level match read write notif access MyROSystem "" any noauth exact all none none access MyROGroup "" any noauth exact all none none access MyRWGroup "" any noauth exact all all none
And unfortunately, with none of them I can set values
Conf 1 -A Output:
#snmpset -v2c -c tenroses monitor1 system.sysContact.0 = "Jose Luis Dragone <[EMAIL PROTECTED]>"
Error in packet.
Reason: notWritable (That object does not support modification)
#snmpset -v 2c -c tenroses monitor1 UCD-SNMP-MIB::ucdavis.50.103.1 s "hello disk"
Error in packet.
Reason: notWritable (That object does not support modification)
Conf 1 - B Output:
snmpset -v 2c -c tenroses monitor1 UCD-SN s.50.103.1 s "hello disk" Error in packet. Reason: notWritable (That object does not support modification) [EMAIL PROTECTED] Snmp-Scripts]# snmpset -v 2c -c tenroses monitor1 UCD-SN s.50.103.1 s "hello disk" Error in packet. Reason: notWritable (That object does not support modification) [EMAIL PROTECTED] Snmp-Scripts]# snmpset -v2c -c tenroses monitor1 system. "Jose Luis Dragone <[EMAIL PROTECTED]>" Error in packet. Reason: notWritable (That object does not support modification)
Conf 2 Output:
snmpwalk -v 2c -c tenroses monitor1
ucdavis.50
UCD-SNMP-MIB::ucdavis.50.1.1 = INTEGER: 1
UCD-SNMP-MIB::ucdavis.50.2.1 = STRING: "disk_io"
UCD-SNMP-MIB::ucdavis.50.3.1 = STRING: "/root/Snmp-Scripts/check_
UCD-SNMP-MIB::ucdavis.50.100.1 = INTEGER: 0
UCD-SNMP-MIB::ucdavis.50.101.1 = STRING: "7240960 . 7529528 "
UCD-SNMP-MIB::ucdavis.50.102.1 = INTEGER: 0
UCD-SNMP-MIB::ucdavis.50.103.1 = ""
[EMAIL PROTECTED] Snmp-Scripts]# snmpset -v 2c -c private monitor1 UCD-SNMP-MIB::ucdavis.50.103.1 s "hello disk"
Timeout: No Response from monitor1
# snmpset -v2c -c tenroses monitor1 system.sysContact.0 = "Jose Luis Dragone <[EMAIL PROTECTED]>"
Error in packet.
Reason: notWritable (That object does not support modification)
Failed object: SNMPv2-MIB::sysContact.0
But /var/log/messages says:
Jan 15 16:02:25 monitor1 snmpd: snmpd startup succeeded
Jan 15 16:02:26 monitor1 snmpd[7649]: /usr/local/share/snmp/snmpd.conf: line 164: Error: Warning: relocatable 'exec' format will change in a future release - See 'NET-SNMP-EXTEND-MIB' for an alternative
Jan 15 16:02:26 monitor1 snmpd[7649]: /usr/local/share/snmp/snmpd.conf: line 165: Error: Warning: relocatable 'exec' format will change in a future release - See 'NET-SNMP-EXTEND-MIB' for an alternative
Jan 15 16:02:26 monitor1 snmpd[7649]: /usr/local/share/snmp/snmpd.conf: line 166: Error: Warning: relocatable 'exec' format will change in a future release - See 'NET-SNMP-EXTEND-MIB' for an alternative
Jan 15 16:02:26 monitor1 snmpd[7649]: /usr/local/share/snmp/snmpd.conf: line 167: Error: Warning: relocatable 'exec' format will change in a future release - See 'NET-SNMP-EXTEND-MIB' for an alternative
Jan 15 16:02:26 monitor1 snmpd[7649]: /usr/local/share/snmp/snmpd.conf: line 191: Warning: Unknown token: MyROSystem.
Jan 15 16:02:26 monitor1 snmpd[7649]: /usr/local/share/snmp/snmpd.conf: line 192: Warning: Unknown token: MyROSystem.
Jan 15 16:02:26 monitor1 snmpd[7649]: /usr/local/share/snmp/snmpd.conf: line 193: Warning: Unknown token: MyROSystem.
Jan 15 16:02:26 monitor1 snmpd[7649]: /usr/local/share/snmp/snmpd.conf: line 194: Warning: Unknown token: MyROGroup.
Jan 15 16:02:26 monitor1 snmpd[7649]: /usr/local/share/snmp/snmpd.conf: line 195: Warning: Unknown token: MyROGroup.
Jan 15 16:02:26 monitor1 snmpd[7649]: /usr/local/share/snmp/snmpd.conf: line 196: Warning: Unknown token: MyROGroup.
Jan 15 16:02:26 monitor1 snmpd[7649]: /usr/local/share/snmp/snmpd.conf: line 197: Warning: Unknown token: MyRWGroup.
Jan 15 16:02:26 monitor1 snmpd[7649]: /usr/local/share/snmp/snmpd.conf: line 198: Warning: Unknown token: MyRWGroup.
Jan 15 16:02:26 monitor1 snmpd[7649]: /usr/local/share/snmp/snmpd.conf: line 199: Warning: Unknown token: MyRWGroup.
Jan 15 16:02:26 monitor1 snmpd[7649]: net-snmp: 4 error(s) in config file(s)
Jan 15 16:02:26 monitor1 snmpd[7649]: NET-SNMP version 5.2
Thanks
Jose Dragone
Robert Story wrote:
On Thu, 13 Jan 2005 20:32:15 -0300 Jose wrote: JD> I have got the following error in the command line: JD> snmpset -v2c -c tenroses monitor1 .1.3.6.1.4.1.2021.2.1.102.4 = 1 JD> Error in packet. JD> Reason: notWritable (That object does not support modification)
First off, can you set other objects successfully?
JD> UCD-SNMP-MIB::prErrFixCmd.4 = STRING:
It may be that it requires a proper FixCmd before it will let you trigger the execution...
------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt _______________________________________________ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users