Create a 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)
1 Reply

the_rock
Legend
Legend

AMAZING, AS ALWAYS! 👌 👌 👍 👍 💪 💪

;
TO ACCESS CHECKMATES TOOLBOX it's simple and free


0 Kudos