<?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: CheckPoint DAIP VPN get Peer Names in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/CheckPoint-DAIP-VPN-get-Peer-Names/m-p/35628#M2192</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The command is ts_db_tool that should be issued from management side&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rs_db_tool&lt;BR /&gt;Description rs_db_tool is used to manage DAIP gateways in a DAIP database.&lt;BR /&gt;Syntax&lt;BR /&gt;# rs_db_tool [-d] &amp;lt;-operation &amp;lt;add &amp;lt;-name object_name&amp;gt; &amp;lt;-ip module_ip&amp;gt;&lt;BR /&gt;&amp;lt;-TTL Time-To-Live&amp;gt; &amp;gt;&lt;BR /&gt;# rs_db_tool [-d] &amp;lt;-operation fetch &amp;lt;-name object_name&amp;gt; &amp;gt;&lt;BR /&gt;# rs_db_tool [-d] &amp;lt;-operation &amp;lt;delete &amp;lt;-name object_name&amp;gt; &amp;gt;&lt;BR /&gt;# rs_db_tool [-d] &amp;lt;-operation &amp;lt;list&amp;gt; &amp;gt;&lt;BR /&gt;# rs_db_tool [-d] &amp;lt;-operation &amp;lt;sync&amp;gt; &amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Oct 2018 06:42:41 GMT</pubDate>
    <dc:creator>Marco_Valenti</dc:creator>
    <dc:date>2018-10-17T06:42:41Z</dc:date>
    <item>
      <title>CheckPoint DAIP VPN get Peer Names</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/CheckPoint-DAIP-VPN-get-Peer-Names/m-p/35627#M2191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to link the public IP address as shown in vpn tu to the object name, I know the objects are assigned an internal IP of 0.0.0.x, is this number consistent?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My main goal here is to analyse the VPN's public IP address and check when it changes as they are configured as DAIP on the 1430's, unfortunately the vpn sub commands don't seem to be able to give this link.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Oct 2018 16:14:50 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/CheckPoint-DAIP-VPN-get-Peer-Names/m-p/35627#M2191</guid>
      <dc:creator>DanielS</dc:creator>
      <dc:date>2018-10-16T16:14:50Z</dc:date>
    </item>
    <item>
      <title>Re: CheckPoint DAIP VPN get Peer Names</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/CheckPoint-DAIP-VPN-get-Peer-Names/m-p/35628#M2192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The command is ts_db_tool that should be issued from management side&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rs_db_tool&lt;BR /&gt;Description rs_db_tool is used to manage DAIP gateways in a DAIP database.&lt;BR /&gt;Syntax&lt;BR /&gt;# rs_db_tool [-d] &amp;lt;-operation &amp;lt;add &amp;lt;-name object_name&amp;gt; &amp;lt;-ip module_ip&amp;gt;&lt;BR /&gt;&amp;lt;-TTL Time-To-Live&amp;gt; &amp;gt;&lt;BR /&gt;# rs_db_tool [-d] &amp;lt;-operation fetch &amp;lt;-name object_name&amp;gt; &amp;gt;&lt;BR /&gt;# rs_db_tool [-d] &amp;lt;-operation &amp;lt;delete &amp;lt;-name object_name&amp;gt; &amp;gt;&lt;BR /&gt;# rs_db_tool [-d] &amp;lt;-operation &amp;lt;list&amp;gt; &amp;gt;&lt;BR /&gt;# rs_db_tool [-d] &amp;lt;-operation &amp;lt;sync&amp;gt; &amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2018 06:42:41 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/CheckPoint-DAIP-VPN-get-Peer-Names/m-p/35628#M2192</guid>
      <dc:creator>Marco_Valenti</dc:creator>
      <dc:date>2018-10-17T06:42:41Z</dc:date>
    </item>
    <item>
      <title>Re: CheckPoint DAIP VPN get Peer Names</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/CheckPoint-DAIP-VPN-get-Peer-Names/m-p/35629#M2193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marco,&lt;/P&gt;&lt;P&gt;Is there a similar command that can be executed from the gateway? and do would you happen to have example output of the rs_db_tool -operation list as I currently don't have cli access to the mdsm. And what does the -d flag do ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2018 09:04:21 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/CheckPoint-DAIP-VPN-get-Peer-Names/m-p/35629#M2193</guid>
      <dc:creator>DanielS</dc:creator>
      <dc:date>2018-10-17T09:04:21Z</dc:date>
    </item>
    <item>
      <title>Re: CheckPoint DAIP VPN get Peer Names</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/CheckPoint-DAIP-VPN-get-Peer-Names/m-p/35630#M2194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the flag -d is for debug I suppose , anyway I don t know about security gateway but I guess the database for the dynamic object is hosted on the management server.&lt;/P&gt;&lt;P&gt;Anyway from vpn tu command you should be able to see (if you have a valid sa) something like that&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peer (dynamic) xxx.xxx.xxx.xxx SAs:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2018 13:04:34 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/CheckPoint-DAIP-VPN-get-Peer-Names/m-p/35630#M2194</guid>
      <dc:creator>Marco_Valenti</dc:creator>
      <dc:date>2018-10-17T13:04:34Z</dc:date>
    </item>
    <item>
      <title>Re: CheckPoint DAIP VPN get Peer Names</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/CheckPoint-DAIP-VPN-get-Peer-Names/m-p/35631#M2195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes I'm aware the vpn tu/ vpn shell will give me output of IKE SA and the dynamic IP of the 1430, but the trick is linking that to an object name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and yes the -d is confirmed as debug flag found it on one of the documents.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2018 13:19:31 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/CheckPoint-DAIP-VPN-get-Peer-Names/m-p/35631#M2195</guid>
      <dc:creator>DanielS</dc:creator>
      <dc:date>2018-10-17T13:19:31Z</dc:date>
    </item>
    <item>
      <title>Re: CheckPoint DAIP VPN get Peer Names</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/CheckPoint-DAIP-VPN-get-Peer-Names/m-p/35632#M2196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marco,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I built up a setup in my lab until I can get access to their manager, but it gives the exact information that I needed.&lt;/P&gt;&lt;P&gt;[Expert@vpn-test-mgmt:0]# rs_db_tool -operation list&lt;/P&gt;&lt;P&gt;----------------------------------------&lt;BR /&gt; Daip modules database - entries list&lt;BR /&gt;----------------------------------------&lt;/P&gt;&lt;P&gt;Entry # | Object name | IP | TTL&lt;BR /&gt;-------- ------------------------------ ------------------ -------&lt;BR /&gt; 1 | Remote-GW-DAIP | 12.12.12.100 | 5198225&lt;BR /&gt;-------- ------------------------------ ------------------ -------&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;Marco Valenti wrote:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The command is ts_db_tool that should be issued from management side&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;rs_db_tool&lt;BR /&gt;Description rs_db_tool is used to manage DAIP gateways in a DAIP database.&lt;BR /&gt;Syntax&lt;BR /&gt;# rs_db_tool [-d] &amp;lt;-operation &amp;lt;add &amp;lt;-name object_name&amp;gt; &amp;lt;-ip module_ip&amp;gt;&lt;BR /&gt;&amp;lt;-TTL Time-To-Live&amp;gt; &amp;gt;&lt;BR /&gt;# rs_db_tool [-d] &amp;lt;-operation fetch &amp;lt;-name object_name&amp;gt; &amp;gt;&lt;BR /&gt;# rs_db_tool [-d] &amp;lt;-operation &amp;lt;delete &amp;lt;-name object_name&amp;gt; &amp;gt;&lt;BR /&gt;# rs_db_tool [-d] &amp;lt;-operation &amp;lt;list&amp;gt; &amp;gt;&lt;BR /&gt;# rs_db_tool [-d] &amp;lt;-operation &amp;lt;sync&amp;gt; &amp;gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2018 16:12:32 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/CheckPoint-DAIP-VPN-get-Peer-Names/m-p/35632#M2196</guid>
      <dc:creator>DanielS</dc:creator>
      <dc:date>2018-10-17T16:12:32Z</dc:date>
    </item>
    <item>
      <title>Re: CheckPoint DAIP VPN get Peer Names</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/CheckPoint-DAIP-VPN-get-Peer-Names/m-p/35633#M2197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So I've put together a script to capture the dynamic IP's if it is of interest to anyone, and the times that the ip address changes.&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;#!/bin/bash&lt;BR /&gt;today=$(date +%s)&lt;BR /&gt;cma="&amp;lt;CMA_NAME&amp;gt;"&lt;BR /&gt;outputFile="/home/admin/output.txt"&lt;BR /&gt;touch $outputFile&lt;/P&gt;&lt;P&gt;function checkIPs {&lt;BR /&gt; if [ -r /etc/profile.d/CP.sh ]; then&lt;BR /&gt; . /etc/profile.d/CP.sh&lt;BR /&gt; else&lt;BR /&gt; echo "Could not source /etc/profile.d/CP.sh"&lt;BR /&gt; exit&lt;BR /&gt; fi&lt;/P&gt;&lt;P&gt;mdsenv $cma&lt;/P&gt;&lt;P&gt;rs_db_tool -operation list 2&amp;gt;&amp;amp;1| tail -n +8 | head -n -2 | grep -v -- '------' | awk '/ / {print $3, $5, $7}' | \&lt;/P&gt;&lt;P&gt;#cleans up rs_db_tool output to what we need and pipes it to awk&lt;BR /&gt;while read fwName ipAddress age ; do \&lt;BR /&gt;#echo $fwName&lt;BR /&gt;#echo $ipAddress&lt;BR /&gt;#echo $age&lt;/P&gt;&lt;P&gt;if grep -Fwq "$fwName" "$outputFile"&lt;BR /&gt;#checks if the object names already exists in the output file&lt;BR /&gt;then&lt;BR /&gt;echo "Object Already Exists"&lt;BR /&gt;existingIPAddress=$(grep $fwName $outputFile | awk '{print $(NF-1)}')&lt;BR /&gt; #compares the devices previous ip address with the latest checked IP address, if different it records the new address and time.&lt;BR /&gt; if [ "$existingIPAddress" != "$ipAddress" ]&lt;BR /&gt; then&lt;BR /&gt; #echo "IP address does not matches"&lt;BR /&gt; sed -i "\,${fwName}, s,$, ${ipAddress}," $outputFile&lt;BR /&gt; sed -i "\,${fwName}, s,$, ${today}," $outputFile&lt;BR /&gt; fi&lt;/P&gt;&lt;P&gt;else&lt;BR /&gt;#echo "Object Does not exist"&lt;BR /&gt;echo "$fwName" "$ipAddress" "$today" &amp;gt;&amp;gt; "$outputFile"&lt;BR /&gt;fi&lt;/P&gt;&lt;P&gt;done&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;checkIPs&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Nov 2018 10:59:35 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/CheckPoint-DAIP-VPN-get-Peer-Names/m-p/35633#M2197</guid>
      <dc:creator>DanielS</dc:creator>
      <dc:date>2018-11-02T10:59:35Z</dc:date>
    </item>
    <item>
      <title>Re: CheckPoint DAIP VPN get Peer Names</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/CheckPoint-DAIP-VPN-get-Peer-Names/m-p/35634#M2198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;wonderful job thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Nov 2018 09:43:39 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/CheckPoint-DAIP-VPN-get-Peer-Names/m-p/35634#M2198</guid>
      <dc:creator>Marco_Valenti</dc:creator>
      <dc:date>2018-11-05T09:43:39Z</dc:date>
    </item>
  </channel>
</rss>

