************************************************************************************************
*
root@svnet-Inspiron-660:/etc/ansible# ansible netironmlx -m raw -a "show ver" -u svnet -k
SSH password:
netironmlx | SUCCESS | rc=0 >>
Protocol error, doesn't start with scp!
Shared connection to netironmlx closed.
***************************************************************************************************
root@svnet-Inspiron-660:/etc/ansible# ansible --version
ansible 2.6.3
config file = /etc/ansible/ansible.cfg
configured module search path = [u'/usr/share/my_modules']
ansible python module location = /usr/local/lib/python2.7/dist-packages/ansible
executable location = /usr/local/bin/ansible
python version = 2.7.15rc1 (default, Nov 12 2018, 14:31:15) [GCC 7.3.0]
**********Command:*************
root@svnet-Inspiron-660:/etc/ansible# ansible netironmlx -m raw -a "show ver" -u svnet -k
SSH password:
netironmlx | SUCCESS | rc=0 >>
Protocol error, doesn't start with scp!
Shared connection to netironmlx closed.
******Yes I can ssh the chassis *******
root@svnet-Inspiron-660:/etc/ansible# ssh svnet@netironmlx
Password:
SSH@netironmlx>ena
No password has been assigned yet...
********** list hosts *****************
root@svnet-Inspiron-660:/etc/ansible# ansible --list-host all
hosts (9):
cisco215
router60
cer225
cer224
cer223
cer222
cer221
cer220
netironmlx
*******running a raw command to a cisco switch works
root@svnet-Inspiron-660:/etc/ansible#
root@svnet-Inspiron-660:/etc/ansible# ansible cisco215 -m raw -a "show ver" -u svnet -k
SSH password:
cisco215 | SUCCESS | rc=0 >>
Cisco IOS Software, C3750E Software (C3750E-UNIVERSALK9-M), Version 15.2(4)E5, RELEASE SOFTWARE (fc2)
Copyright (c) 1986-2017 by Cisco Systems, Inc.
Compiled Mon 18-Sep-17 06:58 by prod_rel_team
ROM: Bootstrap program is C3750E boot loader
BOOTLDR: C3750E Boot Loader (C3750E-HBOOT-M) Version 12.2(35r)SE1, RELEASE SOFTWARE (fc2)
cisco215 uptime is 5 hours, 53 minutes
System returned to ROM by power-on
System image file is "flash:/c3750e-universalk9-mz.152-4.E5.bin"
Last reload reason: power-on
License Level: ipbase
License Type: Permanent
Next reload license Level: ipbase
cisco WS-C3750E-24TD (PowerPC405) processor (revision F0) with 262144K bytes of memory.
Processor board ID FDO1227V045
Last reset from power-on
1 Virtual Ethernet interface
1 FastEthernet interface
56 Gigabit Ethernet interfaces
4 Ten Gigabit Ethernet interfaces
The password-recovery mechanism is enabled.
512K bytes of flash-simulated non-volatile configuration memory.
Base ethernet MAC Address : 00:22:0D:30:38:00
Motherboard assembly number : 73-10313-11
Motherboard serial number : FDO122601VN
Model revision number : F0
Motherboard revision number : A0
Model number : WS-C3750E-24TD-S
Daughterboard assembly number : 800-28590-01
Daughterboard serial number : FDO122502UJ
System serial number : FDO1227V045
Top Assembly Part Number : 800-27546-03
Top Assembly Revision Number : A0
Version ID : V02
CLEI Code Number : COMSE00ARA
Hardware Board Revision Number : 0x01
Switch Ports Model SW Version SW Image
------ ----- ----- ---------- ----------
* 1 30 WS-C3750E-24TD 15.2(4)E5 C3750E-UNIVERSALK9-M
Configuration register is 0xF
Shared connection to cisco215 closed.