Configuring the Network Publisher (SRC CLI)
To configure the network publisher, complete the following tasks:
- Configuring Local Configuration for the Network Publisher
- Configuring Connections Between Devices Running Junos OS and the Network Publisher
- Configuring Router Authentication for the Network Publisher
- Configuring Routing Table Filters for the Network Publisher
- Configuring the Connection Between the Network Publisher and the Juniper Networks Database
Configuring Local Configuration for the Network Publisher
You configure the network publisher for a slot. There is no shared configuration for the network publisher.
Use the following configuration statements to configure the basic local configuration for the network publisher:
To set up the basic configuration for the network publisher:
- From configuration mode, access the configuration statement
that specifies the configuration for the network publisher for a slot.[edit]user@host# edit slot 0 network-publisher
- Configure logging for the network publisher as you do for other SRC components.
Configuring Connections Between Devices Running Junos OS and the Network Publisher
The network publisher connects to the Junos XML management protocol server on a device running Junos OS. You can configure connection information for a group of routers running Junos OS that use the same version of Junos XML management protocol, and configure information for devices running Junos OS that use a different version.
Use the following configuration statements to configure connection information to allow the network publisher to connect to devices running Junos OS:
To configure Junos XML management protocol connection information for the network publisher to connect to devices running Junos OS:
- From configuration mode, access the configuration statement
that specifies the configuration for the network publisher for a slot.[edit]user@host# edit slot 0 network-publisher routers
- Specify the release number of the Junos OS running on
the devices.[edit slot 0 network-publisher routers] user@host# set router-release-number 8.5R1
- (Optional) Specify the version of Junos XML management
protocol running on the devices running Junos OS.[edit slot 0 network-publisher routers] user@host# set router-script-version 1.0
- (Optional) Configure connection information for devices
running Junos OS that use a different version of the Junos OS to the
Junos XML management protocol software.
- Specify the router name of the router that uses a different
version of the software.[edit slot 0 network-publisher routers] user@host# set router my-router
- Configure the IP address of the router.[edit slot 0 network-publisher routers router my-router] user@host# set router address 10.10.4..4
- Specify the release number of the Junos OS running on
the devices.[edit slot 0 network-publisher routers router my-router] user@host# set router-release-number 8.5R2
- Specify the version of Junos XML management protocol running
on the devices running Junos OS.[edit slot 0 network-publisher routers router my-router] user@host# set router-script-version 1.0
- Specify the router name of the router that uses a different
version of the software.
Configuring Router Authentication for the Network Publisher
You can configure connection authentication information for a group of devices running Junos OS that use the same authentication information, and configure information for devices running Junos OS that use a different username and password.
![]() | Note: For the network publisher to access devices running Junos OS, configure authentication for all devices or each specific device. |
Use the following configuration statements to configure connection authentication information to allow the network publisher to connect to devices running Junos OS:
To configure authentication information for the network publisher to connect to devices running Junos OS:
- From configuration mode, access the configuration statement
that specifies the configuration for router authentication.[edit]user@host# edit slot 0 network-publisher routers authentication
- Specify the release number of the Junos OS running on
the devices.[edit slot 0 network-publisher routers] user@host# set router-release-number 8.5R1
- Specify the protocol to connect to the device running
Junos OS. We recommend that you use SSH.[edit slot 0 network-publisher routers authentication] user@host# set protocol ssh
- Specify the username to log into the Junos OS.[edit slot 0 network-publisher routers authentication] user@host# set login-name Chris-Bee
- Specify the password for the username.[edit slot 0 network-publisher routers authentication] user@host# set credentials credentials
- (Optional) Configure authentication information for devices
running Junos OS that use different authentication information.
- Specify the router name.[edit slot 0 network-publisher routers] user@host# edit router my-router authentication
- Specify the username to log into the Junos OS.[edit slot 0 network-publisher routers router my-router authentication] user@host# set login-name Bee-C
- Specify the password for the username.[edit slot 0 network-publisher routers router my-router authentication] user@host# set credentials credentials
- Specify the router name.
Configuring Routing Table Filters for the Network Publisher
The network publisher can collect information from Junos IPv4 and IPv6 routing tables. Specify which routing tables the network publisher should include to meet the requirements of your application that uses the NIC OnePopStaticRouteIp or OnePopVrfIp configuration scenario.
By default, the network publisher collects information from all IPv4 routing tables, including tables for VPNs, and entries for all protocols. Based on your network configuration, consider which protocols to exclude from the configuration for network publisher.
Use the following configuration statements to identify the routing tables and routing table elements from which to collect information for the network publisher:
To specify the routing tables from which the network publisher collects information:
- From configuration mode, access the configuration statement
that specifies the configuration for the IPv4 and IPv6 routing tables
from which the network publisher is to collect information.[edit]user@host# edit slot 0 network-publisher select
- Specify the routing table from which the network publisher
collects information: [edit slot 0 network-publisher select] user@host# set route-table-filter route-table-filter
For example, to select only IPv6 tables:
[edit slot 0 network-publisher select] user@host# set route-table-filter “table-name=*inet6.0”You can use regular expressions to identify routing tables.
- Specify the element(s) in a routing table: [edit slot 0 network-publisher select] user@host# set route-entry-filter route-entry-filter
For example, to select only those entries that pertain to OSPF advertisements:
[edit slot 0 network-publisher select] user@host# set route-entry-filter “protocol=OSPF”
Configuring the Connection Between the Network Publisher and the Juniper Networks Database
Configure the connection properties that the network publisher uses to connect to the Juniper Networks database. The network publisher can then store information about routing tables from devices running Junos OS in the Juniper Networks database.
Use the following configuration statements to configure the connection information that the network publisher uses to connect to the Juniper Networks database:
To configure connection information for the Juniper Networks database:
- From configuration mode, access the configuration statement
that specifies the configuration for router authentication.[edit]user@host# edit slot 0 network-publisher directory-connection
- Specify the URL of the primary Juniper Networks database.[edit slot 0 network-publisher directory-connection] user@host# set url url
- Specify the distinguished name (DN) that defines the username
with which the network publisher accesses the Juniper Networks database,
for example cn = umcadmin, o= umc.[edit slot 0 network-publisher directory-connection] user@host# set principal cn=umcadmin,o=umc
- Specify the password with which the network publisher
accesses the Juniper Networks database; for example:[edit slot 0 network-publisher directory-connection] user@host# set credentials admin123
- (Optional) Specify the DN of the subtree in the database
that stores the router data; for example o = Network, o
= umc: [edit slot 0 network-publisher directory-connection] user@host# set base-dn o=Network,o=umc