You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here what i am trying to implement, simple playbook
tasks:
- name: installing initial config to Amnesiac
junos_install_config:
host={{ inventory_hostname }}
user=root
console="--telnet={{TERMSERV}},{{TERMSERVPORT}}"
file=configs/initial.set
overwrite=yes
savedir=junos/inventory
logfile=junos/logs/initial.log
config is also very basic
set system root-authentication encrypted-password $1$usi5OLHO$2//owSkqcLsuwRb9hSeTI.
set interfaces ge-0/0/0 unit 0 family inet address 192.168.159.7/24
set system host-name router
set system time-zone GMT-3
set system services netconf ssh
set routing-options static route 0.0.0.0/0 next-hop 192.168.159.254
delete security
delete system services web-management
starting this playbook lead to ansible execution and at the task processing it just hangs
PLAY [servers] ****************************************************************
TASK: [installing initial config to Amnesiac] *********************************
^CERROR: interrupted
wireshark shows me smth interesting
...............
.........
XXXhostnameXXX (ttyd0)
login: root
root
--- JUNOS 12.1X46-D20.5 built 2014-05-14 20:38:10 UTC
urn:ietf:params:xml:ns:netconf:base:1.0
urn:ietf:params:xml:ns:netconf:capability:candidate:1.0
urn:ietf:params:xml:ns:netconf:capability:confirmed-commit:1.0
urn:ietf:params:xml:ns:netconf:capability:validate:1.0
urn:ietf:params:xml:ns:netconf:capability:url:1.0?protocol=http,ftp,file
http://xml.juniper.net/netconf/junos/1.0
http://xml.juniper.net/dmi/system/1.0
1323
]]>]]>
set system root-authentication encrypted-password $1$usi5OLHO$2//owSkqcLsuwRb9hSeTI.
set interfaces ge-0/0/0 unit 0 family inet address 192.168.159.7/24
set system host-name router
set system time-zone GMT-3
set system services netconf ssh
set routing-options static route 0.0.0.0/0 next-hop 192.168.159.254
delete security
delete system services web-management
when i tried manually do what script is supposed to i got an error
XXXhostnameXXX (ttyd0)
login: root
--- JUNOS 12.1X46-D20.5 built 2014-05-14 20:38:10 UTC
root@XXXhostnameXXX% xml-mode netconf need-trailer
Here what i am trying to implement, simple playbook
tasks:
- name: installing initial config to Amnesiac
junos_install_config:
host={{ inventory_hostname }}
user=root
console="--telnet={{TERMSERV}},{{TERMSERVPORT}}"
file=configs/initial.set
overwrite=yes
savedir=junos/inventory
logfile=junos/logs/initial.log
config is also very basic
set system root-authentication encrypted-password $1$usi5OLHO$2//owSkqcLsuwRb9hSeTI.
set interfaces ge-0/0/0 unit 0 family inet address 192.168.159.7/24
set system host-name router
set system time-zone GMT-3
set system services netconf ssh
set routing-options static route 0.0.0.0/0 next-hop 192.168.159.254
delete security
delete system services web-management
starting this playbook lead to ansible execution and at the task processing it just hangs
PLAY [servers] ****************************************************************
TASK: [installing initial config to Amnesiac] *********************************
^CERROR: interrupted
wireshark shows me smth interesting
...............
.........
XXXhostnameXXX (ttyd0)
login: root
root
--- JUNOS 12.1X46-D20.5 built 2014-05-14 20:38:10 UTC
.[3g.[24;9H.H.[24;17H.H.[24;25H.H.[24;33H.H.[24;41H.H.[24;49H.H.[24;57H.H.[24;65H.H.[24;73H.H
root@XXXhostnameXXX% xml-mode netconf need-trailer
urn:ietf:params:xml:ns:netconf:base:1.0 urn:ietf:params:xml:ns:netconf:capability:candidate:1.0 urn:ietf:params:xml:ns:netconf:capability:confirmed-commit:1.0 urn:ietf:params:xml:ns:netconf:capability:validate:1.0 urn:ietf:params:xml:ns:netconf:capability:url:1.0?protocol=http,ftp,file http://xml.juniper.net/netconf/junos/1.0 http://xml.juniper.net/dmi/system/1.0 1323 ]]>]]> set system root-authentication encrypted-password $1$usi5OLHO$2//owSkqcLsuwRb9hSeTI. set interfaces ge-0/0/0 unit 0 family inet address 192.168.159.7/24 set system host-name router set system time-zone GMT-3 set system services netconf ssh set routing-options static route 0.0.0.0/0 next-hop 192.168.159.254 delete security delete system services web-managementxml-mode netconf need-trailer
when i tried manually do what script is supposed to i got an error
XXXhostnameXXX (ttyd0)
login: root
--- JUNOS 12.1X46-D20.5 built 2014-05-14 20:38:10 UTC
urn:ietf:params:xml:ns:netconf:base:1.0 urn:ietf:params:xml:ns:netconf:capability:candidate:1.0 urn:ietf:params:xml:ns:netconf:capability:confirmed-commit:1.0 urn:ietf:params:xml:ns:netconf:capability:validate:1.0 urn:ietf:params:xml:ns:netconf:capability:url:1.0?protocol=http,ftp,file http://xml.juniper.net/netconf/junos/1.0 http://xml.juniper.net/dmi/system/1.0 1278 ]]>]]> error set syntax errorroot@XXXhostnameXXX% xml-mode netconf need-trailer
so it seems to me the problem is in right formatting of *.set file
i did not test with *.conf and *.xml files
The text was updated successfully, but these errors were encountered: