- Products
- Learn
- Local User Groups
- Partners
- More
MVP 2026: Submissions
Are Now Open!
What's New in R82.10?
Watch NowOverlap in Security Validation
Help us to understand your needs better
CheckMates Go:
Maestro Madness
Hello, I'm attempting to script out enabling SNMP on around 100 gateways, and I'd like to automate as much as possible. I've previously used the R80 script repository for simple commands like a cluster failover or for a CSS fix for pre-R80.20 gateways. My question today is whether this is possible to utilize for enabling SNMP across multiple gateways? Basically my script would execute the following CLISH commands:
set snmp agent on
set snmp agent-version any
set snmp contact "Network Security"
set snmp community SecretPassword read-only
save config
However, when I try to enter this and run against a gateway it inevitably fails, which my guess is because the script repo functions at the expert level. I've also tried adding each line as clish -c "set snmp agent on", with no luck either. If there's an easier way to turn on SNMP for all of my gateways outside of this script function, I'm all ears. Thanks in advance!
I would see two different approaches.
First to write a script which calls cprid_util using those commands. Maybe in combination with mgmt_api getting a list of all checkpoint objects. There is an article somewhere here describing how to get this list.
I would prefer using cdt
with it you can send a bash script, in this case including the commands as
/bin/clish -s -c 'lock database override'
/bin/clish -s -c 'set snmp agent-version any'
and so on
then send the file using cdt and executing it afterwards.
To achieve this, you need two actions in the deployment plan
push_file and execute_script
Just refer to the Central Deployment Tool (CDT) v1.6 Administration Guide
CDT start page is sk111158
I used this way to create a user for restorepoint backup, setting group id, password and so on, that works.
Ansible is useful for such tasks as well
How to push a script via CDT with execution permission? aka chmod 770?
thanks
Alessio
If you like join us here: https://community.checkpoint.com/t5/Developers-API-CLI/SmartConsole-Scripts-Repository-use-cases-and...
Leaderboard
Epsum factorial non deposit quid pro quo hic escorol.
| User | Count |
|---|---|
| 19 | |
| 16 | |
| 7 | |
| 5 | |
| 5 | |
| 5 | |
| 4 | |
| 4 | |
| 4 | |
| 4 |
Tue 16 Dec 2025 @ 05:00 PM (CET)
Under the Hood: CloudGuard Network Security for Oracle Cloud - Config and Autoscaling!Thu 18 Dec 2025 @ 10:00 AM (CET)
Cloud Architect Series - Building a Hybrid Mesh Security Strategy across cloudsTue 16 Dec 2025 @ 05:00 PM (CET)
Under the Hood: CloudGuard Network Security for Oracle Cloud - Config and Autoscaling!Thu 18 Dec 2025 @ 10:00 AM (CET)
Cloud Architect Series - Building a Hybrid Mesh Security Strategy across cloudsAbout CheckMates
Learn Check Point
Advanced Learning
YOU DESERVE THE BEST SECURITY