Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues with HP Procuve - 'SSH command execution not supported' #191

Closed
shailigum opened this issue Jan 22, 2018 · 1 comment
Closed

Issues with HP Procuve - 'SSH command execution not supported' #191

shailigum opened this issue Jan 22, 2018 · 1 comment

Comments

@shailigum
Copy link

Trying use this module with an ad-hoc command in AWX, using the following parameters as extra variables:

-ntc_show_command:
  connection: netmiko_ssh
  platform: 'hp_procurve'
  commands: 'show ver'

Getting the error 'SSH Command execution is not supported':

ansible 2.4.2.0
  config file = /etc/ansible/ansible.cfg
  configured module search path = [u'/usr/share/my_modules', u'/usr/share/ansible/modules', u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python2.7/site-packages/ansible
  executable location = /usr/bin/ansible
  python version = 2.7.5 (default, Aug  4 2017, 00:39:18) [GCC 4.8.5 20150623 (Red Hat 4.8.5-16)]
Using /etc/ansible/ansible.cfg as config file
SSH password: 
Parsed /tmp/awx_38_ONS8db/tmpIelv16 inventory source with script plugin
META: ran handlers
Using module file /usr/share/ansible/modules/ntc-ansible/library/ntc_show_command.py
<12.111.69.66> ESTABLISH SSH CONNECTION FOR USER: [email protected]
<12.111.69.66> SSH: EXEC sshpass -d13 ssh -o StrictHostKeyChecking=no -o Port=62001 -o [email protected] -o ConnectTimeout=10 12.111.69.66 '/bin/sh -c '"'"'echo ~ && sleep 0'"'"''
<12.111.69.66> (0, 'SSH command execution is not supported.\\n', 'Managed By Innflux LLC.\\nunauthorized Access Prohibited\\nPlease Call 1-800-563-8340 for Support\\n\\nConnection to 12.111.69.66 closed by remote host.\\r\\n')
2037992200_SW52001 | FAILED! => {
    "changed": false, 
    "module_stderr": "Managed By Innflux LLC.\\nunauthorized Access Prohibited\\nPlease Call 1-800-563-8340 for Support\\n\\nConnection to 12.111.69.66 closed by remote host.\\r\\nConnection to 12.111.69.66 closed.\\r\\n", 
    "module_stdout": "SSH command execution is not supported.\\n", 
    "msg": "MODULE FAILURE", 
    "rc": 0
}

Am I missing something? I would expect it to potentially fail at a later step, but I was under the impression the netmiko methodology for procurve switches functioned differently.

@jeffkala
Copy link
Collaborator

closing. Please retest now that #268 is deployed and 1.0.0 of this collection is in ansible-galaxy now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants