Jump to content


- - - - -

Cisco IOS helpful commands


  • Please log in to reply
No replies to this topic

#1 wildweaselmi

wildweaselmi

    Administrator

  • Administrators
  • 1,024 posts

Posted 24 November 2009 - 06:31 PM

I find that I use these simple commands in the Cisco IOS and wanted this reference.

Copy an Image from a Flash Memory File System to an FTP Server

The following example copies the file c3600-i-mz from partition 1 of the Flash memory card in slot 0 to an FTP server at IP address 172.23.1.129.

Router# show slot0: partition 1
PCMCIA Slot0 flash directory, partition 1:

File  Length   Name/status

  1   1711088 c3600-i-mz

[1711152 bytes used, 2483152 available, 4194304 total]

Router# copy slot0:1:c3600-i-mz ftp://myuser:mypass@172.23.1.129/c3600-i-mz
Verifying checksum for '/tftpboot/cisco_rules/c3600-i-mz' (file # 1)...  OK

Copy '/tftpboot/cisco_rules/c3600-i-mz' from Flash to server

  as 'c3700-i-mz'? [yes/no] yes
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Upload to server done

Flash device copy took 00:00:23 [hh:mm:ss]


Copy an Image from Boot Flash Memory to a TFTP Server

The following example copies an image from boot Flash memory to a TFTP server:

Router# copy bootflash:file1 tftp://192.168.117.23/file1


Verifying checksum for 'file1' (file # 1)... OK

Copy 'file1' from Flash to server
  as 'file1'? [yes/no]y
!!!!...

Upload to server done

Flash copy took 0:00:00 [hh:mm:ss]

Copy from a Server to the Running Configuration Example

The following example copies and runs a configuration filename host1-confg from the netadmin1 directory on the remote server with an IP address of 172.16.101.101:

Router# copy rcp://netadmin1@172.16.101.101/host1-confg system:running-config

Configure using host1-confg from 172.16.101.101? [confirm]

Connected to 172.16.101.101Loading 1112 byte file host1-confg:![OK]

Router#

%SYS-5-CONFIG: Configured from host1-config by rcp from 172.16.101.101

Copy from a Server to the Startup Configuration Example

The following example copies a configuration file host2-confg from a remote FTP server to the startup configuration. The IP address is172.16.101.101; the remote username is netadmin1; and the remote password is ftppass.

Router# copy ftp://netadmin1:ftppass@172.16.101.101/host2-confg nvram:startup-config

Configure using rtr2-confg from 172.16.101.101?[confirm]

Connected to 172.16.101.101

Loading 1112 byte file rtr2-confg:![OK]

[OK]

Router#

%SYS-5-CONFIG_NV:Non-volatile store configured from rtr2-config by  
FTP from 172.16.101.101

Copy the Running Configuration to a Server Example

The following example specifies a remote username of netadmin1. Then it copies the running configuration file, named Rtr2-confg, to the netadmin1 directory on the remote host with an IP address of 172.16.101.101.

Router# configure terminal
Router(config)# ip rcmd remote-username netadmin1
Router(config)# end
Router# copy system:running-config rcp:Remote host[]? 172.16.101.101Name of configuration file to write [Rtr2-confg]?Write file rtr2-confg on host 172.16.101.101?[confirm]Building configuration...[OK]Connected to 172.16.101.101Copy the Startup Configuration to a Server Example

The following example copies the startup configuration to a TFTP server:

Router# copy nvram:startup-config tftp:Remote host[]? 172.16.101.101
Name of configuration file to write [rtr2-confg]?
Write file rtr2-confg on host 172.16.101.101?[confirm]
![OK]


Some other helpful commands are:
delete sup-bootflash:readme.txt
dir sup-bootflash:





Similar Topics Collapse

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users