- CheckMates
- :
- CheckMates Toolbox
- :
- SmartTasks
- :
- Re: SmartTask - Session description check
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Session description check
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content


🛒 More SmartTasks
👍 Tested to be working with R81.20+
SmartTask to verify that a session description is at least 20 characters.
Script code
Copy the code below into a new script of your SmartConsole script repository.
test `cat $1|jq -r .session.\"session-description\"|wc -c` -le 20 && echo '{"result":"failure","message":"Session description should be at least 20 characters"}' || echo '{"result":"success"}'
SmartTask
Create a new SmartTask in SmartConsole > Manage & Settings > SmartTasks and install policy to activate the new task.
Name | Trigger | Action | Enabled |
Task_SessionDescrLength | Before Publish | Run Script | ✔️ |
🛒 More SmartTasks
👍 Tested to be working with R81.20+
SmartTask to verify that a session description is at least 20 characters.
Script code
Copy the code below into a new script of your SmartConsole script repository.
test `cat $1|jq -r .session.\"session-description\"|wc -c` -le 20 && echo '{"result":"failure","message":"Session description should be at least 20 characters"}' || echo '{"result":"success"}'
SmartTask
Create a new SmartTask in SmartC
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Verified in R81.20 lab. for "Session Name"
It also works perfectly with session name..
Just it will be necessary to modify the script the way Danny wrote in my post:
"change "session-description" to "session-name" and adjust the message accordingly".
By doing this, you get the failure message when publishing with a session name is less of 20 characters, and you get the success message (see bellow) when publishing with a session name longer than 20 characters
Verified in R81.20 lab. for "Session Name"
It also works perfectly with session name..
Just it will be necessary to modify the script the way Danny wrote in my post:
"change "session-description" to "session-name" and adjust the message accordingly".
By doing this, you get the failure message when publishing with a session name is less of 20 characters, and you get the success message (see bellow) when publishing with a session name longer than 20 characters
;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

