Last active
August 29, 2015 13:56
-
-
Save kongou-ae/8820086 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- hosts: IOS | |
user: aimless | |
gather_facts: no | |
tasks: | |
- name: ter len 0 | |
raw: ter len 0 | |
- name: show ins status | |
raw: show int status |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ansible-playbook -i /home/aimless/ansible/hosts get-status.yml -k -vvv | |
SSH password: | |
PLAY [IOS] ******************************************************************** | |
GATHERING FACTS *************************************************************** | |
<xxx.aimless.jp> ESTABLISH CONNECTION FOR USER: aimless on PORT 22 TO xxx.aimless.jp | |
<xxx.aimless.jp> REMOTE_MODULE setup | |
<xxx.aimless.jp> EXEC /bin/sh -c 'mkdir -p $HOME/.ansible/tmp/ansible-tmp-1391593105.8-56083998858988 && chmod a+rx $HOME/.ansible/tmp/ansible-tmp-1391593105.8-56083998858988 && echo $HOME/.ansible/tmp/ansible-tmp-1391593105.8-56083998858988' | |
<xxx.aimless.jp> PUT /tmp/tmpbr9MvJ TO Line has invalid autocommand "/bin/sh -c 'mkdir -p $HOME/.ansible/tmp/ansible-tmp-1391593105.8-56083998858988 && chmod a+rx $HOME/.ansible/tmp/ansible-tmp-1391593105.8-56083998858988 && echo $HOME/.ansible/tmp/ansible-tmp-1391593105.8-56083998858988'"/setup | |
fatal: [xxx.aimless.jp] => failed to open a SFTP connection (SSH session not active) | |
TASK: [ter len 0] ************************************************************* | |
FATAL: no hosts matched or all hosts have already failed -- aborting | |
PLAY RECAP ******************************************************************** | |
to retry, use: --limit @/home/aimless/get-status.retry | |
xxx.aimless.jp : ok=0 changed=0 unreachable=1 failed=0 | |
[aimless@v157-7-135-191 ansible]$ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ansible-playbook -i /home/aimless/ansible/hosts get-status.yml -k -vvv | |
SSH password: | |
PLAY [IOS] ******************************************************************** | |
TASK: [ter len 0] ************************************************************* | |
<xxx.aimless.jp> ESTABLISH CONNECTION FOR USER: aimless on PORT 22 TO xxx.aimless.jp | |
<xxx.aimless.jp> EXEC ter len 0 | |
ok: [xxx.aimless.jp] => {"rc": 0, "stderr": "", "stdout": ""} | |
TASK: [show ins status] ******************************************************* | |
<xxx.aimless.jp> ESTABLISH CONNECTION FOR USER: aimless on PORT 22 TO xxx.aimless.jp | |
<xxx.aimless.jp> EXEC show int status | |
ok: [xxx.aimless.jp] => {"rc": 0, "stderr": "", "stdout": "Load for five secs: 5%/0%; one minute: 5%; five minutes: 5%\r\nTime source is NTP, 18:35:03.057 JST Wed Feb 5 2014\r\n\r\n\r\nPort Name Status Vlan Duplex Speed Type\r\nFa0 ### Modem ### connected 10 a-full a-100 10/100BaseTX\r\nFa1 ### To Gi0/1 ### connected 10 a-full a-100 10/100BaseTX\r\nFa2 ESXi-NIC-out connected trunk a-full a-100 10/100BaseTX\r\nFa3 forti50-internal connected trunk a-full a-100 10/100BaseTX\r\nFa4 notconnect 500 auto auto 10/100BaseTX\r\nFa5 ### Forti50 root # connected 3 a-full a-100 10/100BaseTX\r\nFa6 ESXi-NIC-in connected trunk a-full a-100 10/100BaseTX\r\nFa7 ### AP ### connected 500 a-full a-100 10/100BaseTX"} | |
PLAY RECAP ******************************************************************** | |
xxx.aimless.jp : ok=2 changed=0 unreachable=0 failed=0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment