User guide

set script
188 Chapter 2 Command Descriptions
set script
Device support This command is supported in PortServer TS Family devices only.
Purpose Use the "set script" command to:
Define a modem or login script.
Display entries in the script table.
Display all stanzas of a script.
Delete a script from the script table.
Required
permissions
The root user can configure, edit, or delete scripts. Normal users can
display script settings.
Syntax Configure or edit a modem or login script
set script [name=name]
[newname=new name]
s{1-24}=”stanza content”
The stanza_content value is enclosed in quotation marks.
Display entries in script table
set script range=range
Display stanzas of a script
set script name=name show=on
Delete a script
There are three ways to delete a script:
set script {rmscript={on|name} name=name|rmscript=name}
That is:
set script rmscript=on range=range
set script rmscript=on name=name
set script rmscript=name
Options name=name
The name of the script.
newname=new name
A new name for the script, identified either by its old name (on the name
option) or by an index number in the script table (on the range option).
s {1-24}=stanza content
The number of a script stanza (1 through 24) and the contents of the
stanza. The contents of the “stanza content” option must be enclosed in
quotation marks. The contents can include any of the commands listed in
the following table: