Manoj Reddy's Reference Guide

banner motd

To specify a message-of-the-day (MOTD) banner, use the banner motd global configuration command. The no form of this command deletes the MOTD banner.

banner motd d message d

no banner motd

Syntax Description

Delimiting character of your choice a pound sign (#), for example. You cannot use the delimiting character in the banner message.

message 

Message text.

Defaults

No MOTD banner is specified.

Command Modes

Global configuration

Command History

ReleaseModification
10.0

This command was introduced.

Usage Guidelines

Follow this command with one or more blank spaces and a delimiting character of your choice. Then enter one or more lines of text, terminating the message with the second occurrence of the delimiting character.

This MOTD banner is displayed to all terminals connected and is useful for sending messages that affect all users (such as impending system shutdowns). Use the no exec-banner or no motd-bannercommand to disable the MOTD banner on a line. The no exec-banner command also disables the EXEC banner on the line.

When someone connects to the router, the MOTD banner appears before the login prompt. After the user successfully logs in to the router, the EXEC banner or incoming banner will be displayed, depending on the type of connection. For a reverse Telnet login, the incoming banner will be displayed. For all other connections, the router will display the EXEC banner.

The banner command without any keywords specified defaults to the banner motd command. When a new banner motd command is added to the configuration, it overwrites the existing banner command if no keyword is specified. Similarly, if a banner command is added to the configuration, any existing banner motd command is overwritten.

Examples

The following example sets a MOTD banner. The pound sign (#) is used as a delimiting character.

banner motd #Building power will be off from 7:00 AM until 9:00 AM this coming Tuesday.#

Related Commands

CommandDescription
banner exec Displays a banner on terminals with an interactive EXEC. This command specifies a message to be displayed when an EXEC process is created (a line is activated, or an incoming connection is made to a VTY line).
banner incoming Specifies a banner used when you have an incoming connection to a line from a host on the network.
banner login Displays a login banner. This command specifies a message to be displayed before the username and password login prompts.
exec-banner Displays EXEC and MOTD banners.
motd-banner Displays message-of-the-day (MOTD) banners.

Printed for apswan@ctr.ap.nic.in on Wed Mar 5 22:32:57 PST 2003

All material in this document copyright 2000 Cisco Systems, Inc. All rights reserved. No material may be reproduced or distributed without written permission of Cisco Systems, Inc.