1 of 1 people found this helpful
what will your rule be ? if the output of the script is not 'null' it should fail the check ? you many want to have it echo something like "no finding" so you know you have a good result.
anyway - you can do a couple things:
1 - convert the script to use nexec of the relevant parts, save this on the file server somewhere and use a 'central execution' like nsh -c //fileserver/yourscript.nsh ??TARGET.HOST??
2 - have this script work w/ scriptutil and do it in a similar way - central execution, etc
3 - write a nsh wrapper that extracts the bit above, copies it to the target and nexec's it.
in all cases you can probably use the 'single line as record' grammar. but the grammar really depends on the output and the rule you want to create.