>> script script1 list <Enter>
Script: script1
[ 1]
disable port 1.3
[ 2]
disable port 1.6
[ 3]
disable port 1.10
>>
Running Scripts
You can run a script:
¹
From the command line
¹
From a schedule
¹
From an RMON event
From the Command Line
To start a script from the command line, type:
script script1 run <Enter>
Note that:
¹
Output generated by the script is displayed at the terminal where the command
was entered.
¹
Output that prompts you to press any key to continue does not stop the script
running; the script continues to completion. The output may appear erratic
because of screen buffer overrun.
¹
Scripts can be chained; that is, one script can end with a command that runs
another script. Be careful that you do not create a loop that would cause you to
have to reset the 8239.
From a Schedule (8239 Model 1 only)
To run a script from a schedule, follow these steps.
Create the Script: Follow the steps in “Creating Scripts” on page 7-4 to create a
script. Make a note of the index number of your script, as it is used by the
scheduler.
Determine a Schedule Index: The scheduling function operates by keeping track
of a schedule index. Type:
>>display schedule all<Enter>
In this example, the script interface displays an empty schedule:
Schedule
Script
Days
Index
Mode
Time
Number
SMTWTFS
Dates
-----
-----
----
------
--------
-----
1
disabled
00:00
*****
2
disabled
00:00
*****
3
disabled
00:00
*****
.
.
.
19
disabled
00:00
*****
20
disabled
00:00
*****
In this example, an item is added to index 1.
Chapter 7. 8239 Device Management
7-7
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...