Skip to content

Banner

Banner configuration defines text messages displayed to users during device access on NX-OS, providing legal notices, usage warnings, and operational information before and after login. It supports both message-of-the-day (MOTD) banners shown at initial connection and exec banners displayed after successful authentication, enabling compliance with security policies requiring authorized-use notifications. Banners are essential for establishing legal standing regarding unauthorized access and communicating important operational information to network administrators.

Diagram
NameTypeConstraintMandatoryDefault Value
bannerClass[banner]No

NameTypeConstraintMandatoryDefault Value
motdStringNo
execStringNo

Example 1: MOTD banner with authorized access warning

nxos:
devices:
- name: LEAF1
configuration:
banner:
motd: >-
*** AUTHORIZED ACCESS ONLY ***
This system is the property of Example Corp.
Unauthorized access is strictly prohibited and
will be prosecuted to the fullest extent of the law.
All activity is monitored and logged.

Example 2: Both MOTD and exec banners for production fabric switches

nxos:
devices:
- name: SPINE1
configuration:
banner:
motd: >-
*** WARNING: AUTHORIZED PERSONNEL ONLY ***
This network device is part of the Example Corp
production data center fabric. Disconnect immediately
if you are not an authorized administrator.
All sessions are logged and monitored.
exec: >-
You are connected to SPINE1 - Production DC Fabric.
Change control policy applies to all configuration changes.
Contact NOC at noc@example.com for emergency support.