Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

Configure Hardware Resource Threshold Monitoring for Capacity Planning

This topic describes hardware resource threshold monitoring, how to configure a resource list, associate a resource list to a monitor profile, how to configure the polling interval, and the operational mode commands to display the hardware resource utilization.

Hardware Resource Threshold Monitoring

To configure hardware resource threshold monitoring, create a resource list and specify which hardware resources to monitor or monitor all your hardware resources. You can choose several options to enhance resource lists. You can also configure a monitor profile with these optional settings that can be applied to your resource lists. You can specify a polling interval for how often hardware resource data is polled. The upper, lower thresholds, and notification type can be configured. Whenever a threshold is breached you receive notification.

Configure a Resource List

Create a resource list to monitor hardware resource utilization.

You can configure multiple resource lists, but the same resource can only be used once and cannot be duplicated on multiple resource lists.

Once configured, hardware resource utilization data is periodically polled. Default polling interval is one second.

To configure a resource list :

  1. In configuration mode, go to the [edit system packet-forwarding-options hw-resource-monitor resource-list] hierarchy level and add a name for your resource list (here, R1):
  2. Use the all-resources statement to monitor all available resources:
    To monitor multiple resource names, separate each resource name with a space, for example:
    Where efp, ifp, and vfp are the resources.
    You can map a resource list with a monitor profile (optional) and configure the upper, lower thresholds, and notification type of the monitor profile. You can also configure the polling interval (optional).

Configure the Polling Interval (optional)

You can optionally configure a single polling interval for the all the applicable resources.

To configure the polling interval:

In configuration mode, go to the [edit system packet-forwarding-options hw-resource-monitor] hierarchy level and configure the polling interval:
Default polling interval is one second.

Associate a Monitor Profile (optional)

You can optionally map a configured resource list with a monitor profile. A monitor-profile can be mapped to multiple resource-lists, but a single resource-list cannot be mapped to multiple monitor-profiles. A resource-list can be mapped only to a single monitor-profile. Configure a monitor profile before you map it to a resource list.

To associate a monitor profile:

  1. For a monitor profile, you can optionally configure the lower threshold, upper threshold, and the notification type.
    To configure the lower threshold, go to the [edit system packet-forwarding-options hw-resource-monitor monitor-profile] hierarchy level:

    When the lower threshold is breached, a minor notification is raised. The default value is "50".

    To configure the upper threshold, go to the [edit system packet-forwarding-options hw-resource-monitor monitor-profile]:

    When the upper threshold is breached, a major notification is raised. The default value is "90".

    To configure the notification type, go to the [edit system packet-forwarding-options hw-resource-monitor monitor-profile]:

    The notification type can be syslog, alarm, or none. The default value is "syslog".

  2. In configuration mode, go to the [edit system packet-forwarding-options hw-resource-monitor resource-list] hierarchy level and map a monitor profile:
  3. If you configure an optional monitor profile, use the show system packet-forwarding-options hw-resource-monitor monitor-profile command in configuration mode to display the configured upper and lower threshold values (set as the boundary for a hardware resource) and the notification type issued when a resource's utilization rate crosses a threshold boundary.
  4. In configuration mode, ([edit]), use the run show system packet-forwarding-options hw-resource-monitor resource-list command to display the hardware resources contained in a resource list.

Monitor Utlilization

Use the following operational mode command to display the hardware resources configured under a resource-list. The current resource utilization utilization, upper threshold, lower threshold, health, and notification type values are displayed.

show system packet-forwarding-options hw-resource-monitor utilization-info

To view the alarms, use the show system alarms command. To view the log messages, use the show log messages command.

Whenever there is a change in resource health, notifications are raised or cleared as required depending upon the notification type (alarm or syslog). Green indicates that the hardware resource utilization is safely within threshold boundaries. Yellow indicates that the hardware resource utilization is above the lower threshold but within the upper threshold. Red indicates that the hardware resource utilization is above the the upper threshold. When the resource health changes from Green to Yellow or vice-versa, a minor alarm is raised or cleared (as applicable). When the resource health changes from Yellow to Red or vice-versa, a major alarm is raised or cleared (applicable only if the notification type is alarm). When the resource health changes from Green to Yellow, a syslog WARNING is logged (as applicable). When the resource health changes from Yellow to Red, a syslog CRITICAL is logged (applicable only if the notification type is syslog).

Enter the show system packet-forwarding-options hw-resource-utilization-info command to display the maximum capacity and current utilization for all the applicable resources. This command can be used to display the utilization of hardware resources even if resource lists are not configured.

For example:

HW Resource Monitoring: npu/memory/ sensor (JTI)

View the monitored data using operational mode commands or use Junos Telemetry interface (JTI) to send data from your device to a collector using the resource path /junos/system/linecard/npu/memory/.

Sample output:

If resource lists are not configured, the threshold and health values will be "0" and not displayed in the sensor output because of zero-suppression.