Cluster members' domain names mismatch-juniper-junos

Cluster members’ domain names mismatch-juniper-junos

Vendor: juniper

OS: junos

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.

How does this work?
This script logs into the Juniper JUNOS-based device using SSH and retrieves the relevant output of the “show configuration system domain-name” command.

Why is this important?
Capture the domain of the device. This is used for inventory purposes.

Without Indeni how would you find this?
It is possible to poll this data through SNMP.

junos-show-configuration-domain-name

name: junos-show-configuration-domain-name
description: Retrieve the domain-name in the configuration
type: monitoring
monitoring_interval: 60 minute
requires:
    vendor: juniper
    os.name: junos
comments:
    domain:
        why: |
            Capture the domain of the device. This is used for inventory purposes.
        how: |
            This script logs into the Juniper JUNOS-based device using SSH and retrieves the relevant output of the "show configuration system domain-name" command.
        can-with-snmp: true
        can-with-syslog: false
steps:
-   run:
        type: SSH
        command: show configuration system domain-name
    parse:
        type: AWK
        file: show-configuration-domain-name.parser.1.awk

cross_vendor_compare_domain

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