Question: Identify the SPL query and macro for the following requirement. The maximum number of occurences of a field clientip need to be calculated and the
Identify the SPL query and macro for the following requirement.
The maximum number of occurences of a field "clientip" need to be calculated and the first results should be displayed.
These occurences are to be validated in a macro called testing.
If the count exceeds the user input assume it is display "PASS" else display "FAIL". This is to be stored in field "result"
Display only the fields clienip, result
SPL query top clientip 'testing
SPL query top clientip testing fields clientip, result
SPL query top clientip testing fields clientip, result
MACRO eval result ifcount tonumber $value$"PASS", "FAIL"
MACRO eval result ifcount $value$"PASS", "FAIL"
eval result ifcount tonumber $value$"PASS","FAIL"
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
