Home
Flashcards
Preview
script 2
Home
Get App
Take Quiz
Create
To access devices over the network you use what
telnet
what do you use to group the commands
parenthesis
A pause for a second or two between devices what command
sleep command
what to set the line number count to so you don't have to worry about spacebar
0
line number count length default
24
What are the 2 separate outputs for redirect
standard output
error output
the standard messages are sent to a file named config_snapshot and error output is sent to a file named
errors.
sh Dkdocument 1>config_snapshot 2>errors
best practices for disaster recovery
store the ip address and passwords for our devices inn a file
logging into each device and document the network
creating a data file
–Field 1: device name (nickname)
–Field 2: IP address
–Field 3: telnet username
–Field 3: telnet password
–Field 4: privilege mode password
repeating a set of instructions
looping
Do and done mark what
the beginning and ending of the commands to be repeated
•What happens if you have more data on a line in the file than you have variable
names?
The last variable name will contain all of the remaining data (just like entering data from the keyboard)
•Do you have to use every variable name in the read statement somewhere later in the program?
No. You can simply read data into a variable
in to get information beyond it, and then never use the one you didn’t need.
•Test criteria before the instructions to be repeated.
Sometimes called a While…do loop
Author
Tjr31
ID
52603
Card Set
script 2
Description
script 2
Updated
2010-12-01T07:40:52Z
Home
Flashcards
Preview