cc/td/doc/product/lan/cat6000/sw_5_2
hometocprevnextglossaryfeedbacksearchhelp
PDF

Table of Contents

Administering the Switch

Administering the Switch

This section describes administrative tasks that need to be performed on a Catalyst 6000 or 6500 series switch:

Manage Configuration Files

Configuration files contain the switch configuration information. Often, you will want to view the current configuration, back up the existing configuration before making changes, or configure the switch using a backup configuration.

To view the current configuration file, perform this task in privileged mode:
Task Command

Display the configuration file onscreen.

show configuration

This example shows how to display the current configuration:

Console> (enable) show config
.....
..........
..........
.........
.........
...........
..
 
begin
set password $1$FMFQ$HfZR5DUszVHIRhrz4h6V70
set enablepass $1$FMFQ$HfZR5DUszVHIRhrz4h6V70
set prompt Console>
set length 24 default
set logout 20
set banner motd ^C
Catalyst 6000 #2
Software Release 5.1 (1)
IP address 172.20.52.70
^C
!
#system
set system baud  9600
set system modem disable
set system name
set system location
set system contact
 
<... output truncated ...>
!
#switch port analyzer
set span disable
!
#cam
set cam agingtime 1,100,522-524,1003,1005 300
end
Console> (enable)
 

Manage System Images

To change the system software image on a Catalyst 6000 or 6500 series switch, obtain the software image file, place it on a Trivial File Transfer Protocol (TFTP) server, and copy the image to the switch using the copy command. You must reset the switch to run the new software, which will disconnect any Telnet sessions established with the switch (a console port session will remain connected).

To copy a software image from a TFTP server and reboot using the new image, perform these steps in privileged mode:
Task Command

Step 1 Copy a software image from a TFTP server to a Flash device (you are prompted for the Flash device name).

copy tftp file-id

Step 2 Prepend the image filename to the BOOT environment variable, so the new image boots when you reset the switch.

set boot system flash device:filename prepend

Step 3 Reset the switch.

reset

Step 4 Check the version number of the installed software image.

show flash

This example shows how to copy a software image from a TFTP server, reset the switch, and check the version of the installed software image:

Console> (enable) copy tftp flash
IP address or name of remote host []? 172.20.52.3
Name of file to copy from []? cat6000-sup.5-1-2.bin
Flash device [bootflash]?
Name of file to copy to [cat6000-sup.5-1-2.bin]?
 
4369664 bytes available on device bootflash, proceed (y/n) [n]? y
CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC
CCCCCCCCCCCCCCCCCCC
File has been copied successfully.
Console> (enable) set boot system flash bootflash:cat6000-sup.5-2-1.bin prepend
BOOT variable = bootflash:cat6000-sup.5-2-1.bin,1;bootflash:cat6000-sup.5-1-1.bin
,1;
Console> (enable) reset system
This command will reset the system.
Do you want to continue (y/n) [n]? y
Console> (enable)
 
<... output truncated ...>
 
Autoboot executing command: "boot bootflash:cat6000-sup.5-2-1.bin"
 
<... output truncated ...>
 
Cisco Systems Console
 
 
 
Enter password:
 
Console> show flash
File            Version              Sector       Size    Built
--------------- -------------------- ------------ ------- -----------------
c6000 nmp       5.2(1)               02-11        1882546 01/15/99 14:06:03
<... output truncated ...>
Console>
 

Use the Flash File System

You can use the Flash file system to store multiple system-software images and configuration files locally on the switch (instead of having to save them to a TFTP server).

Flash PC (PCMCIA) cards must be formatted before use. To format a Flash PC card, or any Flash device, perform this task in privileged mode:
Task Command

Format the desired Flash device.

format [m/]device:

This example shows how to format a Flash PC card:

Console> (enable) format slot0:
 
All sectors will be erased, proceed (y/n) [n]? y
 
Enter volume id (up to 30 characters): Supervisor Flash Card
 
Formatting sector 1
Format device slot0 completed
Console> (enable)
 

To change the default Flash device and see which device is the current default, perform this task:
Task Command

Step 1 Set the default Flash device for the switch.

cd device:

Step 2 Verify the default Flash device for the switch.

pwd

This example shows how to change the default Flash device and how to verify which device is the default:

Console> (enable) cd slot0:
Console> (enable) pwd
slot0
Console> (enable) cd bootflash:
Console> (enable) pwd
bootflash
Console> (enable)
 

To copy Flash files between Flash devices or between a Flash device and a TFTP server, perform these tasks in privileged mode:
Task Command

  • Copy the current configuration to a Flash device or a TFTP server.

copy config {flash | file-id | tftp}

  • Copy a Flash file on the current default Flash device to another Flash device.

