<?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 unknown command during SSH script in General Topics</title>
    <link>https://live.paloaltonetworks.com/t5/general-topics/unknown-command-during-ssh-script/m-p/544654#M111446</link>
    <description>&lt;P&gt;by testing a ssh skript i get an "unknown command" error from the CLI&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;user@host:~/&amp;gt; cat reset.sh 
ssh -t -t fw.domain.de &amp;lt;&amp;lt; EOF
set cli pager off
show user ip-user-mapping all type CP
debug user-id reset captive-portal ip-address 1.2.3.4 
quit
EOF

user@host:~/&amp;gt; ./reset.sh 
Last login: Fri Jun  2 23:05:16 2023 from 10.10.10.11
set cli pager off
show user ip-user-mapping all type CP
debug user-id reset captive-portal ip-address 1.2.3.4 
quit

user@fw(active)&amp;gt; set cli pager off
user@fw(active)&amp;gt; show user ip-user-mapping all type CP

IP          Vsys    From    User   IdleTimeout(s) MaxTimeout(s)
----------- ------- ------- ------ -------------- -------------
1.2.3.4     vsys1   CP      willi  9007           9007         
Total: 1 users
3.4 @fw(active)&amp;gt; debug user-id reset captive-portal ip-address 1.2. 
Unknown command: debug
user@fw(active)&amp;gt; quit
Connection to fw.domain.de closed.&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;i tried several ssh operational variants and of course the command&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;debug user-id reset captive-portal ip-address 1.2.3.4&lt;/LI-CODE&gt;
&lt;P&gt;is working well on a normal ssh CLI&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What goes wrong here? Why has the firewall such a weird CLI-Behaviour?&lt;/P&gt;
&lt;P&gt;regards&lt;/P&gt;
&lt;P&gt;Manfred Huels&lt;/P&gt;</description>
    <pubDate>Fri, 02 Jun 2023 21:30:12 GMT</pubDate>
    <dc:creator>mhuels</dc:creator>
    <dc:date>2023-06-02T21:30:12Z</dc:date>
    <item>
      <title>unknown command during SSH script</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/unknown-command-during-ssh-script/m-p/544654#M111446</link>
      <description>&lt;P&gt;by testing a ssh skript i get an "unknown command" error from the CLI&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;user@host:~/&amp;gt; cat reset.sh 
ssh -t -t fw.domain.de &amp;lt;&amp;lt; EOF
set cli pager off
show user ip-user-mapping all type CP
debug user-id reset captive-portal ip-address 1.2.3.4 
quit
EOF

user@host:~/&amp;gt; ./reset.sh 
Last login: Fri Jun  2 23:05:16 2023 from 10.10.10.11
set cli pager off
show user ip-user-mapping all type CP
debug user-id reset captive-portal ip-address 1.2.3.4 
quit

user@fw(active)&amp;gt; set cli pager off
user@fw(active)&amp;gt; show user ip-user-mapping all type CP

IP          Vsys    From    User   IdleTimeout(s) MaxTimeout(s)
----------- ------- ------- ------ -------------- -------------
1.2.3.4     vsys1   CP      willi  9007           9007         
Total: 1 users
3.4 @fw(active)&amp;gt; debug user-id reset captive-portal ip-address 1.2. 
Unknown command: debug
user@fw(active)&amp;gt; quit
Connection to fw.domain.de closed.&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;i tried several ssh operational variants and of course the command&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;debug user-id reset captive-portal ip-address 1.2.3.4&lt;/LI-CODE&gt;
&lt;P&gt;is working well on a normal ssh CLI&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What goes wrong here? Why has the firewall such a weird CLI-Behaviour?&lt;/P&gt;
&lt;P&gt;regards&lt;/P&gt;
&lt;P&gt;Manfred Huels&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jun 2023 21:30:12 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/unknown-command-during-ssh-script/m-p/544654#M111446</guid>
      <dc:creator>mhuels</dc:creator>
      <dc:date>2023-06-02T21:30:12Z</dc:date>
    </item>
    <item>
      <title>Re: unknown command during SSH script</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/unknown-command-during-ssh-script/m-p/544796#M111468</link>
      <description>&lt;P&gt;The error message "unknown command" is confusing! The cause was insufficient rights (read-only superuser) of the user. Thank you for the helpful hint, Bechtle support! &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jun 2023 12:56:07 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/unknown-command-during-ssh-script/m-p/544796#M111468</guid>
      <dc:creator>mhuels</dc:creator>
      <dc:date>2023-06-05T12:56:07Z</dc:date>
    </item>
  </channel>
</rss>

