<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Super basic script to check connection to 3 CP update servers in Scripts</title>
    <link>https://community.checkpoint.com/t5/Scripts/Super-basic-script-to-check-connection-to-3-CP-update-servers/m-p/270077#M1470</link>
    <description>&lt;P&gt;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:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;get_proxy_config() {
  local proxy_line
  proxy_line="$(clish -c "show configuration proxy" 2&amp;gt;/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" | awk '{print $6}')"
    
    if [[ -n "$proxy_ip" &amp;amp;&amp;amp; -n "$proxy_port" ]]; then
      echo "${proxy_ip}:${proxy_port}"
      return 0
    fi
  fi
  return 1
}

PROXY_CONFIG="$(get_proxy_config || true)"
export PROXY_CONFIG&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;And then something like this&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;if [[ -n "${PROXY_CONFIG}" ]]; then
  curl_opts+=(--proxy "${PROXY_CONFIG}")
fi&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 09 Feb 2026 15:22:27 GMT</pubDate>
    <dc:creator>Vincent_Bacher</dc:creator>
    <dc:date>2026-02-09T15:22:27Z</dc:date>
    <item>
      <title>Super basic script to check connection to 3 CP update servers</title>
      <link>https://community.checkpoint.com/t5/Scripts/Super-basic-script-to-check-connection-to-3-CP-update-servers/m-p/270071#M1468</link>
      <description>7</description>
      <pubDate>Fri, 24 Jul 2026 14:40:02 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Scripts/Super-basic-script-to-check-connection-to-3-CP-update-servers/m-p/270071#M1468</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2026-07-24T14:40:02Z</dc:date>
    </item>
    <item>
      <title>Re: Super basic script to check connection to 3 CP update servers</title>
      <link>https://community.checkpoint.com/t5/Scripts/Super-basic-script-to-check-connection-to-3-CP-update-servers/m-p/270077#M1470</link>
      <description>&lt;P&gt;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:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;get_proxy_config() {
  local proxy_line
  proxy_line="$(clish -c "show configuration proxy" 2&amp;gt;/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" | awk '{print $6}')"
    
    if [[ -n "$proxy_ip" &amp;amp;&amp;amp; -n "$proxy_port" ]]; then
      echo "${proxy_ip}:${proxy_port}"
      return 0
    fi
  fi
  return 1
}

PROXY_CONFIG="$(get_proxy_config || true)"
export PROXY_CONFIG&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;And then something like this&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;if [[ -n "${PROXY_CONFIG}" ]]; then
  curl_opts+=(--proxy "${PROXY_CONFIG}")
fi&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Feb 2026 15:22:27 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Scripts/Super-basic-script-to-check-connection-to-3-CP-update-servers/m-p/270077#M1470</guid>
      <dc:creator>Vincent_Bacher</dc:creator>
      <dc:date>2026-02-09T15:22:27Z</dc:date>
    </item>
  </channel>
</rss>

