Problem using nxos_command module.

41 views
Skip to first unread message

Lisa Huang

unread,
Jul 1, 2016, 2:37:00 PM7/1/16
to Ansible Project
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" 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,
}

#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

Reply all
Reply to author
Forward
0 new messages