Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 

Blank comments check

Danny
MVP Platinum
MVP Platinum

🛒 More SmartTasks
👍 Tested to be working with R81.20+

SmartTask to check if object or rule comments are left blank by SmartConsole admins.

Script code

Copy the code below into a new script 'Task_CheckComments' of your SmartConsole script repository.
test `cat $1|grep -iqE 'implied|automatic|\"last-modifier\":\"System\"'; echo $?` -eq 0 && echo '{"result":"success"}' || { test `(cat $1 | jq -r '.operations["added-objects"][]?.comments'; cat $1 | jq -r '.oper
...;
TO ACCESS CHECKMATES TOOLBOX it's simple and free

Disclaimer: Check Point does not provide maintenance services or technical or customer support for third party content provided on this Site, including in CheckMates Toolbox. See also our Third Party Software Disclaimer.




2 Replies

the_rock
MVP Platinum
MVP Platinum

Genius!

;
TO ACCESS CHECKMATES TOOLBOX it's simple and free


0 Kudos

the_rock
MVP Platinum
MVP Platinum

Just tested it today in the lab...great!

;
TO ACCESS CHECKMATES TOOLBOX it's simple and free


0 Kudos