<?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: VPN details using API in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/VPN-details-using-API/m-p/9263#M750</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;on your show generic-object information on your VPN community, you will find the UID for your remote vpn network. this is names as SatelliteGateways:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the above example:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; background-color: #f6f6f6;"&gt;satelliteGateways:&lt;/SPAN&gt;&lt;BR style="color: #333333; background-color: #f6f6f6;" /&gt;&lt;SPAN style="color: #333333; background-color: #f6f6f6;"&gt;- "b3e7fa6d-f97d-4e44-ac16-da0295e7c86a"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can now run the same query again the API using this uid&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;mgmt_cli -r true show generic-object uid b3e7fa6d-f97d-4e44-ac16-da0295e7c86a&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now look for&amp;nbsp;&lt;STRONG&gt;manualEncdomain:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;manualEncdomain: "e1ac3862-885d-4b91-982a-2bd51d0286a9"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So now we need to run the query again the manualEncdomain:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;mgmt_cli -r true show generic-object uid &lt;SPAN&gt;e1ac3862-885d-4b91-982a-2bd51d0286a9&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;&lt;SPAN&gt;now look for the following information:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;This is your remote encryption domain information&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;&lt;SPAN&gt;ipaddr: "192.0.2.0"&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;&lt;SPAN&gt;netmask: "255.255.255.0"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;&lt;SPAN&gt;So to reverse the the steps&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;&lt;SPAN&gt;Check out how I solved to setup of a remote interoperative device via the API combined with Generic-object and GPEDIT as well as the API.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;&lt;SPAN&gt;&lt;A href="https://community.checkpoint.com/thread/7668-how-to-add-interoperative-device-via-api" target="_blank"&gt;https://community.checkpoint.com/thread/7668-how-to-add-interoperative-device-via-api&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;&lt;SPAN&gt;All the best&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;&lt;SPAN&gt;Kim&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Jun 2019 09:01:09 GMT</pubDate>
    <dc:creator>Kim_Moberg</dc:creator>
    <dc:date>2019-06-21T09:01:09Z</dc:date>
    <item>
      <title>VPN details using API</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/VPN-details-using-API/m-p/9260#M747</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to export as much info as possible about the VPNs configured in our Check Point environment. Using the command &lt;STRONG&gt;show-vpn-communities-meshed&amp;nbsp;&lt;/STRONG&gt;I get most of the info needed but I'm missing the following&amp;nbsp;attributes&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Phase 1 Lifetime&lt;/LI&gt;&lt;LI&gt;Phase 2 Lifetime&lt;/LI&gt;&lt;LI&gt;PFS enabled?&lt;/LI&gt;&lt;LI&gt;Phase 2 DH Group&lt;/LI&gt;&lt;LI&gt;Remote&amp;nbsp;encryption domain&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm able to get the local&amp;nbsp;encryption domain by querying the specific GW if the type is&amp;nbsp;'CpmiVsClusterNetobj' however if it's a simple gateway I'm not getting any VPN Encryption Domain in the response.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea of how I can get the missing attributes using the API?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Oct 2018 07:26:27 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/VPN-details-using-API/m-p/9260#M747</guid>
      <dc:creator>Rickard_K</dc:creator>
      <dc:date>2018-10-24T07:26:27Z</dc:date>
    </item>
    <item>
      <title>Re: VPN details using API</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/VPN-details-using-API/m-p/9261#M748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class=""&gt;Hello Richard&lt;/P&gt;&lt;P class=""&gt;I have asked similar question on how to set values vpn communities maybe that would help?&lt;/P&gt;&lt;P class=""&gt;&lt;A _jive_internal="true" href="https://community.checkpoint.com/thread/7701-missing-api-possibility-to-set-vpn-community-star-objects"&gt;https://community.checkpoint.com/thread/7701-missing-api-possibility-to-set-vpn-community-star-objects&lt;/A&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P class=""&gt;That API doesnt provide that infor so you will need yo get the information via generic object.&lt;/P&gt;&lt;P class=""&gt;BR&lt;/P&gt;&lt;P class=""&gt;Kim&lt;/P&gt;&lt;P class=""&gt;&lt;BR /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Oct 2018 07:57:27 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/VPN-details-using-API/m-p/9261#M748</guid>
      <dc:creator>Kim_Moberg</dc:creator>
      <dc:date>2018-10-24T07:57:27Z</dc:date>
    </item>
    <item>
      <title>Re: VPN details using API</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/VPN-details-using-API/m-p/9262#M749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Richard,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created a small script for you, so you can try it out, and then modify it for your purpose.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;#/bin/bash&lt;/P&gt;&lt;P&gt;#########################################################################&lt;BR /&gt;# script created by Kim Moberg, Erowind Energy A/S - October 24th 2018&lt;BR /&gt;#&lt;BR /&gt;# Use script for extract generic information on VPN communities..&lt;BR /&gt;# typically this is done by single lines commands, but as an illustration&lt;BR /&gt;# I have create the script how to.&lt;BR /&gt;# One have to enter credentials to Check Point API, and then enter a&lt;BR /&gt;# known VPN community name to extra the information.&lt;BR /&gt;# Please feel free to modify script.&lt;BR /&gt;########################################################################&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;########################################################################&lt;BR /&gt;# Login to the API server, and save session to file id.txt&lt;BR /&gt;# Remeber when running the script setting the username and password&lt;BR /&gt;# without saving the password in the script file.&lt;BR /&gt;#&lt;/P&gt;&lt;P&gt;#######################################################################&lt;/P&gt;&lt;P&gt;# ask for credentials from user&lt;BR /&gt;echo "Please enter your username and password"&lt;BR /&gt;read -p "Enter username and press [ENTER]: " USER&lt;BR /&gt;read -s -p "Enter password and press [ENTER]: " PASS&lt;BR /&gt;echo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mgmt_cli login user ${USER} password ${PASS} &amp;gt; id.txt&lt;/P&gt;&lt;P&gt;# in case of an error: print to screen the error message and abort&lt;BR /&gt;if [ $? -ne 0 ]; then&lt;BR /&gt; echo "Login command failed."&lt;BR /&gt; cat id.txt&lt;BR /&gt; exit 1&lt;BR /&gt;fi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;######################################################################&lt;BR /&gt;# Ask for user to enter a vpn community name&lt;BR /&gt;#&lt;BR /&gt;######################################################################&lt;BR /&gt;echo&lt;BR /&gt;echo "Please enter a VPN community name you want to show generic object from"&lt;BR /&gt;read -p "Enter VPN community name eg. WP-name [ENTER] : " VPNname&lt;/P&gt;&lt;P&gt;echo&lt;/P&gt;&lt;P&gt;echo "You entered the following VPN community name"&lt;BR /&gt;echo $VPNname&lt;BR /&gt;echo&lt;BR /&gt;echo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vpnuid=$(mgmt_cli -s id.txt show-generic-objects name $VPNname -f json | ${CPDIR}/jq/jq -r '.objects[] | select (.type | contains("vpn-community-star")) | .uid')&lt;/P&gt;&lt;P&gt;echo "VPN community uid found for the entered VPN community is: $vpnuid"&lt;BR /&gt;echo&lt;/P&gt;&lt;P&gt;echo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;echo "These are all the properties of the selected VPN community."&lt;BR /&gt;echo "you can read out all these properties for some kind of backup"&lt;BR /&gt;echo "one needs to write a script to read and set these information afterwards in another script or so."&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;mgmt_cli -s id.txt show generic-object uid $vpnuid&lt;/P&gt;&lt;P&gt;###########################################&lt;BR /&gt;# END OF FILE&lt;BR /&gt;###########################################&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will try to upload the script file. I think if you just paste it it might fail because of windows vs linux presenation of the code in the text above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Result of the above script will look like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;Please enter your username and password&lt;BR /&gt;Enter username and press [ENTER]: admin&lt;BR /&gt;Enter password and press [ENTER]:&lt;/P&gt;&lt;P&gt;Please enter a VPN community name you want to show generic object from&lt;BR /&gt;Enter VPN community name eg. WP-name [ENTER] : WP-Gettrup&lt;/P&gt;&lt;P&gt;You entered the following VPN community name&lt;BR /&gt;WP-Gettrup&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;VPN community uid found for the entered VPN community is: ef980fd9-8b9d-478d-8059-c7dd91154672&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;These are all the properties of the selected VPN community.&lt;BR /&gt;you can read out all these properties for some kind of backup&lt;BR /&gt;one needs to write a script to read and set these information afterwards in another script or so.&lt;BR /&gt;objectValidationState: null&lt;BR /&gt;color: "BLACK"&lt;BR /&gt;automaticRimSatellites: false&lt;BR /&gt;customerScriptSatellites: false&lt;BR /&gt;supportWireMode: false&lt;BR /&gt;customerScriptCenter: false&lt;BR /&gt;routeRetPackets: false&lt;BR /&gt;enableMep: false&lt;BR /&gt;participantsDomains: []&lt;BR /&gt;type: "intranet_community"&lt;BR /&gt;id: 16&lt;BR /&gt;satelliteGateways:&lt;BR /&gt;- "b3e7fa6d-f97d-4e44-ac16-da0295e7c86a"&lt;BR /&gt;disableNat: true&lt;BR /&gt;mepMechanism: "SRC"&lt;BR /&gt;allowAllEncryptedTraffic: false&lt;BR /&gt;topology: "STAR"&lt;BR /&gt;extGatewaysSharedSecret:&lt;BR /&gt;- objId: "3ec83db0-f51d-478a-8030-da2d5fe88172"&lt;BR /&gt; checkPointObjId: null&lt;BR /&gt; domainId: "41e821a0-3720-11e3-aa6e-0800200c9fde"&lt;BR /&gt; externalGateway: "b3e7fa6d-f97d-4e44-ac16-da0295e7c86a"&lt;BR /&gt; sharedSecret: ""&lt;BR /&gt; folderPath: "6dc0cdb9-08cd-47ae-bdff-11d9229a9c3e"&lt;BR /&gt; text: null&lt;BR /&gt; folder: "6dc0cdb9-08cd-47ae-bdff-11d9229a9c3e"&lt;BR /&gt; is_owned: false&lt;BR /&gt; ownedName: ""&lt;BR /&gt;participantGateways:&lt;BR /&gt;- "d147b287-cad8-4bbe-8abf-44090fe951f3"&lt;BR /&gt;disableNatOn: "BOTH"&lt;BR /&gt;permanentTunnelsDef: "NONE"&lt;BR /&gt;routeInjectionTrack: "LOG"&lt;BR /&gt;routeThroughCenter: "NONE"&lt;BR /&gt;selMechanism: "FIRST"&lt;BR /&gt;backupStickiness: false&lt;BR /&gt;meshedInCenter: false&lt;BR /&gt;permanentTunnelParticipantList: []&lt;BR /&gt;cryptography:&lt;BR /&gt; objId: "21e226f1-0543-4db8-b8ad-0d78f3f4a8ac"&lt;BR /&gt; checkPointObjId: null&lt;BR /&gt; domainId: "41e821a0-3720-11e3-aa6e-0800200c9fde"&lt;BR /&gt; cryptographyTypeSupport: "IKE_V2_ONLY"&lt;BR /&gt; cryptographyProfile: "CUSTOM_PROFILE"&lt;BR /&gt; folderPath: "6dc0cdb9-08cd-47ae-bdff-11d9229a9c3e"&lt;BR /&gt; text: null&lt;BR /&gt; folder: "6dc0cdb9-08cd-47ae-bdff-11d9229a9c3e"&lt;BR /&gt; is_owned: false&lt;BR /&gt; ownedName: ""&lt;BR /&gt;automaticRim: true&lt;BR /&gt;tunnelGranularity: "PER_SUBNET"&lt;BR /&gt;defaultMepRule:&lt;BR /&gt; objId: "b55da75b-cbdf-4090-81d8-28fff3d277fd"&lt;BR /&gt; checkPointObjId: null&lt;BR /&gt; domainId: "41e821a0-3720-11e3-aa6e-0800200c9fde"&lt;BR /&gt; icon: "Unknown"&lt;BR /&gt; source: []&lt;BR /&gt; color: "BLACK"&lt;BR /&gt; name: ""&lt;BR /&gt; priority3: []&lt;BR /&gt; priority2: []&lt;BR /&gt; priority1: []&lt;BR /&gt; displayName: ""&lt;BR /&gt; comments: ""&lt;BR /&gt; folderPath: "6dc0cdb9-08cd-47ae-bdff-11d9229a9c3e"&lt;BR /&gt; text: null&lt;BR /&gt; folder: "6dc0cdb9-08cd-47ae-bdff-11d9229a9c3e"&lt;BR /&gt; is_owned: false&lt;BR /&gt; ownedName: ""&lt;BR /&gt; tags: []&lt;BR /&gt; customFields: []&lt;BR /&gt; metaInfo: null&lt;BR /&gt; features: []&lt;BR /&gt; systemTags: []&lt;BR /&gt;vpnMepResolverNotification: "LOG"&lt;BR /&gt;addRoutedDomain: null&lt;BR /&gt;permanentTunnelList: []&lt;BR /&gt;allowAllEncryptedTrafficOn: "BOTH"&lt;BR /&gt;supportWireModeRouting: false&lt;BR /&gt;permanentTunnelUpTrack: "LOG"&lt;BR /&gt;permanentTunnelParticipants: "ALL_MEMBERS"&lt;BR /&gt;ikeP2:&lt;BR /&gt; objId: "07bb6dbd-005f-4cc1-865b-6ef443e485fd"&lt;BR /&gt; checkPointObjId: null&lt;BR /&gt; domainId: "41e821a0-3720-11e3-aa6e-0800200c9fde"&lt;BR /&gt; ikeP2UseSubnets: true&lt;BR /&gt; ikeP2UseRekeyKbytes: false&lt;BR /&gt; ikeP2RekeyTime: 28800&lt;BR /&gt; ikeP2UsePfs: false&lt;BR /&gt; ikeP2EncAlg: "AES_MINUS_256"&lt;BR /&gt; ikeP2RekeyKbytes: 50000&lt;BR /&gt; ikeP2HashAlg: "SHA1"&lt;BR /&gt; ikeP2Ipcomp: "NONE"&lt;BR /&gt; ikeP2PfsDhGrp: "97aeb629-9aea-11d5-bd16-0090272ccb30"&lt;BR /&gt; folderPath: "6dc0cdb9-08cd-47ae-bdff-11d9229a9c3e"&lt;BR /&gt; text: null&lt;BR /&gt; folder: "6dc0cdb9-08cd-47ae-bdff-11d9229a9c3e"&lt;BR /&gt; is_owned: false&lt;BR /&gt; ownedName: ""&lt;BR /&gt;ikeP1:&lt;BR /&gt; objId: "17d527c7-caa2-4d12-91e3-eee716b8ce7f"&lt;BR /&gt; checkPointObjId: null&lt;BR /&gt; domainId: "41e821a0-3720-11e3-aa6e-0800200c9fde"&lt;BR /&gt; ikeP1EncAlg: "AES_MINUS_256"&lt;BR /&gt; ikeP1UseAggressive: false&lt;BR /&gt; ikeP1UseSharedSecret: true&lt;BR /&gt; ikeP1UseSharedSecretForDaip: false&lt;BR /&gt; ikeP1UseAggressiveForDaip: false&lt;BR /&gt; ikeP1RekeyTime: 60&lt;BR /&gt; ikeP1DhGrp: "97aeb62e-9aea-11d5-bd16-0090272ccb30"&lt;BR /&gt; ikeP1HashAlg: "SHA1"&lt;BR /&gt; folderPath: "6dc0cdb9-08cd-47ae-bdff-11d9229a9c3e"&lt;BR /&gt; text: null&lt;BR /&gt; folder: "6dc0cdb9-08cd-47ae-bdff-11d9229a9c3e"&lt;BR /&gt; is_owned: false&lt;BR /&gt; ownedName: ""&lt;BR /&gt;manualMepRules: []&lt;BR /&gt;excludeSrv:&lt;BR /&gt;- "97aeb475-9aea-11d5-bd16-0090272ccb30"&lt;BR /&gt;- "07ec4cae-7c50-4b2e-81ed-d75643ab5694"&lt;BR /&gt;permanentTunnelDownTrack: "LOG"&lt;BR /&gt;uid: "ef980fd9-8b9d-478d-8059-c7dd91154672"&lt;BR /&gt;folder:&lt;BR /&gt; uid: "6dc0cdb9-08cd-47ae-bdff-11d9229a9c3e"&lt;BR /&gt; name: "Global Objects"&lt;BR /&gt;domain:&lt;BR /&gt; uid: "41e821a0-3720-11e3-aa6e-0800200c9fde"&lt;BR /&gt; name: "SMC User"&lt;BR /&gt;meta-info:&lt;BR /&gt; metaOwned: false&lt;BR /&gt; lockStateResponse: null&lt;BR /&gt; validationState: "OK"&lt;BR /&gt; deletable: true&lt;BR /&gt; renameable: true&lt;BR /&gt; newObject: false&lt;BR /&gt; lastModifytime: 1527840038038&lt;BR /&gt; lastModifier: "admin"&lt;BR /&gt; creationTime: 1527840022948&lt;BR /&gt; creator: "admin"&lt;BR /&gt;tags: []&lt;BR /&gt;name: "WP-Gettrup"&lt;BR /&gt;icon: "VPNCommunities/Star"&lt;BR /&gt;comments: "Auto generated Site2site VPN community between HQ and a Windpark ZXY "&lt;BR /&gt;display-name: "WP-Gettrup"&lt;BR /&gt;customFields: []&lt;BR /&gt;_original_type: "StarCommunity"&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Oct 2018 15:27:22 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/VPN-details-using-API/m-p/9262#M749</guid>
      <dc:creator>Kim_Moberg</dc:creator>
      <dc:date>2018-10-24T15:27:22Z</dc:date>
    </item>
    <item>
      <title>Re: VPN details using API</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/VPN-details-using-API/m-p/9263#M750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;on your show generic-object information on your VPN community, you will find the UID for your remote vpn network. this is names as SatelliteGateways:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the above example:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; background-color: #f6f6f6;"&gt;satelliteGateways:&lt;/SPAN&gt;&lt;BR style="color: #333333; background-color: #f6f6f6;" /&gt;&lt;SPAN style="color: #333333; background-color: #f6f6f6;"&gt;- "b3e7fa6d-f97d-4e44-ac16-da0295e7c86a"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can now run the same query again the API using this uid&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;mgmt_cli -r true show generic-object uid b3e7fa6d-f97d-4e44-ac16-da0295e7c86a&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now look for&amp;nbsp;&lt;STRONG&gt;manualEncdomain:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;manualEncdomain: "e1ac3862-885d-4b91-982a-2bd51d0286a9"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So now we need to run the query again the manualEncdomain:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;mgmt_cli -r true show generic-object uid &lt;SPAN&gt;e1ac3862-885d-4b91-982a-2bd51d0286a9&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;&lt;SPAN&gt;now look for the following information:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;This is your remote encryption domain information&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;&lt;SPAN&gt;ipaddr: "192.0.2.0"&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;&lt;SPAN&gt;netmask: "255.255.255.0"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;&lt;SPAN&gt;So to reverse the the steps&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;&lt;SPAN&gt;Check out how I solved to setup of a remote interoperative device via the API combined with Generic-object and GPEDIT as well as the API.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;&lt;SPAN&gt;&lt;A href="https://community.checkpoint.com/thread/7668-how-to-add-interoperative-device-via-api" target="_blank"&gt;https://community.checkpoint.com/thread/7668-how-to-add-interoperative-device-via-api&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;&lt;SPAN&gt;All the best&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;&lt;SPAN&gt;Kim&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Jun 2019 09:01:09 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/VPN-details-using-API/m-p/9263#M750</guid>
      <dc:creator>Kim_Moberg</dc:creator>
      <dc:date>2019-06-21T09:01:09Z</dc:date>
    </item>
    <item>
      <title>Re: VPN details using API</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/VPN-details-using-API/m-p/9264#M751</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN&gt;Thank you very much Kim! &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;My initial&amp;nbsp;plan was to use the Rest API. But I understand that the mgmt_cli tool works on Linux and i&lt;/SPAN&gt;&lt;SPAN&gt;t also looks like it's possible to get structured&amp;nbsp;data back in JSON so that's perfect!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Oct 2018 07:05:58 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/VPN-details-using-API/m-p/9264#M751</guid>
      <dc:creator>Rickard_K</dc:creator>
      <dc:date>2018-10-25T07:05:58Z</dc:date>
    </item>
    <item>
      <title>Re: VPN details using API</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/VPN-details-using-API/m-p/9265#M752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can also get some of this information from the standard Check Point SNMP MIB :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.checkpoint.com/legacyfs/online/checkpoint/72542_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But not everything ... and if you want to use the API to create VPN's then obviosly this is no good in that regard.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;John Tammaro&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Oct 2018 07:06:33 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/VPN-details-using-API/m-p/9265#M752</guid>
      <dc:creator>John_Tammaro1</dc:creator>
      <dc:date>2018-10-26T07:06:33Z</dc:date>
    </item>
  </channel>
</rss>

