sysAddRoute
LUXN-MIB ·
.1.3.6.1.4.1.4253.1.21.7
Object
scalar mandatory
OctetString
Add route operation given local shelf, local slot, destination
IP address and route Type. The format is (shelf, slot,
route Type, destination IP).
Different types of route types are:
external Route: 1 (Route to an external non LuxN node)
internal Route: 2 (Route to a LuxN node in the network)
For example, to add an internal route to a LuxN node with IP address
192.162.6.65 from local shelf 1, slot 6 this variable would
be set to 1,6,3,192.162.6.65
For adding an external route, shelf & slot needs to be zero. For e.g
To add an external route to destination address 192.168.9.99,
this variable needs to be set to 0,0,192.168.9.99
A get on this will return 0,0,0,0
NO LONGER SUPPORTED, user now needs to use sysImnAddRoute
Context
- MIB
- LUXN-MIB
- OID
.1.3.6.1.4.1.4253.1.21.7- Type
- scalar
- Access
- noaccess
- Status
- mandatory
- Parent
- systemConfig
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 'LUXN-MIB' -M '/opt/observium/mibs/zhone:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'LUXN-MIB::sysAddRoute.0'
More examples
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'LUXN-MIB' -M '/opt/observium/mibs/zhone:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'LUXN-MIB::sysAddRoute'
Syntax
OctetString
Values & Constraints
Object Constraints
range: 0-20