Maximum number of routes nearing (IPv4)-juniper-junos

Maximum number of routes nearing (IPv4)-juniper-junos

Vendor: juniper

OS: junos

Description:
Many devices have a limit for the number of IPv4 routes that can be defined. Indeni will alert prior to the number of routes reaching the limit.

Remediation Steps:
Consider removing certain routes.

How does this work?
This script retrieves the total of routes on the device by running “show route summary” command.

Why is this important?
The number of routes might have negative impact on the device.

Without Indeni how would you find this?
An administrator could log on to the device to run the command “show route summary” to collect the same information.

junos-show-route-summary

name: junos-show-route-summary
description: JUNOS retrieving the total of routes
type: monitoring
monitoring_interval: 5 minute
requires:
    vendor: juniper
    os.name: junos
comments:
    routes-limit:
        why: |
            The SRX allows to configure a limit for the number of routes installed in a routing table based upon the route prefix.
        how: |
            This script retrieves the maximum-prefixes configured on the SRX device by running "show route summary" command.
        can-with-snmp: false
        can-with-syslog: false
    routes-usage:
        why: "The number of routes might have negative impact on the device. \n"
        how: "This script retrieves the total of routes on the device by running \"\
            show route summary\" command. \n"
        can-with-snmp: false
        can-with-syslog: false
steps:
-   run:
        type: SSH
        command: show route summary
    parse:
        type: AWK
        file: show-route-summary.parser.1.awk

junos-show-route-summary

name: junos-show-route-summary
description: JUNOS retrieving the total of routes
type: monitoring
monitoring_interval: 5 minute
requires:
    vendor: juniper
    os.name: junos
comments:
    routes-limit:
        why: |
            The SRX allows to configure a limit for the number of routes installed in a routing table based upon the route prefix.
        how: |
            This script retrieves the maximum-prefixes configured on the SRX device by running "show route summary" command.
        can-with-snmp: false
        can-with-syslog: false
    routes-usage:
        why: "The number of routes might have negative impact on the device. \n"
        how: "This script retrieves the total of routes on the device by running \"\
            show route summary\" command. \n"
        can-with-snmp: false
        can-with-syslog: false
steps:
-   run:
        type: SSH
        command: show route summary
    parse:
        type: AWK
        file: show-route-summary.parser.1.awk

routes_defined_limit

Failed to fetch the data: https://bitbucket.org/indeni/indeni-knowledge/src/master/rules/templatebased/crossvendor/routes_defined_limit.scala