cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1316
Views
0
Helpful
6
Replies

Multiple success string

Robinhuang
Level 1
Level 1

We are in the progress of moving from Heroix to Tidal. In Heroix, we used to have a sensor to check the output file for multiple success strings, i.e. "Successfully saved report" 25 times.

In Tidal, it can only scan for normal string, and use comma for "OR" logic and plus for "AND" as I known. I've tested If I input two identical strings using plus ("Successfully saved report" + "Successfully saved report"), Tidal will scan the whole output for the first and then do the same for the second. Hence, just one string can meet the success condition.

My question is instead of spliting the jobs in order to have one success string in each job output, is there a better way to achieve this? What's the best practice of this situation in Tidal?

6 Replies 6

Prakash Hemchand
Cisco Employee
Cisco Employee

It might be helpful to know what the job does.  First, I'd look at re-designing the job(s) themselves.  Why does the job wait for the 25th successful report? What does it do at that point?  Is there a better way to setup and run these jobs? 

My point here is how Tidal deal with multiple identical success string. The 25 reports was just an example. Let's take another example, say I have a batch to move two directories. I want to make sure both directories are moved, so I would expect to see " 1 dir(s) moved." two times. How should I set this up in Tidal? I definitely don't want to split this job into two, because it would be redundant.

Hi Robin,

 

This is a long time ago, but I was wondering if you have come to resolution with this issue. If not, then you can try to output an iterative variable, and it increments each time a task is completed and your last process will output "Successfully saved X reports". When you setup your scan for normal string, you want to explicitly state "Successfully saved X reports" where X is the number representing the desired runs.

 

BR,

Derrick Au

Prakash Hemchand
Cisco Employee
Cisco Employee

Personally, I would do that type of logic in the job script.

My understanding is that we cannot scan for multiple strings in the job output. From the discussion here, it seems like we can. Can someone confirm ?

Dinesh,

 

Scanning multiple strings work.

 

"Note: You can scan job output for multiple strings. Listing multiple text strings separated by commas means any one of the listed text strings can signal that the job completed normally or abnormally. Listing text strings separated by plus signs means all of the text strings must appear in the job output to determine if the job completed normally or not. If the text strings contain commas or pluses, enclose the text string in quotation marks. You cannot mix commas and pluses together as separators"

 

BR,

Derrick Au

Review Cisco Networking for a $25 gift card