O'Reilly logo

JUNOS Automation Cookbook by Adam Chappell

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

How to do it…

We're going to locate a directory on the UNIX host where configuration backups will be stored, then configure the JUNOS device with the relevant event policy to respond appropriately. The steps for the recipe are as follows:

  1. Create a user profile and home directory pair on the UNIX host that we can assign to the JUNOS device for login purposes. The exact steps for creating a user may vary between operating systems, but adduser is normally the utility to employ as a superuser (using the sudo or doas tool). Set the password to an appropriate password that you can deploy on your JUNOS infrastructure:

Debian Linux

OpenBSD

user$ sudo adduser junosAdding user junos...Adding new group junos (1001) ...Adding new user junos ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required