<?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: Unable to login into checkpoint gateway firewall through Ansible in General Topics</title>
    <link>https://community.checkpoint.com/t5/General-Topics/Unable-to-login-into-checkpoint-gateway-firewall-through-Ansible/m-p/59228#M11947</link>
    <description>default shell is bash only.</description>
    <pubDate>Tue, 30 Jul 2019 11:02:33 GMT</pubDate>
    <dc:creator>Tribhawan_Singh</dc:creator>
    <dc:date>2019-07-30T11:02:33Z</dc:date>
    <item>
      <title>Unable to login into checkpoint gateway firewall through Ansible</title>
      <link>https://community.checkpoint.com/t5/General-Topics/Unable-to-login-into-checkpoint-gateway-firewall-through-Ansible/m-p/59216#M11941</link>
      <description>&lt;DIV class=""&gt;&lt;DIV class="ii gt"&gt;&lt;DIV class="a3s aXjCH "&gt;&lt;DIV&gt;&lt;DIV&gt;Problem Description: I want to run healthcheck commands on a VSX based checkpoint R80.10 23500 model and 5500 normal checkpoint firewall gateway but i am unable to login into the firewall.&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;There are 2 simple playbooks i am mentioning here, 1 by using ansible roles (name = cp1.yml) and other is direct access (cp2.yml).&lt;/DIV&gt;&lt;DIV&gt;In LAB environment i am getting results for cp1.yml but cp2.yml is failing saying it needs ansible_network_os value. (Want to know what would be the ansible_network_os for checkpoint)&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;In production, none of these 2 are working and i am getting below error:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;When login through network_cli then below error is coming while executing both playbooks:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;-bash-4.2$ ansible-playbook cp2.yml&lt;BR /&gt;&lt;BR /&gt;PLAY [CheckPoint health Status] *************************************************************************************************************************************************************************************************************&lt;BR /&gt;&lt;BR /&gt;TASK [checkpoint healthcheck commands] ******************************************************************************************************************************************************************************************************&lt;BR /&gt;fatal: [firewall]: FAILED! =&amp;gt; &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;{"msg": "unable to set terminal parameters"}&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;****************************************************************&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;My Playbooks:&amp;nbsp; &amp;nbsp;(Playbook 1)&amp;nbsp; &amp;nbsp;cp1.yml&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;in /etc/ansible directory:&lt;/DIV&gt;&lt;DIV&gt;---&lt;BR /&gt;- name: CheckPoint health Status&lt;BR /&gt;&amp;nbsp; hosts: checkpoint&lt;BR /&gt;&amp;nbsp; gather_facts: no&lt;BR /&gt;&amp;nbsp; serial: 1&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; tasks:&lt;BR /&gt;&amp;nbsp; &amp;nbsp; - name: checkpoint healthcheck commands&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; import_role:&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; name: trib_role&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; tasks_from: showbash&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; vars:&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; cmdfile: show-bash.cmd&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;************&lt;/DIV&gt;&lt;DIV&gt;-bash-4.2$ cat show-bash.cmd&lt;BR /&gt;fw ver&lt;BR /&gt;fw tab -t connections -s&lt;BR /&gt;-bash-4.2$&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;*****************&lt;/DIV&gt;&lt;DIV&gt;-bash-4.2$ pwd&lt;BR /&gt;/etc/ansible/roles/trib_role/tasks&amp;nbsp; &amp;nbsp;&amp;lt;-------------Roles directory&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;******************&lt;/DIV&gt;&lt;DIV&gt;-bash-4.2$ cat showbash.yml&lt;BR /&gt;---&lt;BR /&gt;- name: SHOW CONFIG&lt;BR /&gt;&amp;nbsp; cli_command:&lt;BR /&gt;&amp;nbsp; &amp;nbsp; command: "{{ item }}"&lt;BR /&gt;&amp;nbsp; with_lines: cat {{ cmdfile }}&lt;BR /&gt;&amp;nbsp; register: result1&lt;BR /&gt;&lt;BR /&gt;- name: show output files&lt;BR /&gt;&amp;nbsp; debug:&lt;BR /&gt;&amp;nbsp; &amp;nbsp; var: result1&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;host file:&lt;/DIV&gt;&lt;DIV&gt;[checkpoint]&lt;BR /&gt;firewall &amp;lt;---------------------My production firewall name&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;-bash-4.2$ cd host_vars/&lt;BR /&gt;-bash-4.2$ cat firewall&lt;BR /&gt;---&lt;BR /&gt;ansible_host: x.x.x.x&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(My production firewall IP)&lt;BR /&gt;ansible_user: admin&lt;BR /&gt;ansible_ssh_pass: *********&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(admin password)&lt;BR /&gt;ansible_connection: network_cli&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;**********************************************************&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Playbook2&amp;nbsp; cp2.yml:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;---&lt;BR /&gt;- name: CheckPoint health Status&lt;BR /&gt;&amp;nbsp; hosts: checkpoint&lt;BR /&gt;&amp;nbsp; gather_facts: no&lt;BR /&gt;&amp;nbsp; serial: 1&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; tasks:&lt;BR /&gt;&amp;nbsp; &amp;nbsp; - name: checkpoint healthcheck commands&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; cli_command:&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; command:&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - 'fw ver'&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; register: result&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; - name: show output&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; debug:&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var: result.stdout_lines&lt;BR /&gt;-bash-4.2$&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Here also getting the same error:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;-bash-4.2$ ansible-playbook cp2.yml -vvvv&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;PLAYBOOK: cp2.yml ******************************&lt;/SPAN&gt;&lt;SPAN&gt;******************************&lt;/SPAN&gt;&lt;SPAN&gt;******************************&lt;/SPAN&gt;&lt;SPAN&gt;******************************&lt;/SPAN&gt;&lt;SPAN&gt;******************************&lt;/SPAN&gt;&lt;SPAN&gt;******************************&lt;/SPAN&gt;&lt;SPAN&gt;******************************&lt;/SPAN&gt;&lt;SPAN&gt;*********&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1 plays in cp2.yml&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;PLAY [CheckPoint health Status] ******************************&lt;/SPAN&gt;&lt;SPAN&gt;******************************&lt;/SPAN&gt;&lt;SPAN&gt;******************************&lt;/SPAN&gt;&lt;SPAN&gt;******************************&lt;/SPAN&gt;&lt;SPAN&gt;******************************&lt;/SPAN&gt;&lt;SPAN&gt;******************************&lt;/SPAN&gt;&lt;SPAN&gt;*************************&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;META: ran handlers&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;TASK [checkpoint healthcheck commands] ******************************&lt;/SPAN&gt;&lt;SPAN&gt;******************************&lt;/SPAN&gt;&lt;SPAN&gt;******************************&lt;/SPAN&gt;&lt;SPAN&gt;******************************&lt;/SPAN&gt;&lt;SPAN&gt;******************************&lt;/SPAN&gt;&lt;SPAN&gt;******************************&lt;/SPAN&gt;&lt;SPAN&gt;******************&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;task path: /etc/ansible/cp2.yml:8&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;x.x.x.x&amp;gt; attempting to start connection&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;x.x.x.x&amp;gt; using connection plugin network_cli&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;x.x.x.x&amp;gt; local domain socket does not exist, starting it&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;x.x.x.x&amp;gt; control socket path is /files0/home/singhtr/.ansible/&lt;/SPAN&gt;&lt;SPAN&gt;pc/22a0ffc2f6&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;x.x.x.x&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The full traceback is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Traceback (most recent call last):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "/usr/bin/ansible-connection", line 106, in start&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; self.connection._connect()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "/usr/lib/python2.7/site-&lt;/SPAN&gt;&lt;SPAN&gt;packages/ansible/plugins/&lt;/SPAN&gt;&lt;SPAN&gt;connection/network_cli.py", line 334, in _connect&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; self._terminal.on_open_shell()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "/usr/lib/python2.7/site-&lt;/SPAN&gt;&lt;SPAN&gt;packages/ansible/plugins/&lt;/SPAN&gt;&lt;SPAN&gt;terminal/ios.py", line 58, in on_open_shell&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; raise AnsibleConnectionFailure('&lt;/SPAN&gt;&lt;SPAN&gt;unable to set terminal parameters')&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;AnsibleConnectionFailure: &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;unable to set terminal parameters&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;fatal: [firewall]: FAILED! =&amp;gt; {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; "msg": "unable to set terminal parameters"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; to retry, use: --limit @/etc/ansible/cp2.retry&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;PLAY RECAP ******************************&lt;/SPAN&gt;&lt;SPAN&gt;******************************&lt;/SPAN&gt;&lt;SPAN&gt;******************************&lt;/SPAN&gt;&lt;SPAN&gt;******************************&lt;/SPAN&gt;&lt;SPAN&gt;******************************&lt;/SPAN&gt;&lt;SPAN&gt;******************************&lt;/SPAN&gt;&lt;SPAN&gt;******************************&lt;/SPAN&gt;&lt;SPAN&gt;****************&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;firewall&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;: ok=0 &amp;nbsp; &amp;nbsp;changed=0 &amp;nbsp; &amp;nbsp;unreachable=0 &amp;nbsp; &amp;nbsp;failed=1&lt;/SPAN&gt;&lt;DIV class="yj6qo ajU"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I hope&amp;nbsp;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/6593"&gt;@Ryan_Darst&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/7740"&gt;@Ash_Sidhu&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/7"&gt;@PhoneBoy&lt;/a&gt;&amp;nbsp;can help me here.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 30 Jul 2019 06:36:44 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/Unable-to-login-into-checkpoint-gateway-firewall-through-Ansible/m-p/59216#M11941</guid>
      <dc:creator>Tribhawan_Singh</dc:creator>
      <dc:date>2019-07-30T06:36:44Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to login into checkpoint gateway firewall through Ansible</title>
      <link>https://community.checkpoint.com/t5/General-Topics/Unable-to-login-into-checkpoint-gateway-firewall-through-Ansible/m-p/59224#M11944</link>
      <description>&lt;P&gt;It looks like you expect admin shell to be bash, or am I missing something? It is not bash, unless you change it manually.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2019 10:50:30 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/Unable-to-login-into-checkpoint-gateway-firewall-through-Ansible/m-p/59224#M11944</guid>
      <dc:creator>_Val_</dc:creator>
      <dc:date>2019-07-30T10:50:30Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to login into checkpoint gateway firewall through Ansible</title>
      <link>https://community.checkpoint.com/t5/General-Topics/Unable-to-login-into-checkpoint-gateway-firewall-through-Ansible/m-p/59228#M11947</link>
      <description>default shell is bash only.</description>
      <pubDate>Tue, 30 Jul 2019 11:02:33 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/Unable-to-login-into-checkpoint-gateway-firewall-through-Ansible/m-p/59228#M11947</guid>
      <dc:creator>Tribhawan_Singh</dc:creator>
      <dc:date>2019-07-30T11:02:33Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to login into checkpoint gateway firewall through Ansible</title>
      <link>https://community.checkpoint.com/t5/General-Topics/Unable-to-login-into-checkpoint-gateway-firewall-through-Ansible/m-p/59238#M11953</link>
      <description>&lt;P&gt;Things I would check since it looks like you are using the standard ansible commands.&lt;/P&gt;
&lt;P&gt;1.&amp;nbsp; Shell setup for the ansible user should be set to /bin/bash on the gateway.&lt;/P&gt;
&lt;P&gt;2. Make sure ansible has the path to where python is.&amp;nbsp; Gaia does not have it in a typical location.&amp;nbsp; Also this applies to R80.X and later, since in R77.X any python scripts have to be white-listed.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is an example of what I use in my demo R80.X systems in my /etc/ansible/hosts&lt;/P&gt;
&lt;P&gt;[Gaia]&lt;BR /&gt;10.2.0.221 ansible_python_interpreter="/opt/CPsuite-R80/fw1/Python/bin/python"&lt;/P&gt;
&lt;P&gt;[Gaia:vars]&lt;BR /&gt;ansible_connection=ssh&lt;BR /&gt;ansible_ssh_user=admin&lt;BR /&gt;ansible_ssh_pass=vpn123&lt;BR /&gt;ansible_python_interpreter=/opt/CPsuite-R80/fw1/Python/bin/python&lt;BR /&gt;scp_if_ssh = False&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2019 12:43:29 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/Unable-to-login-into-checkpoint-gateway-firewall-through-Ansible/m-p/59238#M11953</guid>
      <dc:creator>Ryan_Darst</dc:creator>
      <dc:date>2019-07-30T12:43:29Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to login into checkpoint gateway firewall through Ansible</title>
      <link>https://community.checkpoint.com/t5/General-Topics/Unable-to-login-into-checkpoint-gateway-firewall-through-Ansible/m-p/59242#M11954</link>
      <description>Strange, i have all these parameters set as you mentioned except hosts, after changing the host file as you mentioned, i am getting below error:&lt;BR /&gt;-bash-4.2$ ansible-playbook cp3.yml&lt;BR /&gt;&lt;BR /&gt;PLAY [CheckPoint health Status] ****&lt;BR /&gt;&lt;BR /&gt;TASK [checkpoint healthcheck commands] ******&lt;BR /&gt;fatal: [10.x.x.x]: FAILED! =&amp;gt; {"msg": "unable to elevate privilege to enable mode, at prompt [\nfirewall:TACP-0&amp;gt; ] with error: failed to elevate privilege to enable mode still at prompt [\nfirewall:TACP-0&amp;gt; ]"}&lt;BR /&gt;to retry, use: --limit @/etc/ansible/cp3.retry&lt;BR /&gt;--We have below configuration on the firewall:&lt;BR /&gt;add rba role TACP-0 domain-type System readwrite-features tacacs_enable&lt;BR /&gt;add rba role TACP-15 domain-type System all-features&lt;BR /&gt;&lt;BR /&gt;However default shell is bash.</description>
      <pubDate>Tue, 30 Jul 2019 13:14:25 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/Unable-to-login-into-checkpoint-gateway-firewall-through-Ansible/m-p/59242#M11954</guid>
      <dc:creator>Tribhawan_Singh</dc:creator>
      <dc:date>2019-07-30T13:14:25Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to login into checkpoint gateway firewall through Ansible</title>
      <link>https://community.checkpoint.com/t5/General-Topics/Unable-to-login-into-checkpoint-gateway-firewall-through-Ansible/m-p/59336#M11976</link>
      <description>&lt;P&gt;Can you show TACP0 settings? It does not seem to be full admin account, hence bash access might fail. Does TACP15 work?&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2019 11:10:47 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/Unable-to-login-into-checkpoint-gateway-firewall-through-Ansible/m-p/59336#M11976</guid>
      <dc:creator>_Val_</dc:creator>
      <dc:date>2019-07-31T11:10:47Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to login into checkpoint gateway firewall through Ansible</title>
      <link>https://community.checkpoint.com/t5/General-Topics/Unable-to-login-into-checkpoint-gateway-firewall-through-Ansible/m-p/59390#M11990</link>
      <description>&lt;P&gt;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/181"&gt;@_Val_&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/6593"&gt;@Ryan_Darst&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is completed now. I took a different approach to achieve this. I ran the shell script inside the firewall and through Ansible i invoked the shell script and displayed the result on my screen.&lt;/P&gt;&lt;P&gt;This also resolves my issue of how to take VSX specific output.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2019 20:28:47 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/Unable-to-login-into-checkpoint-gateway-firewall-through-Ansible/m-p/59390#M11990</guid>
      <dc:creator>Tribhawan_Singh</dc:creator>
      <dc:date>2019-07-31T20:28:47Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to login into checkpoint gateway firewall through Ansible</title>
      <link>https://community.checkpoint.com/t5/General-Topics/Unable-to-login-into-checkpoint-gateway-firewall-through-Ansible/m-p/59478#M12019</link>
      <description>&lt;P&gt;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/10433"&gt;@Tribhawan_Singh&lt;/a&gt;&amp;nbsp;good to know you have found the way. Care to share the details here, for outer community members?&lt;/P&gt;</description>
      <pubDate>Fri, 02 Aug 2019 10:38:36 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/Unable-to-login-into-checkpoint-gateway-firewall-through-Ansible/m-p/59478#M12019</guid>
      <dc:creator>_Val_</dc:creator>
      <dc:date>2019-08-02T10:38:36Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to login into checkpoint gateway firewall through Ansible</title>
      <link>https://community.checkpoint.com/t5/General-Topics/Unable-to-login-into-checkpoint-gateway-firewall-through-Ansible/m-p/59657#M12057</link>
      <description>&lt;P&gt;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/181"&gt;@_Val_&lt;/a&gt;&amp;nbsp; Sure, here is the sample shell and ansible script&lt;/P&gt;&lt;P&gt;Shell inside the firewall /home/admin directory:&lt;/P&gt;&lt;P&gt;For VS1:&lt;/P&gt;&lt;P&gt;[Expert@firewall:0]# cat cp1.sh&lt;BR /&gt;#!/bin/bash&lt;/P&gt;&lt;P&gt;source /etc/profile.d/vsenv.sh 2&amp;gt; /dev/null&lt;/P&gt;&lt;P&gt;# First arg passed to script is VSNAME&lt;BR /&gt;VSNAME=1&lt;BR /&gt;vsenv $VSNAME&lt;/P&gt;&lt;P&gt;cphaprob stat&lt;BR /&gt;fw tab -t connections -s&lt;BR /&gt;fwaccel stat | grep Status&lt;BR /&gt;sleep 2s&lt;BR /&gt;fwaccel stats -s&lt;BR /&gt;fw ctl multik stat&lt;BR /&gt;fw ctl pstat -u&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ansible Script:&lt;/P&gt;&lt;P&gt;- name: CheckPoint health Status&lt;BR /&gt;hosts: localhost&lt;BR /&gt;gather_facts: yes&lt;/P&gt;&lt;P&gt;tasks:&lt;BR /&gt;- name: checkpoint healthcheck commands on vs1&lt;BR /&gt;shell: "ssh admin@10.x.x.x ' sh /home/admin/cp1.sh'"&lt;BR /&gt;args:&lt;BR /&gt;executable: /bin/bash&lt;BR /&gt;register: check&lt;BR /&gt;delegate_to: localhost&lt;/P&gt;&lt;P&gt;- name: CheckPoint healthcheck output for vs1&lt;BR /&gt;debug:&lt;BR /&gt;var: check.stdout_lines&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Aug 2019 14:38:42 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/Unable-to-login-into-checkpoint-gateway-firewall-through-Ansible/m-p/59657#M12057</guid>
      <dc:creator>Tribhawan_Singh</dc:creator>
      <dc:date>2019-08-05T14:38:42Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to login into checkpoint gateway firewall through Ansible</title>
      <link>https://community.checkpoint.com/t5/General-Topics/Unable-to-login-into-checkpoint-gateway-firewall-through-Ansible/m-p/63485#M12881</link>
      <description>&lt;P&gt;Have you tried the healthcheck.sh script from sk121447?&lt;/P&gt;
&lt;P&gt;It can be run on gateway from the management server.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Sep 2019 20:32:37 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/Unable-to-login-into-checkpoint-gateway-firewall-through-Ansible/m-p/63485#M12881</guid>
      <dc:creator>Nathan_Davieau</dc:creator>
      <dc:date>2019-09-23T20:32:37Z</dc:date>
    </item>
  </channel>
</rss>

