cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
927
Views
0
Helpful
1
Replies

TES 6.0.3 JOB Triggers Events Action behaviours

weleow
Level 1
Level 1

please advice how we can showcase following scenario in a customer POC.

Scenario:

1. Customer Run  a JOB

2. JOB has following exit STATUS

a. JOB exit status

  i. EXIT 0

  ii. EXIT 1

b. Script OUTPUT

  i.  SELINUX=permissive

  ii. SELINUX=enforcing

  iii. SELINUX=disabled

3. if EXIT 0  do nothing

4. if EXIT 1  email to administrator

5. if SELINUX=permissive  --> email action

6. if SELINUX=enforcing --> run JOB-a

7. if SELINUX=disabled --> run JOB-b

1 Reply 1

rami_rgare
Level 1
Level 1

Hi,

If your job is setup to trak 0 as a normal completion and anythign else other than 0 will be considered as abnormal completion then you may use a job event to look for abnormal completion so to fire off an email action.

Im not sure if i understood your question regards the SELINUX selections but if you meant that the job output for your script will be one of those selections you've mentioned then if i  were you i would use a global variable to host the job output  and then use variable events to deal with the different outputs/values so to trigger the appropriate job/action.

Good luck

Review Cisco Networking for a $25 gift card