slmSysNetworkPrefix
SL-MAIN-MIB ·
smartoptics variant
·
.1.3.6.1.4.1.4515.1.3.1.26
Object
This object is used to configure the Network Prefix. The prefix is used when the IP address of the node is assigned automatically. The automatic IP address of the node has the form A.x.y.z where x.y.z is the last 3 bytes of the MAC address 00:05:fd:x:y:z of the box. The A is the assigned Network Prefix. For example if the A is 10 and the MAC address is 00:05:fd:f6:55:11 the automatic IP of the node shall be 10.253.85.17.
Context
- MIB
- SL-MAIN-MIB
- OID
.1.3.6.1.4.1.4515.1.3.1.26- Type
- scalar
- Access
- readwrite
- Status
- current
- Parent
- slmSys
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 'SL-MAIN-MIB' -M '/opt/observium/mibs/smartoptics:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'SL-MAIN-MIB::slmSysNetworkPrefix.0'
More examples
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'SL-MAIN-MIB' -M '/opt/observium/mibs/smartoptics:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'SL-MAIN-MIB::slmSysNetworkPrefix'
Syntax
- Source
- SNMPv2-SMIInteger32
- Base type
Integer32
Values & Constraints
Type Constraints
range: -2147483648..2147483647