Setting the script memory limit, Setting the script memory high-water mark, Setting the script timeout – Brocade Virtual ADX OpenScript Programmer’s Guide (Supporting ADX v03.1.00) User Manual
Page 25

Brocade Virtual ADX OpenScript Programmer’s Guide
17
53-1003244-01
Creating and configuring script profiles
3
The profile-name variable is the name of the profile that you want to create or update.
Using the no parameter before the command deletes the named profile.
NOTE
When an script profile is changed, the updated profile parameters are automatically applied to the
virtual ports that it is bound to.
Setting the script memory limit
This parameter sets the memory limit for any script that is bound to it. When the memory limit is
decreased, the user is prompted to confirm the reduction. The script memory limit is set as shown.
VirtualADX(config)# script-profile sp1
VirtualADX(config-script-profile-sp1)# memory-limit 200000
Are you sure you want to decrease the memory limit from 1048576 to 200000? (yes or
no): yes
Syntax: [no] memory-limit size
The size variable is new limit that you want to set. The default value is 1M bytes (1,048,576 bytes).
While you can set this variable to any value that fits within the size of the system memory, all
memory limits set for scripts are subject to their impact on system performance
Using the no parameter before the command returns the memory limit to the default value.
Setting the script memory high-water mark
This parameter sets the script memory high-water mark percentage. When the memory high-water
mark percentage is reached, a syslog message is generated and the script resets the new
connections. The script memory high-water mark percentage is set as shown.
VirtualADX(config)# script-profile sp1
VirtualADX(config-script-profile-sp1)# memory-high-watermark 80
Are you sure you want to dercres the memory limit from 1048576 to 200000? (yes or
no): yes
Syntax: [no] memory-high-watermark percentage
The percentage variable is the new high-water mark percentage that you want to set. The default
value is 90 (%).
Using the no parameter before the command returns the memory high-water mark to the default
value.
Setting the script timeout
Use this command to set the time in milliseconds that you want to allow a script for its first run
before restarting it. The following example sets the watchdog time to 1000 milliseconds for the
“sp1” script.
VirtualADX(config)# script-profile sp1
VirtualADX(config-script-profile-sp1)# timeout-ms 1000
Syntax: [no] timeout-ms milliseconds