Cisco 78-15328-01 User Manual

Catalyst 6500 Series Switch Command Reference
Release 7.6
Corporate Headquarters
Cisco Systems, Inc. 170 West Tasman Drive San Jose, CA 95134-1706 USA http://www.cisco.com Tel: 408 526-4000
800 553-NETS (6387)
Customer Order Number: DOC-7815328= Text Part Number: 78-15328-01
THE SPECIFICATIONS AND INFORMATION REGARDING THE PRODUCTS IN THIS M ANUAL ARE SUBJECT TO CHA NGE WITHOUT NO TICE. ALL STATEMENTS, INFORMATION, AND RECOMMENDATIONS IN THIS MANUAL ARE BELIEVED TO BE ACCURATE BUT ARE PRESENTED WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED. USERS MUST TAKE FULL RESPONSI BILITY FOR THEIR APPLICA TION OF ANY PRODUCT S.
THE SOFTWARE LICENSE AND LIMITED WARRANTY FOR THE ACCOMPANYING PRODUCT ARE SET FORT H IN THE INFORMATION PACKET T HAT SHIPPED WITH THE PRODUCT AND ARE INCORPORATED HEREIN BY THIS REFERENCE. IF YOU ARE UNABLE TO LOCATE THE SOFTWARE LICENSE OR LIMITED WARRANTY, CONTACT YOUR CISCO REPRESENTATIVE FOR A COPY.
The Cisco implementation of TCP head er compressi on is an adap tation of a program developed by the Universi ty of Ca lifornia, Berk eley (UCB) as part of UCB ’s public domain version of the UNIX operatin g system. All rights reserved . Copyri ght © 1981 , Rege nts of the Uni versity of Calif ornia.
NOTWITHSTANDING ANY OTHER WARRANTY HEREIN, ALL DOCUMENT FILES AND SOFTWARE OF THE SE SUPPLIERS ARE PROVIDED “AS IS” WITH ALL FAULTS. CISCO AND THE ABOVE-NAMED SUPPLIERS DISCLAI M ALL WARRANTIE S, EXPRESSED OR IMPLIED, INCLUDING, WITHOUT LIMITATION, THOSE OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NO NINFRINGEM ENT OR ARISING FROM A COURS E OF DEALING, USAGE, OR TRADE PRACTICE.
IN NO EVENT SHALL CISCO OR ITS SUPPLIERS BE LIABLE FOR ANY INDIRECT, SPECIAL, CONSEQUENTIAL, OR INCIDENTAL DAMAGES, INCLUDING , WITHOUT LIMITATION, LOST PROFITS OR LOSS OR DAMAGE TO DATA ARISING OUT OF THE USE OR INABILITY TO USE THIS MANUAL, EVEN IF CISCO OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE S.
CCIP, CCSP, the Cisco Arrow logo, the Cisco Powered Network mark, the Cisco Systems Verified logo, Cisco Unity, Follow Me Browsing, FormShare, iQ Net Readiness Scorecard, Networking Academy, and ScriptShare are trademarks of Cisco Systems, Inc.; Changing the Way We Wor k, Liv e, Pl ay, and L earn, The F astest Way to Increase Your Internet Quotient, and iQuick S tudy are serv ice marks of Cisco Sys tems, Inc.; and Airo net, ASIS T, BPX, Cat alyst, C CDA, CCDP , CCIE, CCNA, CCNP, Cisco, the Cisco Certified Internetwork Expert logo, Cisco IOS, the Cisco IOS logo, Cisco Press, Cisco Systems, Cisco Systems Capital, the Cisco Systems logo, Empo wering th e Internet Generation, Enterpris e/Solv er, Ether Chann el, EtherS witch, Fas t Step, Gig aSt ack, Internet Quotient , IOS, I P/TV, iQ E xper tise, the iQ logo, LightStream, MGX, MICA, the Networkers logo, Network Registrar, Packet, PIX, Post-Routing, Pre-Routing, RateMUX, Registrar, SlideCast, SMARTnet, StrataView Plus, Stratm, SwitchProbe, TeleRouter, TransPath, and VCO are registered trademarks of Cisco Systems, Inc. and/or its affiliates in the U.S. and certain other countries.
All other trademarks mentioned in this document or Web site are the property of their respective owners. The use of the word partner does not imply a partnership relationship between Cisco and any other company. (0303 R))
Catalyst 6500 Series Switch Command Reference
Copyright © 1999 –2003, Cisco Systems, Inc. All rights reserved.
Preface xxv
Audience xxv Organization xxv Related Documentation xxv Conventions xxvi Obtaining Documentation xxvii
Cisco.com xxvii Documentation CD-ROM xxvii Ordering Documentation xxvii Documentat ion Feedback xxviii
Obtaining Technical Assistance xxviii
Cisco.com xxviii Technical Assistance Center xxix
Obtaining Additional Publications and Information xxx

CONTENTS

CHAPTER
CHAPTER
1 Command-Line Interfac es 1-1
Switch CLI 1-1
Accessing the Switch CLI 1-1 Operating the Switch CLI 1-3
ROM Monitor CLI 1-13
Accessing the ROM Monitor CLI 1-13 Operating th e RO M Monitor CLI 1-13
2 Catalyst6500 Series Switch and ROM Monitor Commands 2-1
alias 2-2 boot 2-4 cd 2-5 clear acllog 2-6 clear alias 2-7 clear arp 2-8 clear banner motd 2-9 clear boot auto-config 2-10
78-15328-01
clear boot device 2-11
Catalyst 6500 Series Switch Command Reference—Release 7.6
iii
Contents
clear boot syst em 2-12 clear cam 2-13 clear cam noti fic a tio n 2-14 clear channel statistics 2-15 clear config 2-16 clear config pv la n 2-18 clear cops 2-19 clear counter s 2-21 clear crypto ke y rs a 2-22 clear dot1x con f ig 2-23 clear dot1x gue s t-vlan 2-24 clear gmrp stat is t ics 2-25 clear gvrp stat is tics 2-26 clear igmp statis tics 2-27 clear ip alias 2-28 clear ip dns domain 2-29 clear ip dns server 2-30 clear ip permit 2-31 clear ip route 2-33 clear kerberos clients mandatory 2-34 clear kerberos cr edentials forward 2-35 clear kerbero s cre ds 2-36 clear kerberos realm 2-37 clear kerbero s ser ver 2-38 clear key confi g-key 2-39 clear l2protocol-tunnel cos 2-40 clear l2protocol-tunnel statistics 2-41 clear lacp-channel statistics 2-42 clear lda 2-43 clear localus er 2-45
iv
clear log 2-46 clear log comma nd 2-47 clear logging buffer 2-48 clear logging lev el 2-49 clear logging ser ve r 2-51
Catalyst 6500 Series Switch Command Reference—Release7.6
78-15328-01
clear mls cef 2-52 clear mls entry 2-53 clear mls entry cef adjacency 2-55 clear mls exclude protocol 2-56 clear mls multicast statistics 2-57 clear mls nde flow 2-58 clear mls statistics 2-59 clear mls statis tics entry 2-61 clear module password 2-63 clear multicast router 2-64 clear ntp server 2-65 clear ntp timezone 2-66 clear pbf 2-67
Contents
clear pbf-map 2-68 clear port broadcast 2-70 clear port cops 2-71 clear port host 2-72 clear port qos cos 2-73 clear port security 2-74 clear pvlan mapping 2-75 clear qos acl 2-76 clear qos config 2-78 clear qos cos-dscp-map 2-79 clear qos dscp-cos-map 2-80 clear qos ipprec-dscp-map 2-81 clear qos mac-cos 2-82 clear qos map 2-83 clear qos policed-dscp-map 2-85 clear qos policer 2-86 clear qos statistics 2-88
78-15328-01
clear radius 2-89 clear rcp 2-90 clear rgmp statistics 2-91 clear security acl 2-92 clear security acl capture-ports 2-94
Catalyst 6500 Series Switch Command Reference—Release 7.6
v
Contents
clear securit y ac l l og flo w 2-95 clear securit y ac l m ap 2-96 clear snmp access 2-98 clear snmp access-list 2-99 clear snmp community 2-100 clear snmp community-ext 2-101 clear snmp gro u p 2-102 clear snmp ifalia s 2-103 clear snmp not if y 2-104 clear snmp tar ge ta d dr 2-105 clear snmp targetparams 2-106 clear snmp tra p 2-107 clear snmp user 2-108 clear snmp vie w 2-109 clear spantree detected-protocols 2-110 clear spantree mst 2-111 clear spantree portcost 2-112 clear spantree portinstancecost 2-113 clear spantree portinstancepri 2-115 clear spantree portpri 2-116 clear spantree portvlancost 2-117 clear spantree portvlanpri 2-119 clear spantree root 2-120 clear spantree statistics 2-122 clear spantree uplinkfast 2-124 clear tacacs ke y 2-125 clear tacacs se rv e r 2-126 clear timezon e 2-127 clear top 2-128 clear trunk 2-129
vi
clear vlan 2-130 clear vlan coun te rs 2-132 clear vlan map pi ng 2-133 clear vmps rcp 2-135 clear vmps ser ve r 2-136
Catalyst 6500 Series Switch Command Reference—Release7.6
78-15328-01
clear vmps statistics 2-137 clear vtp pruneeligible 2-138 clear vtp statistics 2-139 commit 2-140 commit lda 2-142 configure 2-143 confreg 2-145 context 2-147 copy 2-149 delete 2-155 dev 2-156 dir—ROM monitor 2-157 dir—switch 2-158
Contents
disable 2-160 disconnect 2-161 download 2-162 enable 2-166 format 2-167 frame 2-169 fsck 2-170 history—ROM monitor 2-172 history—switch 2-173 l2trace 2-174 meminfo 2-177 ping 2-178 pwd 2-181 quit 2-182 reconfirm vmps 2-183 reload 2-184 repeat 2-185
78-15328-01
reset—ROM monitor 2-187 reset—switch 2-188 restore counters 2-191 rollback 2-192 session 2-193
Catalyst 6500 Series Switch Command Reference—Release 7.6
vii
Contents
set 2-194 set accounting commands 2-195 set accounting connect 2-196 set accounting exec 2-197 set accounting suppress 2-199 set accounting system 2-200 set accounting update 2-202 set acllog ratelimit 2-203 set aclmerge algo 2-204 set aclmerge bdd 2-205 set alias 2-206 set arp 2-207 set authentication enable 2-209 set authentication login 2-211 set authorization commands 2-213 set authorization enable 2-215 set authorization exec 2-217 set banner lcd 2-219 set banner motd 2-220 set banner telnet 2-221 set boot auto-config 2-222 set boot config-register 2-223 set boot config-register auto-conf ig 2-226 set boot device 2-229 set boot sync now 2-231 set boot system flash 2-232 set cam 2-234 set cam notification 2-236 set cdp 2-239 set channelprot ocol 2-241
viii
set channel vlanc ost 2-243 set config acl nvram 2-245 set config mode 2-246 set cops 2-248 set crypto key rs a 2-250
Catalyst 6500 Series Switch Command Reference—Release7.6
78-15328-01
set default portstatus 2-251 set dot1q-all-tagged 2-252 set dot1x 2-253 set enablepass 2-256 set errdisable-timeout 2-257 set errordetection 2-259 set feature agg-l ink-partner 2-261 set feature dot1x-radius-keepalive 2-262 set feature mdg 2-263 set garp timer 2-264 set gmrp 2-265 set gmrp fwdall 2-266 set gmrp registra tion 2-267
Contents
set gmrp timer 2-268 set gvrp 2-270 set gvrp applicant 2-271 set gvrp dynamic-vlan-creation 2-272 set gvrp registration 2-273 set gvrp timer 2-275 set igmp 2-277 set igmp fastblock 2-278 set igmp fastleave 2-279 set igmp flooding 2-280 set igmp leave-que ry-type 2-281 set igmp mode 2-282 set igmp ratelimit 2-283 set igmp querier 2-285 set igmp v3-processing 2-287 set inlinepower defaultallocation 2-288 set interface 2-289
78-15328-01
set ip alias 2-292 set ip dns 2-293 set ip dns domain 2-294 set ip dns server 2-295 set ip fragmentat ion 2-296
Catalyst 6500 Series Switch Command Reference—Release 7.6
ix
Contents
set ip http port 2-297 set ip http server 2-298 set ip permit 2-299 set ip redirect 2-301 set ip route 2-302 set ip unreachable 2-304 set kerberos clients mandatory 2-305 set kerberos credentials forward 2-306 set kerberos local-realm 2-307 set kerberos realm 2-308 set kerberos server 2-309 set kerberos srvtab entry 2-310 set kerberos srvtab remote 2-312 set key config-key 2-313 set l2protocol -tunnel cos 2-314 set l2protocol -tunnel trunk 2-315 set lacp-channel system-priority 2-316 set lcperroraction 2-317 set lda 2-318 set length 2-321 set localuser 2-322 set logging buffer 2-324 set logging console 2-325 set logging history 2-326 set logging level 2-327 set logging server 2-330 set logging session 2-332 set logging telnet 2-333 set logging timestamp 2-334 set logout 2-335 set mls agingtime 2-336 set mls bridged-flow-statistics 2-339 set mls cef load-balance 2-340 set mls cef per-prefix-statistics 2-341 set mls exclude protocol 2-342
Catalyst 6500 Series Switch Command Reference—Release7.6
x
78-15328-01
set mls flow 2-343 set mls nde 2-345 set mls rate 2-349 set mls statistics protocol 2-350 set mls verify 2-351 set module 2-353 set module name 2-355 set module power 2-356 set module shutdown 2-357 set msfcautostate 2-358 set msmautostate 2-360 set multicast router 2-361 set ntp broadcastclient 2-362
Contents
set ntp broadcastdelay 2-363 set ntp client 2-364 set ntp server 2-365 set ntp summertime 2-366 set ntp timezone 2-368 set password 2-369 set pbf 2-370 set pbf-map 2-372 set port arp-inspection 2-374 set port auxiliaryvlan 2-375 set port broadcast 2-377 set port channel 2-379 set port cops 2-382 set port debounce 2-383 set port disable 2-385 set port dot1q-all-tagged 2-386 set port dot1qtunnel 2-388
78-15328-01
set port dot1x 2-390 set port duplex 2-393 set port enable 2-394 set port errdisable-timeout 2-395 set port flowcontrol 2-396
Catalyst 6500 Series Switch Command Reference—Release 7.6
xi
Contents
set port gmrp 2-398 set port gvrp 2-399 set port host 2-401 set port inlinepower 2-402 set port jumbo 2-403 set port l2protocol-tunnel 2-404 set port lacp-channel 2-406 set port macro 2-408 set port membership 2-411 set port name 2-413 set port negotiation 2-414 set port protocol 2-415 set port qos 2-417 set port qos autoqos 2-419 set port qos cos 2-421 set port qos policy-source 2-422 set port qos trust 2-424 set port qos trust-device 2-426 set port qos trust-ext 2-427 set port rsvp dsbm-election 2-428 set port security 2-429 set port speed 2-432 set port sync-restart-delay 2-433 set port trap 2-434 set port unicast-flood 2-435 set port voice interface dhcp 2-437 set power redundanc y 2-439 set prompt 2-440 set protocolfi lter 2-441 set pvlan 2-442
xii
set pvlan mapping 2-444 set qos 2-446 set qos acl default-action 2-447 set qos acl ip 2-449 set qos acl ipx 2-454
Catalyst 6500 Series Switch Command Reference—Release7.6
78-15328-01
set qos acl mac 2-457 set qos acl map 2-459 set qos autoqos 2-461 set qos bridged-mi croflow-policing 2-462 set qos cos-dscp-map 2-463 set qos drop-threshold 2-464 set qos dscp-cos-map 2-466 set qos ipprec-ds cp-map 2-467 set qos mac-cos 2-469 set qos map 2-470 set qos policed-dscp-map 2-473 set qos policer 2-474 set qos policy-source 2-477
Contents
set qos rsvp 2-479 set qos rxq-ratio 2-481 set qos statistics export 2-483 set qos statistics export aggregate 2-484 set qos statistics export destination 2-485 set qos statistics export interval 2-486 set qos statistics export port 2-487 set qos txq-ratio 2-488 set qos wred 2-490 set qos wrr 2-492 set radius attribute 2-494 set radius deadtime 2-495 set radius key 2-496 set radius retransmit 2-497 set radius server 2-498 set radius timeout 2-499 set rcp username 2-500
78-15328-01
set rgmp 2-501 set rspan 2-502 set security acl adjacency 2-505 set security acl arp-inspection 2-506 set security acl capture-ports 2-508
Catalyst 6500 Series Switch Command Reference—Release 7.6
xiii
Contents
set security acl feature ratelimit 2-509 set security ac l ip 2-510 set security ac l ipx 2-516 set security ac l log 2-519 set security ac l mac 2-520 set security ac l map 2-522 set snmp 2-524 set snmp access 2-525 set snmp access-list 2-527 set snmp buffer 2-529 set snmp chassis-alias 2-530 set snmp community 2-531 set snmp community-ext 2-533 set snmp extendedrmon netflow 2-535 set snmp group 2-536 set snmp ifalias 2-537 set snmp notify 2-538 set snmp rmon 2-539 set snmp rmonmemory 2-540 set snmp targetaddr 2-541 set snmp targetparams 2-543 set snmp trap 2-545 set snmp user 2-548 set snmp view 2-550 set span 2-552 set spantree backbonefast 2-555 set spantree bpdu-filter 2-556 set spantree bpdu-guard 2-557 set spantree bpdu-skewing 2-558 set spantree channelcost 2-559
xiv
set spantree channelvlancost 2-561 set spantree defaultcostmode 2-562 set spantree disable 2-564 set spantree enable 2-566 set spantree fwddelay 2-568
Catalyst 6500 Series Switch Command Reference—Release7.6
78-15328-01
set spantree global-default 2-570 set spantree guard 2-572 set spantree hello 2-574 set spantree link-type 2-576 set spantree macreduction 2-577 set spantree maxage 2-578 set spantree mode 2-580 set spantree mst 2-582 set spantree mst config 2-583 set spantree mst link-type 2-585 set spantree mst maxh ops 2-586 set spantree mst vl an 2-587 set spantree portcost 2-588
Contents
set spantree portfast 2-590 set spantree portfast bpdu-filter 2-592 set spantree portfast bpdu-guard 2-593 set spantree portinstancecost 2-594 set spantree portinstancepri 2-596 set spantree portpri 2-598 set spantree portvlancost 2-599 set spantree portvlanpri 2-602 set spantree priority 2-604 set spantree root 2-606 set spantree uplinkfast 2-609 set summertime 2-611 set system baud 2-613 set system contact 2-614 set system core-dump 2-615 set system core-f ile 2-616 set system countrycode 2-617
78-15328-01
set system crossbar-fallback 2-618 set system highava ilability 2-619 set system highavailability versioning 2-620 set system location 2-622 set system modem 2-623
Catalyst 6500 Series Switch Command Reference—Release 7.6
xv
Contents
set system name 2-624 set system supervisor-update 2-625 set system switchmode allow 2-627 set system syslog-dump 2-629 set system syslog- file 2-630 set tacacs attempts 2-631 set tacacs directedrequest 2-632 set tacacs key 2-633 set tacacs server 2-634 set tacacs timeout 2-635 set test diagfai l-action 2-636 set test diaglev el 2-637 set time 2-638 set timezone 2-639 set traffic monitor 2-640 set trunk 2-641 set udld 2-644 set udld aggressive-mode 2-646 set udld interval 2-647 set vlan 2-648 set vlan mapping 2-652 set vmps downloadmethod 2-654 set vmps downloadserver 2-655 set vmps server 2-656 set vmps state 2-658 set vtp 2-659 set vtp pruneeligible 2-661 show accounting 2-662 show acllog 2-665 show aclmerge 2-666
xvi
show alias 2-667 show arp 2-668 show authentication 2-669 show authorization 2-670 show banner 2-671
Catalyst 6500 Series Switch Command Reference—Release7.6
78-15328-01
show boot 2-672 show boot device 2-673 show cam 2-674 show cam agingtime 2-676 show cam count 2-677 show cam msfc 2-678 show cam notification 2-679 show cdp 2-682 show channel 2-685 show channel group 2-690 show channel hash 2-694 show channel mac 2-695 show channelproto col 2-696
Contents
show channel traffic 2-697 show config 2-698 show config mode 2-704 show config qos acl 2-705 show cops 2-706 show counters 2-709 show crypto key 2-715 show default 2-716 show dot1q-all-tagged 2-717 show dot1x 2-718 show dvlan statistics 2-719 show environment 2-720 show errdisable-timeout 2-725 show errordetection 2-726 show fabric channel 2-727 show file 2-730 show flash 2-731
78-15328-01
show garp timer 2-734 show gmrp configuration 2-735 show gmrp statistics 2-736 show gmrp timer 2-737 show gvrp configuration 2-738
Catalyst 6500 Series Switch Command Reference—Release 7.6
xvii
Contents
show gvrp statist ics 2-740 show ifindex 2-742 show igmp flooding 2-743 show igmp leave-query-type 2-744 show igmp mode 2-745 show igmp querier information 2-746 show igmp ratelimit-info 2-747 show igmp statistics 2-748 show imagemib 2-750 show interface 2-751 show ip alias 2-753 show ip dns 2-754 show ip http 2-756 show ip permit 2-758 show ip route 2-760 show kerberos 2-762 show l2protocol-tunnel statistics 2-764 show lacp-channel 2-766 show lcperroraction 2-770 show lda 2-771 show localuser 2-775 show log 2-776 show log command 2-778 show logging 2-779 show logging buffer 2-781 show mac 2-782 show microcode 2-785 show mls 2-786 show mls acl-route 2-788 show mls cef interface 2-789
xviii
show mls cef mac 2-791 show mls cef summary 2-792 show mls entry 2-794 show mls entry cef 2-800 show mls entry netflow-route 2-804
Catalyst 6500 Series Switch Command Reference—Release7.6
78-15328-01
show mls exclude protocol 2-806 show mls multicast 2-807 show mls nde 2-812 show mls netflow-route 2-813 show mls pbr-route 2-814 show mls statistics 2-815 show mls verify 2-819 show module 2-820 show moduleinit 2-823 show msfcautostate 2-825 show msmautostate 2-826 show multicast group 2-827 show multicast group co unt 2-829
Contents
show multicast protocols status 2-830 show multicast router 2-831 show multicast v3-group 2-833 show netstat 2-834 show ntp 2-841 show pbf 2-843 show pbf-map 2-845 show port 2-846 show port arp-inspection 2-854 show port auxiliaryvlan 2-855 show port broadcast 2-857 show port capabilities 2-859 show port cdp 2-864 show port channel 2-866 show port cops 2-872 show port counters 2-874 show port debounce 2-876
78-15328-01
show port dot1q-all-tagged 2-877 show port dot1q-et hertype 2-878 show port dot1qtun nel 2-879 show port dot1x 2-880 show port errdisable-timeout 2-882
Catalyst 6500 Series Switch Command Reference—Release 7.6
xix
Contents
show port flowcontrol 2-884 show port inlinepower 2-886 show port jumbo 2-887 show port l2proto col-tunnel 2-888 show port lacp-cha nnel 2-889 show port mac 2-892 show port mac-addre ss 2-894 show port negotiat ion 2-896 show port prbs 2-897 show port protocol 2-898 show port qos 2-899 show port rsvp 2-902 show port security 2-903 show port spantree 2-906 show port status 2-907 show port sync-restart-delay 2-908 show port tdr 2-909 show port trap 2-911 show port trunk 2-912 show port unicast-flood 2-914 show port voice 2-915 show port voice acti ve 2-918 show port voice fdl 2-922 show port voice interface 2-924 show proc 2-925 show protocolfilter 2-929 show pvlan 2-930 show pvlan capabil ity 2-932 show pvlan mapping 2-934 show qos acl editbuffer 2-936
xx
show qos acl info 2-937 show qos acl map 2-939 show qos acl resourc e-usage 2-941 show qos bridged-microflow-policing 2-942 show qos info 2-943
Catalyst 6500 Series Switch Command Reference—Release7.6
78-15328-01
show qos mac-cos 2-949 show qos maps 2-951 show qos policer 2-954 show qos policy-source 2-956 show qos rsvp 2-957 show qos statistics 2-958 show qos statisti cs export info 2-960 show qos status 2-961 show radius 2-962 show rcp 2-964 show reset 2-965 show rgmp group 2-966 show rgmp statisti cs 2-967
Contents
show rspan 2-968 show running-conf ig 2-970 show security acl 2-973 show security ac l ar p- inspection 2-976 show security acl capture-ports 2-977 show security ac l fe at u re ratelimit 2-978 show security ac l lo g 2-979 show security acl map 2-982 show security acl resource-usage 2-983 show snmp 2-984 show snmp access 2-986 show snmp access-list 2-988 show snmp buffer 2-989 show snmp community 2-990 show snmp context 2-992 show snmp counters 2-993 show snmp engineid 2-997
78-15328-01
show snmp group 2-998 show snmp ifalias 2-1000 show snmp notify 2-1001 show snmp rmonmemory 2-1003 show snmp targetaddr 2-1004
Catalyst 6500 Series Switch Command Reference—Release 7.6
xxi
Contents
show snmp targetparams 2-1006 show snmp user 2-1008 show snmp view 2-1010 show span 2-1012 show spantree 2-1014 show spantree backb onefast 2-1018 show spantree blockedports 2-1019 show spantree bpdu-filter 2-1021 show spantree bpdu- guard 2-1022 show spantree bpdu-skewing 2-1023 show spantree conflicts 2-1025 show spantree defaultcostmode 2-1027 show spantree guard 2-1028 show spantree mappin g 2-1030 show spantree mistp-instance 2-1032 show spantree mst 2-1034 show spantree mst config 2-1036 show spantree portfast 2-1038 show spantree portinstancecost 2-1039 show spantree portvlancost 2-1040 show spantree statistics 2-1041 show spantree summary 2-1048 show spantree uplinkfast 2-1051 show startup-con fig 2-1053 show summertime 2-1056 show system 2-1057 show system highavailability 2-1061 show system supervisor-update 2-1062 show system switchmode 2-1063 show tacacs 2-1064
xxii
show tech-support 2-1066 show test 2-1069 show time 2-1074 show timezone 2-1075 show top 2-1076
Catalyst 6500 Series Switch Command Reference—Release7.6
78-15328-01
show top report 2-1078 show traffic 2-1080 show trunk 2-1081 show udld 2-1084 show users 2-1086 show version 2-1087 show vlan 2-1090 show vlan counters 2-1095 show vmps 2-1097 show vmps mac 2-1099 show vmps statistics 2-1100 show vmps vlan 2-1102 show vtp domain 2-1103
Contents
show vtp statisti cs 2-1105 slip 2-1107 squeeze 2-1108 stack 2-1109 switch 2-1110 switch console 2-1111 switch fabric 2-1112 sync 2-1113 sysret 2-1114 telnet 2-1115 test cable-diagnostics 2-1116 test snmp trap 2-1118 traceroute 2-1119 unalias 2-1122 undelete 2-1123 unset=varname 2-1124 varname= 2-1125
78-15328-01
verify 2-1126 wait 2-1127 whichboot 2-1128 write 2-1129 write tech-support 2-1132
Catalyst 6500 Series Switch Command Reference—Release 7.6
xxiii
Contents
APPENDIX
I
NDEX
A Acronyms A-1
xxiv
Catalyst 6500 Series Switch Command Reference—Release7.6
78-15328-01
Preface
This preface descri b es t he a udie nc e, o rganiza tio n, an d co nventions of th is pu bli cat ion an d p rovides information on how to obtain related documentation.

Audience

This publication is for experi ence d network ad mini str ator s wh o a re r esp onsib le for configuri ng and maintaining Catalyst 6500 series switches.

Organization

This publication is organized a s fo llows:
Chapter Title Description
Chapter 1 Command-Line
Chapter 2 Catalyst 6500 Series
Appendix A Acronyms Defines the acronyms used in this
Interfaces
Switch and ROM Monitor Commands
Describes the two typ es of CL Is fo und on Catalyst 6500 series switches.
Lists alphabetically and provides detailed information for all Catalyst 6500 series switch and ROM-monitor comma nds.
publication.

Related Documentation

Other documents in the Catalyst 6500 series switch documentation set include:
Catalyst 6500 Series Switch Installation Guide
Catalyst 6000 Series Switch Installation Guide
Catalyst 6500 Seri es Sw itch M odule I nstall ation Gui de
Catalyst 6500 Seri es Sw itch S oft ware Configuration Gui de
78-15328-01
Catalyst 6500 Series Switch Command Reference—Release 7.6
xxv

Conventions

For information about MI Bs, refer to: http://www.cisco.com/public/sw-center/netmgmt/cmtk/mibs.shtml
Conventions
This publication uses the following conventions:
Preface
System Message Guide—Catalyst 650 0 Series, Cata lyst 4000 Family, Catalyst 2948G, and
Catalyst 2980G Switches
Catalyst 6500 Seri es Sw itch Q uick Sof tware Configuration Gu ide
ATM Software Configuration Guide and Command Reference for the Catalyst 5000 Family and 6000
Family Switches
Release Notes for Catalyst 6500 Series Switch
Convention Description
boldface font Commands, command op tions, an d keywords are in
boldface.
italic font Arguments for which you supply values are in ita li cs. [ ] Elements in square brackets are optional. { x | y | z } Alternative keywords are grouped in braces and separated by
vertical bars.
[ x | y | z ] Optional alterna tive keywords are grouped in brac kets and
separated by vertical ba rs.
string A nonquoted set of characters. Do no t use quotatio n marks
around the string or the string will include the quotation marks.
screen font Terminal sessions and information the system displays are in
screen font.
boldface screen
Information you must enter is in boldface screen font.
font italic screen font Arguments for which you supply values are in ita lic s c reen
font.
^ The symbol ^ r epre se nts t he key labe led Con trol— fo r
example, the key combination ^D in a screen display means hold down the Control key while you press the D key.
< > Nonprinting char acters, suc h as passwords are in angle
brackets. [ ] Default responses to system prompts are in square brackets. !, # An exclamation point (!) or a pound sign (#) at the beginning
of a line of code indicates a comment line.
xxvi
Catalyst 6500 Series Switch Command Reference—Release7.6
78-15328-01
Preface
Notes use the following conventions:
Note Means reader take note. Notes contain helpful suggestions or references to material not covered in the
publication.

