DeployJob - setDefaultSNMPNotifier
In the default notification list, this command adds a new SNMP notification and also overrides an existing SNMP notification.
The argument recipient is the email receiver, and the statusType argument determines the statuses for which you want to issue a notification. The possible statuses each have a value as follows:
For statusType, add the values representing the statuses for which you want to issue notifications. For example, if you want to issue notifications when the job status is Failure or Cancel, then statusType=12.
Return type : DBKey
Command Input :
Name of the job folder containing the job.
Name of the Deploy Job.
Receiver of the SNMP Trap
Sum of all statuses for which you want to issue notification. For more detailed information, see the description above.
The following example specifies that an SNMP Trap gets sent to snmp.company.com on this jobs Failures or if it's canceled.
SNMP_NOTIFIER="snmp.company.com" DeployJob setDefaultSNMPNotifier /Applications/Apache/Deploy DeployApache $SNMP_NOTIFIER 12