Ad Widget

Collapse

How to Change Switch Interfaces Names?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • admin@psmnv.com
    Member
    • May 2022
    • 41

    #1

    How to Change Switch Interfaces Names?

    We want to change switch interface names from their defaults (for example, ethernet1/1/1:1) to friendly names like 'server1' and 'server2'. I've looked around but I don't see how to do that. I'm using Zabbix 6.2.6.
    Last edited by [email protected]; 24-07-2023, 02:11.
  • ISiroshtan
    Senior Member
    • Nov 2019
    • 324

    #2
    Do the interfaces have a friendly name/description entered in a switch? I believe network equipment vendors usually expose description as a dedicated SNMP OID in their MIBs. In which casae you should be able to modify discovery in use to find the {#DESCRIPTION} discovery macro as that OID and use it in trigger prototype name instead/alongside interface number.

    Comment

    • admin@psmnv.com
      Member
      • May 2022
      • 41

      #3
      I can set aliases for the interface names at the switch level, but it's a pain. I was hoping there was a way in Zabbix to change the display name for interfaces without having to get into the switches.

      Comment

      • jtnfoley
        Member
        • Mar 2022
        • 76

        #4
        I'm interested in this topic, as Fortiswitches appear to have different alias/description fields and the templates have the wrong OIDs for my switch OS version.

        Comment

        • ISiroshtan
          Senior Member
          • Nov 2019
          • 324

          #5
          Originally posted by [email protected]
          I can set aliases for the interface names at the switch level, but it's a pain. I was hoping there was a way in Zabbix to change the display name for interfaces without having to get into the switches.
          Zabbix does need to take this information from somewhere. You can either point Zabbix to where he can take this information from (which implies this information should be in switch, exposed by switch and Zabbix should be directed where exactly it should extract it from) or you can setup all interface manually, ditching Zabbix automation (discovery). Dont believe there is 3rd option availabe for what you ask

          jtnfoley you would need to get the MIB that are actually in use in your switch/router and compare description field OID against what is defined in Zabbix.

          Comment

          • markosa
            Senior Member
            Zabbix Certified SpecialistZabbix Certified ProfessionalZabbix Certified Expert
            • Aug 2022
            • 104

            #6
            Originally posted by [email protected]
            I can set aliases for the interface names at the switch level, but it's a pain. I was hoping there was a way in Zabbix to change the display name for interfaces without having to get into the switches.
            If you don't want to ssh/telnet to switch you could use snmp to set those names as you wish. That could be even scripted quite easily, I mean if you have list of ip's, names(aliases) and port id(snmp index) you could write a script which goes and set those for you. Ofcourse you need to have write access(snmp write community) to those devices.

            Comment

            Working...