Maximum number of routes nearing (IPv4)-radware-alteon-os

error
health-checks
best-practices
alteon-os
radware
Maximum number of routes nearing (IPv4)-radware-alteon-os
0

#1

Maximum number of routes nearing (IPv4)-radware-alteon-os

Vendor: radware

OS: alteon-os

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.

radware-api-config-switchCapIpRoutesCurrEnt

#! META
name: radware-api-config-switchCapIpRoutesCurrEnt
description: get the number of routes defined
type: monitoring
monitoring_interval: 5 minute 
requires:
    os.name: "alteon-os"
    vendor: "radware"
    or:
        -
            vadc: "true"
        -
            standalone: "true"

#! REMOTE::HTTP
url: /config/switchCapIpRoutesCurrEnt
protocol: HTTPS

#! PARSER::JSON
_metrics:
    -
        _value.double:
            _value: switchCapIpRoutesCurrEnt
        _tags:
            "im.name":
                _constant: "routes-usage"
            "live-config":
                _constant: "true"
            "display-name":
                _constant: "Routes - Configured"
            "im.dstype.displayType":
                _constant: "number"

radware-api-config-switchCapIpRoutesMaxEnt

#! META
name: radware-api-config-switchCapIpRoutesMaxEnt
description: get the max number of routes possible
type: monitoring
monitoring_interval: 59 minute 
requires:
    os.name: "alteon-os"
    vendor: "radware"
    or:
        -
            vsx: "true"
        -
            standalone: "true"

#! COMMENTS
routes-limit:
    why: |
        Admins regularly track the IPv4 route limit of the device to determine whether it is needed to remove routes, consolidate, or add additional alteon devices. Being able to know prior to hitting limitations to deploying an alteon is important for capacity planning.
    how: |
        This script runs the "/config/switchCapIpRoutesMaxEnt" through the Alteon API gateway.
    without-indeni: |
        An administrator would need to log in to the device and run a CLI command or run the API command "/config/switchCapIpRoutesMaxEnt".
    can-with-snmp: true
    can-with-syslog: false
    vendor-provided-management: |
        Can be done through Management GUI (Vision or Alteon VX).

#! REMOTE::HTTP
url: /config/switchCapIpRoutesMaxEnt
protocol: HTTPS

#! PARSER::JSON
_metrics:
    -
        _value.double:
            _value: switchCapIpRoutesMaxEnt
        _tags:
            "im.name":
                _constant: "routes-limit"
            "live-config":
                _constant: "true"
            "display-name":
                _constant: "Routes Defined - Limit"
            "im.dstype.displayType":
                _constant: "number"

routes_defined_limit

package com.indeni.server.rules.library.templatebased.crossvendor

import com.indeni.server.rules.RuleContext
import com.indeni.server.rules.library.{ConditionalRemediationSteps, NearingCapacityTemplateRule}

/**
  *
  */
case class routes_defined_limit() extends NearingCapacityTemplateRule(
  ruleName = "routes_defined_limit",
  ruleFriendlyName = "All Devices: Maximum number of routes nearing (IPv4)",
  ruleDescription = "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.",
  usageMetricName = "routes-usage",
  limitMetricName = "routes-limit",
  threshold = 80.0,
  alertDescriptionFormat = "There are %.0f IPv4 routes defined where the limit is %.0f.",
  baseRemediationText = "Consider removing certain routes.")(
  ConditionalRemediationSteps.OS_NXOS ->
    """|
      |1. Execute the "show ip route summary" command to display the current contents of the IPv4 routing table in summary format.
      |2. Consider to deploy route summarization to decrease the  total number of ipv4 prefixes.
      |3. Consider to clean up the configuration from unused routes.
    """.stripMargin
)