Operation Manual
System Services Commands
System Services Commands
4 – 29
See Also
● clear prompt on page 4-20
● set system name on page 4-36
● show config on page 21-499
set run
Sets the timing for scripts to automatically run on the MX.
Syntax
set run scriptname on [interval intervalspec | startup | shutdown]
Defaults
None
Access
Enabled
History
Added in MSS 7.1
Usage
Use this command to run scripts in *.txt format that automatically run the specified
commands configured in the file.
To execute a script at a specified minute of a specified hour or every hour, in a specified day or
every week-day or everyday, use the interval specification format day, hour, and minute. For
example, to run a script every weekday at 18:15, use the format Wk1815. To run every Monday at 5
minutes after the hour,use the format, MoAll05. To run a script everyday at midnight, use the
format Any0000.
To run a script every X hours, use the format dayHrint/HHh. To run a script every X minutes, use
the format DayHrint/MMm. For example, to run a script every week day between 3-6 a.m.
excluding 6: a.m., use the format Wk03-06/01h.
Examples
To run a script called runmem every Saturday at 5 p.m. use the following command:
MX# set run runmem sa1800
success: change accepted.
set system console-timeout
Sets the timeout for the CLI console.
Syntax
set system console-timeout console-timeout
Defaults
None
scriptname Name of the script in *.txt format
intervalspec Specified intervals for the script to run on the MX.
Day - su|mo|tu|we|th|fr|sa|any
Hrnum - 00-23
Hrint - Hrnum1 - Hrnum2 where Hrnum2 is larger than
Hrnum1.
Hour - All | Hrnum
Min - 00-59
startup Execute the script when the MX booted up.
shutdown Execute the script when the MX is shutdown.
console-timeout Time, in seconds, with a range of 0 (off) to 86400.