Connected networks do not match across cluster members-f5-all

Connected networks do not match across cluster members-f5-all
0

Connected networks do not match across cluster members-f5-all

Vendor: f5

OS: all

Description:
Indeni will identify when two devices are part of a cluster and alert if the networks they are directly connected to do not match.

Remediation Steps:
Ensure all of the required ports are configured correctly on all cluster members, including the subnet mask.

How does this work?
This script logs into the F5 unit through SSH and retrieves the output of the “route -n” command.

Why is this important?
Capture the networks that are directly connected to the device.

Without Indeni how would you find this?
An administrator could log into the device through SSH and execute the command “route -n” to see the networks connected via the VLAN interfaces.

f5-route

name: f5-route
description: Get connected networks
type: monitoring
monitoring_interval: 30 minutes
requires:
    vendor: f5
    product: load-balancer
    linux-based: 'true'
    shell: bash
comments:
    connected-networks-table:
        why: |
            Capture the networks that are directly connected to the device.
        how: |
            This script logs into the F5 unit through SSH and retrieves the output of the "route -n" command.
        without-indeni: |
            An administrator could log into the device through SSH and execute the command "route -n" to see the networks connected via the VLAN interfaces.
        can-with-snmp: false
        can-with-syslog: false
steps:
-   run:
        type: SSH
        command: route -n
    parse:
        type: AWK
        file: route.parser.1.awk

connected_tables_comparison_vsx

// Deprecation warning : Scala template-based rules are deprecated. Please use YAML format rules instead.

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

import com.indeni.server.common.data.conditions.{Equals => DataEquals}
import com.indeni.server.rules.library.templates.SnapshotComparisonTemplateRule
import com.indeni.server.rules.RemediationStepCondition

/**
  *
  */
case class connected_tables_comparison_vsx() extends SnapshotComparisonTemplateRule(
  ruleName = "connected_tables_comparison_vsx",
  ruleFriendlyName = "Clustered Devices: Connected networks do not match across cluster members",
  ruleDescription = "Indeni will identify when two devices are part of a cluster and alert if the networks they are directly connected to do not match.",
  metricName = "connected-networks-table",
  applicableMetricTag = "vs.name",
  metaCondition = DataEquals("vsx", "true"),
  isArray = true,
  alertDescription = "Devices that are part of a cluster must have the same directly connected networks. Review the differences below.",
  baseRemediationText = "Ensure all of the required ports are configured correctly on all cluster members, including the subnet mask.")(
  RemediationStepCondition.VENDOR_CISCO ->
    """|
      |1. Ensure all of the required interfaces are configured accordingly on all cluster members.
      |2. Consider to suspending this alert in case of orphan ports configured to one of the vPC peer switches.""".stripMargin
)