This article provides a procedure for creating a user on a Junos device using device templates on Junos Space.
A template push with a new user configuration does not work when the class attribute or any other attribute is already defined on a managed device.
When Junos Space tries to push a class configuration that is already defined on a device, a template push fails.
To create a user on a Junos device, you must define a device-specific value for class on Junos Space. The procedure below guides you through the steps required to define a device-specific value for class on Junos Space:
1. Create a comma-separated value (CSV) file in the format below. Note that you must include all the attributes already defined on the device.
device,class < device-1 hostname>, <class to be assigned> < device-2 hostname>, <class to be assigned> < device-3 hostname>, <class to be assigned>
A sample CSV can be downloaded from here: Class.csv
2. Create a template definition as outlined below. For more information, see Creating a Template Definition in the Tech Doc.
3. Create a template using this definition. For more information, see Creating a Device Template in the Tech Doc. 4. Deploy the template . For more information, see Deploying a Template in the Tech Doc. For more information, see Specifying Device-Specific Values in Definitions in the Tech Doc.