Hi, we have numerous of the following switches.
Description: Alcatel-Lucent Enterprise OS6560-P48Z16 8.7.98.R03
Is there a CLI command which I can use, which would tell me if a switch interface on the switch (has never had an ethernet cable inserted in to it)?
I have to undertake a mass audit of all the site switches (100) and audit how many of the switches have free interfaces (meaning no ethernet cable has been plugged in)
If not, can some one suggest a CLI command I can use to get the information I require please?
Free switch interfaces on Alcatel-Lucent Enterprise OS6560-P48Z16 8.7.98.R03
- Gleylancer
- Member
- Posts: 156
- Joined: 08 May 2013 03:14
Re: Free switch interfaces on Alcatel-Lucent Enterprise OS6560-P48Z16 8.7.98.R03
No such thing, this information should be handled via SNMP and Logging - or perhaps Omnivista.
What you can do is compare the timestamps of port flaps to the boot time. However, a reboot resets these times, a reboot is a forced port down after all.
What you can do is compare the timestamps of port flaps to the boot time. However, a reboot resets these times, a reboot is a forced port down after all.
Re: Free switch interfaces on Alcatel-Lucent Enterprise OS6560-P48Z16 8.7.98.R03
like written: The timestamp of the last port change of all down ports.
For this use the command "show interfaces" - with regex there are a lot of possibilities.
An easy way is the command:
You will get a list of all down ports with the last time where the status where changed (f.e. from up to down)
To get all down ports with last changes in 2022 or 2023 you can use this:
I think with good knowledge in regex there are a lot other possibilities.
But I prefere to use omnivista for this search. There are a lot possibilities with filters. You can search for all ports in your network at once.
BR Silvio
For this use the command "show interfaces" - with regex there are a lot of possibilities.
An easy way is the command:
Code: Select all
show interfaces | egrep -B 1 -A 2 down | egrep "Chass|Last"
To get all down ports with last changes in 2022 or 2023 you can use this:
Code: Select all
show interfaces | grep -B1 -A2 down | egrep -B3 "2022|2023" | egrep -i "chas|last"
But I prefere to use omnivista for this search. There are a lot possibilities with filters. You can search for all ports in your network at once.
BR Silvio