Change Port Name SNMP String

  • 0
  • 1
  • Question
  • Updated 3 years ago
  • Answered
Hello, I need to change the name of the port SNMP String. 

With the command "configure ports 1:3 display-string tester" a string of port really changed, but when I look at the values ​​SNMPWalk return: 

IF-MIB :: ifDescr.1003 = STRING: Stack Port 1: 3 

What is the command to change this string for example "Stack Port 1: 1" to "tester"

Photo of Rodrigo Barbieri

Rodrigo Barbieri

  • 204 Points 100 badge 2x thumb

Posted 4 years ago

  • 0
  • 1
Photo of Tyler Marcotte

Tyler Marcotte, Official Rep

  • 2,818 Points 2k badge 2x thumb
Hi Rodrigo, you can use the command "configure ports 1:3 description-string tester" to change the SNMP string.
Photo of Rodrigo Barbieri

Rodrigo Barbieri

  • 204 Points 100 badge 2x thumb
Hi Tyler, tks for reply , but the comand "configure ports 1:3 description-string <name>" does not exist.

can be known whether any other ?
Photo of Daniel Flouret

Daniel Flouret, Employee

  • 7,470 Points 5k badge 2x thumb
That command was added in EXOS v15.3...
Photo of Daniel Flouret

Daniel Flouret, Employee

  • 7,470 Points 5k badge 2x thumb
Rodrigo,

Since v15.3 we have both Display-String and Description-String:
  • Display-string has a maximum length of 20 characters and does nos accept spaces.
  • Description-string has a maximum length of 255 characters and accepts spaces.

Show port <port-list> info will display the display-string.

Port      Flags               Link      ELSM Link Num Num  Num   Jumbo QOS     Load
                              State     /OAM UPS  STP VLAN Proto Size  profile Master
=====================================================================================
PortDisp> Em------e--fMB----- active    - / -  5    0    2   0   9216  none   
=====================================================================================

Show port <port-list> info detail will display both the display-string and the description-string

Port:    1(PortDisplayString):
    Description String: "This Is The Port Description String"
    Virtual-router:    VR-Default
    Type:        UTP
    Random Early drop:    Unsupported
    Admin state:    Enabled with  auto-speed sensing  auto-duplex
    Link State:    Active, 100Mbps, full-duplex
    Link Ups:       5        Last: Thu Nov 06 17:17:53 2014
    Link Downs:     4        Last: Thu Nov 06 17:17:47 2014


Whatever you write in the MIB variable ifAlias (1.3.6.1.2.1.31.1.1.1.18) will show both in Description String and in Display String (truncated to 20 chars).

If you only set Display-String, it will appear in ifAlias. But if you set Description-String, it will replace the Display-String value in ifAlias. If you then change Display-String, ifAlias won't change, unless you unconfigure Display-String...

Confusing, I know...

I've been playing with NetSight MIB Tool and EXOS v15.6.1.4
Photo of Daniel Flouret

Daniel Flouret, Employee

  • 7,470 Points 5k badge 2x thumb
I forgot to mention that ifDescr is READ ONLY. That's why you couldn't change it...

Use ifAlias instead.
Photo of Rodrigo Barbieri

Rodrigo Barbieri

  • 204 Points 100 badge 2x thumb
Daniel,
checking the Mib really exists ifAlias.

I used the ifAlias in Zabbix graphs and showed the name I needed.

Thanks to all
Photo of Paul

Paul

  • 2,026 Points 2k badge 2x thumb
Can you please tell me how do you change use ifAlias . Currently i am also trying to see Port Description in SNMP sever side. When port up down happen snmp traps send to the server then send to Administrator for alert messages via email. Currently can only see .1013 mean 10 switch 1 port number 13 up down etc. can't see the port description.

Appreciate your help! Thanks.