To configure the network publisher, complete the following tasks:
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:
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:
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:
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:
For example, to select only IPv6 tables:
You can use regular expressions to identify routing tables.
For example, to select only those entries that pertain to OSPF advertisements:
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: