snmpHostOnly
CPI-UNIFIED-MIB ·
.1.3.6.1.4.1.30932.1.1.2.58.5
Object
scalar r/w
Integer32
Restrict access to SNMP via listed Hosts only, 1 = listed SNMP hosts only, 0 = any host.
Context
- MIB
- CPI-UNIFIED-MIB
- OID
.1.3.6.1.4.1.30932.1.1.2.58.5- Type
- scalar
- Access
- readwrite
- Status
- current
- Parent
- pduOptions
Net-SNMP examples
How SNMP and these commands workScalars have one instance, identified by the .0 suffix.
Read the scalar instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'CPI-UNIFIED-MIB' -M '/opt/observium/mibs/chatsworth:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'CPI-UNIFIED-MIB::snmpHostOnly.0'
More examples
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'CPI-UNIFIED-MIB' -M '/opt/observium/mibs/chatsworth:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'CPI-UNIFIED-MIB::snmpHostOnly'
Syntax
Integer32
Values & Constraints
Object Constraints
range: 0-1