Configuring the Network Publisher
To configure the network publisher, complete the following tasks:
- Configuring Local Configuration for the Network Publisher
- Configuring Connections Between JUNOS Routing Platforms 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:
- slot number network-publisher logger logger-name file {
- filter filter;
- filename filename;
- rollover-filename rollover-filename;
- maximum-file-size maximum-file-size;
- }
- slot number network-publisher logger logger-name syslog {
- filter filter;
- hostname hostname;
- facility facility;
- format format;
- }
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 JUNOS Routing Platforms and the Network Publisher
The network publisher connects to the JUNOScript server on a JUNOS routing platform. You can configure connection information for a group of JUNOS routers that use the same version of JUNOScript, and configure information for JUNOS routing platforms that use a different version.
Use the following configuration statements to configure connection information to allow the network publisher to connect to JUNOS routing platforms:
- slot number network-publisher
routers {
- router-release-number router-release-number;
- router-script-version router-script-version;
- }
- slot number network-publisher routers
router router-name {
- router-address router-address;
- router-release-number router-release-number;
- router-script-version router-script-version;
- }
To configure JUNOScript connection information for the network publisher to connect to JUNOS routing platforms:
- 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 software running
on the devices.
- [edit slot 0 network-publisher routers]
- user@host# set router-release-number 8.5R1
- (Optional) Specify the version of JUNOScript running on
the JUNOS routing platforms.
- [edit slot 0 network-publisher routers]
- user@host# set router-script-version 1.0
- (Optional) Configure connection information for JUNOS
routing platforms that use a different version of the JUNOS to JUNOScript
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 software 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 JUNOScript running on the JUNOS
routing platforms.
- [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 JUNOS routing platforms that use the same authentication information, and configure information for JUNOS routing platforms that use a different username and password.
![]() |
Note: For the network publisher to access JUNOS routing platforms, configure authentication for all devices or for each specific device. |
Use the following configuration statements to configure connection authentication information to allow the network publisher to connect to JUNOS routing platforms:
- slot number network-publisher routers
authentication {
- login-name login-name;
- credentials credentials;
- protocol protocol;
- }
- slot number network-publisher routers
router router-name authentication
{
- login-name login-name;
- credentials credentials;
- protocol protocol;
- }
To configure authentication information for the network publisher to connect to JUNOS routing platforms:
- 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 software 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 JUNOS routing platform.
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 software.
- [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 JUNOS
routing platforms 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 software.
- [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:
- slot number network-publisher
select {
- route-table-filter route-table-filter ;
- route-entry-filter route-entry-filter ;
- }
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 JUNOS routing platforms 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:
- slot number network-publisher
directory-connection {
- url url;
- principal principal;
- credentials credentials;
- base-dn base-dn;
- }
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
