Monday, April 15, 2013

Cisco, ProCurve, Comware - Basic file management (save, copy. start-up, erase)


Save configuration with user defined name and Define the saved configuration as the startup-config.  


On Cisco switches:

Cisco-A# write memory
Cisco-A# copy running flash:interop-3a.cfg
Cisco-A# dir flash:
Cisco-A(config)#boot config flash:interop-3a.cfg
Cisco-A# show boot

Cisco-A# more flash:interop-3a.cfg

Entering “write mem” after will overwrite this configuration, so take care.

Cisco-A# reload

To set to factory
Cisco# erase startup-config
Cisco# reload
Say “No” if it asks to save the config file


Cisco-6503#dir ?
  /all              List all files
  /recursive        List files recursively
  all-filesystems   List files on all filesystems
  bootflash:        Directory or file name
  cns:              Directory or file name
  const_nvram:      Directory or file name
  dfc#2-bootflash:  Directory or file name
  disk0:            Directory or file name
  disk1:            Directory or file name
  flexwan-fpd:      Directory or file name
  null:             Directory or file name
  nvram:            Directory or file name
  sup-bootflash:    Directory or file name
  sup-microcode:    Directory or file name
  system:           Directory or file name
  tar:              Directory or file name
  tmpsys:           Directory or file name
  |                 Output modifiers
  <cr>

Cisco-6503#dir /all
Directory of disk0:/

    1  -rw-    80462372  Nov 10 2011 00:32:18 +00:00  s72033-adventerprisek9_wan-mz.122-33.SXH8a.bin
    2  -rw-   145081188  Nov 10 2011 08:53:56 +00:00  s72033-adventerprisek9_wan-mz.122-33.SXJ1.bin
    3  -rw-    46615200   Dec 1 2011 03:32:38 +00:00  s72033-pk9sv-mz.122-18.SXD3.bin
    4  -rw-    48227168   Dec 1 2011 03:34:50 +00:00  s72033-jk9sv-mz.122-18.SXD7b.bin
    5  -rw-    81728516   Dec 5 2011 13:19:36 +00:00  s72033-ipservicesk9_wan-mz.122-18.SXF6.bin


On HP A-Series switches:

<HP> display startup ß (note the name)
<HP> save h3c_config.cfg
<HP> dir /all ß Displays all files in flash
<HP> more flash:/h3c_config.cfg

Change the current startup config file to the one you just saved.
<HP> startup saved h3c_config.cfg
<HP> display startup ß    (should now be h3c_config.cfg)

<HP> reboot
Note: Don’t ”save” here when prompted if you don’t want changes to be with the startup configuration file.


To set to factory
<HP> reset saved-configuration
<HP> reboot


Updating the flash and bootrom files

Display the firmware in use
<HP>dis boot-loader
 Slot 1
The current boot app is:  flash:/s5120ei-cmw520-r2202p06.bin
The main boot app is:     flash:/s5120ei-cmw520-r2202p06.bin
The backup boot app is:   flash:/s5120ei-cmw520-r2202p06.bin

Note: The backup and the main are the same. 


Remote Software Loading
You can telnet to the switch, and use FTP or TFTP to load BootROM and host software
remotely.

Remote Loading Using TFTP
Console to the switch and set up an ip address:

 [5500-EI]vlan 1
 [5500-EI-vlan1]quit 
 [5500-EI]interface Vlan-interface 1
 [5500-EI-Vlan-interface1]ip add 192.168.1.22 24
 [5500-EI-Vlan-interface1]quit 

[5500-EI]interface Giga 1/0/5
[5500-EI-Ethernet1/0/5]port access vlan 1
[5500-EI-Ethernet1/0/5]undo shut

Connect a PC to port giga 1/0/5, set the PC’s ip address to be on the same subnet as the switch, telnet to the switch, and execute the tftp commands to download the firmware from the remote TFTP server (with IP
address 192.168.1.105) to the switch.

Step 1: Download the software and bootrom to the switch using tftp commands.
<H3C> tftp 192.168.1.105 get s5120ei-cmw520-r2304p01.bin
Downloading file from remote tftp server, please wait......................................................................

<H3C> tftp 192.168.1.105 get S5120-EI.btm
Downloading file from remote tftp server, please wait......................................................................

Step 2: Update the BootROM program on the switch. (if needed…use ‘dis device’)
<H3C> bootrom update file S5120-EI.btm slot 1
This command will update BootRom file, Continue? [Y/N]y
Updating BootRom, please wait...

Step 3: Update the host software on the switch.
<H3C> boot-loader file s5120ei-cmw520-r2304p01.bin slot all main
<H3C> display boot-loader
Slot 1
The current boot app is: flash:/ s5120ei-cmw520-r2202p06.bin
The main boot app is: flash:/ s5120ei-cmw520-r2304p01.bin
The backup boot app is: flash:/ s5120ei-cmw520-r2202p06.bin

Step 4: Restart the switch.
<H3C> reboot

NOTE:
Before restarting the switch, make sure other configurations are all saved to avoid the loss of configuration information.
After the steps above, the BootROM and host software loading is completed. 
Pay attention to the following points:
Host software loading takes effect only after you restart the switch with the reboot command.
If the space of the flash memory is not enough, you can delete the useless files in the flash memory before software downloading.
Power interruption is not allowed during software loading.


<HP>dir /all
Directory of flash:/

   0     -rw-   8984448  Aug 20 2010 15:50:35   s5120ei-cmw520-r2202p06.bin
   2     -rw-      9420  Jul 25 2011 16:29:17   startup.cfg
   3     -rw-      9530  Sep 28 2011 16:29:17   h3c_config.cfg
   6     -rw-   11585434 Sep 28 2011 10:58:05   s5120ei-cmw520-r2304p01.bin
   7     -rw-    465412  Jul 28 2011 10:58:44   s5120ei-btm-2304.btm



Display the LPU’s and slot info
display version
display device



On HP E-Series switches:

HP-E# write mem
HP-E# show config-files

The config file name should be interop2a. Rename the file to interop3a.
HP-E# copy config interop2a config interop3a
HP-E# show config interop3a

To make this configuration the startup-config, enter this command:
HP-E(config)# startup-default config interop3a

HP-E# boot system flash primary config interop3a

To remove files
HP-E(config)# erase config interop2a

To set to factory
HP-E# erase start



No comments:

Post a Comment

Please add comments so I may update the material to accommodate platform modification to various commands. Also if you have some real-world caveats, do please share.

Search Duke

About the Author

My photo
Central Florida, United States