NAME
autorep - A rather naive and incomplete remake of the "sendevent" tool.
SYNOPSIS
sendevent [options]
OPTIONS
- -E event | --event event
-
Specify the event to be sent. See man page for list of possible events.
- -J jobname | --job jobname
-
Specify the target job of this event (if any). The job name must be fully qualified, i.e. no wildcards may be used.
- -T timespec | --time timespec
-
Specify the start time for the event, i.e. the event will be queued and send by the system when the specified time is reached. Timespec should look like: 'mm/dd/yyyy HH:MM:SS'.
- -s status | --status status
-
Specify the job status for the event CHANGE_STATUS. See man page for a list of possible states.
- --dsn dsn
-
Specify the AutoSys' database dsn to connect to. COMPATIBILITY NOTE: this option does not exist in CA's original autorep tool.
- -S server | --server server
-
Specify the AutoSys' database server to connect to. Either this option or the dsn option above must be given. Please note, that when specifying this server option, a Sybase database backend is assumed. COMPATIBILITY NOTE: this option does not exist in CA's original autorep tool.
- -U user | --user user
-
Specify the database user. With an out-of-the-box AutoSys installation, the default user should work. COMPATIBILITY NOTE: this option does not exist in CA's original autorep tool.
- -P password | --password password
-
Specify the database password. With an out-of-the-box AutoSys installation, the default password should work. COMPATIBILITY NOTE: this option does not exist in CA's original autorep tool.
- --help
-
Print a brief help message and exits.
- --man
-
Prints the manual page and exits.
DESCRIPTION
This program will send an event a la CA's original sendevent tool. Please be aware that this tool does not perform the security checks like AutoSys' original sendevent, i.e. it allows you to send events to virtually all jobs & boxes on an AutoSys instance - regardless if you have been allowed to or not by the job creator.
Quick overview of possible events in alphabetical order:
ALARM CHANGE_PRIORITY CHANGE_STATUS
CHECK_HEARTBEAT CHK_BOX_TERM CHK_MAX_ALARM
CHK_N_START CHK_RUN_WINDOW COMMENT
DELETEJOB EXTERNAL_DEPENDENCY FORCE_STARTJOB
HEARTBEAT JOB_OFF_HOLD JOB_OFF_ICE
JOB_ON_HOLD JOB_ON_ICE KILLJOB
QUE_RECOVERY REFRESH_BROKER RESEND_EXTERNAL_STATUS
SEND_SIGNAL SET_GLOBAL STARTJOB
STOP_DEMON
Quick overview of possible states for event CHANGE_STATUS in alphabetical order:
ACTIVATED FAILURE INACTIVE
ON_HOLD ON_ICE QUE_WAIT
REFRESH_DEPENDENCIES REFRESH_FILEWATCHER RESTART
RUNNING STARTING SUCCESS
TERMINATED
TODO
The following options are not yet implemented: -A Alarm, -P Event Priority, -G Global=Value, -C Comment, -U (Un-SENDEVENT), -K Signal(s)
AUTHOR
Sinisa Susnjar <sini@cpan.org>