Discovering Devices
You use device discovery to automatically discover and synchronize Junos devices in Junos Space. Device discovery is a three step process in which you specify target devices, a probe method (Ping and/or SNMP), and credentials to connect to each device.
To add a device using device discovery, the following conditions must be met:
- SSH v2 is enabled on the device. To enable SSH v2 on a
device, issue the following CLI command:set system services ssh protocol-version v2
- NETCONF protocol over SSH is enabled on the device. To
enable the NETCONF protocol over SSH on a device, issue the following
CLI command:set system services netconf ssh
- The device is configured with a static management IP address that is reachable from the Junos Space server.
- A user with full administrative privileges is created on the device for the Junos Space administrator.
- If you plan to use SNMP to probe devices as part of device discovery, SNMP should be enabled on the device with appropriate read-only V1/V2C/V3 credentials.
To discover and synchronize devices, complete the following tasks:
Specifying Device Targets
To specify the device targets that you want Junos Space to discover:
- From the task ribbon, select the Devices workspace.
- From the task ribbon, click the Discover Devices icon.
Junos Space displays discovery status for discovery targets that are already processed.
- From the task ribbon, click the Discover Targets icon.
Junos Space displays the Discover Targets window.

- Click
the Add icon.
The Add Device Target dialog box is displayed.

Choose one of the following options to specify device targets:
- Select the IP radio button and enter the IP address of the device.
- Select the IP Range radio button and enter a
range of IP addresses for the devices.

Note: The maximum number of IP addresses for an IP range target is 1024.
- Select the IP Subnet radio button and enter an IP subnet for the devices.
- Select the Host Name radio button and enter the host name of the device.
- Click Add to save the target devices
that you specified, or click Add More to add additional device
targets. When you have added all device targets that you want Junos
Space to discover, click Add.
The Discover Targets window displays the addresses of the configured device targets.
- Click Discover from the Discover Targets
window.
In the next task, you specify a probe method to connect to and discover the device targets.
Specifying Probes
To configure the method Junos Space will use to discover the device targets:
- From the task ribbon, select the Devices workspace, and then click the Discover Devices icon.
- From the task ribbon, click the Specify Probes icon.
The Specify Probes window is displayed.

Select a probe method (or SSH) to discover target devices:
- If SNMP is configured for the device, select Use SNMP , and clear the check box Use Ping.
Junos Space will use the SNMP GET command to discover target devices.
- If SNMP is not configured for the device, select the
check box Use Ping , and clear the check box Use SNMP.
Junos Space will use Juniper Network’s Device Management Interface (DMI) to directly connect to and discover devices. DMI is an extension to the NETCONF network management protocol.
- To use the SSH protocol to discover every device IP in
the range or subnet, clear the check boxes Use Ping and Use SNMP. Clearing the check boxes will disable both the SNMP
and Ping probe methods. When you use SSH to discover devices, Junos
Space does not perform a check to verify that the device is a Juniper
device during the discovery operation.
If you will use SSH to discover devices, you can bypass the SNMP settings (Steps 4–6) and go directly to Step 7 in the Specifying Probes procedure.
- When both the Use Ping and Use SNMP check boxes are selected (the default), Junos Space can more quickly discover the target device, if the device is pingable and SNMP is enabled on the device.
- If SNMP is configured for the device, select Use SNMP , and clear the check box Use Ping.
- Click the Add icon (+).
The Add SNMP Settings dialog box is displayed.

- For
SNMPv1 or SNMPv2:
- Select SNMP V1/V2C (the default).
- In the community field, specify the community string, which can be “public”, “private”, or a predefined string.
- Click Add to save the SNMP settings, or click Add More to specify another community string. When you have
finished adding community strings, click Add.
The Specify Probes window displays the configured SNMP settings.
- For SNMPv3:
- Select SNMP V3.
The SNMP V3 dialog box is displayed.

- Enter the username.
- Select the privacy type (AES 128, DES, or none)
- Enter the privacy password (if AES 128 or DES). If you specify ’none’ for the privacy type, the privacy function is disabled.
- Select the authentication type (MD5, SHA, or none).
- Enter the authentication password (if MD5 or SHA). If you specify ’none’ for the authentication type, the authentication function is disabled.
- Click Add to save the SNMP V3 settings, or click Add More to specify additional SNMP settings. When you have
finished adding SNMP settings, click Add.
The Specify Probes window displays the configured SNMP settings.
- Select SNMP V3.
- Click Discover in
the Specify Probes window.
In the next task, you specify credentials to establish the SSH connection for the target devices.
Specifying Credentials
Specify an administrator name and password to establish the SSH connection for each target device that you configured:
- From the task ribbon, select the Devices workspace, and then click the Discover Devices icon.
- From the task ribbon, select the Specify Credentials icon.
The Specify Credentials window is displayed.

- Click
the Add icon.
The Add Device Login Credential dialog box is displayed.

- Specify the administrator user name and password, and confirm the password. The name and password must match the name and password configured on the device
- To save the user name and password that you specified,
click Add or click Add More to add another user
name and password. When you have finished adding login credentials,
click Add.
The Credential window displays the administrator user names that you configured.
Schedule the device discovery operation:
- Clear the Schedule at a later time check box (the default) to initiate the discovery operation when you complete Step 7 in this procedure.
- Select the Schedule at a later time check box to specify a later start date and time for the discovery operation.

Note: The selected time in the scheduler corresponds to Junos Space server time but is mapped to the local time zone of the client computer.
- In the Specify Credentials window, click Discover to discover and synchronize the device targets in Junos Space.

Note: When the Targets, Probes, and Credentials are configured, Junos Space displays a check mark next to the Discover Targets, Specify Probes, and Specify Credentials icons in the task ribbon to show that the device discovery configuration is complete.
The Discovery Status window, shown in the following illustration, displays the progress of discovery in real-time. Click on any bar in the chart to view information about devices currently managed, discovered, or for which discovery failed.

For information about device discovery results you can view the Detailed Reports and view job status from the Jobs workspace:
- To view device discovery details, click View Detailed
Report in the Discovery Status window.
The Detailed Report displays the IP address, host name, discovered devices, and discovery status. If the discovery operation fails, the Description field indicates the cause of failure.
To sort on a column in the Detailed Report, mouse over any column header and click the down arrow, as shown in the following example.

- To view device discovery from the Jobs workspace:
- From the task ribbon, select the Jobs workspace.
- From the task ribbon, select the Manage Jobs icon.
- From the Job Manager inventory panel, select a “Discover
Network Elements” job that you want to view. The following example
shows summary information for a Discover Network Elements job.

- To view device discovery details, click View Detailed
Report in the Discovery Status window.

