07-16-2004 03:38 AM - edited 03-02-2019 05:07 PM
Hi all
I was recently required to span some ports on our 5500 switch, however, I have just tried to remove the config and I can still see references to the span configuration in the config
To disable the span I entered:
#set span disable
Now when I do a 'show span' I am still seeing output related to my original configuration as follows:
5500 (enable) show span
Status : disabled
Admin Source : Port 6/2
Oper Source : None
Destination : Port 6/20
Direction : transmit/receive
Incoming Packets: enabled
TNS-5500 (enable)
And also in the config as:
#switch port analyzer
!set span 6/2 6/20 both inpkts enable
set span disable
I have tried to remove the line above from the config but I haven't succeeded so far - Please can anyone advise on the correct syntax for removing this spanning config completely
Many thanks in advance - Marcus
07-16-2004 05:36 AM
Try specifying the mod/port as follows:
set span disable [dest_mod/dest_port | all]
07-16-2004 06:28 AM
Many thanks for your reply
I tried your suggestion as follows:
5500 (enable) set span disable 6/20 all
Usage: set span enable
set span disable
set span
[rx|tx|both] [inpkts
set span
[rx|tx|both] [inpkts
I just can't seem to get the syntax right for this ...
07-16-2004 07:21 AM
Try set span disable 6/20. Attached is a the url for the command reference for span.
http://www.cisco.com/univercd/cc/td/doc/product/lan/cat5000/rel_6_3/cmd_ref/setsn_su.htm#wp1100100
07-18-2004 01:48 AM
There appears to be a difference depending upon the CatOS version in use. It seems that with CatOS 4.x you're not able to completely clear the SPAN configuration. I just cleared the configuration (clear config all) from our lab switch here and get the following:
Console> (enable) clear config all
[snip]
Console> (enable) sh config all
[snip]
#switch port analyzer
!set span 1 1/1 both inpkts disable
set span disable
!
[snip]
Console> (enable) sh span
Status : disabled
Admin Source : VLAN 1
Oper Source : None
Destination : Port 1/1
Direction : transmit/receive
Incoming Packets: disabled
So from that the correct syntax to reset to "default" configuration is:
set span 1 1/1 both inpkts disable
The case with a switch running CatOS 5.x is different. You can enable SPAN and then clear it with the "set span disable all" as shown below.
Sw-name> (enable) set span 1/1 2/1 both
Overwrote Port 2/1 to monitor transmit/receive traffic of Port 1/1
Incoming Packets disabled. Learning enabled. Multicast enabled.
Sw-name> (enable) sh span
Destination : Port 2/1
Admin Source : Port 1/1
Oper Source : Port 1/1
Direction : transmit/receive
Incoming Packets: disabled
Learning : enabled
Multicast : enabled
--------------------------------------------
Sw-name> (enable) set span disable all
This command will disable your span session(s).
Do you want to continue (y/n) [n]?y
Disabled all sessions
Sw-name> (enable) sh span
No span session configured
Regards
07-19-2004 06:31 AM
Hi both
Many thanks for your assistance with this
Below is the output from my session - Spanning is disabled, although, I guess that some reference to Switch Port Analyzer is standard within CatOS configs ...
Cheers
Marcus
5500 (enable) sho span
Status : disabled
Admin Source : Port 6/2
Oper Source : None
Destination : Port 6/20
Direction : transmit/receive
Incoming Packets: enabled
5500 (enable) set span 6/2 6/20 both inpkts disable
SPAN destination port incoming packets disabled.
Enabled monitoring of Port 6/2 transmit/receive traffic by Port 6/20
5500 (enable) sho span
Status : enabled
Admin Source : Port 6/2
Oper Source : Port 6/1-2
Destination : Port 6/20
Direction : transmit/receive
Incoming Packets: disabled
TNS-5500 (enable)
5500 (enable) set span disable
Disabled monitoring of Port 6/2 transmit/receive traffic by Port 6/20
5500 (enable) sho span
Status : disabled
Admin Source : Port 6/2
Oper Source : None
Destination : Port 6/20
Direction : transmit/receive
Incoming Packets: disabled
#switch port analyzer
!set span 6/2 6/20 both inpkts disable
set span disable
07-19-2004 03:25 PM
Hi Marcus,
What you say is true for 4.x CatOS, but with 5.x, the command "set span disable" removes all configuration as well.
Regards
Steve
07-19-2004 11:54 PM
Yes, your right Steve - We are running CatOS 4.x
It's an interesting quirk !!
Many thanks indeed for your help :)
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide