Who rated this post

cancel
Showing results for 
Search instead for 
Did you mean: 

Name match check

Danny
Champion Champion
Champion

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

SmartTask to verify that the security management's object name matches the Gaia OS hostname (sk164055).

Script code

Copy the code below into a new script of your SmartConsole script repository.
test `awk 'NR==2' $FWDIR/database/myself_objects.C|tr -d ':( \t'` == $HOSTNAME && echo '{"result":"success"}' || echo '{"result":"failure","message":"Hostname ('$HOSTNAME') and object name ('$(awk "NR==2" $FWDIR/d
...;
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.




(1)
Who rated this post