# Problem using nxos\_command module.

**URL:** <https://forum.ansible.com/t/problem-using-nxos-command-module/21908>\
**Category:** Ansible Project\
**Created:** [July 1, 2016, 6:36pm UTC](https://forum.ansible.com/t/problem-using-nxos-command-module/21908 "2016-07-01T18:36:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lisa\_Huang](https://avatars.discourse-cdn.com/v4/letter/l/f04885/32.png) [@Lisa\_Huang](https://forum.ansible.com/u/Lisa_Huang)\
**Post date:** [July 1, 2016, 6:36pm UTC](https://forum.ansible.com/t/problem-using-nxos-command-module/21908/1 "2016-07-01T18:36:59Z")

</div>

Hi,

I am having an issue to send nxos\_command. I am able to test “show version” using NX-API Developer Sanbox, but couldn’t access “[http://10.2.100.100:80/ins](http://10.2.100.100:80/ins)” in browser. Here are the error and configuration information.

> ansible -m nxos\_command -a “host=10.2.100.100 username=admin password=password commands=‘show version’ transport=nxapi use\_ssl=no” localhost --connection local  
> localhost | FAILED! =\> {  
> “changed”: false,  
> “failed”: true,  
> “msg”: “Connection failure: timed out”,  
> “status”: -1,  
> “url”: “[http://10.2.100.100:80/ins](http://10.2.100.100:80/ins)”  
> }

#show feature | inc nxapi  
nxapi 1 enabled

> ansible --version  
> ansible 2.1.0.0  
> config file = /etc/ansible/ansible.cfg  
> configured module search path = Default w/o overrides

Software  
BIOS: version 07.17  
NXOS: version 7.0(3)I2(2b)  
BIOS compile time: 09/10/2014  
NXOS image file is: bootflash:///nxos.7.0.3.I2.2b.bin  
NXOS compile time: 2/28/2016 21:00:00 [02/29/2016 05:21:45]

Hardware  
cisco Nexus9000 C9396PX Chassis

Thanks,  
Lisa
