Cisco SCE 1000 2xGBE User's Guide Page 61

  • Download
  • Add to my manuals
  • Print
  • Page
    / 490
  • Table of contents
  • TROUBLESHOOTING
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 60
Chapter 3 Command Line Interface
CLI Scripts
SCE 1000 2xGBE Release 2.0.10 User Guide
OL-7117-02 3-15
CLI Scripts
The CLI scripts feature allows you to record several CLI commands together as a script and play
it back. This is useful for saving repeatable sequence of commands , such as software upgrade.
For example, if you are configuring a group of SCE 1000s and you want to run the same
configuration commands on each SCE 1000, you could create a script on one SCE 1000 and run it
on all the other SCE 1000s.
The available script commands are:
script capture
script stop
script print
script run
To create a script:
Step 1 At the SCE 1000# prompt, type script capture sample1.scr where
sample1.scr is the name of the script.
Step 2 Perform the actions you want to be included in the script.
Step 3 Type script stop.
The system saves the script.
EXAMPLE:
The following is an example of recording a script for upgrading software.
SCE 1000#script capture upgrade.scr
SCE 1000#configure
SCE 1000(config)#boot system new.pkg
Verifying package file...
Package file verified OK.
SCE 1000(config)#exit
SCE 1000#copy running-config startup-config
Writing general configuration file to temporary location...
Extracting files from ‘/tffs0/images/new.pkg’...
Verifying package file...
Package file verified OK.
Device ‘/tffs0/’ has 81154048 bytes free, 21447973 bytes are needed for
extraction, all is well.
Extracting files to temp locations...
Renaming temp files...
Extracted OK.
Backing-up general configuration file...
Copy temporary file to final location...
SCE 1000#script stop
SCE 1000#
To run the script recorded above, type:
SCE 1000#script run upgrade.scr
Page view 60
1 ... 60 61 62 ... 490

Comments to this Manuals

No comments