![background image](http://html1.mh-extra.com/html/ibm/8239-token-ring-stackable-hub/8239-token-ring-stackable-hub_setup-and-user-manual_3405648090.webp)
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
Summary of Contents for 8239 Token-Ring Stackable Hub
Page 1: ...8239 Token Ring Stackable Hub Setup and User s Guide GA27 4209 00...
Page 2: ......
Page 3: ...8239 Token Ring Stackable Hub Setup and User s Guide GA27 4209 00...
Page 8: ...vi 8239 Setup and User s Guide...
Page 10: ...viii 8239 Setup and User s Guide...
Page 28: ...1 8 8239 Setup and User s Guide...
Page 36: ...2 8 8239 Setup and User s Guide...
Page 70: ...5 18 8239 Setup and User s Guide...
Page 102: ...7 18 8239 Setup and User s Guide...
Page 120: ...8 18 8239 Setup and User s Guide...
Page 135: ......
Page 139: ......
Page 140: ...Printed in USA GA27 4209 00...
Page 141: ...Spine information 8239 Token Ring Stackable Hub Setup and User s Guide...