copy file-id device:[file-id]

  • Copy a Flash file on the current default Flash device to a TFTP server.

copy file-id tftp

  • Copy a file from a TFTP server to a Flash device (you are prompted for the Flash device name).

copy tftp file-id

This example shows how to copy the current configuration to the current default Flash device:

Console> (enable) copy config flash
Flash device [slot0]?
Name of file to copy to []? 6000_config.cfg
 
Upload configuration to slot0:6000_config.cfg
13259828 bytes available on device slot0, proceed (y/n) [n]? y
.....
..........
..........
..
 
Configuration has been copied successfully.
Console> (enable)
 

This example shows how to copy a file from the current default Flash device to a different Flash device:

Console> (enable) copy 6000_config.cfg slot0:
 
16383872 bytes available on device slot0, proceed (y/n) [n]? y
 
File has been copied successfully.
Console> (enable)
 

This example shows how to copy a file from the current default Flash device to a TFTP server:

Console> (enable) copy 6000_config.cfg tftp
IP address or name of remote host []? 10.1.1.3
Name of file to copy to [6000_config.cfg]?
-
File has been copied successfully.
Console> (enable)
 

This example shows how to copy a file from a TFTP server to a Flash device:

Console> (enable) copy tftp flash
IP address or name of remote host []? 10.1.1.3
Name of file to copy from []? 6000_config.cfg
Flash device [bootflash]? slot0:
Name of file to copy to [6000_config.cfg]?
 
16376740 bytes available on device slot0, proceed (y/n) [n]? y
-
File has been copied successfully.
Console> (enable)
 

To display a list of files on a Flash device, perform this task in privileged mode:
Task Command

Display a list of files on a Flash device.

dir [[device:]file-id] [all | deleted | long]

This example shows how to list the files on a Flash device:

Console> (enable) dir
-#- -length- -----date/time------ name
  2     7004 Apr 19 1998 10:06:37 6000_config.cfg
  3  3102520 Apr 19 1998 10:09:42 cat6000-sup.5-1-1.bin
 
13259956 bytes available (3124044 bytes used)
Console> (enable)
 

To delete files on a Flash device, perform this task in privileged mode:
Task Command

Delete a file on a Flash device.

delete [[m/]device:]file-id

This example shows how to delete a file on a Flash device:

Console> (enable) delete 6000_config.cfg
Console> (enable)
 

To undelete a file on a Flash device, perform these steps in privileged mode:
Task Command

Step 1 List the deleted files on the current default Flash device.

dir deleted

Step 2 Undelete the desired file. Use the file index number shown in the first column (#) of the dir display to identify the file.

undelete index

This example shows how to undelete a file on a Flash device:

Console> (enable) dir deleted
-#- ED --type-- --crc--- -seek-- nlen -length- -----date/time------ name
  2 .D ffffffff 6d005dfe  317754   15     7964 Aug 18 1998 10:27:38 6000_config.
cfg
 
13273260 bytes available (3110740 bytes used)
Console> (enable) undelete 2
Console> (enable)
 

To free space on a Flash device, use the squeeze command to permanently remove deleted files. You cannot use the undelete command to restore files you deleted prior to entering the squeeze command. To squeeze a Flash device, perform this task in privileged mode:
Task Command

Permanently remove deleted files from a Flash device.

squeeze [m/]device:

This example shows how to permanently remove deleted files from a Flash device:

Console> (enable) squeeze slot0:
 
All deleted files will be removed, proceed (y/n) [n]? y
 
Squeeze operation may take a while, proceed (y/n) [n]? y
Erasing squeeze log
Console> (enable)

Reset a Module or the Switch

Sometimes you need to reset an individual module or the entire switch (for example, when you install a new system software image). If you are connected to the switch via Telnet, resetting an individual module can disconnect your session (if the Telnet session was established through a port on that module). If you reset the entire switch, your Telnet session will disconnect.

To reset an individual module installed in the switch, perform this task in privileged mode:
Task Command

Reset an individual module.

reset mod_num

This example shows how to reset an individual module in the switch:

Console> (enable) reset 2
This command will reset module 2 and may disconnect your telnet session.
Do you want to continue (y/n) [n]? y
Resetting module 2...
Console> (enable)
 
08/18/1998,09:32:23:SYS-5:Module 2 is online
 
Console> (enable)
 

To reset the entire switch, perform this task in privileged mode:
Task Command

Reset the switch.

reset

This example shows how to reset the entire switch:

Console> (enable) reset
This command will reset the system.
Do you want to continue (y/n) [n]? y
Console> (enable)
 
<... output truncated ...>
 


hometocprevnextglossaryfeedbacksearchhelp
Posted: Thu Jul 15 13:33:49 PDT 1999
Copyright 1989-1999©Cisco Systems Inc.