Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 

Super basic script to check connection to 3 CP update servers

the_rock
MVP Diamond
MVP Diamond

Hey guys,

Below is super basic script to verify connection to below servers:

Lab:

[Expert@CP-GW:0]# ./check_cp_updates.sh
ERROR: Provide a valid server file via -f servers.txt
Usage:
./check_cp_updates.sh -f servers.txt [--path /some/path] [--connect-timeout 5] [--max-time 20] [--retries 1] [--parallel 1] [--out results.csv]

Examples:
./check_cp_updates.sh -f cp_update_servers.txt
./check_cp_updates.sh -f cp_update_servers.txt --path / --parallel 5
[Expert@CP-GW:0]# touch cp_update_

...;
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.




0 Kudos
1 Reply

Vincent_Bacher
MVP Silver
MVP Silver

Thank you for sharing this useful script! I'd like to propose an enhancement to support gateways that don't have direct internet connectivity but are configured with a proxy using something like this:


   get_proxy_config() { local proxy_line proxy_line="$(clish -c "show configuration proxy" 2>/dev/null | grep "^set proxy address" || true)" if [[ -n "$proxy_line" ]]; then local proxy_ip proxy_port proxy_ip="$(echo "$proxy_line" | awk '{print $4}')" proxy_port="$(echo "$proxy_line" | aw
...;
TO ACCESS CHECKMATES TOOLBOX it's simple and free


0 Kudos