Obtaining Documentation

Cisco provides several ways to obtain documentation, techn ical assistance , and other tec hnical resources. These sect ion s expla in h ow to obta in te chni cal infor ma tion fr om Ci sco Sy stem s.

Cisco.com

You can access the m ost cur rent C isco docum ent ation on the World Wide Web at this U RL:
http://www.cisco.com/univercd/home/home.htm
You can access the Cisco website at this URL:
Obtaining Documentation
http://www.cisco.com
International Cisco web sites can be accessed from this URL:
http://www.cisco.com/public/countries_languages.shtml

Documentation CD-ROM

Cisco documentation and additional literature are available in a Cisco Documentation CD-ROM package, which may have shipped with your product. The Documentation CD-ROM is updated monthly and may be more curre nt than printed do cumentati on. The CD-R OM pack age is av ailable as a single unit or through an an nual su bscript ion.
Registered Cisco.com users can order the Documentation CD-ROM (product number DOC-CONDOCCD=) through the online Subscription Store:
http://www.cisco.com/go/subscription

Ordering Documentation

You can find instruct ions for orde ring do cu me nta tio n at this U RL:
http://www.cisco.com/univercd/cc/td/doc/es_inpck/pdi.htm
You can order Cisco documentati on in these way s:
78-15328-01
Registered Cisco.com users (Cisco direct customers) can order Cisco product documentation from
the Networking Produ cts Market Pla ce:
http://www.cisco.com/en/US/partner/ordering/index.shtml
Registered Cisco.com users can order the Documentation CD-ROM (Customer Order Number
DOC-CONDOCCD=) through the online Subscription Store:
http://www.cisco.com/go/subscription
Catalyst 6500 Series Switch Command Reference—Release 7.6
xxvii

Obtaining Technical As sistance

Nonregistered Cisco.co m u ser s can o rd er docum en tati on th rou gh a l oc al ac count r epre sen tative by
calling Cisco Systems Corpo rate Headqu arter s (Califo rnia, U.S.A. ) at 408 526-7208 or, elsewhere in North America, by calli ng 800 55 3-NE TS (6387).

Documentation Feedback

You can submit comments elec troni call y on Cisc o.com . On the Cisco D ocume nta tio n home pag e, click Feedback at the top of the page.
You can e-mail your comm ents to bug-doc @cisco. com. You can submit your commen ts by mail by using the re sponse card behin d the front cover of your
document or by wri ting t o the fo llowing a ddress: Cisco Systems
Attn: Customer Docume nt Ordering 170 West Tasman Drive San Jose, CA 95134- 988 3
We apprecia te your co mm ents .
Preface
Obtaining Technical Assistanc e
Cisco provides Cisco.com, which includes the Cisco Technical Assistance Center (TAC) Website, as a starting point for all technical assistance. Customers and partners can obtain online documentation, troubleshooting tips, and sample configurations from the Cisco T AC website. Cisco.com registered users have complete access to the technical support resources on the Cisco TAC website, including TAC tools and utilities.

Cisco.com

Cisco.com offers a suite of in tera ct ive, networked servi ces th at let y ou ac cess Cisc o in for matio n, networking solutions, services, pr ogram s, and re sources at any time, from anywhe re in the world.
Cisco.com provides a br oad r ange of fea tur es an d s er vice s to h elp you wi th th ese ta sks:
Streamline business processes and improve productivity
Resolve technical issues with online support
Download and te st so ft war e pa ck ag es
Order Cisco learning m ateri als and me rcha ndise
Register for online skill assessment, training, and certification programs
To obtain customized information and service, you can self-register on Cisco.com at this URL:
http://www.cisco.com
xxviii
Catalyst 6500 Series Switch Command Reference—Release7.6
78-15328-01
Preface

Technical Assistance Center

The Cisco TAC is available to all customers who need technical assistance with a Cisco product, technology, or solution. Two levels of support are available: the Cisco TAC website and the Cisco TAC Escalation Center. The avenue of support that you choose depends on the priority of the problem and the conditions stated in service contracts, when applicable.
We categorize Ci sco TAC inquiries according to urgency:
Priority level 4 (P4)—You need information or assistance conc erni n g Cisc o pr odu ct c apa bil ities,
product installation, or basi c product configuration.
Priority level 3 (P3)—Your network performance is degraded. Ne twork functio nality i s noticeab ly
impaired, but most business operations continue.
Priority level 2 (P2)—Your production network i s severely degraded, affecting signi ficant aspect s
of business operations. No workar oun d is available.
Priority level 1 (P1)—Y our production network is down, and a critical impact to business operations
will occur if se rv ice is n ot r esto re d qui ck ly. No workaround i s available.

Cisco TAC Website

Obtaining Technical Assistance
You can use the Cisco T AC website to resolve P3 and P4 issues yourself, saving both cost and time. The site provides around-t he-c lock acc ess t o on lin e tools, kn owledge ba ses, an d so ftware . To access the Cisco TAC website, go to this URL:
http://www.cisco.com/tac
All customers, partners, and resellers who have a valid Cisco service contract have complete access to the technical support resources on the Cisco TAC website. Some services on the Cisco TAC website require a Cisco.co m login ID and password. If you have a valid service contract but do not have a login ID or password, go t o th is URL to register :
http://tools.cisco.com/RPF/register/register.do
If you are a Cisco.com registere d user, and you cannot resol ve your tech ni cal issues by using the Cisco TAC website, you can open a case online at this URL:
http://www.cisco.com/en/US/support/index.html
If you have Internet access, we recommend that you open P3 and P4 cases th rough the Cisco TAC website so that y ou ca n desc ribe the s ituati on in your own wor ds an d a ttac h any nece ssar y files.

Cisco TAC Escalation Center

The Cisco TAC Escalation Center addresses priority level 1 or priority level 2 issues. These classifications are assigned when severe network degradation significantly impacts business operations. When you contact the TAC Escalation Center with a P1 or P2 problem, a Cisco TAC engineer automatically opens a case.
78-15328-01
To obtain a d ire ctor y o f t oll- fr ee C isco TAC telephone numbers for yo ur count r y, go to this UR L:
http://www.cisco.com/warp/public/687/Directory/DirTAC.shtml
Before calling, please check with your network operations center to determine the level of Cisco support services to which your company is entitled: for example, SMARTnet, SMARTnet Onsite, or Network Supported Account s (NSA ). W he n you c all t he ce nte r, please have available your serv ice agre eme nt number and your product seri al number.
Catalyst 6500 Series Switch Command Reference—Release 7.6
xxix

Obtaining Additiona l Publications and Informatio n

Obtaining Additional Publications and Information
Information about Cisco products, technologies, and network solutions is available from various online and printed sources.
The Cisco Product Catalog describes the networking products offered by Cisco Systems as well as
ordering and custome r support ser vices. Access the Cisco Product Catalog at this URL:
http://www.cisco.com/en/US/products/products_catalog_links_launch.html
Cisco Press publishes a wid e ran ge of n etworki ng pub l icatio ns. Cisco suggest s the se t itle s for new
and experienced users: Internetworking Terms and Acronyms Dictionary, Internetworking Technology Handbook, I ntern etwo rkin g Troubleshooting Guide, and the Inter netw ork ing D esi gn Guide. For current Cisco Press titles and other information, go to Cisco Press online at this URL:
http://www.ciscopress.com
Packet magazine is the Cisco monthly periodical that provides industry professionals with the latest
information about t he field of net working. You can access Packet magazine at this URL:
http://www.cisco.com/en/US/about/ac123/ac114/about_cisco_packet_magazine.html
iQ Magazine is the Cisco monthly periodical that provides business leaders and decisi on makers
with the latest information about the networkin g industry. You can access iQ Magazin e at this URL:
http://business.cisco.com/prod/tree.taf%3fasset_id=44699&public_view=true&kbns=1.html
Preface
Internet Protocol Journal is a quarterly journal published by Cisco Systems for engin eering
professionals involved in the design, development, and operation of public and private internets and intranets. You can access the Internet Protocol Journal at this URL:
http://www.cisco.com/en/US/about/ac123/ac147/about_cisco_the_internet_protocol_journal.html
Training—Cisco offers world-class networking traini ng, with current offerings in network traini ng
listed at this URL:
http://www.cisco.com/en/US/learning/le31/learning_recommended_training_list.html
xxx
Catalyst 6500 Series Switch Command Reference—Release7.6
78-15328-01

Switch CLI

CHAPTER
1

Command-Line Interfaces

This chapter describes the command-line interfaces (CLI) available on the Catalyst 6500 series switches and contains the se sect ion s:
Switch CLI, page 1-1
ROM Monitor CLI, page 1-13
For information regarding the A TM CLI and commands, refer to the ATM Software Configuration Guide and Command Reference—Catalyst 5000 Family and 6000 Family Switches publication.
For information regar ding th e ID SM C LI a nd c omm an ds, r ef er t o t he Catalyst 6500 Series Switch Intrusion Detection System Module Installation and Configuration Note publication.
For definitions of terms and acronyms listed in this publication, see Appendix A, “Acronyms.”
Catalyst 6500 series switches are multimodule systems. Commands you enter from the CLI can apply to the entire system or to a specific module, port, or VLAN.
Y ou can configure and maintain the Catalyst 6500 series switches by entering commands from the switch CLI. The CLI is a basic command-line interpreter similar to the UNIX C shell. Using the CLI session command, you can access th e router configuratio n software and perform tasks suc h as histor y substitution and alias creation.
Note The Catalyst 6500 series consists of the Catalyst 6500 and 6000 series switches. The Catalyst 6500 series
consists of the Catalyst 600 6, 6009, 6506, 6509, 650 9-NEB, an d 6513 swit ches. Throug hout thi s publication and all Catalyst 6500 series switch docum ents , the phrase Catalyst 65 00 series switches refers to these s wit che s, unl ess o th erw ise note d.

Accessing the Switch CLI

You can access the switch CLI from a console terminal co nnected to an EIA /TIA-232 port or th rough a Telnet session. The CLI allows fixed baud rates. Telnet sessions disconnect automatically after remaining idle for a user-defined time period.
78-15328-01
Catalyst 6500 Series Switch Command Reference—Release 7.6
1-1
Switch CLI
Note EIA/TIA-232 was known as RS-232 before its acceptanc e as a standard by the Electron ic Industri es
Alliance and Telecommunications Industry Association.

Accessing the Switch CLI Through the Console Port (EIA/TIA-232)

To access the switch through the console (EIA/TIA-232) port, perform these steps:
Task Command
Step 1
Step 2
Step 3
Step 4
From the Cisco Systems Con sole prompt, press Return.
At the prompt, enter the system password. The
Console> promp t
<password>
appears, indicati ng that you have accessed the CLI in normal mode.
Enter the necessary commands to
Appropriate commands
complete your desired tasks. When finished, exit the session. quit
Chapter1 Command-Line Interfaces
After connecting thr ough t he con sol e po rt, yo u see thi s displa y:
Cisco Systems Console Enter password: Console> Console>

Accessing the Switch CLI Through Telnet

To access the switch through a Telnet session, you must first set the IP address for the switch. You can open multiple sessions to the switch through Telnet.
To access the switch from a remote host with Telnet, perform these steps:
Task Command
Step 1
Step 2
Step 3
Step 4
From the remote host, enter the telnet command and the nam e or
IP address of the sw itch yo u want to access.
At the prompt, enter the password for the CLI. If no pa ssword h as been configured, press Return .
Enter the necessary commands to complete your desired tasks.
When finished, exit the Telnet session.
telnet hostname | ip_addr
<password>
Appropriate commands
quit
1-2
Catalyst 6500 Series Switch Command Reference—Release7.6
78-15328-01
Chapter 1 Command-L ine Interfaces
After connecting thr ough a Telnet session, you see t his displa y:
host% telnet cat6000-1.cisco.com Trying 172.16.44.30 ... Connected to cat6000-1.

Operating the Switch CLI

This section describes co mmand mode s and funct ions that allow you to opera te the switch CLI.

Accessing the Command Modes

The CLI has two modes of operation : normal and privileged. Both are password -prote cted. Use normal-mode com mand s fo r everyday syst em moni tor ing. U se pr ivileged co mm an ds for syst em configuration and basic trou bleshoot ing.
After you log in, the system enter s normal mode, wh ich gives you access to normal- mode comm ands only. You can en ter p rivileged mode by entering the enable comm and fo llo we d b y the ena ble pass wo rd. Privileged m ode is indicated b y the word “enab le” in the system prompt. To return to normal mode, enter the disable command at the prompt.
Switch CLI
The following exam pl e s h ows how to en te r pr ivileged m od e:
Console> enable Enter password: <password> Console> (enable)

Using Command-Line Processing

Switch commands are not case sensitive. You can abbreviate commands and parameters as long as they contain enough l et ters to be differe nt fr om any ot her cu rre ntly available com ma nd s or pa rame ter s. You can scroll through the las t 20 comm ands store d in the hist ory buffer and enter or ed it the comm and at the prompt. (See Table 1-1.)
Table 1-1 Command-Line Processing Keystroke
Keystroke Function
Ctrl-A Jumps to the first ch arac te r of the c omman d lin e. Ctrl-B or the left arrow key Moves the cursor back one character. Ctrl-C Escapes and terminates prompts and tasks. Ctrl-D Deletes the character at the cursor. Ctrl-E Jumps to the e nd o f t h e cu rre nt co mm an d l ine . Ctrl-F or the rig ht arr ow key Ctrl-K Deletes from the cursor to the end of the command line. Ctrl-L; Ctrl-R Repeats cu rrent comm and line on a new line. Ctrl-N or th e down arrow key Ctrl-P or the up a rrow key Ctrl-U; Ctrl-X Deletes from the cursor to the beginning of the command line. Ctrl-W Deletes last word typed.
1
Moves the cursor forward one character.
1
Enters next command l ine in the hist ory buffer.
1
Enters previous command line in the history buffer.
78-15328-01
Catalyst 6500 Series Switch Command Reference—Release 7.6
1-3
Switch CLI
Table 1-1 Command-Line Processing Keystroke (continued)
Keystroke Function
Esc B Moves the cursor back one word. Esc D Deletes from the cursor to the end of the word. Esc F Moves the cursor forward one word. Delete key or Backspace key Erases a mistake when entering a command; reenter the
1. The arrow keys function only on ANSI-compatible terminals such as VT100s.

Using the Command-Line Editing Features

Catalyst 6500 serie s switch s o ftware inc ludes an e nhanc ed e dit ing mo de th at p rovides a se t of edi ting key func tio ns similar to those of t he Em ac s ed ito r. You can enter commands in u pper ca s e, lowercase, or a mix of both. Onl y password s a re case se nsitive. You can abbreviate commands and keywords to the number of characters th at allow a unique a bbreviation.
For example, you can abbreviate th e show command to sh. After enter in g t h e co mm an d at th e s yst em prompt, press Return to execute the command.
Chapter1 Command-Line Interfaces
command after using this key.
Moving Around on the Command Line
Perform one of these task s to move the cursor ar ound on the co mmand line for c orrect ions or cha nges:
Task Keystrokes
Move the cursor back one character. Press Ctrl-B or press the left arrow key Move the curso r forward on e character . Press Ctrl-F or press the right arrow key1. Move the cursor to the beginning of the
command line. Move the cursor to the end of the
command line. Move the cursor bac k one wo rd. Press Esc B. Move the cursor forward one word. Press Esc F.
1. The arrow keys function only on ANSI-compatible terminals such as VT100s.
Completing a Partial Command Name
If you cannot remember a complete com mand name, press th e Tab key to allow the system to complete a partial entry. To do so, perform this task:
Press Ctrl-A.
Press Ctrl-E.
1
.
1-4
Task Keystrokes
Complete a command name. Enter the first few letters and press the
Tab ke y.
If your keyboard does n ot h ave a Tab key, press Ctrl-I instea d.
Catalyst 6500 Series Switch Command Reference—Release7.6
78-15328-01
Chapter 1 Command-L ine Interfaces
In the following ex ample, whe n you enter the letters conf and press the Tab key, t he system pro vides the complete comman d:
Console> (enable) conf<Tab>
Console> (enable) configure
If you enter a set of ch aract ers tha t could ind icate mo re than one com mand, th e sys tem be eps to in dica te an error . Enter a question mark (?) to obtai n a list of commands that begi n with that set of character s. Do not leave a space between the last letter and the question mark (?). For example, three commands in privileged mode start with co. To see what they are, enter co? at the privileged pro mpt. The sys tem displays all commands that begin with co, as follows:
Console> (enable) co? configure connect copy
Pasting in Buffer Entries
The system provides a buffer that contains th e la st ten items you deleted. You can recall these items and paste them in the command line by performing this task:
Switch CLI
Task Keystrokes
Recall the most recent entry in the buffer.
Recall the next buffer entry. Press Esc Y.
The buffer contains only the last ten items you have deleted or cut. If you press Esc Y more than ten times, you cycle back to the first buffer entry.
Editing Command Lines That Wrap
The new editing comma nd set pro vides a wr aparoun d featur e for comman ds that exten d be yond a single line on the screen. When the cursor reaches the right margin, the command line shifts ten spaces to the left. You cannot see the first ten chara cter s of the line, but you can scroll back a nd chec k the syntax at the beginning of the co mman d. To scroll back, per for m this ta sk:
Task Keystrokes
Return to the beginning of a command line to verify that you have entered a lengthy comm a nd correctly.
1. The arrow keys function only on ANSI-compatible terminals such as VT100s.
Press Ctrl-Y.
Press Ctrl-B or the left arrow key repeatedly until you scroll back to the beginning of the comm and entry, or press Ctrl-A to return directly to the beginning of the line
1
.
78-15328-01
Use line wrapping wit h the comm and hi story fea ture to rec all and modi fy previous comp lex comman d entries. See the “Using History Substitution” section on page 1 -8 fo r informa tion ab out reca lling previous command entries.
The system assumes your terminal screen is 80 columns wide. If your screen has a different width, enter the terminal width command to tell the router the correct width of your screen.
Catalyst 6500 Series Switch Command Reference—Release 7.6
1-5
Switch CLI
Deleting Entries
Perform one of these task s to delete com mand entri es if you make a mista ke or change your mind:
Task Keystrokes
Erase the character to the left of the cursor. Press the Delete or Backspace key. Delete the character at the cursor. Press Ctrl-D. Delete from the cursor to the end of the
command line. Delete from the cursor to the beginning of the
command line. Delete the word to the left of the cursor. Press Ctrl-W. Delete from the cursor to the end of the wo rd. Press Esc D.
Scrolling Down a Line or a Screen
When you use the help facilit y to l ist the comm ands in a p articula r mode, the list is often longe r than th e terminal screen can disp lay. In such cases, a ---More--- prompt is displaye d at th e botto m of the scr een . To view the next line or screen, perform these tasks:
Chapter1 Command-Line Interfaces
Press Ctrl-K.
Press Ctrl-U or Ctrl-X.
Task Keystrokes
Scroll down one line. Press the Return key. Scroll down one screen . Press the Spacebar.
Note The ---More-- - p rompt is us ed for a ny output tha t ha s m or e line s t han ca n b e di spla yed on the ter mina l
screen, includ ing show com mand ou tput .
Scrolling to Specified Text
If you enter /text and press the Return key at the --More-- prompt, the display starts two lines above the line containing the text string. If the text strin g is no t fo und , “Patt ern N ot Found” is di spla yed. You can also enter “ n” at the --More-- prompt to search for the last entered text string. You can use this search method on all show commands that use the more bu f fer to disp lay scre en b y screen o uput. Th e follo wing is a list of show commands that do not use the more buffer and do not support this feature:
show cam
show mls
show tech-support
1-6
Catalyst 6500 Series Switch Command Reference—Release7.6
78-15328-01
Chapter 1 Command-L ine Interfaces
Redisplaying the Current Command Line
If you enter a command an d the system sudd enly sends a message to your sc reen , you can recal l your current comm and lin e en try. To do so, perform this t ask:
Task Keystrokes
Redisplay the current command line. Press Ctrl-L or Ctrl-R.
Transposing Mistyped Characters
If you mistype a co mma nd e ntry, you can tra nspo se the m isty ped c hara ct er s by perf orm ing thi s ta sk:
Task Keystrokes
Transpose the character to the left of the cursor with the character located at the cursor.
Switch CLI
Press Ctrl-T.
Controlling Capitalization
You can change words to uppercas e or lowercase , or capita lize a set of let ters, w ith simpl e keystroke sequences:
Task Keystrokes
Capitalize at the cursor. Press Esc C. Change the word at the cursor to lowercase. Press Esc L. Capitalize letters from the cursor to the end
of the word.
Designating a Keystroke as a Command Entry
Yo u can use a particular keystroke as an executable command. Perform this task:
Task Keystrokes
Insert a code to indicat e to the system t hat the keystroke immediately f ollowing s hould be treated as a command entry, not an editing key.
Press Esc U.
Press Ctrl-V or Esc Q.
78-15328-01
Catalyst 6500 Series Switch Command Reference—Release 7.6
1-7
Switch CLI

Using Command Aliases

Like regular commands, aliases are not case sensitive. Howev er , unlike regular commands, some aliases cannot be abbreviated. See Table 1-2 for a list of switch CLI aliases that cannot be abbreviated.
Table 1-2 Switch CLI Command Aliases
Alias Command
batch configure di show earl cam exit quit logout quit

Using History Substitution

Commands that you enter du ring each term inal session are stor ed in a histor y buffer, which stores the last 20 commands you entered during a terminal session. History substitution allows you to access these commands witho ut ret ypi ng them by u sin g specia l a bbr eviated c om mands. ( See Table 1-3.)
Chapter1 Command-Line Interfaces
Table 1-3 History Substitution Commands
Command Function
To repeat recent commands:
!! Repeat the most rece nt comm and. !-nn Repeat the nnth most recent command. !n Repeat command n. !aaa Repea t the comma nd beginnin g with stri ng aaa. !?aaa Repeat the command containing the string aaa.
To modify and repeat the most recent command:
^aaa^bbb Replace string a aa wit h string bb b i n t he most rece nt
command.
To add a string to the end of a previous command and repeat it:
!!aaa Add string aaa to the end of the most recent command. !n aaa Add string aaa to the end of command n. !aaa bbb Ad d string bbb to th e end of the com mand beginni ng with
string aaa.
!?aaa bbb Add string bbb to the end of the com mand cont aining st ring
aaa.
1-8
Catalyst 6500 Series Switch Command Reference—Release7.6
78-15328-01
Chapter 1 Command-L ine Interfaces

Accessing Command Help

To see a list of top-level commands and command categories, type help in normal or privileged mode. Context-sensitive help (usage and sy ntax inf orm atio n) for i nd ividual com mands c an be s een by appending help to any specif ic comm and. If you ente r a command usin g the wrong numb er of argu ments or inappropriate arguments, usage and syntax i n formation for that command is displayed. Additionally, appending help to a command category displays a list of commands in that category.
Top-Level Commands and Command Categories
In normal mode, use the help command to display a list of top-le vel comman ds and command c ategories, as follows:
Console> help Commands:
---------------------------------------------------------------------­cd Set default flash device dir Show list of files on flash device enable Enable privileged mode help Show this help screen history Show contents of history substitution buffer l2trace Layer2 trace between hosts ping Send echo packets to hosts pwd Show default flash device quit Exit from the Admin session session Tunnel to ATM or Router module set Set commands, use 'set help' for more info show Show commands, use 'show help' for more info traceroute Trace the route to a host verify Verify checksum of file on flash device wait Wait for x seconds whichboot Which file booted Console>
Switch CLI
In privileged mode, enter the help command to display a l ist of t op -level comma nd s a nd comm an d categories, as fo llows:
Console> (enable) help Commands:
---------------------------------------------------------------------­cd Set default flash device clear Clear, use 'clear help' for more info commit Commit ACL to hardware and NVRAM configure Configure system from network copy Copy files between TFTP/RCP/module/flash devices delete Delete a file on flash device dir Show list of files on flash device disable Disable privileged mode disconnect Disconnect user session download Download code to a processor enable Enable privileged mode format Format a flash device help Show this help screen history Show contents of history substitution buffer l2trace Layer2 trace between hosts ping Send echo packets to hosts pwd Show default flash device quit Exit from the Admin session reconfirm Reconfirm VMPS reload Force software reload to linecard reset Reset system or module rollback Rollback changes made to ACL in editbuffer
78-15328-01
Catalyst 6500 Series Switch Command Reference—Release 7.6
1-9
Switch CLI
Command Categories
Chapter1 Command-Line Interfaces
session Tunnel to ATM or Router module set Set commands, use 'set help' for more info show Show commands, use 'show help' for more info slip Attach/detach Serial Line IP interface squeeze Reclaim space used by deleted files switch Switch to standby <clock|supervisor> telnet Telnet to a remote host test Test command, use 'test help' for more info undelete Undelete a file on flash device upload Upload code from a processor verify Verify checksum of file on flash device wait Wait for x seconds whichboot Which file booted write Write system configuration to terminal/network Console> (enable)
On some commands (such as clear, set, and show), typing help after the comman d provid es a lis t of commands in that category. For example, this display shows a partial list of commands for the clear category:
Console> (enable) clear help
Clear commands:
---------------------------------------------------------------------------­clear alias Clear aliases of commands clear arp Clear ARP table entries clear banner Clear Message Of The Day banner clear boot Clear booting environment variable clear cam Clear CAM table entries clear channel Clear PAgP statistical information . . .
Context-Sensitive Help
Usage and synt ax i n forma tio n for i nd ividual c om mands ca n be se en by a pp endi ng help to any specific command. For example, the fol lowing disp lay shows usa ge and syntax i nform atio n for th e set length command:
Console> set length help Usage: set length <screenlength> [default] (screenlength = 5..512, 0 to disable 'more' feature) Console>

Designating Modules, Ports, and VLANs

The Catalyst 650 0 series modul es (modu le s lots ), port s, an d VLANs a re numbe red st art ing wit h 1. The supervisor engine modul e is module 1, re siding in the top slot. On each module , port 1 is the lef tmost port. To reference a specific port on a specific module, the command syntax is mod/port. For example, 3/1 denotes module 3, port 1. In some commands, such as set trunk, set cam, and set vlan, you can enter lists of ports and VLANs.
1-10
Catalyst 6500 Series Switch Command Reference—Release7.6
78-15328-01
Chapter 1 Command-L ine Interfaces
You can designate ports by entering the module and port number pairs, separated by commas. To specify a range of po rts, use a d as h ( -) bet wee n the mo dul e n umb er a nd port n umb er pai rs . Da shes take precedence over co mm as . Th e fol lowing exam ple s sh ow several way s o f designating p orts :
Switch CLI
Example 1: 2/1, 2/3 Example 2: 2/1- 12 Example 3: 2/1- 2/12
denotes module 2, port 1 and mod ule 2, port 3.
denotes modul e 2 , port s 1 thro ugh 12 .
also denotes mod ule 2, ports 1 throu gh 12.
Each VLAN is designated by a single number. You can specify lists of VLANs the same way you do for ports. Individual VL ANs are se para ted by co mm as (, ); ran ge s are s epar ate d by d ashes (- ). In t he following example, VLA Ns 1 t hrough 1 0 a nd VL AN 100 0 are speci fied:
1-10,1000

Designating MAC Addresses, IP and IPX Addresses, and IP Aliases

Some commands require a MAC address that you must designate in a standard format. The MAC address format must be six hexadeci mal nu mb ers se para ted by hyp hen s, as shown in thi s exampl e:
00-00-0c-24-d2-fe
Some commands require an IP address. Th e IP a ddress forma t is 32 bits, written a s four octets sepa rated by periods (dotted de ci mal fo rmat ). I P a dd resses a re m ade up of a ne twor k sec tion, a n o ptiona l su bne t section, and a host section, as shown in this example:
126.2.54.1
If DNS is configured pr operl y on t he sw it ch, you can us e IP host na me s inste ad o f I P a dd resses . For information on conf iguring DNS, refer to the Catalyst 6500 Series Switch Software Configuration Guide.
If the IP alias table is configured, you can use IP aliases in place of the dotted decimal IP address. This is true for most commands that use an IP address, except commands that define the IP address or IP alias.
When entering th e IPX addres s synta x, use th e following format :
IPX net address—1..FFFFFFFE
IPX node address—x.x.x where x is 0..FFFF
IPX address—ipx_net.ipx_ node (f or example 3.003 4.1245 .AB45 , A43.000 0.0000 .0001)

Using Command Completion Features

The command com ple tion f eatur es cons ist of th ese functi ons:
Using Command Self-Repeat
Using Keyword Lookup
Using Partial Keyword Lookup
Using Command Completion
78-15328-01
Catalyst 6500 Series Switch Command Reference—Release 7.6
1-11
Switch CLI
Using Command Self-Repeat
Use the command self-r epeat function to display mat ches to all possible keywords if a string represents a unique match. If a unique match is not found, the longest matching string is provided. To display the matches, enter a space after the last parameter and enter ?. Once the matches a re di spla yed, the system comes back to the prompt and displays the last command without the ?. In the following example, notice how the system repeats the command en tered w ithout the ?:
Console> (enable) set mls nde disable Disable multilayer switching data export filter enable Enable multilayer switching data export filter engineer Engineer setting of the export filter flow Setting multilayer switching export filter <collector_ip> IP address Console> (enable) set mls nde
Using Keyword Lookup
Use the keyword-lookup funct ion to disp lay a lis t of valid keywords an d argument s fo r a com ma nd. To display the matches, enter a space after the last parameter and enter ?. For example, five parameters are used by the set mls command. To see these parameters, enter set mls ? at the privileged prompt. In the following example, notice how the system re peats t he comma nd entere d without the ?:
Console> (enable) set mls ? agingtime Set agingtime for MLS cache entry exclude Set MLS excluded protocol ports flow Set minimum flow mask nde Configure Netflow Data Export statistics Add protocols to protocol statistics list Console> (enable)
Chapter1 Command-Line Interfaces
set mls
Using Partial Keyword Lookup
Use the partial keyword-look up f unct ion to di spla y a l ist of c omm an ds tha t begin wit h a sp ec ific set of characters. To display the matches, en ter ? immediatel y after th e last p aram eter. For example, enter co? at the privileged prompt to display a list of commands that start with co. The system displays all commands that begin wit h co and repe ats the comm and en tered w ithout th e ?:
Console> (enable) co? commit Commit ACL to hardware and NVRAM configure Configure system from network copy Copy files between TFTP/RCP/module/flash devices Console> (enable)
Using Command Completion
Use the command comple tion fun ction to complet e a comma nd or keyword. When you ente r a uniq ue partial character string and press Tab, the syste m completes the command or keyword on the command line. For example, if you enter co at the privileged prompt and press Tab, the system completes the command as configure because it is the only command that matches the criteria.
If no completion ca n be done, no a ction i s carr ied o ut an d the syst em re tu rns to the p rom pt and t he last command. The c urso r ap pear s imm ed iat el y a fte r t he keyword, al lowing y ou to e nt er ad dit iona l information.
co
1-12
Catalyst 6500 Series Switch Command Reference—Release7.6
78-15328-01
Chapter 1 Command-L ine Interfaces

ROM Monitor CLI

The ROM monitor is a ROM-based program that executes upon platf orm start up, reset , or when a fatal exception occurs.

Accessing the ROM Monitor CLI

The system enters R OM-m onitor mod e if the switch doe s not find a valid system image, if the NVRAM configuration is corrupted, or if the configuration register is set to enter ROM-monitor mode. From the ROM-mo nitor mod e, you ca n load a s yst em image ma nua lly from Flash memory, from a network server file, or from bootflash. You can also enter R OM-monitor mode by restarting the switch and pressing the Break key during the first 60 seconds of startup.
Note Break is always enabled for 60 seconds af ter rebooti ng the system , regardless of wheth er Break is
configured to be off by configuration register settin gs.
To connect through a terminal server, escape to the Telnet prompt, and enter the send break command to break back to the ROM-monitor mode.
ROM Monitor CLI

Operating the ROM Monitor CLI

The ROM monitor commands are used to load and copy system images, micr ocode im ages, and configuration files. System images contain the system software. Microcode images contain microcode to be downloaded to various hardware devices. Configurati on files contain c omman ds to customi ze Catalyst 6500 series software.
The manual boot comm and has the following syntax:
Note Enter the copy file-id {tftp | flash | file-id} co mma nd to obt ai n an i ma ge f ro m t h e ne twork .
bootBoot from ROM
boot [-xv] [device:][imagename]Boot from the local device. If you do not specify an image name,
the system defaults to the first valid file in the device. The image name is case sensitive.
Once you are in ROM-monitor mode, the prompt changes to rommon 1>. While you are in ROM-monitor mode, each time you enter a command, the number in the prompt increments by one.
78-15328-01
Catalyst 6500 Series Switch Command Reference—Release 7.6
1-13
ROM Monitor CLI
Chapter1 Command-Line Interfaces
1-14
Catalyst 6500 Series Switch Command Reference—Release7.6
78-15328-01
CHAPTER
2
Catalyst 6500 Series Switch and ROM Monitor Commands
This chapter contain s an alpha betica l listin g of all switc h and ROM monitor command s available on the Catalyst 6500 series switches.
For information regar di ng ATM module-related com ma nds, r ef er t o the ATM Software Configuration Guide and Command Refe rence for the Cat aly st 50 00 Family and 6000 Family Switches.
For information regarding ID S modul e-rel ated co mmand s, refer t o the Cataly st 6500 Series Switch Intrusion Detection Syste m Module Insta llation and Con figuration Note.
Except where spec ifically differen tiated , the La yer 3 switc hing engi ne refe rs to one of the following:
Supervisor Engine 1 wi th L aye r 3 Sw itch ing Eng ine WS- F6K-PFC (Poli cy Featu re Ca rd)
Supervisor Engine 2 w ith L a yer 3 Sw itch ing Eng ine II (PFC2)
78-15328-01
Catalyst 6500 Series Switch Command Reference—Release 7.6
2-1
alias
alias
Chapter 2 Catalyst 6500 Series Switch and ROM Monitor Commands
To set and display command aliases, use the alias command.
alias [name=value]
Syntax Descri ption
name= (Optional) Name you give to the alias. value (Optional) Value of the alias.
Defaults This command has no default settings.
Command Types ROM monitor command.
Command Modes Normal.
Usage Guidelines If value contains white space or other special (shell) characters, you must use quotation marks. If value
has a space as its la st char act er, the next com mand line w or d is check ed fo r an ali as. ( Nor mally, only the first word on a command line is che cked.)
Without an argument, this command prints a list of all aliased names with their values. An equal sign (=) is requir ed betw een the name and value of the alias. You must issue a sync command to save your ch ange . If you do no t issue a sy nc comma nd, th e chan ge
is not saved, and a re set rem oves your c hange .
Examples This example shows how to display a list of available alias commands and how to create an alias for the
set command:
rommon 1 > alias r=repeat h=history ?=help b=boot ls=dir i=reset k=stack rommon 2 > alias s=set rommon 3 > alias r=repeat h=history ?=help b=boot ls=dir i=reset
Catalyst 6500 Series Switch Command Reference—Release7.6
2-2
78-15328-01
Chapter 2 Catalyst 65 00 Series Switch and ROM Monit or Commands
k=stack s=set rommon 4 > s PS1=rommon ! > BOOT=bootflash:RTSYNC_llue_11,1;slot0:f1,1; =========================================================================
Related Comma nds unalias
alias
78-15328-01
Catalyst 6500 Series Switch Command Reference—Release 7.6
2-3
boot
boot
Chapter 2 Catalyst 6500 Series Switch and ROM Monitor Commands
To boot up an ext erna l pr oc es s, use t he boot co mman d.
boot [-x] [-v] [device:][imagename]
Syntax Descri ption
-x (Optional) Load the image but do not execute.
-v (Optional) Toggle verbose mode.
device: (Optional) ID of the device. imagename (Optional) Name of the image.
Defaults This command has no default settings.
Command Types ROM monitor command.
Command Modes Normal.
Usage Guidelines If you do not ente r any arguments, the boot co mmand boots the first image in bootfla sh. To specify an
image, enter the image name. To specify the device, enter the device ID. If a device is not entered with an image name, the image is not booted. If a device name is not recognized by the monitor, the monitor passes the device ID to the boot helper
image. This command will not boot the MSFC if the PFC is not present in the Catalyst 6500 series switch.
Examples This example shows how to use the bo ot comm and:
rommon 2 > boot bootflash:cat6000-sup.6-1-1.bin CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC Uncompressing file: ########################################################################################## ########################################################################################## ################################################################################
Catalyst 6500 Series Switch Command Reference—Release7.6
2-4
78-15328-01
Chapter 2 Catalyst 6500 Series Switch and ROM Monitor Commands
22
cd
To set the default Fla sh device for the sy stem , use t he cd co mmand .
cd [[m/]device:]
cd
Syntax Description
m/ (O pti onal ) Modu le num ber of the supe rv isor en gi ne con taini ng the
Flash device.
device: (Optional) Valid devices include bootflash and slot0.
Defaults The default Flash device is bootflash.
Command Types Switch comm and.
Command Modes Normal.
Usage Guidelines A colon (:) is re quire d aft er t he s pe cified device.
With comm ands where th e de vice is an optio n, if the def ault de vice is not specif ied, the d evi ce set by the cd command is used.
Examples This example shows how to set the system default Flash device to bootflash:
Console> cd bootflash: Default flash device set to bootflash. Console>
Related Comma nds pwd
78-15328-01
Catalyst 6500 Series Switch Command Reference—Release 7.6
2-5
clear acllog
clear acllog
To disable ACL log rate limiting, use the clear ac llog command.
clear acllog
Syntax Descri ption This command ha s no argume nts o r keywords .
Defaults This command has no default settings.
Command Types Switch comm and.
Command Modes Privileged.
Chapter 2 Catalyst 6500 Series Switch and ROM Monitor Commands
Examples This example shows how to disable ACL log rate limiting:
Console> (enable) clear acllog ACL log rate limit is cleared. If the ACLs-LOG were already applied, the rate limit mechanism will be disabled on system restart, or after shut/no shut the interface. Console> (enable)
Related Comma nds set acllog ratelimit
show acllog
2-6
Catalyst 6500 Series Switch Command Reference—Release7.6
78-15328-01
Chapter 2 Catalyst 65 00 Series Switch and ROM Monit or Commands
clear alias
To clear the abbreviated versions of commands, use the clear alias command.
clear alias {name | all}
clear alias
Syntax Description
name Alternate identifier of the command.
all Clears every alternate identifier previously created.
Defaults This command has no default settings.
Command Types Switch comm and.
Command Modes Privileged.
Examples This example sh ows how to er as e t h e ar pdel a li as:
Console> (enable) clear alias arpdel Command alias deleted. Console> (enable)
This example shows how to erase all the aliases:
Console> (enable) clear alias all Command alias table cleared. (1) Console> (enable)
(1) indicates the number of command aliases cleared.
Related Comma nds set alias
show alias
78-15328-01
Catalyst 6500 Series Switch Command Reference—Release 7.6
2-7
clear arp
clear arp
Chapter 2 Catalyst 6500 Series Switch and ROM Monitor Commands
To delete a specific entry or all entries from the ARP table, use the clear arp command.
clear arp [all | dynamic | permanen t | static] { ip_ addr }
Syntax Descri ption
all (Optional) Clears all ARP entries. dynamic (Optional) Clears all dynamic ARP entries. permanent (Optional) Clears all permanent ARP entries. static (Optional) Clears all static ARP entries.
ip_addr IP address to clear from the ARP table.
Defaults This command has no default settings.
Command Types Switch comm and.
Command Modes Privileged.
Examples This example shows how to remove IP a ddres s 19 8. 133.21 9.2 09 fr om t he A RP table :
Console> (enable) clear arp 198.133.219.209 ARP entry deleted. Console> (enable)
This example shows how to remove all entries from the ARP table:
Console> (enable) clear arp all ARP table cleared. (1) Console> (enable)
(1) indicates the number of entries cleared. This example shows how to remove all dynamically learned ARP entries:
Console> (enable) clear arp dynamic Unknown host Dynamic ARP entries cleared. (3) Console> (enable)
This example shows how to clear all permanently entered ARP entries:
Console> (enable) clear arp permanent Unknown host Permanent ARP entries cleared.(5) Console> (enable)
Related Comma nds set arp
show arp
Catalyst 6500 Series Switch Command Reference—Release7.6
2-8
78-15328-01
Chapter 2 Catalyst 65 00 Series Switch and ROM Monit or Commands
clear banner motd
To clear the me ssag e-of- t he-da y banne r, use th e clear banner motd command.
clear banner motd
Syntax Description Th is comm a nd ha s n o argume nts or keyword s.
Defaults This command has no default settings.
Command Types Switch comm and.
Command Modes Privileged.
clear banner motd
Examples This example shows how to cle ar t he m e ssage- of- the -day ba nner:
Console> (enable) clear banner motd MOTD banner cleared Console> (enable)
Related Comma nds set banner motd
78-15328-01
Catalyst 6500 Series Switch Command Reference—Release 7.6
2-9
clear boot auto-config
clear boot auto-config
T o clear the cont ent s of the CONFIG_ FILE envir onm ent vari ab le used to speci fy th e conf igura tion f iles used during bootup, use the clear boot auto-config command.
clear boot auto-config [mod]
Chapter 2 Catalyst 6500 Series Switch and ROM Monitor Commands
Syntax Descri ption
mod (Optional) Mo dule n umb er of t he supe rvis or en gine con tai ning the Fla sh device.
Defaults This command has no default settings.
Command Types Switch comm and.
Command Modes Privileged.
Examples This example shows how to clear the auto-config file:
Console> (enable) clear boot auto-config CONFIG_FILE variable = Console> (enable)
Related Comma nds set boot auto-config
show boot
2-10
Catalyst 6500 Series Switch Command Reference—Release7.6
78-15328-01
Chapter 2 Catalyst 65 00 Series Switch and ROM Monit or Commands
clear boot device
To clear the contents of the CONFIG_FILE environment variable used to specify the NAM startup configuration files use d, use the clear boot device command.
clear boot device mod
clear boot device
Syntax Description
mod Number of the module cont aining the Flash device.
Defaults This command has no default settings.
Command Types Switch comm and.
Command Modes Privileged.
Usage Guidelines This comm a nd is sup por ted by the NAM module on ly.
Examples This example shows how to cle ar th e N AM b oot string fr om NVR AM for modu le 2:
Console> (enable) clear boot device 2 Device BOOT variable = Console> (enable)
Related Comma nds set boot device
show boot device
78-15328-01
Catalyst 6500 Series Switch Command Reference—Release 7.6
2-11
clear boot system
clear boot system
To clear the con tent s of the B OOT e nvir onm en t va ria ble and t he c onf igur atio n re gist er sett ing, u se the clear boot system command.
clear boot system all [mod] clear boot system flash device:[filename] [mod]
Chapter 2 Catalyst 6500 Series Switch and ROM Monitor Commands
Syntax Descri ption
all Clears the whole BOOT environment variable.
mod (Optional) Module num ber of the supe rv isor en gine con taini ng the
Flash device.
flash (Optional) Clears the Flash device.
device: Name of the Flash device. filename (Optional) Filename of the Flash device.
Defaults This command has no default settings.
Command Types Switch comm and.
Command Modes Privileged.
Examples This example shows how to cle ar t he w h ole BOO T en viro nme nt vari ab le:
Console> (enable) clear boot system all BOOT variable = Console> (enable)
This example shows how to clear a specific device; note how the specified device is not listed:
Console> (enable) clear boot system flash bootflash:cat6000-sup.5-5-1.bin BOOT variable = bootflash:cat6000-sup.6-1-1.bin,1;bootflash:cat6000-sup.5-5-2. bin,1; Console> (enable)
Related Comma nds set boot system flash
show boot
Catalyst 6500 Series Switch Command Reference—Release7.6
2-12
78-15328-01
Chapter 2 Catalyst 65 00 Series Switch and ROM Monit or Commands
clear cam
To delete a specific entry or all entries from the CAM table, use the clear cam command.
clear cam mac_addr [vlan] clear cam {dynamic | static | permanent} [vlan]
clear cam
Syntax Description
mac_addr One or more MAC addresses. vlan (Optional) Number of the VLAN; valid values are from 1 to 1000 and from
1025 to 4094. dynamic Clears the dynamic CAM entries from the CAM table. static Clears the static CAM entries from the CAM table. permanent Clears the permanent CAM entries from the CAM table.
Defaults This command has no default settings.
Command Types Switch comm and.
Command Modes Privileged.
Examples This example shows how to remove MAC address 00 -40 -0b-a 0- 03-fa f rom t h e CA M tab le:
Console> (enable) clear cam 00-40-0b-a0-03-fa CAM table entry cleared. Console> (enable)
This example shows how to clear dynamic entries from the CAM table:
Console> (enable) clear cam dynamic Dynamic CAM entries cleared. Console> (enable)
Related Comma nds set cam
show cam
78-15328-01
Catalyst 6500 Series Switch Command Reference—Release 7.6
2-13
clear cam notification
clear cam notification
To clear the CAM notification counters and history log, use the clear cam notification command.
clear cam notification {all | counters | history}
Chapter 2 Catalyst 6500 Series Switch and ROM Monitor Commands
Syntax Descri ption
all Clears the CAM notification counters and history log. counters Clears the CAM notification counters. history Clears the CAM notification history log.
Defaults This command has no default settings.
Command Types Switch comm and.
Command Modes Privileged.
Examples This example shows how to cle ar t he C AM not ificat ion co unte rs an d h is tory log:
Console> (enable) clear cam notification all MAC address notification counters and history log cleared. Console> (enable)
This example shows how to cle ar t he C AM not ificatio n count ers:
Console> (enable) clear cam notification counters MAC address notification counters cleared. Console> (enable)
This example shows how to cle ar the C AM noti fication hist ory log :
Console> (enable) clear cam notification history MAC address notification history log cleared. Console> (enable)
Related Comma nds set cam notification
set snmp trap show cam notification
Catalyst 6500 Series Switch Command Reference—Release7.6
2-14
78-15328-01
Chapter 2 Catalyst 65 00 Series Switch and ROM Monit or Commands
clear channel statistics
To clear PAgP statistical information, use the clear channel statistics command.
clear channel statistics
Syntax Description Th is comm a nd ha s n o argume nts or keyword s.
Defaults This command has no default settings.
Command Types Switch comm and.
Command Modes Privileged.
clear channel statistics
Examples This example shows how to clear PAgP statistical information:
Console> (enable) clear channel statistics PAgP statistics cleared. Console> (enable)
Related Comma nds show channel
78-15328-01
Catalyst 6500 Series Switch Command Reference—Release 7.6
2-15
clear config
clear config
Chapter 2 Catalyst 6500 Series Switch and ROM Monitor Commands
To clear the system or module configuration information stored in NVRAM, use the clear config command.
clear config {mod | rmon | all | snmpv 3 | acl nvram | interface}
Syntax Descri ption
mod Number of the mo dule.
rmon Clears all RMON configurations, including the historyControlTable, the alarmTable,
the eventTable, and the ringStation ControlTable.
all Clears all module and system configuration information, including the IP address. snmpv3 Clears all SNMP version 3 configuration s. acl nvram Clears all ACL configurations. interface Clears all interface configurations.
Defaults This command has no default settings.
Command Types Switch comm and.
Command Modes Privileged.
Usage Guidelines When you use a Multilayer Switch Module (MSM), you can enter the clear config command to clear the
portion of the M SM configur ation r eta ined by the C atal yst 6500 series swit ch sup er visor engi n e. You must clear the port ion of the configu ratio n kep t by t he M SM at the rout er level (router> pro mpt) .
Before using the clear co nfig all command, save a backup of the configuration using the cop y command.
Examples This example shows how to dele te the configu rat ion i nfor ma tio n in NV RAM on m odu le 2 :
Console> (enable) clear config 2 This command will clear module 2 configuration. Do you want to continue (y/n) [n]? y
..............................
Module 2 configuration cleared. Console> (enable)
This example shows how to dele te t he c onfigura tio n in forma tio n stored in NV RAM on modu le 1 (the superviso r engine ):
Console> (enable) clear config 1 This command will clear module 1 configuration. Do you want to continue (y/n) [n]? y
......
Module 1 configuration cleared. host%
Catalyst 6500 Series Switch Command Reference—Release7.6
2-16
78-15328-01
Chapter 2 Catalyst 65 00 Series Switch and ROM Monit or Commands
This example shows how to delete all the configuration information for the Catalyst 6500 series switches:
Console> (enable) clear config all This command will clear all configuration in NVRAM. Do you want to continue (y/n) [n]? y
...........................................
Connection closed by foreign host host%
This example shows how to delete all the SNMP configuration information for the Catalyst 6500 series switches:
Console> (enable) clear config snmpv3 This command will clear SNMPv3 configuration in NVRAM. Do you want to continue (y/n) [n]? y
...........................................
Connection closed by foreign host host%
This example shows how to delete all ACL configuration information from NVR AM:
Console> (enable) clear config acl nvram ACL configuration has been deleted from NVRAM. Warning:Use the copy commands to save the ACL configuration to a file and the 'set boot config-register auto-config' commands to configure the auto-config feature. Console> (enable)
clear config
Related Comma nds set config acl nvram
show config qos acl
78-15328-01
Catalyst 6500 Series Switch Command Reference—Release 7.6
2-17
clear config pvlan
clear config pvlan
To clear all private VLAN configurati ons in the syste m inclu ding port mappings, use the c lea r config pvlan command.
clear config pvlan
Syntax Descri ption This command ha s no argume nts o r keywords .
Defaults This command has no default settings.
Command Types Switch comm and.
Chapter 2 Catalyst 6500 Series Switch and ROM Monitor Commands
Command Modes Privileged.
Examples This example shows how to cl ear al l pr ivate VLAN co nfigur ati ons in the syst em:
Console> (enable) clear config pvlan This command will clear all private VLAN configurations. Do you want to continue (y/n) [n]? y VLAN 15 deleted VLAN 16 deleted VLAN 17 deleted VLAN 18 deleted Private VLAN configuration cleared. Console> (enable)
Related Comma nds clear pvlan mapping
clear vlan configure set vlan set pvlan set pvlan mapping show config show pvlan show pvlan mapping show vlan
2-18
Catalyst 6500 Series Switch Command Reference—Release7.6
78-15328-01
Chapter 2 Catalyst 65 00 Series Switch and ROM Monit or Commands
clear cops
To clear Comm on Open Po licy Serv i ce ( COPS) co nfigurati ons, u se t he c lear co ps command.
clear cops roles role1 [role2]... clear cops all-roles clear cops server all [diff-serv | rsv p ] clear cops server ipaddr [ diff-serv | rsvp] clear cops domain-name
clear cop s
Syntax Description
roles ro l e# Specifies the role s to clear. all-roles Clears all roles. server Spec ifies th e CO PS se rver. all Clears all server tables. diff-serv ( Optional) Specifies the differentiated services server table. rsvp (Optional) Specifies the RSVP+ server table.
ipaddr IP address or IP alias of the server.
domain-name Speci fies th e do main nam e of the se rver.
Defaults This command has no default settings.
Command Types Switch comm and.
Command Modes Privileged.
Usage Guidelines You can use the clear cops all-roles command to clear all roles from all ports.
Examples This example shows how to clear specific roles:
Console> (enable) clear cops roles backbone_port main_port Roles cleared. Console> (enable)
This example shows how to clear all roles:
Console> (enable) clear cops all-roles All roles cleared. Console> (enable)
Catalyst 6500 Series Switch Command Reference—Release 7.6
78-15328-01
2-19
clear cops
This example shows how to clear all COPS servers:
Console> (enable) clear cops server all All COPS servers cleared. Console> (enable)
This example shows how to clear a specific COPS server:
Console> (enable) clear cops server my_server1 All COPS servers cleared. Console> (enable)
This example shows how to clear the COPS domain name:
Console> (enable) clear cops domain-name Domain name cleared. Console> (enable)
Related Comma nds set cops
show cops
Chapter 2 Catalyst 6500 Series Switch and ROM Monitor Commands
2-20
Catalyst 6500 Series Switch Command Reference—Release7.6
78-15328-01
Chapter 2 Catalyst 65 00 Series Switch and ROM Monit or Commands
clear counters
To clear MAC counters, Ethe rCh annel MAC counters, por t count ers, a nd th e cha nn el tra ffic percentile , use the clear counters command.
clear counters [all | mod/ports]
clear counters
Syntax Description
all (Optional) Specifies all ports.
mod/ports (Option al) Num be r o f th e mo dul e a nd the p orts on the modul e.
Defaults This command has no default settings.
Command Types Switch comm and.
Command Modes Privileged.
Usage Guidelines If you do not specify a range of ports to be cleared, then all ports on the switch are cleared.
Examples This example shows how to reset MAC and port counters to zero:
Console> (enable) clear counters This command will reset all MAC and port counters reported in CLI and SNMP. Do you want to continue (y/n) [n]? y
MAC and Port counters cleared. Console> (enable)
This example shows how to reset MAC and port counters to zero for a speci fic module and por t:
Console> (enable) clear counters 5/1 This command will reset MAC and port counters reported by the CLI for port(s) 5/1. Do you want to continue (y/n) [n]? y
MAC and Port counters cleared. Console> (enable)
Related Comma nds restore counters
show port counters
78-15328-01
Catalyst 6500 Series Switch Command Reference—Release 7.6
2-21
clear crypto key rsa
clear crypto key rsa
To remove all RSA public-key pairs, use the clear crypto key rsa command.
clear crypto key rsa
Syntax Descri ption This command ha s no keywords or a rgumen ts.
Defaults This command has no default settings.
Command Types Switch comm and.
Command Modes Privileged.
Chapter 2 Catalyst 6500 Series Switch and ROM Monitor Commands
Usage Guidelines The cr ypt o co mmand s a re s uppo rte d o n syst em s th at run the se i mage ty pe s onl y:
supk9 image—for example , cat600 0-supk9 .6-1- 3.bin
supcvk9 image—for example, cat 6000-su pcvk9.6- 1-3.b in
Examples This example shows how to clear RSA key pairs:
Console> (enable) clear crypto key rsa Do you really want to clear RSA keys (y/n) [n]? y RSA keys has been cleared. Console> (enable)
Related Comma nds set crypto key rsa
show crypto key
2-22
Catalyst 6500 Series Switch Command Reference—Release7.6
78-15328-01
Chapter 2 Catalyst 65 00 Series Switch and ROM Monit or Commands
clear dot1x config
To disable dot1x on all ports and return values to the default settings, use the clear dot1x config command.
clear dot1x config
Syntax Description Th is comm a nd ha s n o keywords or a rguments .
Defaults This command has no default settings.
Command Types Switch comm and.
clear dot1x config
Command Modes Privileged.
Examples This example shows how to disab le dot 1x a nd ret ur n values to the d efaul t set tin gs:
Console> (enable) clear dot1x config This command will disable Dot1x and take values back to factory default.
Do you want to continue (y/n) [n]? y Dot1x config cleared. Console> (enable)
Related Comma nds set port dot1x
show dot1x show port dot1x
78-15328-01
Catalyst 6500 Series Switch Command Reference—Release 7.6
2-23
clear dot1x guest-vlan
clear dot1x guest-vlan
To remove any active 802.1x auto ports from the guest VLAN, use the clear dot1x gue st-vl an co mma nd .
clear dot1x guest-vlan
Syntax Descri ption This command ha s no keywords or a rgumen ts.
Defaults This command has no default settings.
Command Types Switch comm and.
Command Modes Privileged.
Chapter 2 Catalyst 6500 Series Switch and ROM Monitor Commands
Examples This example shows how to clear the guest VLAN:
Console> (enable) clear dot1x guest-vlan This command will deactivate all the ports on dot1x guest-vlan Do you wnat to continue (y/n) [n]? y Dot1x guest-vlan cleared Console> (enable)
Related Comma nds set dot1x
set port dot1x show dot1x show port dot1x
2-24
Catalyst 6500 Series Switch Command Reference—Release7.6
78-15328-01
Chapter 2 Catalyst 65 00 Series Switch and ROM Monit or Commands
clear gmrp statistics
To clear all the GMRP statistics information from a specif ied VLAN or all VLA Ns, us e the clear gmrp statistics command.
clear gmrp statistics {vlan | all}
clear gmrp statistics
Syntax Description
vlan Number of the VL AN; va lid va lues are from 1 to 1000 and from 1025 to 4094. all Specifies all VLANs.
Defaults This command has no default settings.
Command Types Switch comm and.
Command Modes Privileged.
Examples This example shows how to clear GMRP statistical information from all VLANs:
Console> (enable) clear gmrp statistics all GMRP statistics cleared. Console> (enable)
This example shows how to clear GMRP statistical information from VLAN 1:
Console> (enable) clear gmrp statistics 1 GMRP statistics cleared from VLAN 1. Console> (enable)
Related Comma nds show gmrp statistics
78-15328-01
Catalyst 6500 Series Switch Command Reference—Release 7.6
2-25
clear gvrp statistics
clear gvrp statistics
To clear all the GVRP statistics information, use the clear gvrp statistics command.
clear gvrp st ati st i cs {mod/port | all}
Chapter 2 Catalyst 6500 Series Switch and ROM Monitor Commands
Syntax Descri ption
mod/port Number of the module and po rt.
all Specifies all ports.
Defaults This command has no default settings.
Command Types Switch comm and.
Command Modes Privileged.
Examples This example shows how to clear all GVRP statistical information:
Console> (enable) clear gvrp statistics all GVRP statistics cleared for all ports. Console> (enable)
This example shows how to clear GVRP statistical information for module 2, port 1:
Console> (enable) clear gvrp statistics 2/1 GVRP statistics cleared on port 2/1. Console> (enable)
Related Comma nds set gvrp
show gvrp configuration
Catalyst 6500 Series Switch Command Reference—Release7.6
2-26
78-15328-01
Chapter 2 Catalyst 65 00 Series Switch and ROM Monit or Commands
clear igmp statistics
To clear IGMP snoo pi ng st atis tica l inf orm atio n, use t he clear igmp sta tistics command.
clear igmp statistics
Syntax Description Th is comm a nd ha s n o argume nts or keyword s.
Defaults This command has no default settings.
Command Types Switch comm and.
Command Modes Privileged.
clear igmp statistics
Examples This example shows how to clear IGMP statistical information:
Console> (enable) clear igmp statistics IGMP statistics cleared. Console> (enable)
Related Comma nds set igmp
show igmp statistics
78-15328-01
Catalyst 6500 Series Switch Command Reference—Release 7.6
2-27
clear ip alias
clear ip alias
To clear IP aliases that were set using the set ip alias command, use the clear ip alias command.
Chapter 2 Catalyst 6500 Series Switch and ROM Monitor Commands
clear ip alias {name | all}
Syntax Descri ption
name IP address alias to delete.
all Specifies that all previously set IP address aliases be deleted.
Defaults This command has no default settings.
Command Types Switch comm and.
Command Modes Privileged.
Examples This example shows how to delete a pr eviously de fined IP alia s nam ed b ab ar:
Console> (enable) clear ip alias babar IP alias deleted. Console> (enable)
Related Comma nds set ip alias
show ip alias
2-28
Catalyst 6500 Series Switch Command Reference—Release7.6
78-15328-01
Chapter 2 Catalyst 65 00 Series Switch and ROM Monit or Commands
clear ip dns domain
To clear the default DNS domain name, use the clear ip dns domain command.
clear ip dns domain
Syntax Description Th is comm a nd ha s n o argume nts or keyword s.
Defaults This command has no default settings.
Command Types Switch comm and.
Command Modes Privileged.
clear ip dns domain
Examples This example shows how to clear the default DNS domain name:
Console> (enable) clear ip dns domain Default DNS domain name cleared. Console> (enable)
Related Comma nds set ip dns domain
show ip dns
78-15328-01
Catalyst 6500 Series Switch Command Reference—Release 7.6
2-29
clear ip dns server
clear ip dns server
To remove a DNS server from the DNS server listing, use the clear ip dns server command.
clear ip dns server {ip_addr | all}
Chapter 2 Catalyst 6500 Series Switch and ROM Monitor Commands
Syntax Descri ption
ip_addr IP addre ss of t he D NS se rver yo u want to r emove. An IP a lias o r a
host name that can be resol ved t hro ugh DN S can a lso be use d.
all Specifies all the IP addresses in the DNS server listing to be
removed.
Defaults This command has no default settings.
Command Types Switch comm and.
Command Modes Privileged.
Examples This example shows how to remove the DNS server a t I P a ddr ess 19 8. 92.30. 32 from the DN S se rver
listing:
Console> (enable) clear ip dns server 198.92.30.32
198.92.30.32 cleared from DNS table. Console> (enable)
This example shows how to remove all DNS servers from the DNS server listing:
Console> (enable) clear ip dns server all All DNS servers cleared Console> (enable)
Related Comma nds set ip dns server
show ip dns
Catalyst 6500 Series Switch Command Reference—Release7.6
2-30
78-15328-01
Chapter 2 Catalyst 65 00 Series Switch and ROM Monit or Commands
clear ip permit
To remove a specified IP address and mask or all IP addresses and masks from the permit list, use the
clear ip permit command.
clear ip permit all clear ip permit {ip_addr} [mask] [telnet | ssh | snmp | all]
clear ip permit
Syntax Description
ip_addr IP addre ss to be clea red. An IP alias or a host nam e that can be resolved
through DNS ca n al so be use d. mask (Optional) Subnet mask of the specified IP address.
telnet (Optional) Clears the entries in the Telnet permit list. ssh (Optional) Clears the entries in the SSH permit list. snmp (Optional) Clears the entries in the SNMP permit list. all (Optional) Clears all permit lists.
Defaults This command has no default settings.
Command Types Switch comm and.
Command Modes Privileged.
Usage Guidelines The clear ip permit all command clea rs th e perm it list but do es not ch an ge t he st at e of t he I P p er mit
feature. A warning is displayed if all IP addresses are cleared from the permit list, and the feature is enabled. If a mask other than the default (255.255.255.255) has been configured, you must provide both the address and mask to clear a specific entry.
If the telnet, ssh, snmp, or all keyword is not specified, the IP address is removed from both the SNMP and Telnet permit lists.
Examples These examples show how to remove IP addresses:
Console> (enable) clear ip permit 172.100.101.102
172.100.101.102 cleared from IP permit list. Console> (enable)
Console> (enable) clear ip permit 172.160.161.0 255.255.192.0 snmp
172.160.128.0 with mask 255.255.192.0 cleared from snmp permit list. Console> (enable)
Console> (enable) clear ip permit 172.100.101.102 telnet
172.100.101.102 cleared from telnet permit list. Console> (enable)
Catalyst 6500 Series Switch Command Reference—Release 7.6
78-15328-01
2-31
clear ip permit
Console> (enable) clear ip permit all IP permit list cleared. WARNING IP permit list is still enabled. Console> (enable)
Related Comma nds set ip permit
show ip permit
Chapter 2 Catalyst 6500 Series Switch and ROM Monitor Commands
2-32
Catalyst 6500 Series Switch Command Reference—Release7.6
78-15328-01
Chapter 2 Catalyst 65 00 Series Switch and ROM Monit or Commands
clear ip route
To delete IP routing table entries, use the clear ip route command.
clear ip route destination gateway
clear ip route
Syntax Description
destination IP address of the ho st or networ k. A n IP al ia s or a h ost n ame tha t
can be resolved through DN S can also be used. gateway IP address or alias of the gateway router.
Defaults The default is destination. If the destination is not the active default gateway, the actual destination is
the default.
Command Types Switch comm and.
Command Modes Privileged.
Examples This example shows how to delete the routing table entries using the clear ip route command:
Console> (enable) clear ip route 134.12.3.0 elvis Route deleted. Console> (enable)
Related Comma nds set ip route
show ip route
78-15328-01
Catalyst 6500 Series Switch Command Reference—Release 7.6
2-33
clear kerberos clients mandatory
clear kerberos clients mandatory
To disable mandatory Kerberos authentication for services on the network, use the clear kerberos clients mandatory command.
clear kerberos clients mandatory
Syntax Descri ption This command ha s no argume nts o r keywords .
Defaults Kerberos clients are not set to mandatory.
Command Types Switch comm and.
Chapter 2 Catalyst 6500 Series Switch and ROM Monitor Commands
Command Modes Privileged.
Usage Guidelines If you do not make Kerberos authentication mandatory and Kerberos authentication fails, the application
attempts to authen ticate users usi ng the default method of authenti cati on for that network servi ce. For example, Telnet prompts for a password.
Examples This example shows how to clear mandatory Kerberos authentication:
Console> (enable) clear kerberos clients mandatory Kerberos clients mandatory cleared Console> (enable)
Related Comma nds set kerberos clients mandatory
show kerberos
2-34
Catalyst 6500 Series Switch Command Reference—Release7.6
78-15328-01
Chapter 2 Catalyst 65 00 Series Switch and ROM Monit or Commands
clear kerberos credentials forward
To disable credentials forwarding, use the clear kerberos credentials forward command.
clear kerberos credentials forward
Syntax Description Th is comm a nd ha s n o argume nts or keyword s.
Defaults The default is forwarding is disabled.
Command Types Switch comm and.
Command Modes Privileged.
clear kerber os cr ed ent ia ls fo rw ar d
Usage Guidelines If you have a ticket granting ticket (TGT) and are authenticated to a Kerberized switch, you can use the
TGT to authenticate to a host on the network. If forwarding is not enabled and you try to list credentials after authenticating to a host, the output will show no Kerberos credentials are present.
Examples This example shows how to disab le Kerber os cred enti als forward ing:
Console> (enable) clear kerberos credentials forward Kerberos credentials forwarding disabled Console> (enable)
Related Comma nds set kerberos clients mandatory
set kerberos credentials forward show kerberos
78-15328-01
Catalyst 6500 Series Switch Command Reference—Release 7.6
2-35
clear kerberos creds
clear kerberos creds
To delete all the Kerberos credentials, use the clear kerberos creds command.
clear kerberos creds
Syntax Descri ption This command ha s no argume nts o r keywords .
Defaults The command has no defau lt setti ngs.
Command Types Switch comm and.
Command Modes Privileged.
Chapter 2 Catalyst 6500 Series Switch and ROM Monitor Commands
Usage Guidelines If you have a TGT and are au thenticated to a Kerber ize d switch, you can use the TGT to authe nti cate to
a host on the network.
Examples This example shows how to dele te all Kerberos cr eden tia ls:
Console> (enable) clear kerberos creds Console> (enable)
Related Comma nds set kerberos credentials forward
show kerberos
2-36
Catalyst 6500 Series Switch Command Reference—Release7.6
78-15328-01
Chapter 2 Catalyst 65 00 Series Switch and ROM Monit or Commands
clear kerberos realm
T o cl ear a n entry t hat m aps the nam e of a K erb eros rea lm to a D NS do main name or a h ost na me , use the
clear kerb eros rea lm command.
clear kerb eros rea lm {dns_domain | host} kerberos_realm
clear kerb eros realm
Syntax Description
dns_domain DNS domai n name to map to a Kerberos re alm. host IP address or name to map to a Kerberos realm. kerberos_realm IP address or name of a Kerberos realm.
Defaults This command has no default settings.
Command Types Switch comm and.
Command Modes Privileged.
Usage Guidelines Y ou can map t he name of a K erb ero s re alm to a DNS do main na me or a ho st n ame with the se t k erber o s
realm command.
Examples This example shows how to cl ear a n en tr y mappi ng a Kerber os r eal m to a dom ain name :
Console> (enable) clear kerberos realm CISCO CISCO.COM Kerberos DnsDomain-Realm entry CISCO - CISCO.COM deleted Console> (enable)
Related Comma nds set kerberos lo ca l- realm
set kerberos rea lm show kerberos
78-15328-01
Catalyst 6500 Series Switch Command Reference—Release 7.6
2-37
clear kerberos server
clear kerberos server
To clear a specified Key Distribution Center (KDC) entry, use the clear kerberos server command.
clear kerberos s erver kerberos_realm {hostname | ip_address} [port_number]
Chapter 2 Catalyst 6500 Series Switch and ROM Monitor Commands
Syntax Descri ption
kerberos_realm Name of a Kerberos realm. hostname Na me of the host ru nning the KD C. ip_address IP address of the host running the KDC. port_number (Optional) Number of the port on the module.
Defaults This command has no default settings.
Command Types Switch comm and.
Command Modes Privileged.
Usage Guidelines Y ou can s pecify to the s witch which K DC to use in a Ker beros rea lm. This comm and clears a serve r entry
from the table.
Examples This example shows how to cle ar a K DC ser ver ent ere d on the swi tch:
Console> (enable) clear kerberos server CISCO.COM 187.0.2.1 750 Kerberos Realm-Server-Port entry CISCO.COM-187.0.2.1-750 deleted Console> (enable)
Related Comma nds set kerberos server
show kerberos
Catalyst 6500 Series Switch Command Reference—Release7.6
2-38
78-15328-01
Chapter 2 Catalyst 65 00 Series Switch and ROM Monit or Commands
clear key config-key
To remove a private 3DES key, use the clea r key config-ke y command.
clear key config-key string
clear key config-key
Syntax Description
string Name of the 3DES key; the name should be no lo nger than 8 bytes.
Defaults This command has no default settings.
Command Types Switch comm and.
Command Modes Privileged.
Examples This example shows how to remove a p rivate 3DES key:
Console> (enable) clear key config-key abcd Kerberos config key deleted Console> (enable)
Related Comma nds set key config-key
78-15328-01
Catalyst 6500 Series Switch Command Reference—Release 7.6
2-39
clear l2protocol-tunnel cos
clear l2protocol-tunnel cos
To clear the L aye r 2 p rotocol tunnel ing CoS value fo r al l i ngre ss tu nne ling por ts, use the c lea r l2protocol-tunnel cos command.
clear l2protocol-tunnel cos
Syntax Descri ption This command ha s no argume nts o r keywords .
Defaults The CoS value is res tor ed to 5.
Command Types Switch comm and.
Chapter 2 Catalyst 6500 Series Switch and ROM Monitor Commands
Command Modes Privileged.
Examples This example shows how to clear the La yer 2 p rotoc ol tunne ling CoS value:
Console> (enable) clear l2protocol-tunnel cos Default Cos set to 5. Console> (enable)
Related Comma nds clear l2protocol-tunnel statistics
set l2protocol-tunnel cos set port l2protocol-tunnel show l2protocol-tunnel statistics show port l2protocol-tunnel
2-40
Catalyst 6500 Series Switch Command Reference—Release7.6
78-15328-01
Chapter 2 Catalyst 65 00 Series Switch and ROM Monit or Commands
clear l2protocol-tunnel statistics
To clear Lay er 2 pr otoc ol t u nnel ing stat ist ics on a po rt or o n all tun ne lin g p orts, us e t he c lea r l2protocol-tunnel statistics command.
clear l2protocol-tunnel statistics [mod/port]
clear l2protocol-tunnel statisti cs
Syntax Description
mod/port (Optiona l) Numb er of the mod ule and port on the modul e. See the “Usag e
Guidelines” section for more information.
Defaults This command has no default settings.
Command Types Switch comm and.
Command Modes Privileged.
Usage Guidelines If you do not specify a module and port number, the Layer 2 protocol tunneling statistics for all tunneling
ports and all VLANs are cleared.
Examples This example shows how to clear the Layer 2 protocol tunnel ing statis tics for a singl e port:
Console> (enable) clear l2protocol-tunnel statistics 7/1 Layer 2 Protocol Tunneling statistics cleared on port 7/1. Console> (enable)
Related Comma nds clear l2protocol-tunnel cos
set l2protocol-tunnel cos set port l2protocol-tunnel show l2protocol-tunnel statistics show port l2protocol-tunnel
78-15328-01
Catalyst 6500 Series Switch Command Reference—Release 7.6
2-41
clear lacp-channel statist ics
clear lacp-channel statistics
T o clear Link Aggregation Control Protocol (LACP) statistical information, use the clear lacp-channel statistics command.
clear lacp-channel statistics
Syntax Descri ption This command ha s no keywords or a rgumen ts.
Defaults This command has no default settings.
Command Types Switch comm and.
Chapter 2 Catalyst 6500 Series Switch and ROM Monitor Commands
Command Modes Normal.
Usage Guidelines For differences between P AgP and LA CP, refer to the “Guidelines for Port Configuration” section of the
“Configuring EtherChan ne l” cha pter of the Cataly st 650 0 Se ries Switch Soft ware Configuration Guide.
Examples This example shows how to clear LACP statistical information:
Console> (enable) clear lacp-channel statistics LACP channel counters are cleared. Console> (enable)
Related Comma nds set channelprotocol
set lacp-channel system-priority set port lacp-channel set spantree channelcost set spantree channelvlancost show lacp-channel show port lacp-channel
2-42
Catalyst 6500 Series Switch Command Reference—Release7.6
78-15328-01
Chapter 2 Catalyst 65 00 Series Switch and ROM Monit or Commands
clear lda
To remove the accelerated server load balancing (ASLB) MLS entries or MAC addresses from the switch, use the clear lda command.
clear lda mls clear lda mls [destination ip_addr_spec ] [source ip_addr_ spec ] [protocol protocol
src-port src_port dst-port dst_port] clear lda vip {all | vip | vip tcp_port} clear lda mac {all | router_mac_address}
clear lda
Syntax Description
mls Removes an LDA MLS entry. destination
ip_addr_spec
source
ip_addr_spec
protocol
protocol
src-port
src_port
dst-port
dst_port
vip all Rem oves all VIP couples (set usi ng the set lda command). vip vip Specifies a VIP. vip vip
tcp_port
mac all Clears all ASLB router MAC addresses. mac
router_mac_ address
(Optional) Full destination IP address or a subnet address in these formats: ip_addr, ip_addr/netmask, or ip_addr/mask bit.
(Optional) Full source IP address or a subne t address in these formats: ip_addr, ip_addr/netmask, or ip_addr/mask bit.
(Optional) Specifies additional flow information (protocol family and protocol port pair) to be matched; valid values include tcp, udp, icmp, or a decimal nu mb er fo r ot her pro toco l fam ili es.
(Optional) Specifies the number of the TCP/UDP source port (decimal). Used with dst-port to specify the port pair if the protocol is tcp or udp. 0 indicat es “do not care .”
(Optional) Specifies the number of the TCP/UDP destination port (decimal). Us ed with src-port to specify the port pair if the protocol is tcp or udp. 0 indicat es “do not care .”
Specifies a VIP and port coupl e.
Clears a specific router MAC address.
Defaults This command has no default settings.
Command Types Switch comm and.
Command Modes Privileged.
78-15328-01
Catalyst 6500 Series Switch Command Reference—Release 7.6
2-43
Chapter 2 Catalyst 6500 Series Switch and ROM Monitor Commands
clear lda
Usage Guidelines This comm a nd is sup por ted on ly o n swi tc hes c onfigure d wi th the Super vi sor Engi ne 1 w ith La yer 3
Switching Engine WS-F6K-PFC (Policy Feature Ca rd). Entering the destination keyword specifies the en tries matching the destination IP addr ess specifi cation,
entering th e source keyword specifies the entries matching the source IP address specification, and entering an ip_addr_sp ec ca n s peci fy a f ull I P a ddr ess or a su bnet a dd ress. If yo u d o not s peci fy a keyword, it is treated as a wildcard, and all entries are displayed.
When enter ing the ip_a ddr_ spec, us e the fu ll IP address or a subnet address i n one of the foll owing formats: ip_addr, ip_addr/netmask, or ip_addr/m askbit.
If you do not enter any keywords, the LD is remove d from the switch and th e LD conf igurati on is removed from NVR AM .
If you do not e nte r any keywords wi th t h e clear lda mls command, all ASLB MLS entries are cleared.
Examples This example shows how to clear the ASLB MLS entry at a specific destination address:
Console> (enable) clear lda mls destination 172.20.26.22 MLS IP entry cleared. Console> (enable)
This example shows how to delete a VIP and port pair (VIP 10.0.0 .8, port 8):
Console> (enable) clear lda vip 10.0.0.8 8 Successfully deleted vip/port pairs. Console> (enable)
This example shows how to clear all ASLB router MAC addresses:
Console> (enable) clear lda mac all Successfully cleared Router MAC address. Console> (enable)
This example sh ows how to clear a sp ecific AS LB rou ter M AC address:
Console> (enable) clear lda mac 1-2-3-4-5-6 Successfully cleared Router MAC address. Console> (enable)
Related Comma nds commit lda
set lda show lda
2-44
Catalyst 6500 Series Switch Command Reference—Release7.6
78-15328-01
Chapter 2 Catalyst 65 00 Series Switch and ROM Monit or Commands
clear localuser
To delete a local user account from the switch, use the clear localuser command.
clear localuser name
clear localuser
Syntax Description
name Specifies the local user ac count.
Defaults This command has no default settings.
Command Types Switch comm and.
Command Modes Privileged.
Examples This example shows how to delete a local user account:
Console> (enable) clear localuser troy Local user cleared. Console> (enable)
Related Comma nds set localuser
show localuser
78-15328-01
Catalyst 6500 Series Switch Command Reference—Release 7.6
2-45
clear log
clear log
Chapter 2 Catalyst 6500 Series Switch and ROM Monitor Commands
To delete module, syst em error log, or dump l og entries, use the c lear l og co mmand .
clear log [mod] clear log dump
Syntax Descri ption
mod (Optional) Module num be r.
dump Clears dump log entries.
Defaults This command has no default settings.
Command Types Switch comm and.
Command Modes Privileged.
Usage Guidelines If you do not specify a module num ber, the system error lo g for the entire system is er ased .
Examples This example shows how to clear the system error log:
Console> (enable) clear log System error log cleared. Console> (enable)
This example shows how to clear the dump log:
Console> (enable) clear log dump Console> (enable)
Related Comma nds show log
Catalyst 6500 Series Switch Command Reference—Release7.6
2-46
78-15328-01
Chapter 2 Catalyst 65 00 Series Switch and ROM Monit or Commands
clear log command
To clear the command log entry table, use the clear log command command.
clear log command [mod]
clear log command
Syntax Description
mod (Optional) Number of the module.
Defaults This command has no default settings.
Command Types Switch comm and.
Command Modes Privileged.
Usage Guidelines The command log entry table is a history log of th e comman ds sen t to t he swi tc h f rom t h e cons ole or Tel net.
Examples This example shows how to clear the command log table for the switch:
Console> (enable) clear log command Local-log cleared Console> (enable)
This example shows how to clear the command log table for a specific module:
Console> (enable) clear log command 3 Module 3 log cleared. Console> (enable)
Related Comma nds show log command
78-15328-01
Catalyst 6500 Series Switch Command Reference—Release 7.6
2-47
clear logging buffer
clear logging buffer
To clear the system logging buffer, use the clear loggin g buffer command.
clear logging buffer
Syntax Descri ption This command ha s no argume nts o r keywords .
Defaults This command has no default settings.
Command Types Switch comm and.
Command Modes Privileged.
Chapter 2 Catalyst 6500 Series Switch and ROM Monitor Commands
Examples This example shows how to clear the system logging buffer:
Console> (enable) clear logging buffer System logging buffer cleared. Console> (enable)
Related Comma nds show logging buffer
2-48
Catalyst 6500 Series Switch Command Reference—Release7.6
78-15328-01
Chapter 2 Catalyst 65 00 Series Switch and ROM Monit or Commands
clear logging level
To reset the logging level for a facility or for all facilities to their default settings, use the clear logging level command.
clear logging level {facility | all}
Syntax Description facility Name of the facility to reset; facility types are listed in Table 2-1.
all Resets all facilities.
Tabl e 2-1 Fac i lity Ty p es
Facility Name Definition
all All facilities acl acces s cont rol l ist cdp Cisco Discovery Protocol cops C ommon Open Policy Service Protocol dtp Dynamic Trunking Protocol dvlan Dynamic VLAN earl Enhanced Address Recogni tion Lo gic filesys file system facility gvrp GARP VLAN Registration Protocol ip Inte rnet Prot ocol kernel Kernel ld ASLB facility mcast Multicast mgmt Manage me nt mls Multilayer Switching pagp Port Aggregation Protocol protfilt Protocol Filter pruning VTP pr un i ng privatevlan Private VLAN facility qos Quality of Service radius Remote Access Dial-In User Service rsvp ReSerVation Protocol security Security snmp Simple Network Management Protocol
clear logging level
78-15328-01
Catalyst 6500 Series Switch Command Reference—Release 7.6
2-49
clear logging level
Table 2-1 Facility Types (continued)
Facility Name Definition
spantree Spanning Tree Protocol sys System tac Terminal Access Controller tcp Transmission Control Protocol telnet Te rmina l Emulatio n Protocol tftp Trivial File Transfer Protocol udld User Datagram Protocol vmps VLAN Membership Policy Server vtp Virtual Terminal Protocol
Defaults This command has no default settings.
Chapter 2 Catalyst 6500 Series Switch and ROM Monitor Commands
Command Types Switch comm and.
Command Modes Privileged.
Examples This example shows how to reset a specific facility back to its default settings:
Console> (enable) clear logging level dtp Current session and default severities of facility <dtp> set to factory default values. Console> (enable)
This example shows how to reset all facilities back to their default settings:
Console> (enable) clear logging level all Current session and default severities of all facilities set to factory default values. Console> (enable)
Related Comma nds set logging level
show logging
2-50
Catalyst 6500 Series Switch Command Reference—Release7.6
78-15328-01
Chapter 2 Catalyst 65 00 Series Switch and ROM Monit or Commands
clear logging server
To delete a syslog server from the system log server table, use the clear logging server command.
clear loggi ng server ip_ad dr
clear logging server
Syntax Description
ip_addr IP address of the syslog server to be deleted.
Defaults This command has no default settings.
Command Types Switch comm and.
Command Modes Privileged.
Examples This example shows how to dele te a sys lo g s erver f rom the con figurat ion:
Console> (enable) clear logging server 171.69.192.207 System log server 171.69.192.207 removed from system log server table. Console> (enable)
Related Comma nds set logging s erver
show logging
78-15328-01
Catalyst 6500 Series Switch Command Reference—Release 7.6
2-51
clear mls cef
clear mls cef
To clear CEF summary statistics, use the clear mls cef command.
clear mls cef
Syntax Descri ption This command ha s no argume nts o r keywords .
Defaults This command has no default settings.
Command Types Switch comm and.
Command Modes Privileged.
Chapter 2 Catalyst 6500 Series Switch and ROM Monitor Commands
Usage Guidelines This comm a nd i s sup port ed on Ca taly st 65 00 ser ies swi tches con figured with the Su pervis or E ng ine 2
with Layer 3 Switching Engine II (PFC2) only.
Examples This example shows how to cle ar CE F s ummar y infor ma tion:
Console> (enable) clear mls cef CEF statistics cleared. Console> (enable)
Related Comma nds show mls cef summary
2-52
Catalyst 6500 Series Switch Command Reference—Release7.6
78-15328-01
Chapter 2 Catalyst 65 00 Series Switch and ROM Monit or Commands
clear mls entry
To clear MLS entries in the Catalyst 6500 series switches, use the clear mls entry command.
clear mls entry [ip | ipx] all clear mls entry ip destination ip_addr_spec [source ip_addr_spec] [protocol protocol]
[src-port src_port] [dst-port dst_port] clear mls entry ipx destination ipx_addr_spec
clear mls entry
Syntax Description
Defaults This command has no default settings.
ip (Optional) Specifies IP MLS. ipx (Optional) Specifies IPX MLS. all Clears all MLS entries. destination Specifies the destination IP address.
ip_addr_spec Full IP address or a subnet address in these formats: ip_addr,
ip_addr/netmask, or ip_addr/ maskbit .
source ip_addr_spec (Optional) Specifies the source IP address. protocol protocol (Optional) Specifies additional flow information (protocol family and
protocol port pair) to be matche d; valid va lues are 0 to 255 or ip, ipinip, icmp, igmp, tcp, and udp.
src-port src_port (Optional) Specifies the source port IP address; valid values are 1 to 65535,
dns, ftp, smtp, telnet, x (X-Windows), www.
dst-port dst_port (Optional) Specifies the destination port IP address; valid values are 1 to
65535, dns, ftp, smtp, telnet, x (X-Windows), www.
ipx_addr_spec Full IPX address or a subnet address in these formats: src_net/[mask],
dest_net.dest_no de, or dest_ne t/mask .
Command Types Switch comm and.
Command Modes Privileged.
Usage Guidelines This comm a nd is no t sup por ted on sys tems c onfigured w it h the Superv i sor Engi ne 2 w ith L a yer 3
Switching Engine II ( PFC2). To clear entries on systems configured w it h the Superv isor E ngine 2 wi th Layer 3 Switching Engine II (PFC2), yo u must enter t he clea r mls entry ce f adjace ncy command.
When entering th e IPX addres s synta x, use th e following format :
IPX net address—1..FFFFFFFE
IPX node address—x.x.x where x is 0..FFFF
IPX address—ipx_net.ipx_ node (f or example 3.003 4.1245 .AB45 , A43.000 0.0000 .0001)
Catalyst 6500 Series Switch Command Reference—Release 7.6
78-15328-01
2-53
clear mls entry
Chapter 2 Catalyst 6500 Series Switch and ROM Monitor Commands
Up to 16 routers can be included explicitly as MLS-RPs. To use a router as an MLS, you must meet these conditions:
The router must be included (either explicitly or automatically) in the MLS-SE.
The MLS feature must be enabled in the Catalyst 6500 series switches.
The Catalyst 6500 series switches m ust know the rout er’s MAC-VLAN pairs.
Use the following syntax to specify an IP subnet address:
ip_subnet_addr—This i s the sho rt su bnet addr e ss form at. T he t rail ing de cim al n umbe r 0 0 in an IP
address YY.YY.YY.00 specifies the boun dary for an IP subnet add ress. For example, 172. 22.36.00 indicates a 24-bit sub ne t a ddress (su bnet m ask 1 72.22. 36. 00/2 55.255 .25 5. 0), a nd 17 3.2 4. 00.00 indicates a 16-bit subnet address (subnet mask 173.24.00.00/255.255.0.0). However, this format can identify only a sub ne t a ddress of 8 , 1 6, or 2 4 b its.
ip_addr/subnet_mask—Thi s is the long subn et addre ss forma t. For example,
172.22.252.00/2 55.255.25 2.00 in dicate s a 22-bit subn et addre ss. This for mat can spec ify a subnet address of any bit number. To provide more flexibility, the ip_addr is a full host addr ess, such as
172.22.253.1/255.2 55. 252.00 .
ip_addr/maskbits—This is the simplified long subnet address format. The mask bits specify the
number of bits of the network mask s. For example, 172. 22.252.00 /22 indic ates a 22-b it subnet address. The ip_addr is a full host addre ss, such as 193.2 2.253.1/ 22, whi ch has the same subnet address as the ip_ subn et_a ddr.
If you do not use the al l argument in the clear mls entry command, you must specify at le as t o ne of th e other three keywords (source, destination, or protocol) and its ar gumen ts.
If no value or 0 is en te red fo r src_port and dest_port, all entries are cleared. When you remove a Multilayer Switch Module (MSM) from the C atalyst 6500 series switch, it is
removed immediately from the inclusion list and all the MLS entries for the MSM are removed.
Examples This example shows how to clear the MLS entries with destination IP address 172.20.26.22:
Console> (enable) clear mls entry destination 172.20.26.22 Multilayer switching entry cleared. Console> (enable)
This example shows how to cle ar sp ec ific IP M LS ent rie s for de stin ation I P a ddress 17 2.2 0.2 6.22:
Console> (enable) clear mls entry ip destination 172.20.26.22 source 172.20.22.113 protocol tcp 520 320 Multilayer switching entry cleared Console> (enable)
This example shows how to clear specific IPX MLS entries for a destination IPX address:
Console> (enable) clear mls entry ipx destination 1.00e0.fefc.6000 source 3.0034.1245.AB45 IPX Multilayer switching entry cleared Console> (enable)
Related Comma nds show mls entry
Catalyst 6500 Series Switch Command Reference—Release7.6
2-54
78-15328-01
Chapter 2 Catalyst 65 00 Series Switch and ROM Monit or Commands
clear mls entry cef adjacency
To clear CEF adjacency statistics, use the clear mls entry cef adjacency command.
clear mls entry cef adjacency clear mls entry cef ip [[ip_addr/]mask_len] adjacency clear mls entry cef ipx [[ipx_addr/]mask_len] adjacency
clear mls entry cef adjacency
Syntax Description
ip Specifies IP entries. ipx Specifies IPX entries.
ip_addr (Optional) IP address of the entry. mask_len (Optional) Mask length associated with the IP or IPX address of
the entry; valid values are from 0 to 32.
ipx_addr (Optional) IPX address of the entry.
Defaults This command has no default settings.
Command Types Switch comm and.
Command Modes Privileged.
Usage Guidelines This comm a nd i s sup por ted on Ca taly st 65 00 ser ies swi tches con figured with t he Su pervi so r Eng in e 2
with Layer 3 Switching Engi ne II (PFC 2). To clear MLS e ntrie s on syste ms c onfigured w ith th e Sup er visor Engi ne 1 wi th L aye r 3
Switching Engine WS-F6 K-PFC (Policy Feature Ca rd), ent er the cl ear m ls entr y comm and. The ipx_addr value is entered as 32-bit hexadecimal digits.
Examples This example shows how to clear all adjacencies associated with CEF entries:
Console> (enable) clear mls cef entry adjacency Adjacency statistics has been cleared. Console> (enable)
Related Comma nds show mls entry cef
Catalyst 6500 Series Switch Command Reference—Release 7.6
78-15328-01
2-55
clear mls exclude protoc ol
clear mls exclude protocol
To remove a protocol port that has been excluded fr om shortcutting using th e set mls exclude protocol command, use th e clear mls exclude protocol command .
clear mls ex cl ud e p rotocol tcp | udp | both port
Chapter 2 Catalyst 6500 Series Switch and ROM Monitor Commands
Syntax Descri ption
tcp Specifies a TCP port. udp Sp ecifies a UDP por t. both Specifies that the port be applied to both TCP and UDP traffic.
port Number of the port.
Defaults This command has no default settings.
Command Types Switch comm and.
Command Modes Privileged.
Examples This example shows how to set TCP packe ts i n a pro t ocol po rt to be h ardware swi tch ed:
Console> (enable) clear mls exclude protocol tcp 25 TCP packets with protocol port 25 will be MLS switched. Console> (enable)
Related Comma nds set mls exclude protocol
show mls exclude protocol
Catalyst 6500 Series Switch Command Reference—Release7.6
2-56
78-15328-01
Loading...