beautypg.com

Setting the script data collection limit, Setting the script restart limit, Setting the script print output – Brocade Virtual ADX OpenScript Programmer’s Guide (Supporting ADX v03.1.00) User Manual

Page 26

background image

18

Brocade Virtual ADX OpenScript Programmer’s Guide

53-1003244-01

Creating and configuring script profiles

3

The milliseconds variable is new watchdog time that you want to set in milliseconds. The default
value is 200 (milliseconds). Values can be set from 50 to 1000.

Using the no parameter before the command returns the watchdog time to the default value.

Setting the script data collection limit

This parameter sets the data collection limit for the script in bytes. The script data collection limit is
set as shown.

VirtualADX(config)# script-profile sp1

VirtualADX(config-script-profile-sp1)# data-collection-limit 50000

Syntax: [no] data-collection-limit limit-size

The limit-size variable is the new limit for data collection that you want to set in bytes. The default
value is 100000 (100 Kbytes). 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 data collection limit to the default value.

Setting the script restart limit

This parameter sets the maximum number of times that the script will restart after running into
problems. Once the restart limit is reached, a syslog message is generated and the script is placed
into a “suspended” state. Once in the “suspended” state the script can only be run if it is unbinded
and rebinded or if the Brocade Virtual ADX is restarted.

The script restart limit is set as shown.

VirtualADX(config)# script-profile sp1

VirtualADX(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.

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.

VirtualADX(config)# script-profile sp1

VirtualADX(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.