Network Interface Indexes; Querying The Mib - Etic Telecom XSLAN Guide De Configuration

Table des Matières

Publicité

ANNEXE 1
2.2

Network interface indexes

All the SNNP tables that deal with network interfaces are indexed with the network interface index. In the XS
software versions greater or equal to 2.0.0, the indexes are :
Interface name
LAN1
LAN2
LAN3
LAN4
SHDSL1
SHDSL2
SHDSL3
SHDSL4
The interface index will not change for a given software version even after configuration changes and reboots.
However, they are subject to change after changing the firmware.
2.3

Querying the MIB

To query the MIB of the device and see what OID can be useful, the tools from the Net-SNMP project can be
used. They can be installed on an Unix like operating system such as Linux or a BSD variant. They can also be
installed on Windows using Cygwin.
To use them, start a shell in a terminal window and test these commands :
# This command will return all OIDs supported by the device.
mc@ubuntu:~$ snmpwalk -v1 -c public 192.168.0.128
SNMPv2-MIB::sysDescr.0 = STRING: ETIC Telecom XSLAN+4400 SHDSL switch, firmware
version v2.1.0-b2
SNMPv2-MIB::sysObjectID.0 = OID: NET-SNMP-MIB::netSnmpAgentOIDs.10
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (26205510) 3 days, 0:47:35.10
SNMPv2-MIB::sysContact.0 = STRING: www.etictelecom.com
SNMPv2-MIB::sysName.0 = STRING: XS+
...
# This command queries one OID.
mc@ubuntu:~$ snmpget -v1 -c public 192.168.0.201 IF-MIB::ifName.8
IF-MIB::ifName.8 = STRING: lan4
# This command translates the name of an OID to its numeric representation.
# Note that the MIB file must be installed somewhere where Net-SNMP can find it.
mc@ubuntu:~$ snmptranslate IF-MIB::ifName.8 -On
.1.3.6.1.2.1.31.1.1.1.1.8
# Table display : SNMP tables can be displayed with this command :
mc@ubuntu:~$ snmptable -v1 -c public 192.168.0.201 IF-MIB::ifTable
SNMP table: IF-MIB::ifTable
...
Page 76
Internal name
lan1
lan2
lan3
lan4
sh1
sh2
sh3
sh4
Index
11
10
9
8
15
12
14
13
DOC_DEV_XS_Guide de configuration_C

Publicité

Table des Matières
loading

Produits Connexes pour Etic Telecom XSLAN

Table des Matières