<?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 VSX 80.30 getting routes via API does not work. in Firewall and Security Management</title>
    <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/VSX-80-30-getting-routes-via-API-does-not-work/m-p/141780#M21923</link>
    <description>&lt;P&gt;I am trying to get routes from vsx via API run_script and magic printf "set virtual-system 2\nshow route\nexit\n" | clish syntax mentioned in other topic.&lt;/P&gt;&lt;P&gt;I have several identical 80.30 VSXes and only on one of them I get failed task without any message as below.&lt;/P&gt;&lt;P&gt;(...)&lt;BR /&gt;"color" : "black",&lt;BR /&gt;"statusCode" : "failed",&lt;BR /&gt;"statusDescription" : "",&lt;BR /&gt;"taskNotification" : "187591fd-8e15-4710-a1ab-a19724379301",&lt;BR /&gt;"gatewayId" : "bc0d8a03-2f7f-469d-87b5-78f2c8b820f6",&lt;BR /&gt;"gatewayName" : "",&lt;BR /&gt;"transactionId" : 903060984,&lt;BR /&gt;"responseMessage" : "",&lt;BR /&gt;"responseError" : "",&lt;BR /&gt;"meta-info" : {&lt;BR /&gt;"validation-state" : "ok",&lt;BR /&gt;"last-modify-time" : {&lt;BR /&gt;"posix" : 1645086279249,&lt;BR /&gt;"iso-8601" : "2022-02-17T08:24+0000"&lt;BR /&gt;(...)&lt;/P&gt;&lt;P&gt;"set virtual-system 2\nshow route\nexit\n" | clish -d 3&lt;/P&gt;&lt;P&gt;I get following output:&lt;/P&gt;&lt;P&gt;CliDoOp(cli_db_set): buffer:&lt;BR /&gt;volatile:clish:admin:30173 t&lt;BR /&gt;CliDoOp: nothing in context-&amp;gt;Respv&lt;/P&gt;&lt;P&gt;on working one I get:&lt;/P&gt;&lt;P&gt;CliDoOp(cli_db_set): buffer:&lt;BR /&gt;volatile:clish:admin:24441 t&lt;BR /&gt;CliDoOp: nothing in context-&amp;gt;Respv&lt;BR /&gt;CliDoOp(cli_db_iterate_c): buffer:&lt;BR /&gt;volatile:mrma:users:user:admin:24439:role&lt;/P&gt;&lt;P&gt;CliDoOp: nothing in context-&amp;gt;Respv&lt;BR /&gt;fw02:0&amp;gt; CliDoOp(cli_db_get): buffer:&lt;BR /&gt;xpand:auditlog&lt;BR /&gt;CliDoOp: context-&amp;gt;Respv:&lt;BR /&gt;p&lt;BR /&gt;CliDoOp(cli_db_get): buffer:&lt;BR /&gt;xpand:auditlog&lt;BR /&gt;CliDoOp: context-&amp;gt;Respv:&lt;BR /&gt;p&lt;BR /&gt;Action Handler&lt;BR /&gt;Context:&lt;BR /&gt;Name: virtual-system&lt;BR /&gt;Argv[] (Argc=3)&lt;BR /&gt;Argv[0]: set&lt;BR /&gt;Argv[1]: virtual-system&lt;BR /&gt;Argv[2]: 2&lt;BR /&gt;ValArr[] (ValCnt=1)&lt;BR /&gt;ValArr[0]: 2&lt;BR /&gt;TransactMode: false&lt;BR /&gt;CliDoOp(cli_db_get): buffer:&lt;BR /&gt;instance:2&lt;BR /&gt;CliDoOp: context-&amp;gt;Respv:&lt;BR /&gt;t&lt;BR /&gt;CliDoOp(cli_db_iterate_c): buffer:&lt;BR /&gt;mrma:users:user:admin:role&lt;BR /&gt;CliDoOp: context-&amp;gt;Respv:&lt;BR /&gt;adminRole&lt;BR /&gt;CliDoOp(cli_db_get): buffer:&lt;BR /&gt;mrma:roles:role:adminRole:vs_access:2&lt;/P&gt;&lt;P&gt;CliDoOp: nothing in context-&amp;gt;Respv&lt;BR /&gt;CliDoOp(cli_db_get): buffer:&lt;BR /&gt;mrma:roles:role:adminRole:vs_access:MRMA_ALL&lt;/P&gt;&lt;P&gt;CliDoOp: context-&amp;gt;Respv:&lt;BR /&gt;t&lt;BR /&gt;Context is set to vsid 2&lt;BR /&gt;Result:&lt;BR /&gt;Respv[] (Respc=0)&lt;BR /&gt;Nxtv[] (Nxtc=0)&lt;BR /&gt;CliDoOp(cli_db_iterate_c): buffer:&lt;BR /&gt;volatile:mrma:users:user:admin:24439:role&lt;/P&gt;&lt;P&gt;CliDoOp: nothing in context-&amp;gt;Respv&lt;BR /&gt;fw02:2&amp;gt; CliDoOp(cli_db_get): buffer:&lt;BR /&gt;xpand:auditlog&lt;BR /&gt;CliDoOp: context-&amp;gt;Respv:&lt;BR /&gt;p&lt;BR /&gt;CliDoOp(cli_db_get): buffer:&lt;BR /&gt;xpand:auditlog&lt;BR /&gt;CliDoOp: context-&amp;gt;Respv:&lt;BR /&gt;p&lt;BR /&gt;Action Handler&lt;BR /&gt;Context:&lt;BR /&gt;Name: route&lt;BR /&gt;Argv[] (Argc=2)&lt;BR /&gt;Argv[0]: show&lt;BR /&gt;Argv[1]: route&lt;BR /&gt;ValArr[] (ValCnt=0)&lt;BR /&gt;TransactMode: false&lt;BR /&gt;(...)&lt;/P&gt;&lt;P&gt;from /var/log/messeges for this non-working request I get:&lt;/P&gt;&lt;P&gt;Feb 17 13:21:47 2022 fw01 xpand[20701]: admin localhost t +volatile:clish:admin:4304 t&lt;BR /&gt;Feb 17 13:21:48 2022 fw01 clish[4304]: User admin logged in with ReadWrite permission&lt;BR /&gt;Feb 17 13:21:48 2022 fw01 clish[4304]: failed to get the terminal settings.&lt;BR /&gt;Feb 17 13:21:48 2022 fw01 xpand[20701]: admin localhost t -volatile:clish:admin:4304&lt;BR /&gt;Feb 17 13:21:48 2022 fw01 clish[4304]: User admin logged out due to an error from CLI shell&lt;/P&gt;&lt;P&gt;from working one:&lt;/P&gt;&lt;P&gt;Feb 17 13:24:19 2022 fw02 xpand[14575]: admin localhost t +volatile:clish:admin:27639 t&lt;BR /&gt;Feb 17 13:24:19 2022 fw02 clish[27639]: User admin logged in with ReadWrite permission&lt;BR /&gt;Feb 17 13:24:19 2022 fw02 clish[27639]: cmd in VS0 by admin: Start executing : set virtual-system ... (cmd md5: eecddd39de35863cd473a8baacf2850b)&lt;BR /&gt;Feb 17 13:24:19 2022 fw02 clish[27639]: cmd in VS0 by admin: Processing : set virtual-system 2 (cmd md5: eecddd39de35863cd473a8baacf2850b)&lt;BR /&gt;Feb 17 13:24:19 2022 fw02 clish[27639]: cmd in VS2 by admin: Start executing : show route (cmd md5: 32edc6d9ebbb96f075ea7f0477b6285c)&lt;BR /&gt;Feb 17 13:24:19 2022 fw02 clish[27639]: cmd in VS2 by admin: Processing : show route (cmd md5: 32edc6d9ebbb96f075ea7f0477b6285c)&lt;BR /&gt;Feb 17 13:24:19 2022 fw02 clish[27639]: cmd in VS2 by admin: Start executing : sleep 2 (cmd md5: 618ae4070692cea86ce76b1ecfbb784b)&lt;BR /&gt;Feb 17 13:24:19 2022 fw02 clish[27639]: cmd in VS2 by admin: Start executing : exit (cmd md5: f24f62eeb789199b9b2e467df3b1876b)&lt;BR /&gt;Feb 17 13:24:19 2022 fw02 xpand[14575]: admin localhost t -volatile:clish:admin:27639&lt;/P&gt;</description>
    <pubDate>Mon, 21 Feb 2022 07:33:28 GMT</pubDate>
    <dc:creator>czinu</dc:creator>
    <dc:date>2022-02-21T07:33:28Z</dc:date>
    <item>
      <title>VSX 80.30 getting routes via API does not work.</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/VSX-80-30-getting-routes-via-API-does-not-work/m-p/141780#M21923</link>
      <description>&lt;P&gt;I am trying to get routes from vsx via API run_script and magic printf "set virtual-system 2\nshow route\nexit\n" | clish syntax mentioned in other topic.&lt;/P&gt;&lt;P&gt;I have several identical 80.30 VSXes and only on one of them I get failed task without any message as below.&lt;/P&gt;&lt;P&gt;(...)&lt;BR /&gt;"color" : "black",&lt;BR /&gt;"statusCode" : "failed",&lt;BR /&gt;"statusDescription" : "",&lt;BR /&gt;"taskNotification" : "187591fd-8e15-4710-a1ab-a19724379301",&lt;BR /&gt;"gatewayId" : "bc0d8a03-2f7f-469d-87b5-78f2c8b820f6",&lt;BR /&gt;"gatewayName" : "",&lt;BR /&gt;"transactionId" : 903060984,&lt;BR /&gt;"responseMessage" : "",&lt;BR /&gt;"responseError" : "",&lt;BR /&gt;"meta-info" : {&lt;BR /&gt;"validation-state" : "ok",&lt;BR /&gt;"last-modify-time" : {&lt;BR /&gt;"posix" : 1645086279249,&lt;BR /&gt;"iso-8601" : "2022-02-17T08:24+0000"&lt;BR /&gt;(...)&lt;/P&gt;&lt;P&gt;"set virtual-system 2\nshow route\nexit\n" | clish -d 3&lt;/P&gt;&lt;P&gt;I get following output:&lt;/P&gt;&lt;P&gt;CliDoOp(cli_db_set): buffer:&lt;BR /&gt;volatile:clish:admin:30173 t&lt;BR /&gt;CliDoOp: nothing in context-&amp;gt;Respv&lt;/P&gt;&lt;P&gt;on working one I get:&lt;/P&gt;&lt;P&gt;CliDoOp(cli_db_set): buffer:&lt;BR /&gt;volatile:clish:admin:24441 t&lt;BR /&gt;CliDoOp: nothing in context-&amp;gt;Respv&lt;BR /&gt;CliDoOp(cli_db_iterate_c): buffer:&lt;BR /&gt;volatile:mrma:users:user:admin:24439:role&lt;/P&gt;&lt;P&gt;CliDoOp: nothing in context-&amp;gt;Respv&lt;BR /&gt;fw02:0&amp;gt; CliDoOp(cli_db_get): buffer:&lt;BR /&gt;xpand:auditlog&lt;BR /&gt;CliDoOp: context-&amp;gt;Respv:&lt;BR /&gt;p&lt;BR /&gt;CliDoOp(cli_db_get): buffer:&lt;BR /&gt;xpand:auditlog&lt;BR /&gt;CliDoOp: context-&amp;gt;Respv:&lt;BR /&gt;p&lt;BR /&gt;Action Handler&lt;BR /&gt;Context:&lt;BR /&gt;Name: virtual-system&lt;BR /&gt;Argv[] (Argc=3)&lt;BR /&gt;Argv[0]: set&lt;BR /&gt;Argv[1]: virtual-system&lt;BR /&gt;Argv[2]: 2&lt;BR /&gt;ValArr[] (ValCnt=1)&lt;BR /&gt;ValArr[0]: 2&lt;BR /&gt;TransactMode: false&lt;BR /&gt;CliDoOp(cli_db_get): buffer:&lt;BR /&gt;instance:2&lt;BR /&gt;CliDoOp: context-&amp;gt;Respv:&lt;BR /&gt;t&lt;BR /&gt;CliDoOp(cli_db_iterate_c): buffer:&lt;BR /&gt;mrma:users:user:admin:role&lt;BR /&gt;CliDoOp: context-&amp;gt;Respv:&lt;BR /&gt;adminRole&lt;BR /&gt;CliDoOp(cli_db_get): buffer:&lt;BR /&gt;mrma:roles:role:adminRole:vs_access:2&lt;/P&gt;&lt;P&gt;CliDoOp: nothing in context-&amp;gt;Respv&lt;BR /&gt;CliDoOp(cli_db_get): buffer:&lt;BR /&gt;mrma:roles:role:adminRole:vs_access:MRMA_ALL&lt;/P&gt;&lt;P&gt;CliDoOp: context-&amp;gt;Respv:&lt;BR /&gt;t&lt;BR /&gt;Context is set to vsid 2&lt;BR /&gt;Result:&lt;BR /&gt;Respv[] (Respc=0)&lt;BR /&gt;Nxtv[] (Nxtc=0)&lt;BR /&gt;CliDoOp(cli_db_iterate_c): buffer:&lt;BR /&gt;volatile:mrma:users:user:admin:24439:role&lt;/P&gt;&lt;P&gt;CliDoOp: nothing in context-&amp;gt;Respv&lt;BR /&gt;fw02:2&amp;gt; CliDoOp(cli_db_get): buffer:&lt;BR /&gt;xpand:auditlog&lt;BR /&gt;CliDoOp: context-&amp;gt;Respv:&lt;BR /&gt;p&lt;BR /&gt;CliDoOp(cli_db_get): buffer:&lt;BR /&gt;xpand:auditlog&lt;BR /&gt;CliDoOp: context-&amp;gt;Respv:&lt;BR /&gt;p&lt;BR /&gt;Action Handler&lt;BR /&gt;Context:&lt;BR /&gt;Name: route&lt;BR /&gt;Argv[] (Argc=2)&lt;BR /&gt;Argv[0]: show&lt;BR /&gt;Argv[1]: route&lt;BR /&gt;ValArr[] (ValCnt=0)&lt;BR /&gt;TransactMode: false&lt;BR /&gt;(...)&lt;/P&gt;&lt;P&gt;from /var/log/messeges for this non-working request I get:&lt;/P&gt;&lt;P&gt;Feb 17 13:21:47 2022 fw01 xpand[20701]: admin localhost t +volatile:clish:admin:4304 t&lt;BR /&gt;Feb 17 13:21:48 2022 fw01 clish[4304]: User admin logged in with ReadWrite permission&lt;BR /&gt;Feb 17 13:21:48 2022 fw01 clish[4304]: failed to get the terminal settings.&lt;BR /&gt;Feb 17 13:21:48 2022 fw01 xpand[20701]: admin localhost t -volatile:clish:admin:4304&lt;BR /&gt;Feb 17 13:21:48 2022 fw01 clish[4304]: User admin logged out due to an error from CLI shell&lt;/P&gt;&lt;P&gt;from working one:&lt;/P&gt;&lt;P&gt;Feb 17 13:24:19 2022 fw02 xpand[14575]: admin localhost t +volatile:clish:admin:27639 t&lt;BR /&gt;Feb 17 13:24:19 2022 fw02 clish[27639]: User admin logged in with ReadWrite permission&lt;BR /&gt;Feb 17 13:24:19 2022 fw02 clish[27639]: cmd in VS0 by admin: Start executing : set virtual-system ... (cmd md5: eecddd39de35863cd473a8baacf2850b)&lt;BR /&gt;Feb 17 13:24:19 2022 fw02 clish[27639]: cmd in VS0 by admin: Processing : set virtual-system 2 (cmd md5: eecddd39de35863cd473a8baacf2850b)&lt;BR /&gt;Feb 17 13:24:19 2022 fw02 clish[27639]: cmd in VS2 by admin: Start executing : show route (cmd md5: 32edc6d9ebbb96f075ea7f0477b6285c)&lt;BR /&gt;Feb 17 13:24:19 2022 fw02 clish[27639]: cmd in VS2 by admin: Processing : show route (cmd md5: 32edc6d9ebbb96f075ea7f0477b6285c)&lt;BR /&gt;Feb 17 13:24:19 2022 fw02 clish[27639]: cmd in VS2 by admin: Start executing : sleep 2 (cmd md5: 618ae4070692cea86ce76b1ecfbb784b)&lt;BR /&gt;Feb 17 13:24:19 2022 fw02 clish[27639]: cmd in VS2 by admin: Start executing : exit (cmd md5: f24f62eeb789199b9b2e467df3b1876b)&lt;BR /&gt;Feb 17 13:24:19 2022 fw02 xpand[14575]: admin localhost t -volatile:clish:admin:27639&lt;/P&gt;</description>
      <pubDate>Mon, 21 Feb 2022 07:33:28 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/VSX-80-30-getting-routes-via-API-does-not-work/m-p/141780#M21923</guid>
      <dc:creator>czinu</dc:creator>
      <dc:date>2022-02-21T07:33:28Z</dc:date>
    </item>
    <item>
      <title>Re: VSX 80.30 getting routes via API does not work.</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/VSX-80-30-getting-routes-via-API-does-not-work/m-p/142075#M21981</link>
      <description>&lt;P&gt;This is probably going to require a TAC case to investigate.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Feb 2022 15:20:35 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/VSX-80-30-getting-routes-via-API-does-not-work/m-p/142075#M21981</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2022-02-21T15:20:35Z</dc:date>
    </item>
    <item>
      <title>Re: VSX 80.30 getting routes via API does not work.</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/VSX-80-30-getting-routes-via-API-does-not-work/m-p/142132#M21991</link>
      <description>&lt;P&gt;We have already opened one, so I will let know what is the outcome, so everyone can benefit from it : )&lt;/P&gt;</description>
      <pubDate>Tue, 22 Feb 2022 07:10:12 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/VSX-80-30-getting-routes-via-API-does-not-work/m-p/142132#M21991</guid>
      <dc:creator>czinu</dc:creator>
      <dc:date>2022-02-22T07:10:12Z</dc:date>
    </item>
    <item>
      <title>Re: VSX 80.30 getting routes via API does not work.</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/VSX-80-30-getting-routes-via-API-does-not-work/m-p/142192#M21992</link>
      <description>&lt;P&gt;This may be a silly question, but does the problem box have a VS 2? I could see the commands failing if there is no VS 2 to switch to.&lt;/P&gt;
&lt;P&gt;If it has VS 2, does VS 2 have routes to show? A switch context or a bridge-mode firewall context wouldn't, so I could see the 'show route' command failing in that case.&lt;/P&gt;
&lt;P&gt;What happens if you run the command locally on the device?&lt;/P&gt;
&lt;P&gt;What about if you break up the contents of the printf?&lt;/P&gt;</description>
      <pubDate>Tue, 22 Feb 2022 16:00:46 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/VSX-80-30-getting-routes-via-API-does-not-work/m-p/142192#M21992</guid>
      <dc:creator>Bob_Zimmerman</dc:creator>
      <dc:date>2022-02-22T16:00:46Z</dc:date>
    </item>
    <item>
      <title>Re: VSX 80.30 getting routes via API does not work.</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/VSX-80-30-getting-routes-via-API-does-not-work/m-p/142482#M22043</link>
      <description>&lt;P&gt;Hello Bob,&lt;/P&gt;&lt;P&gt;first of all thanks for your interest. I have come across your excellent topic on API IRRITATIONS (ref. &lt;A href="https://www.cpug.org/forums/showthread.php/22833-API-Irritations" target="_blank"&gt;https://www.cpug.org/forums/showthread.php/22833-API-Irritations&lt;/A&gt;) which saved us some time already : )&lt;/P&gt;&lt;P&gt;Now back to the topic:&lt;/P&gt;&lt;P&gt;1. it has vs 2 : )&lt;/P&gt;&lt;P&gt;2. You cannot run this command locally, because it generates error that you cannot open another clish session from current one.&lt;/P&gt;&lt;P&gt;3. I am not sure what do you mean by the "break up". printf on its own prints commands, so that is fine. I have also tried different combinations with ; or &amp;amp;&amp;amp; between "clish -c cmd", but this prints routes from the vsx itself not VS, so I assume checkpoint executes those cmds in separate sessions, not one after another.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Feb 2022 12:46:10 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/VSX-80-30-getting-routes-via-API-does-not-work/m-p/142482#M22043</guid>
      <dc:creator>czinu</dc:creator>
      <dc:date>2022-02-25T12:46:10Z</dc:date>
    </item>
    <item>
      <title>Re: VSX 80.30 getting routes via API does not work.</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/VSX-80-30-getting-routes-via-API-does-not-work/m-p/142504#M22051</link>
      <description>&lt;P&gt;I occasionally forget some people log in to cpshell initially. Try setting your login shell to bash and running the command from there.&lt;/P&gt;
&lt;P&gt;By "break up", I mean pulling the commands out of the printf to run one at a time. Using the&amp;nbsp;&lt;SPAN&gt;printf "set virtual-system 2\nshow route\nexit\n" example, try running 'set virtual-system 2', then 'show route', then 'exit'. Do they all work exactly as the printf prints them?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Feb 2022 14:26:51 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/VSX-80-30-getting-routes-via-API-does-not-work/m-p/142504#M22051</guid>
      <dc:creator>Bob_Zimmerman</dc:creator>
      <dc:date>2022-02-25T14:26:51Z</dc:date>
    </item>
  </channel>
</rss>

