Cluster members' domain names mismatch-f5-all

Cluster members' domain names mismatch-f5-all
0

Cluster members’ domain names mismatch-f5-all

Vendor: f5

OS: all

Description:
Indeni will identify when two devices are part of a cluster and alert if the domain setting is different.

Remediation Steps:
Review the settings of each device in the cluster and ensure they are the same.

f5-rest-mgmt-tm-sys-global-settings

name: f5-rest-mgmt-tm-sys-global-settings
description: Determine domain
type: monitoring
monitoring_interval: 60 minute
requires:
    vendor: f5
    product: load-balancer
    rest-api: 'true'
comments:
    domain:
        skip-documentation: true
steps:
-   run:
        type: HTTP
        command: /mgmt/tm/sys/global-settings?options=hostname
    parse:
        type: JSON
        file: rest-mgmt-tm-sys-global-settings.parser.1.json.yaml

cross_vendor_compare_domain

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

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

import com.indeni.server.rules.RuleContext
import com.indeni.server.rules.library.templates.SnapshotComparisonTemplateRule
import com.indeni.server.rules.RemediationStepCondition

/**
  *
  */
case class cross_vendor_compare_domain() extends SnapshotComparisonTemplateRule(
  ruleName = "cross_vendor_compare_domain",
  ruleFriendlyName = "Clustered Devices: Cluster members' domain names mismatch",
  ruleDescription = "Indeni will identify when two devices are part of a cluster and alert if the domain setting is different.",
  metricName = "domain",
  isArray = false,
  alertDescription = "The members of a cluster of devices must have the same domain settings.",
  baseRemediationText = "Review the settings of each device in the cluster and ensure they are the same.")(
  RemediationStepCondition.VENDOR_CISCO ->
    """|
      |1. Use the "ip domain-name" NX-OS command to configure the same domain name for the clustered devices
      |2. Use the vrf context command in case that is needed to enter to the VRF context mode to configure the domain  for a particular VRF.
      |3. For more information please review  the following CISCO Configuration guide:
      |https://www.cisco.com/c/en/us/td/docs/switches/datacenter/nexus5000/sw/command/reference/sysmgmt/n5k-sysmgmt-cr/n5k-sm_cmds_i.html#pgfId-1659356
    """.stripMargin
)