Login banner mismatch across cluster members-juniper-junos

Login banner mismatch across cluster members-juniper-junos

Vendor: juniper

OS: junos

Description:
Indeni will identify when two devices are part of a cluster and alert if the login banner 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 retrieves the login banner by running the command “show configuration system login message” command via SSH connection the the device.

Why is this important?
The login banner is used to warn any illegal login attempt.

Without Indeni how would you find this?
An administrator can log in the device to run the same command to retrieve this information.

junos-show-configuration-login-message

name: junos-show-configuration-login-message
description: JUNOS show the login message in the configuration
type: monitoring
monitoring_interval: 60 minute
requires:
    vendor: juniper
    os.name: junos
comments:
    login-banner:
        why: |
            The login banner is used to warn any illegal login attempt.
        how: |
            This script retrieves the login banner by running the command "show configuration system login message" command via SSH connection the the device.
        can-with-snmp: false
        can-with-syslog: false
steps:
-   run:
        type: SSH
        command: show configuration system login message
    parse:
        type: AWK
        file: show-configuration-login-message.parser.1.awk

cross_vendor_compare_login_banner

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