🛒 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/database/myself_objects.C|tr -d ":( \t")') of the Security Management do not match!"}'
SmartTask
Create a new SmartTask in SmartConsole > Manage & Settings > SmartTasks and install policy to activate the new task.
Name |
Trigger |
Action |
Enabled |
Task_NameMatchCheck |
Before Publish |
Run Script |
✔️ |