CISCO交换机命令全集加说明2( 五 )


Related Commands
copy (nvram tftp)
service (config)
show (running-config)
show (version)
tftp (accept)
tftp (server)
copy (xmodem)
Use the copy xmodem privileged Exec command to download an operation code or firmware file by using the XMODEM protocol.
copy xmodem: src_file opcode [type module]
Syntax Description
src_file Firmware filename.
opcode Download new operation code.
type Interface type. Valid values are fddi and atm.
module Interface number: 1 or A for module 1, 2 or B for module 2.

Default
If you specify type and module, the file copies the code or file to the specified module. When type and module are not specified, the file copies them to the switch firmware.
Command Mode
Privileged Exec
Usage Guidelines
You cannot enter any new information or commands until the download is completed. After downloading operation code file, the entire system (including other CLI sessions) is inactive for about 30 seconds.

Example
This example shows how to download the operational code file.
hostname# copy xmodemp_code.bin opcode

This shows how to download new FDDI operational code fddi.bin to module slot A.
hostname# copy xmodem:fddi.bin opcode fddi A
Related Commands
copy (tftp)
copy (xmodem)
show (running-config)
show (version)
databits
Use the databits line-configuration command to set the data bits per character for a port.
databits [7 8]
Syntax Description
7 or 8 Number of data bits per character.

Default
8 data bits per character.
Command Mode
Line configuration
Example
This example shows how to set the number of data bits per character to 7.
hostname(config-line)# databits 7
Related Commands
autobaud
line console
modem (dialin)
parity
show (line)
show (terminal)
speed
stopbits
terminal
delete (nvram)
Use the delete nvram privileged Exec command to reset the system or module configuration to factory defaults.
delete nvram [type module]
Syntax Description
type Interface type. Valid values are fddi and atm.
module Module interface number: 1 or A for module A, and 2 or B for module B.

Default
The system or module is reset to factory defaults.
Command Mode
Privileged Exec
Usage Guidelines

Note If you reset a Catalyst 2820 switch by using the delete nvram command, you reset both the system and the module. However, resetting the switch to factory defaults does not reset module arguments stored in the module NVRAM.

Examples
This example shows how to reset system configuration to factory defaults.
hostname(config)# delete nvram

This command resets the switch with factory defaults. All parameters will revert to their default factory settings. All static system and dynamic addresses will be removed.
Reset system with factory defaults, [y]es or [n]o?

Press Y or N to proceed.
This example shows how to reset the ATM module in slot A to factory defaults.
hostname(config)# delete nvram atm 1

This command resets the module and restores all settings to factory defaults.
The module is deinstalled until it successfully completes its self tests.

Reset module with factory defaults, [Y]es or [N]o?

Press Y or N to proceed.
Related Commands
copy (tftp)
reload
delete (vtp)
Use the delete vtp privileged Exec command to set the system VLAN Trunk Protocol (VTP) configuration back to factory defaults.
delete vtp
Syntax Description
This command has no additional arguments or keywords.
Command Mode
Privileged Exec
Usage Guidelines
Resetting the system VTP configuration also resets the system. This command first prompts the user to confirm:

This command resets the switch VTP arguments to factory defaults. All other arguments will be unchanged.
Reset system VTP arguments to factory defaults, [y]es or [n]o?

Press Y or N to proceed.
Example

推荐阅读