How to connect a Junos device to NSM
For NSM to manage a Junos device, the device must first be configured properly.
Notes:
SSHv2 is mandatory for NSM
For NSM access, both SSH and netconf over SSH must be enabled (step 5 below).
It is recommended to use a dedicated NSM user.
root# set system login user nsm class super-user authentication plain-text-password
This allows you to identify who made certain changes/operations.
Perform the following steps to import a device into NSM, so that it can be managed by NSM:
Amnesiac (ttyu0) login: root Password: --- JUNOS 9.6R1.13 built 2009-08-01 09:23:09 UTC root@%
root@% cli root>
Run the following command, and check the settings for the following set commands. For branch SRX devices, make sure the services required for NSM are opened for access (see bold line below). In this example, the ge-0/0/0 interface is used to accept all inbound management traffic; you may be using a different interface for management.
root> show configuration | display set set version 9.6R1.13 set system root-authentication encrypted-password "$ABC123" set interfaces ge-0/0/0 unit 0 family inet address 10.85.49.149/24 set routing-options static route 0.0.0.0/0 next-hop 10.85.49.1 set security zones security-zone trust interfaces ge-0/0/0.0 host-inbound-traffic system-services all
root> edit Entering configuration mode [edit] root#
[edit] root# set system services netconf ssh root# set system services ssh protocol-version v2 [edit] root# commit and-quit commit complete Exiting configuration mode root>
root> show configuration | display set set version 9.6R1.13 set system root-authentication encrypted-password "$ABC123" set system services netconf ssh set system services outbound-ssh client nsm-10.85.34.46 device-id 631578 set system services outbound-ssh client nsm-10.85.34.46 secret "$ABC123" set system services outbound-ssh client nsm-10.85.34.46 services netconf set system services outbound-ssh client nsm-10.85.34.46 10.85.34.46 port 7804 set system syslog file default-log-messages any any set system syslog file default-log-messages structured-data set interfaces ge-0/0/0 unit 0 family inet address 10.85.49.149/24 set routing-options static route 0.0.0.0/0 next-hop 10.85.49.1 set security zones security-zone trust interfaces ge-0/0/0.0 host-inbound-traffic system-services all root>