In this port I will show you a simple playbook that scp a junos image file to a EX4200 switch along with slax scripts to /var/db/script
This env was done in a virtualenv that was initially setup. You need to install via pip junos-eznc module into your virtual-env
pip3 install junos-eznc
or
pip install junos-eznc
The playbook is a very simple and uses a static username+password combination that we use during our unboxing and initial upgrade process
Both root-authentication and ssh services have to be set. If you use any other account othe user than root, it must be present in your junos-cfg. Root account regardless needs to be defined.
configure
set system services ssh
set system root-authentication myinitailsetup
commit comment "setup new EX"
Here's the playbook;
We have a custom inventory file in our directory that we will serve the files. In this directory you will list your switch(s) by address.
If all goes well the device will reboot and finish the installation
No comments:
Post a Comment