Owner's Manual
92 | Smart Scripting CLI
www.dell.com | support.dell.com
To cancel the executing the script by an event, use the no script execute
triggered-by command.
Parameters
Defaults
The script runs in the background and as Singleton.
Command Modes
CONFIGURATION
Command
History
Usage
Information
The trigger events can be associated with two types of scripts — Singleton and
Concurrent.
For singleton scripts, the following operations are performed:
— When the script is running, all the event occurrences are notified by the
SIGUSR1 signal and a new instance of the script is not spawned.
— The script uses the
getcurrevt utility to retrieve the event name.
— The script uses the
getnextevt utility to retrieve the last but one event name.
— The script, which contains the script name, args, and username, can be
associated with more than one trigger event.
— When multiple users configure a singleton script, the scripts runs separately in
each user context.
For concurrent scripts, the following operations are performed:
— A new instance of the script is spawned at every occurrence of the event.
— The maximum instances are restricted to 10.
— Only one trigger can be associated with the script, which contains the script
name, args, and username.
script-name Enter the name of the script to be scheduled for execution.
concurrent Enter the keyword concurrent to execute the concurrent instances
of the script on event occurrence.
triggered-by
event-name
Enter the keywords triggered-by followed by the event name to
associate a script to a defined trigger event.
args arguments Enter the keyword args followed by the arguments to be scripted.
The maximum length is 64 characters. The arguments can be any
number of words within quotes (“) and separated by a space.
username username Enter the username to be used when the script executes. The
maximum length is 16 characters. The default username is the user
configuring the CLI.
Version 9.5(0.1) Introduced on the Z9500.
Version 9.3(0.0) Introduced on the S6000.
Version 9.2(0.0) Introduced on the S4810, S4820T, Z9000, and MXL Switch.