My Oracle Support Banner

MIB Integer Value Mismatch In Solaris 10 SMA SNMP Agent (Doc ID 2570171.1)

Last updated on AUGUST 02, 2019

Applies to:

Solaris Operating System - Version 10 10/08 U6 to 10 1/13 U11 [Release 10.0]
Information in this document applies to any platform.

Symptoms

SNMP trap will report the INTEGER values sequentially with SNMP version 5.0.9 which will obtain a match with the OS level statistic.

There will be difference with INTEGER when it is communicating with a monitoring tool being used.

bash-3.2# /usr/sfw/bin/snmpwalk -v 2c -c public localhost | grep -i hrStorageDes cr
HOST-RESOURCES-MIB::hrStorageDescr.2 = STRING: Real Memory
HOST-RESOURCES-MIB::hrStorageDescr.3 = STRING: Swap Space
HOST-RESOURCES-MIB::hrStorageDescr.4 = STRING: /                            >>>>>>>> The root file system Integer value starting from "4"
HOST-RESOURCES-MIB::hrStorageDescr.5 = STRING: /devices
HOST-RESOURCES-MIB::hrStorageDescr.6 = STRING: /system/contract
HOST-RESOURCES-MIB::hrStorageDescr.7 = STRING: /etc/svc/volatile
HOST-RESOURCES-MIB::hrStorageDescr.8 = STRING: /system/object
HOST-RESOURCES-MIB::hrStorageDescr.9 = STRING: /etc/dfs/sharetab
HOST-RESOURCES-MIB::hrStorageDescr.10 = STRING: /platform/sun4v/lib/libc_psr.so.

bash-3.2# /usr/sfw/bin/snmpwalk -v 2c -c public localhost | grep -i hrFSMountPoint
HOST-RESOURCES-MIB::hrFSMountPoint.1 = STRING: "/"                          >>>>>>>> For "hrFSMountPoint" Integer value start from "1"
HOST-RESOURCES-MIB::hrFSMountPoint.2 = STRING: "/devices"
HOST-RESOURCES-MIB::hrFSMountPoint.3 = STRING: "/system/contract"
HOST-RESOURCES-MIB::hrFSMountPoint.4 = STRING: "/etc/svc/volatile"
HOST-RESOURCES-MIB::hrFSMountPoint.5 = STRING: "/system/object"
HOST-RESOURCES-MIB::hrFSMountPoint.6 = STRING: "/etc/dfs/sharetab"
HOST-RESOURCES-MIB::hrFSMountPoint.7 = STRING: "/platform/sun4v/lib/libc_psr.so.1"
HOST-RESOURCES-MIB::hrFSMountPoint.8 = STRING: "/platform/sun4v/lib/sparcv9/libc_psr.so.1"
HOST-RESOURCES-MIB::hrFSMountPoint.9 = STRING: "/tmp"

bash-3.2# /usr/sfw/bin/snmpwalk -v 2c -c public localhost | grep -i hrFSStorage
HOST-RESOURCES-MIB::hrFSStorageIndex.1 = INTEGER: 1                     >>>>>>>> Here the INTEGER value should be "4" and not matching with "hrStorageDescr"
HOST-RESOURCES-MIB::hrFSStorageIndex.2 = INTEGER: 2
HOST-RESOURCES-MIB::hrFSStorageIndex.3 = INTEGER: 3
HOST-RESOURCES-MIB::hrFSStorageIndex.4 = INTEGER: 4
HOST-RESOURCES-MIB::hrFSStorageIndex.5 = INTEGER: 5
HOST-RESOURCES-MIB::hrFSStorageIndex.6 = INTEGER: 6
HOST-RESOURCES-MIB::hrFSStorageIndex.7 = INTEGER: 7
HOST-RESOURCES-MIB::hrFSStorageIndex.8 = INTEGER: 8
HOST-RESOURCES-MIB::hrFSStorageIndex.9 = INTEGER: 9
HOST-RESOURCES-MIB::hrFSStorageIndex.10 = INTEGER: 10

Description of the above objects:-

hrFSStorageIndex - The index of the hrStorageEntry that represents information about this file system. It should match with "hrStorageDescr" with root file system Integer value.

hrFSMountPoint - The path name of the root of this file system.

hrStorageDescr - The type and instance of the storage described by this entry.

 

Use the below calculation to get the Physical Ram, Virtual Memory & Hard drive:-

hrStorageSize x hrStorageAllocationUnits = <output in Bytes and need to convert in to GB>

 

baqsh-3.2#/usr/sfw/bin/snmpwalk -v 2c -c public localhost | grep -i hrStorageAllocationUnit
HOST-RESOURCES-MIB::hrStorageAllocationUnits.2 = INTEGER: 8192 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.3 = INTEGER: 8192 Bytes hrstoragesiz
HOST-RESOURCES-MIB::hrStorageAllocationUnits.4 = INTEGER: 1024 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.5 = INTEGER: 512 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.6 = INTEGER: 512 Bytes

 

bash-3.2# /usr/sfw/bin/snmpwalk -v 2c -c public localhost | grep -i hrstoragesize
HOST-RESOURCES-MIB::hrStorageSize.2 = INTEGER: 1048576
HOST-RESOURCES-MIB::hrStorageSize.3 = INTEGER: 1046871
HOST-RESOURCES-MIB::hrStorageSize.4 = INTEGER: 138345907
HOST-RESOURCES-MIB::hrStorageSize.5 = INTEGER: 0
HOST-RESOURCES-MIB::hrStorageSize.6 = INTEGER: 0
HOST-RESOURCES-MIB::hrStorageSize.7 = INTEGER: 1002976
HOST-RESOURCES-MIB::hrStorageSize.8 = INTEGER: 0
HOST-RESOURCES-MIB::hrStorageSize.9 = INTEGER: 0

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.