Cisco NXOS/ACI IfAlias


No.1 Troubleshooting Dashboard - Filter Interface Statistics based on IfAlias/Description
Last updated: 10 months ago

Start with Grafana Cloud and the new FREE tier. Includes 10K series Prometheus or Graphite Metrics and 50gb Loki Logs

Downloads: 106

Reviews: 0

  • IFAliasQuery_Dashboard.png

Cisco NX-OS and ACI - IfAlias Dashboard

So this one has the potential to become your most popular dashboard ... ever.

Data gathering

Telegraf polls configured devices (agents) via SNMPv3 and stores all metrics as a measurement IF in the InfluxDB. You might like to adjust the [inputs.snmp.tagpass] section if you want to poll portchannel or loopback Interfaces as well.

Dashboard usage

When you open the dashboard nothing is displayed, because the ad hoc query at the top of the screen is set to an unused default value. Just enter a (part of a) searchstring of your connected device, be it a server, Firewall, WAN Edge,... and the Dashboards provides full interfaces statistics of all Switches with this IfAlias, as well as three graph panels with Interface status, Traffic and Errors over time. Remember: The query uses regex, so it has to begin and end with an slash, like /-253/ in the example to find the Server with -253 in the name.

Share this dashboard with your serverteam, service desk, basically everyone connecting straight to your network and your ticket count will drop significantly. Because now everybody can self evaluate the network side of their devices.

Collector Configuration Details

agents = [ "" ]
timeout = "5s"
retries = 3
version = 3
sec_name = "telegraf"
auth_protocol = "SHA"
auth_password = "<SECRET>"
sec_level = "authPriv"
priv_protocol = "AES"
priv_password = "<SECRET>"

    oid = "RFC1213-MIB::sysName.0"
    name = "source"
    is_tag = true
  name = "IF"
  inherit_tags = [ "source" ]
  # oid = "IF-MIB::ifXTable" # Don't walk the whole table, just single metrics specified
  # Interface tag - used to identify interface in metrics database [[inputs.snmp.table.field]]
   name = "ifName"
   oid = "IF-MIB::ifName"
   is_tag = true
   name = "ifAlias"
   oid = "IF-MIB::ifAlias"
   is_tag = true
   name = "ifOperStatusCause"
   oid = ""
   is_tag = true
   oid = "IF-MIB::ifHighSpeed"
   oid = "IF-MIB::ifAdminStatus"
   oid = "IF-MIB::ifOperStatus"
   oid = "IF-MIB::ifHCInOctets"
   oid = "IF-MIB::ifHCOutOctets"
   oid = "IF-MIB::ifInDiscards"
   oid = "IF-MIB::ifOutDiscards"
   oid = "IF-MIB::ifInErrors"
   oid = "IF-MIB::ifOutErrors"
   oid = "IF-MIB::ifInUnknownProtos"

     ifName = [ "Ethernet*" ] # Only Metrics starting with "Ethernet", no VLAN, portchannel, ...

  database = "telegraf"
  username = "<username>"
  password = "<password>"