Using SNMP to view or change HCP settings

You can use the fields HCP-MIB and other MIBs to view and, when allowed, change HCP settings. The interface you use for these activities depends on your SNMP tool. Here are examples of viewing and changing HCP settings with the command-line tool net-snmp:

  • To view the total storage capacity of the HCP system:

    Command:

    snmpget -v 2c -c public -m +/usr/share/snmp/mibs/HCP-MIB.txt
    snmp.hcp-ma.example.com HCP-MIB::totalCapacity.0

    Response:

    HCP-MIB::totalCapacity.0 = Counter64: 562110914560
  • To set the shredding rate to low:

    Command

    snmpset -v 2c -c public -m +/usr/share/snmp/mibs/HCP-MIB.txt
    snmp.hcp-ma.example.com HCP-MIB::shreddingRate.0 i 5000

    Response:

    HCP-MIB::shreddingRate.0 = INTEGER: low(5000)

net-snmp is a publicly available tool.