Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 

Using the AgentD Process for Exporting Data to the Routing Engine

 

Starting with Junos OS Release 14.2, the agent process is a control plane process. AgentD interfaces with the Junos OS CLI to configure sensors and streaming servers, and to export profiles that are present in the Packet Forwarding Engine. The data pertaining to sensors is in turn exported in .jrf (Java required files format) format at the configured intervals to the streaming servers from Packet Forwarding Engine. AgentD can intercept the data sent out from the Packet Forwarding Engine to prevent the Routing Engine processes or daemons from querying the Packet Forwarding Engine. Starting with Junos OS Release 14.2, this data is exported by agentD from the Packet Forwarding Engine to the Routing Engine. A historical snapshot of this data collected is maintained in the Routing Engine. A limit on the number of records of the sensor data that is saved in the Routing Engine exists.

The following operations occur during the export of data to the Routing Engine using agentD:

  1. AgentD listens on port 2000 for messages from the Packet Forwarding Engine. Data can be received at the Routing Engine by configuring the IP address of one of the streaming servers as the Routing Engine IP address of fxp0 and port as 2000.

  2. The data is sent by Packet Forwarding Engine in JRF format.

  3. AgentD maintains the sensor data history in a database (/var/run/agentd.db). It is a Berkeley database. AgentD database has tables based on sensor types. Because CPU, NPU, and interface sensor types are supported, a total of three tables are created.

  4. It is possible to maintain a history of maximum 50 records for each table in the database. The number of records is configured using a hidden statement.

    Note

    We recommend that you use the hidden statement to configure the limit on the number of records of sensor data that is exported by agentD only with the assistance of a Juniper Technical Assistance Center representative.

  5. After the sensor data arrives at the Routing Engine, agentD decodes the header to find sensor type so as to write the data into the respective table. It determines the sensor ID, FPC slot, Packet Forwarding Engine ID, and retrieves the current timestamp. This 4-tuple value becomes the key for the table. The entire message along with the header is written to the database table.

  6. When a fresh record needs to be written to the table, the maximum limit for number of records, if configured, is examined. If the limit is exceeded, the oldest entry is purged from the table to insert the fresh record.

Release History Table
Release
Description
Starting with Junos OS Release 14.2, the agent process is a control plane process.