Page 1 of 1

Unable to fetch correct port speed through switch/router wiz

Posted: Thu Jul 01, 2021 9:08 am
by capgemtools
Hello Support,

We have observed that for one of the switch when added through switch/router wizard fetches incorrect port speed for selected ports which is default to 100mbps but actually those ports are 10gbps. Just wanted to understand how we can find out if Nagios is fetching correct port speed from the device.

Re: Unable to fetch correct port speed through switch/router

Posted: Thu Jul 01, 2021 12:31 pm
by ssax
If your devices uses the standard OIDs for ifSpeed/ifHighSpeed you should be able to run this command to get the port ID:
- It's the .2 in the below output:

Code: Select all

[nagios@xid ~]# snmpwalk -v2c -c 'yourcommunity' X.X.X.X ifDesc
IF-MIB::ifDescr.1 = STRING: lo
IF-MIB::ifDescr.2 = STRING: ens160
Then check the ifSpeed and for ifHighSpeed OIDs by putting the number from the above output onto the end of ifSpeed/ifHighSpeed:

Code: Select all

[nagios@xid ~]# snmpwalk -v2c -c 'yourcommunity' X.X.X.X ifSpeed.2
IF-MIB::ifSpeed.2 = Gauge32: 4294967295

Code: Select all

[nagios@xid ~]# snmpwalk -v2c -c 'yourcommunity' X.X.X.X ifHighSpeed.2
IF-MIB::ifHighSpeed.2 = Gauge32: 10000
That will show you what the speed is showing as from the device.
If the bandwidth of the interface is greater than the maximum value
reportable by [ifSpeed] then this object should report its
maximum value (4,294,967,295) and ifHighSpeed must be used
to report the interace's speed. For a sub-layer which has
no concept of bandwidth, this object should be zero.
Taken from here:

https://oidref.com/1.3.6.1.2.1.2.2.1.5

Please PM me this file and let me know which port name/number you're referring to so that I can investigate what it shows:

Code: Select all

/usr/local/nagiosxi/tmp/mrtg-X.X.X.X

Re: Unable to fetch correct port speed through switch/router

Posted: Wed Jul 07, 2021 9:09 am
by capgemtools
Hi ssax,

I have PM you the ouptut of the snmpwalk for those spesific ports.

Re: Unable to fetch correct port speed through switch/router

Posted: Wed Jul 07, 2021 10:57 am
by ssax
When you run through the wizard, does it show it as 100Mb? Try running through the wizard again and set the Default Port Speed to 10000 on the first page.

What is the output of this command?

Code: Select all

/usr/bin/cfgmaker -V
What make/model device is the switch?

Please PM me the top portion of the output of this command (the lines that show --snpd/--base:, I don't need the rest)
- Change YOURUSERNAME/authPass/privPass/X.X.X.X

Code: Select all

/usr/bin/cfgmaker --show-op-down --noreversedns --zero-speed 100000000 --enablesnmpv3 --snmp-options=:::::3 --username=YOURUSERNAME --authprotocol=sha --authpassword='authPass' --privprotocol=aes --privpassword='privPass' --contextengineid=0 X.X.X.X