RE: Network interfaces rename

Jurkiewicz Jean-Marc <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
If you "aliased" the Interface ( set a description to the interface), you will find MIBs variable (ifAlias = 1.3.6.1.2.1.31.1.1.1.18) that will allow you to display these aliases

[jur466@nocu07 ~]$ snmpwalk -c MyCS MyRouter 1.3.6.1.2.1.2.2.1.2
.1.3.6.1.2.1.2.2.1.2.1 = STRING: Vlan1
.1.3.6.1.2.1.2.2.1.2.300 = STRING: Vlan300
.1.3.6.1.2.1.2.2.1.2.303 = STRING: Vlan303
.1.3.6.1.2.1.2.2.1.2.304 = STRING: Vlan304
.1.3.6.1.2.1.2.2.1.2.308 = STRING: Vlan308
.1.3.6.1.2.1.2.2.1.2.309 = STRING: Vlan309 

[jur466@nocu07 ~]$ snmpwalk -c MyCS MyRouter 1.3.6.1.2.1.31.1.1.1.18
.1.3.6.1.2.1.31.1.1.1.18.1 = STRING:
.1.3.6.1.2.1.31.1.1.1.18.300 = STRING: Management
.1.3.6.1.2.1.31.1.1.1.18.303 = STRING: FW Services
.1.3.6.1.2.1.31.1.1.1.18.304 = STRING: WAN Access Transfert
.1.3.6.1.2.1.31.1.1.1.18.308 = STRING: Data
.1.3.6.1.2.1.31.1.1.1.18.309 = STRING: IPT

Best regards
JM

-----Message d'origine-----
De : Andreas Haralambopoulos [mailto:[email protected]] 
Envoyé : mercredi, 4. novembre 2015 08:39
À : [email protected]
Objet : Network interfaces rename

Is it possible to change the network interfaces names ( or to create ‘aliases’) ?

for example

snmpwalk -v2c -c password 127.0.0.1


replacing  these names 

IF-MIB::ifDescr.6 = STRING: vlan10
IF-MIB::ifDescr.7 = STRING: vlan172
IF-MIB::ifDescr.8 = STRING: vlan11
IF-MIB::ifDescr.9 = STRING: vlan12 

to

IF-MIB::ifDescr.6 = STRING: Internet
IF-MIB::ifDescr.7 = STRING: dmz
IF-MIB::ifDescr.8 = STRING: guest_lan
IF-MIB::ifDescr.9 = STRING: wifi


thanks

andreas


------------------------------------------------------------------------------
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
------------------------------------------------------------------------------
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.