https://github.com/Juniper/ChassisInfoFetcher
...
cmd on Windows 10 ( as administrator ) | ||||||
---|---|---|---|---|---|---|
Install VirtualBox | https://www.virtualbox.org/wiki/Downloads | |||||
Install Vagrant | https://www.vagrantup.com/downloads.html c:\ChassisInfoFetcher>vagrant --version c:\ChassisInfoFetcher>vagrant plugin list | |||||
download the ChassisInfoFetcher Project
| https://github.com/Juniper/ChassisInfoFetcher c:\>git clone https://github.com/Juniper/ChassisInfoFetcher.git ChassisInfoFetcher/CIF notepad hosts.csv 172.30.95.206,NetBox,Netbox,22 | |||||
First modify the vagrantfile:1- See below to replace the ' " 'and the '-' 2- replace: config.vm.box = "ubuntu/xenial32" 3- and add the interface id: 2 vb.customize ["modifyvm", :id, "--nictype2", "Am79C973"] | cd C:\ChassisInfoFetcher vagrant validate vagrant up vagrant provisionprovision ( modify the bootstrap.sh script first, see below ) vagrant ssh | |||||
edit / check the host file ( list of routers, switch, firewall ) | cd /home/ubuntu/ChassisInfoFetcher more vi hosts.csv for example add: 172.30.95.174,Netbox,Netbox,22 | |||||
run the app.py | cd /home/ubuntu/ChassisInfoFetcher python app.py | |||||
export resul from the ./output directory | ||||||
Modify the bootstrap.sh script ( post config or provisioning ) |
| |||||
Vagrantrfile is a Ruby file , and there is a problem with the speech mark. can check online also: https://repl.it/languages/ruby Convert the Encoding | In Notepad++ with the plugin HEX-Editor: replace e2 80 9d with 22 https://www.utf8-chartable.de/unicode-utf8-table.pl?start=8192&number=128 e2 80 9d , e2 80 9c , e2 80 94 | |||||
Other issue: and replace c:\ >>>>> with c:/ |
...