Technical data

Table Of Contents
20 ServerIron ADX OpenScript Guide
53-1002445-01
Displaying script information
3
ServerIronADX(config-script-profile-sp1)# restart-limit 10
Syntax: [no] restart-limit <limit-number>
The <limit-number> variable is the maximum number of times that the script will restart after
running into problems. By default a script will restart every time it is halted. This value can be set to
any integer.
Using the no parameter before the command returns the restart limit to the default value.
Enabling script debugging
This parameter enables script debugging. With this option enabled, debug information is printed at
the console. Script debugging is enabled as shown.
ServerIronADX(config)# script-profile sp1
ServerIronADX(config-script-profile-sp1)# debug
Syntax: [no] debug
If you have enabled scripting, you can use the no parameter to disable script debugging.
Setting the script print output
This parameter directs output from a print command within a script to either the console, syslog or
disables it. The script can be set to print to the syslog as shown.
ServerIronADX(config)# script-profile sp1
ServerIronADX(config-script-profile-sp1)# print-output syslog
Syntax: [no] print-output { console | syslog | none }
The console parameter sets the script to print its output to the console.This is the default state.
The syslog parameter sets the script to print its output to the syslog.
The none parameter disables the script from printing.
Using the no parameter before the command returns the script print output to the default value
Displaying script information
The following sections describe the OpenScript information that can be displayed on a ServerIron
ADX.
Displaying Run-time information about one or all scripts
Run-time information about a script can be displayed as shown in the following: