# Can't ping ESXi 5.5

**URL:** <https://forum.ansible.com/t/cant-ping-esxi-5-5/21573>\
**Category:** Ansible Project\
**Created:** [May 26, 2016, 4:27am UTC](https://forum.ansible.com/t/cant-ping-esxi-5-5/21573 "2016-05-26T04:27:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Huan\_He](https://avatars.discourse-cdn.com/v4/letter/h/13edae/32.png) [@Huan\_He](https://forum.ansible.com/u/Huan_He)\
**Post date:** [May 26, 2016, 4:27am UTC](https://forum.ansible.com/t/cant-ping-esxi-5-5/21573/1 "2016-05-26T04:27:35Z")

</div>

Hi,

I did the cmd “ansible esxi -u root -m ping -vvvv” and got “ImportError: No module named grp”. see full msg below. What I understand is that the ESXi 5.5 has python 2.6.8 and it may not have the full python standard pkgs from my googling. I wonder if there is any workarounds to make it working?

Thanks,  
Huan

Loaded callback minimal of type stdout, v2.0

\<20.200.30.151\> ESTABLISH SSH CONNECTION FOR USER: root

\<20.200.30.151\> SSH: EXEC ssh -C -vvv -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/huhe/.ansible/cp/ansible-ssh-%h-%p-%r -tt 20.200.30.151 ‘/bin/sh -c ‘"’“‘mkdir -p “`echo $HOME/.ansible/tmp/ansible-tmp-1464223343.0-27880096828872`” && echo “`echo $HOME/.ansible/tmp/ansible-tmp-1464223343.0-27880096828872`”’”’"‘’

\<20.200.30.151\> PUT /tmp/tmpJxH4sx TO //.ansible/tmp/ansible-tmp-1464223343.0-27880096828872/ping

\<20.200.30.151\> SSH: EXEC sftp -b - -C -vvv -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/huhe/.ansible/cp/ansible-ssh-%h-%p-%r ‘[20.200.30.151]’

\<20.200.30.151\> ESTABLISH SSH CONNECTION FOR USER: root

\<20.200.30.151\> SSH: EXEC ssh -C -vvv -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/huhe/.ansible/cp/ansible-ssh-%h-%p-%r -tt 20.200.30.151 ‘/bin/sh -c ‘"’“‘LANG=en\_US.UTF-8 LC\_ALL=en\_US.UTF-8 LC\_MESSAGES=en\_US.UTF-8 /usr/bin/python //.ansible/tmp/ansible-tmp-1464223343.0-27880096828872/ping; rm -rf “//.ansible/tmp/ansible-tmp-1464223343.0-27880096828872/” \> /dev/null 2\>&1’”’"‘’

20.200.30.151 | FAILED! =\> {

“changed”: false,

“failed”: true,

“invocation”: {

“module\_name”: “ping”

},

“module\_stderr”: “OpenSSH\_5.3p1, OpenSSL 1.0.1e-fips 11 Feb 2013\ndebug1: Reading configuration data /etc/ssh/ssh\_config\r\ndebug1: Applying options for \*\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O\_NONBLOCK\r\ndebug2: mux\_client\_hello\_exchange: master version 4\r\ndebug3: mux\_client\_request\_forwards: requesting forwardings: 0 local, 0 remote\r\ndebug3: mux\_client\_request\_session: entering\r\ndebug3: mux\_client\_request\_alive: entering\r\ndebug3: mux\_client\_request\_alive: done pid = 8846\r\ndebug3: mux\_client\_request\_session: session request sent\r\ndebug1: mux\_client\_request\_session: master session id: 2\r\ndebug1: mux\_client\_request\_session: master session id: 2\r\ndebug3: mux\_client\_read\_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\nShared connection to 20.200.30.151 closed.\r\n”,

“module\_stdout”: “Traceback (most recent call last):\r\n File "//.ansible/tmp/ansible-tmp-1464223343.0-27880096828872/ping", line 123, in \r\n import grp\r\nImportError: No module named grp\r\n”,

“msg”: “MODULE FAILURE”,

“parsed”: false

}

---

<div class="post-metadata">

**Author:** ![Kai\_Stian\_Olstad](https://avatars.discourse-cdn.com/v4/letter/k/e19adc/32.png) [@Kai\_Stian\_Olstad](https://forum.ansible.com/u/Kai_Stian_Olstad)\
**Post date:** [May 27, 2016, 8:38am UTC](https://forum.ansible.com/t/cant-ping-esxi-5-5/21573/2 "2016-05-27T08:38:50Z")

</div>

I'm using Ansible 2.1.0 and ESXi 5.5 and Ansible ping works for me.  
I also use Ansibles command and file modules without any problem.

My 5.5 har Python 2.7.8 and has the grp module in Python.

---

<div class="post-metadata">

**Author:** ![Mahi](https://avatars.discourse-cdn.com/v4/letter/m/d78d45/32.png) [@Mahi](https://forum.ansible.com/u/Mahi)\
**Post date:** [June 3, 2016, 3:45pm UTC](https://forum.ansible.com/t/cant-ping-esxi-5-5/21573/3 "2016-06-03T15:45:08Z")

</div>

Same issue for me also, Could any one help us.

Mahi.
