Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation  Back up to About Overview 
  
[+] Expand All
[-] Collapse All

Related Documentation

Configuring the Network Publisher (SRC CLI)

To configure the network publisher, complete the following tasks:

  1. Configuring Local Configuration for the Network Publisher
  2. Configuring Connections Between Devices Running Junos OS and the Network Publisher
  3. Configuring Router Authentication for the Network Publisher
  4. Configuring Routing Table Filters for the Network Publisher
  5. 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:

  1. 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
  2. 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:

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 Junos XML management protocol connection information for the network publisher to connect to devices running Junos OS:

  1. 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
  2. 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
  3. (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
  4. (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.
    1. 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
    2. 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
    3. 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
    4. 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

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:

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 devices running Junos OS:

  1. From configuration mode, access the configuration statement that specifies the configuration for router authentication.
    [edit]user@host# edit slot 0 network-publisher routers authentication
  2. 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
  3. 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
  4. Specify the username to log into the Junos OS.
    [edit slot 0 network-publisher routers authentication] user@host# set login-name Chris-Bee
  5. Specify the password for the username.
    [edit slot 0 network-publisher routers authentication] user@host# set credentials credentials
  6. (Optional) Configure authentication information for devices running Junos OS that use different authentication information.
    1. Specify the router name.
      [edit slot 0 network-publisher routers] user@host# edit router my-router authentication
    2. 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
    3. Specify the password for the username.
      [edit slot 0 network-publisher routers router my-router authentication] user@host# set credentials credentials

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:

  1. 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
  2. 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.

  3. 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:

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:

  1. From configuration mode, access the configuration statement that specifies the configuration for router authentication.
    [edit]user@host# edit slot 0 network-publisher directory-connection
  2. Specify the URL of the primary Juniper Networks database.
    [edit slot 0 network-publisher directory-connection] user@host# set url url
  3. 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
  4. 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
  5. (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

Related Documentation

Modified: 2017-08-03