Cisco SCE 2000 4xGBE Spécifications Page 35

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 604
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 34
1-17
Cisco SCE 2000 and SCE 1000 CLI Command Reference
OL-26797-03
Chapter 1 Command-Line Interface
Creating a CLI Script
Creating a CLI Script
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 platforms and you want to run the same configuration commands on
each platform, you could create a script on one platform and run it on all the other SCE platforms. The
available script commands are:
script capture
script stop
script print
script run
Step 1 At the sce# 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.
The following is an example of recording a script for upgrading software.
SCE#script capture upgrade.scr
sce#configure
SCE(config)#boot system new.pkg
Verifying package file...
Package file verified OK.
SCE(config)#exit
sce#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#script stop
sce#
Vue de la page 34
1 2 ... 30 31 32 33 34 35 36 37 38 39 40 ... 603 604

Commentaires sur ces manuels

Pas de commentaire