Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

jlk@ubuntu:/etc/ansible$ ssh ansible@vsrx1 -p 830 -s netconf
Password:
<!-- No zombies were killed during the creation of this user interface -->
<!-- user ansible, class j-super-user -->
<hello>
  <capabilities>
    <capability>urn:ietf:params:xml:ns:netconf:base:1.0</capability>
    <capability>urn:ietf:params:xml:ns:netconf:capability:candidate:1.0</capability>
    <capability>urn:ietf:params:xml:ns:netconf:capability:confirmed-commit:1.0</capability>
    <capability>urn:ietf:params:xml:ns:netconf:capability:validate:1.0</capability>
    <capability>urn:ietf:params:xml:ns:netconf:capability:url:1.0?protocol=http,ftp,file</capability>
    <capability>http://xml.juniper.net/netconf/junos/1.0</capability>
    <capability>http://xml.juniper.net/dmi/system/1.0</capability>
  </capabilities>
<session-id>2198</session-id>
</hello>
]]>]]>


ad hoc command:

ansible localhost server -a "whoami"               ( server is from the inventory file: hosts )


jlk@ubuntu:~$ more /etc/ansible/hosts
[vsrx]
vsrx1
192.168.0.12

[srx300]
192.168.0.2

[server]
172.16.136.134


jlk@ubuntu:~$ ansible server -a "whoami"
172.16.136.134 | SUCCESS | rc=0 >>
jlk


jlk@ubuntu:~$ ansible server -a "ls"
172.16.136.134 | SUCCESS | rc=0 >>
cloud-ops
contrail-ansible-deployer
Desktop
Documents
Downloads
examples.desktop
Music
open-nti
Pictures
Public
snap
Templates
Videos