Page 1 of 1
monitor switch port interface speed
Posted: Fri May 29, 2020 7:26 pm
by lilydalehs
Hi All,
we are having some issues with some of our WAPs dropping their connection speed from 1Gbps to 100Mbps at the switch. Is there any way to monitor the speed of connection of a switch port? (we have 50/50 cisco and hp).
I'm already monitoring the bandwidth of the port, but I need to know if a port is connected at 1Gbps or slower speeds.
Thanks in advance,
Chris.
Re: monitor switch port interface speed
Posted: Mon Jun 01, 2020 12:37 pm
by ssax
Is this an autonegotiate port that's sometimes negotiating 100MB or do you have them fixed to 1G at the port level/WAP level and they sometimes go to a slower speed?
If you keep running into this is there any way you can force them to not autonegotiate (if they are) so that they are forced to 1G full duplex? You may want to check to see what both sides are currently set to (swtich port and wap port settings)
If you run this command against them, what does it show?
- Change X.X.X.X to the Switch/Wap IP, change YOURCOMMUNITY as well
Code: Select all
snmpwalk -v 2c -c 'YOURCOMMUNITY' X.X.X.X:161 ifSpeed
When that issue occurs, does it actually show anything different?
You would probably just use the SNMP or SNMP Walk wizards if that works:
https://assets.nagios.com/downloads/nag ... Wizard.pdf
Re: monitor switch port interface speed
Posted: Wed Jun 03, 2020 6:38 pm
by lilydalehs
Hi ssax,
thanks for the info. These are "autonegotiate" ports which sometimes connect below 1Gbps. And at 100Mb or even 10Mb the WAPs connected don't provide much bandwidth to the students in the classroom's. These are very old classrooms and it's obvious we need to redo the wiring.
The snmpwalk command you sent worked and showed the correct speed (i.e. the actual connected speed) so I will give that a try.
Cheers,
Chris.
Re: monitor switch port interface speed
Posted: Thu Jun 04, 2020 4:56 pm
by benjaminsmith
The snmpwalk command you sent worked and showed the correct speed (i.e. the actual connected speed) so I will give that a try.
Hi Chris,
Sounds good, let us know how it goes.
Re: monitor switch port interface speed
Posted: Sun Jun 07, 2020 4:05 am
by lilydalehs
Hi All,
for anyone interested, I was able to setup the following command which works well.
The command template is
check_xi_service_snmp which equates to
$USER1$/check_snmp -H $HOSTADDRESS$ $ARG1$
For ARG1 I used
-p 161 -o ifSpeed.10133 -C public -P 2c -m IF-MIB -c @0:110000000
This creates an alert anytime the connection speed is less than 1Gb.
Given I have about 120 of these to add, I did some googling and discovered the api and so created a script to add them for me. That api is bloooody marvellous.
Thanks for the assist ssax.
Cheers,
Chris.
Re: monitor switch port interface speed
Posted: Sun Jun 07, 2020 2:37 pm
by scottwilkerson
lilydalehs wrote:Hi All,
for anyone interested, I was able to setup the following command which works well.
The command template is
check_xi_service_snmp which equates to
$USER1$/check_snmp -H $HOSTADDRESS$ $ARG1$
For ARG1 I used
-p 161 -o ifSpeed.10133 -C public -P 2c -m IF-MIB -c @0:110000000
This creates an alert anytime the connection speed is less than 1Gb.
Given I have about 120 of these to add, I did some googling and discovered the api and so created a script to add them for me. That api is bloooody marvellous.
Thanks for the assist ssax.
Cheers,
Chris.
Glad to hear you were able to get this resolved!
Locking thread