The add command positions you at the end of the script. When you press Enter, a
new line is automatically created. Press the Esc key to terminate the add
command. To create a script to disable the three ports, type:
>>script script1 add <Enter>
Enter commands . . .
<
ESC> to quit
[ 1]
disable port 1.3
<
Enter>
[ 2]
disable port 1.5 <Enter>
[ 3]
disable port 1.10 <Enter>
[ 4]
<Esc>
To look at the script, type:
>>script script1 list <Enter>
Script: script1
[ 1]
disable port 1.3
[ 2]
disable port 1.5
[ 2]
disable port 1.10
>>
Editing Scripts
Continuing the example from “Adding Commands” on page 7-5, assume you need
to disable port 6 instead of port 5.
Because you will access lines within the script by line number, you should list the
script before you modify it.
>>script script1 list <Enter>
The script interface responds:
Script: script1
[ 1]
disable port 1.3
[ 2]
disable port 1.5
[ 3]
disable port 1.10
>>
To look at your choice of command options, type:
>>script script1 <Enter>
Accepted inputs:
1) add
6) insert
2) clear
7) list
3) copy_to
8) name
4) delete
9) replace
5) edit
10) run
>>script script1
To replace line 2 to reflect hub 6 rather than hub 5, type:
>>script script1 _edit 2 <Enter>
[ 2]
disable port 1.5
Change the 5 to a 6.
To verify the change, type:
7-6
8239 Setup and User’s Guide
Содержание 8239 Token-Ring Stackable Hub
Страница 1: ...8239 Token Ring Stackable Hub Setup and User s Guide GA27 4209 00...
Страница 2: ......
Страница 3: ...8239 Token Ring Stackable Hub Setup and User s Guide GA27 4209 00...
Страница 8: ...vi 8239 Setup and User s Guide...
Страница 10: ...viii 8239 Setup and User s Guide...
Страница 28: ...1 8 8239 Setup and User s Guide...
Страница 36: ...2 8 8239 Setup and User s Guide...
Страница 70: ...5 18 8239 Setup and User s Guide...
Страница 102: ...7 18 8239 Setup and User s Guide...
Страница 120: ...8 18 8239 Setup and User s Guide...
Страница 135: ......
Страница 139: ......
Страница 140: ...Printed in USA GA27 4209 00...
Страница 141: ...Spine information 8239 Token Ring Stackable Hub Setup and User s Guide...