juniIpIfPrimaryIpAddress
Juniper-IP-MIB ·
.1.3.6.1.4.1.4874.2.2.12.1.1.2.1.23
Object
column SNMPv2-SMIIpAddress
The IP address of the primary IP network on an interface.
Context
- MIB
- Juniper-IP-MIB
- OID
.1.3.6.1.4.1.4874.2.2.12.1.1.2.1.23- Type
- column
- Access
- readonly
- Status
- current
- Parent
- juniIpIfEntry
- Groups
- 8
Net-SNMP examples
How SNMP and these commands workWalk the column to discover its indexed instances, or supply every index to read one instance.
Walk the column
/usr/bin/snmpbulkwalk -v2c -c '<community>' -Pud -Ir -OQUs -m 'Juniper-IP-MIB' -M '/opt/observium/mibs/junose:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'Juniper-IP-MIB::juniIpIfPrimaryIpAddress'
More examples
Read one indexed instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'Juniper-IP-MIB' -M '/opt/observium/mibs/junose:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'Juniper-IP-MIB::juniIpIfPrimaryIpAddress.<index>'
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'Juniper-IP-MIB' -M '/opt/observium/mibs/junose:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'Juniper-IP-MIB::juniIpIfPrimaryIpAddress'
Syntax
- Source
- SNMPv2-SMIIpAddress
- Base type
OctetString
Values & Constraints
Type Constraints
range: 4