# snmptranslate
OPTIONS:
  -h                    display this help message
  -V                    display package version number
  -m MIB[:...]          load given list of MIBs (ALL loads everything)
  -M DIR[:...]          look in given list of directories for MIBs
  -T TRANSOPTS          Set various options controlling report produced:
                          d:  print full details of the given OID
                          p:  print tree format symbol table
  -O OUTOPTS            Toggle various defaults controlling output display:
                          n:  print OIDs numerically
  -I INOPTS             Toggle various defaults controlling input parsing:
                          R:  do random access to OID labels
# man snmptranslate
NAME
       snmptranslate - translate MIB OID names between numeric and textual forms
OPTIONS
               -Td   Print full details of the specified OID.
               -Tp   Print a graphical tree, rooted at the specified OID.
# snmptranslate .1.3.6.1.4.1.2021.11.11 UCD-SNMP-MIB::ssCpuIdle
# snmptranslate -IR ssCpuIdle UCD-SNMP-MIB::ssCpuIdle
# snmptranslate -On -IR ssCpuIdle .1.3.6.1.4.1.2021.11.11 # snmptranslate -On -IR UCD-SNMP-MIB::ssCpuIdle .1.3.6.1.4.1.2021.11.11
# snmptranslate -Td .1.3.6.1.4.1.2021.11.50
UCD-SNMP-MIB::ssCpuRawUser
ssCpuRawUser OBJECT-TYPE
  -- FROM       UCD-SNMP-MIB
  SYNTAX        Counter32
  MAX-ACCESS    read-only
  STATUS        current
  DESCRIPTION   "The number of 'ticks' (typically 1/100s) spent
         processing user-level code.
         On a multi-processor system, the 'ssCpuRaw*'
         counters are cumulative over all CPUs, so their
         sum will typically be N*100 (for N processors)."
::= { iso(1) org(3) dod(6) internet(1) private(4) enterprises(1) ucdavis(2021) systemStats(11) 50 }
# snmptranslate -Td UCD-SNMP-MIB::ssCpuRawUser
UCD-SNMP-MIB::ssCpuRawUser
ssCpuRawUser OBJECT-TYPE
  -- FROM       UCD-SNMP-MIB
  SYNTAX        Counter32
  MAX-ACCESS    read-only
  STATUS        current
  DESCRIPTION   "The number of 'ticks' (typically 1/100s) spent
         processing user-level code.
         On a multi-processor system, the 'ssCpuRaw*'
         counters are cumulative over all CPUs, so their
         sum will typically be N*100 (for N processors)."
::= { iso(1) org(3) dod(6) internet(1) private(4) enterprises(1) ucdavis(2021) systemStats(11) 50 }
$ cat /proc/cpuinfo | grep processor | wc -l or $ mpstat -P ALL
# snmptranslate -Tp |less
+--iso(1)
   |
   +--org(3)
      |
      +--dod(6)
         |
         +--internet(1)
            |
            +--directory(1)
            |
            +--mgmt(2)
            |  |
            |  +--mib-2(1)
            |     |
            |     +--system(1)
            |     |  |
            |     |  +-- -R-- String    sysDescr(1)
            |     |  |        Textual Convention: DisplayString
            |     |  |        Size: 0..255
            |     |  +-- -R-- ObjID     sysObjectID(2)
            |     |  +-- -R-- TimeTicks sysUpTime(3)
            |     |  |  |
            |     |  |  +--sysUpTimeInstance(0)
(abbr)
# snmptranslate -Tp .1.3.6.1.2.1.1 |less +--system(1) | +-- -R-- String sysDescr(1) | Textual Convention: DisplayString | Size: 0..255 +-- -R-- ObjID sysObjectID(2) +-- -R-- TimeTicks sysUpTime(3) | | | +--sysUpTimeInstance(0) | +-- -RW- String sysContact(4) | Textual Convention: DisplayString | Size: 0..255 +-- -RW- String sysName(5) | Textual Convention: DisplayString | Size: 0..255 +-- -RW- String sysLocation(6) | Textual Convention: DisplayString | Size: 0..255 +-- -R-- INTEGER sysServices(7) | Range: 0..127 +-- -R-- TimeTicks sysORLastChange(8) | Textual Convention: TimeStamp (abbr)
# snmptranslate -IR -Tp system | less +--system(1) | +-- -R-- String sysDescr(1) | Textual Convention: DisplayString | Size: 0..255 +-- -R-- ObjID sysObjectID(2) +-- -R-- TimeTicks sysUpTime(3) | | | +--sysUpTimeInstance(0) | +-- -RW- String sysContact(4) | Textual Convention: DisplayString | Size: 0..255 +-- -RW- String sysName(5) | Textual Convention: DisplayString | Size: 0..255 +-- -RW- String sysLocation(6) | Textual Convention: DisplayString | Size: 0..255 +-- -R-- INTEGER sysServices(7) | Range: 0..127 +-- -R-- TimeTicks sysORLastChange(8) | Textual Convention: TimeStamp (abbr)