Hello,

I have a concern about "*snmpset*" command. I'm not able to set a
hrStorageDescr or hrStorageType.

I have a working system and a CDROM mounted on my server [/mnt]. Now the
SNMP response show the type for CDROM detected [mounted on dir /mnt] as *
hrStorageFixedDisk*. I wish to change it to hrStorageOther, but unable to
do so and received notWritable error after using the snmpset command

Below is the response received when issued the snmpset command along with
the necessary details about my setup

*OS: RHEL6.1*
[root@server ~]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 6.1 (Santiago)

*SNMP version : 5.5*
[root@server ~]# snmpd -v
NET-SNMP version:  5.5
Web:               http://www.net-snmp.org/
Email:             net-snmp-cod...@lists.sourceforge.net

[root@server ~]# cat /etc/snmp/snmpd.conf
rocommunity     public
rwcommunity     private

SNMPWALK response
[root@server ~]# *snmpwalk -v2c -cpublic localhost | grep hrStorage*
HOST-RESOURCES-MIB::hrStorageIndex.1 = INTEGER: 1
HOST-RESOURCES-MIB::hrStorageIndex.3 = INTEGER: 3
HOST-RESOURCES-MIB::hrStorageIndex.6 = INTEGER: 6
HOST-RESOURCES-MIB::hrStorageIndex.7 = INTEGER: 7
HOST-RESOURCES-MIB::hrStorageIndex.10 = INTEGER: 10
HOST-RESOURCES-MIB::hrStorageIndex.31 = INTEGER: 31
HOST-RESOURCES-MIB::hrStorageIndex.35 = INTEGER: 35
HOST-RESOURCES-MIB::hrStorageIndex.36 = INTEGER: 36
HOST-RESOURCES-MIB::hrStorageIndex.37 = INTEGER: 37
HOST-RESOURCES-MIB::hrStorageIndex.39 = INTEGER: 39
HOST-RESOURCES-MIB::hrStorageType.1 = OID:
HOST-RESOURCES-TYPES::hrStorageRam
HOST-RESOURCES-MIB::hrStorageType.3 = OID:
HOST-RESOURCES-TYPES::hrStorageVirtualMemory
HOST-RESOURCES-MIB::hrStorageType.6 = OID:
HOST-RESOURCES-TYPES::hrStorageOther
HOST-RESOURCES-MIB::hrStorageType.7 = OID:
HOST-RESOURCES-TYPES::hrStorageOther
HOST-RESOURCES-MIB::hrStorageType.10 = OID:
HOST-RESOURCES-TYPES::hrStorageVirtualMemory
HOST-RESOURCES-MIB::hrStorageType.31 = OID:
HOST-RESOURCES-TYPES::hrStorageFixedDisk
HOST-RESOURCES-MIB::hrStorageType.35 = OID:
HOST-RESOURCES-TYPES::hrStorageFixedDisk
HOST-RESOURCES-MIB::hrStorageType.36 = OID:
HOST-RESOURCES-TYPES::hrStorageFixedDisk
HOST-RESOURCES-MIB::hrStorageType.37 = OID:
HOST-RESOURCES-TYPES::hrStorageFixedDisk
HOST-RESOURCES-MIB::hrStorageType.39 = OID: HOST-RESOURCES-TYPES::
hrStorageFixedDisk
HOST-RESOURCES-MIB::hrStorageDescr.1 = STRING: Physical memory
HOST-RESOURCES-MIB::hrStorageDescr.3 = STRING: Virtual memory
HOST-RESOURCES-MIB::hrStorageDescr.6 = STRING: Memory buffers
HOST-RESOURCES-MIB::hrStorageDescr.7 = STRING: Cached memory
HOST-RESOURCES-MIB::hrStorageDescr.10 = STRING: Swap space
HOST-RESOURCES-MIB::hrStorageDescr.31 = STRING: /
HOST-RESOURCES-MIB::hrStorageDescr.35 = STRING: /dev/shm
HOST-RESOURCES-MIB::hrStorageDescr.36 = STRING: /boot
HOST-RESOURCES-MIB::hrStorageDescr.37 = STRING: /data
HOST-RESOURCES-MIB::hrStorageDescr.39 = STRING: /mnt
......output omitted

[root@server ~]# *snmpset -m ALL -v2c -c private localhost hrStorageType.39
o hrStorageOther*
Error in packet.
*Reason: notWritable (That object does not support modification)*
Failed object: HOST-RESOURCES-MIB::hrStorageType.39

[root@server ~]# *snmpset -m ALL -v2c -cprivate localhost hrStorageDescr.39
s "/mnt_new"*
Error in packet.
*Reason: notWritable (That object does not support modification)*
Failed object: HOST-RESOURCES-MIB::hrStorageDescr.39

Please help me to understand the reason the above commands are failing. I
dont have any ACL defined on snmpd.conf file.

I have also manually tried changing the MAX-ACCESS for the objects in their
corresponding MIB [/usr/share/snmp/mibs], but still its not working

HOST-RESOURCES-MIB.txt

hrStorageType OBJECT-TYPE
    SYNTAX     AutonomousType
    MAX-ACCESS *read-write*
    STATUS     current
    DESCRIPTION
--
hrStorageDescr OBJECT-TYPE
    SYNTAX     DisplayString
    MAX-ACCESS *read-write*
    STATUS     current
    DESCRIPTION

Let me know how can i set this value.


With Regards
Anirudha Patil
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
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

Reply via email to