Skip to content

Instantly share code, notes, and snippets.



Last active May 18, 2017
What would you like to do?
fetch Junos op script from URL at startup
Configure script in Junos:
set system scripts op file
set system scripts language python
Create an event-policy that gets triggered during startup to fetch me:
set event-options policy fetch-my-scripts events JTASK_TASK_BEGIN
set event-options policy fetch-my-scripts then execute-commands commands "request system scripts refresh-from op file url"
print "Hi! I'm from GitHubGist."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment