<?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 How to use run-script to get IPS information on a VS of VSX? in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-use-run-script-to-get-IPS-information-on-a-VS-of-VSX/m-p/68713#M4143</link>
    <description>&lt;P&gt;I am trying to use run-script to get IPS information on a VS of VSX. Say VS 3 on cli I could do following:&lt;/P&gt;&lt;P&gt;vsenv 3&lt;/P&gt;&lt;P&gt;ips stat&lt;/P&gt;&lt;P&gt;But if I put it in run-script as follow, api could not find vsenv command.&lt;/P&gt;&lt;P&gt;mgmt_cli -r true -d Mydomain -VSX run-script script-name test script "vsenv3; ips stat" targets.1 vsx1 -f json&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also tried to put the two commands in a script, test.sh:&lt;/P&gt;&lt;P&gt;#!/bin/bash&lt;/P&gt;&lt;P&gt;vsenv 3&lt;/P&gt;&lt;P&gt;ips stat&lt;/P&gt;&lt;P&gt;then run&lt;/P&gt;&lt;P&gt;mgmt_cli -r true -d Mydomain -VSX run-script script-name test script "/mydir/test.sh" targets.1 vsx1 -f json&lt;/P&gt;&lt;P&gt;it does not work either.&lt;/P&gt;&lt;P&gt;&amp;nbsp;Any idea how to get this to work or any way that can get IPS info on VS?&lt;/P&gt;</description>
    <pubDate>Wed, 27 Nov 2019 18:37:55 GMT</pubDate>
    <dc:creator>Jin_Zhou</dc:creator>
    <dc:date>2019-11-27T18:37:55Z</dc:date>
    <item>
      <title>How to use run-script to get IPS information on a VS of VSX?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-use-run-script-to-get-IPS-information-on-a-VS-of-VSX/m-p/68713#M4143</link>
      <description>&lt;P&gt;I am trying to use run-script to get IPS information on a VS of VSX. Say VS 3 on cli I could do following:&lt;/P&gt;&lt;P&gt;vsenv 3&lt;/P&gt;&lt;P&gt;ips stat&lt;/P&gt;&lt;P&gt;But if I put it in run-script as follow, api could not find vsenv command.&lt;/P&gt;&lt;P&gt;mgmt_cli -r true -d Mydomain -VSX run-script script-name test script "vsenv3; ips stat" targets.1 vsx1 -f json&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also tried to put the two commands in a script, test.sh:&lt;/P&gt;&lt;P&gt;#!/bin/bash&lt;/P&gt;&lt;P&gt;vsenv 3&lt;/P&gt;&lt;P&gt;ips stat&lt;/P&gt;&lt;P&gt;then run&lt;/P&gt;&lt;P&gt;mgmt_cli -r true -d Mydomain -VSX run-script script-name test script "/mydir/test.sh" targets.1 vsx1 -f json&lt;/P&gt;&lt;P&gt;it does not work either.&lt;/P&gt;&lt;P&gt;&amp;nbsp;Any idea how to get this to work or any way that can get IPS info on VS?&lt;/P&gt;</description>
      <pubDate>Wed, 27 Nov 2019 18:37:55 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-use-run-script-to-get-IPS-information-on-a-VS-of-VSX/m-p/68713#M4143</guid>
      <dc:creator>Jin_Zhou</dc:creator>
      <dc:date>2019-11-27T18:37:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to use run-script to get IPS information on a VS of VSX?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-use-run-script-to-get-IPS-information-on-a-VS-of-VSX/m-p/68718#M4144</link>
      <description>&lt;P&gt;You need to source the Check Point environment at first.&lt;/P&gt;
&lt;PRE&gt;if [[ -e /etc/profile.d/CP.sh ]]; then source /etc/profile.d/CP.sh; fi
if [[ -e /etc/profile.d/vsenv.sh ]]; then source /etc/profile.d/vsenv.sh; fi&lt;/PRE&gt;</description>
      <pubDate>Wed, 27 Nov 2019 19:26:00 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-use-run-script-to-get-IPS-information-on-a-VS-of-VSX/m-p/68718#M4144</guid>
      <dc:creator>Danny</dc:creator>
      <dc:date>2019-11-27T19:26:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to use run-script to get IPS information on a VS of VSX?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-use-run-script-to-get-IPS-information-on-a-VS-of-VSX/m-p/68725#M4145</link>
      <description />
      <pubDate>Wed, 27 Nov 2019 22:01:21 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-use-run-script-to-get-IPS-information-on-a-VS-of-VSX/m-p/68725#M4145</guid>
      <dc:creator>Jin_Zhou</dc:creator>
      <dc:date>2019-11-27T22:01:21Z</dc:date>
    </item>
  </channel>
</rss>

