Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JunOS Devices #2

Open
yzguy opened this issue Oct 22, 2019 · 3 comments
Open

JunOS Devices #2

yzguy opened this issue Oct 22, 2019 · 3 comments

Comments

@yzguy
Copy link
Owner

yzguy commented Oct 22, 2019

Look into ZTPing JunOS devices

@yzguy
Copy link
Owner Author

yzguy commented Feb 28, 2022

With JunOS you can provide it a firmware + config, alternative a script

With a script like below, it would be possible to get the serial number, then attempt to load the config from NetZTP based on that serial

#!/bin/sh

SERIAL_NUMBER=$(/bin/sh -c "cli show chassis hardware | grep Chassis" | awk '{ print $2; }')
/usr/sbin/cli -c "configure; load override http://ztp.example.com/junos/$SERIAL_NUMBER; commit"

https://github.com/dagbdagb/juniper-ztp

@yzguy
Copy link
Owner Author

yzguy commented Feb 4, 2024

We can likely just use Python instead of SLAX and not support devices older than 16.x (when Python support was added), this would allow us to use PyEZ to do RPC calls to get the serial number, load config from URL, etc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant