By default, no login message is displayed. To configure a system login message, include the message statement at the [edit system login] hierarchy level:
- [edit system login]
-
message text;
If the message text contains any spaces, enclose it in quotation marks.
Special Characters—You can format the message using the following special characters:
[edit]
system {
login {
message "\n\n\n\tUNAUTHORIZED USE OF THIS SYSTEM\n
\tIS STRICTLY PROHIBITED!\n\n\tPlease contact
\'company-noc@company.com\' to gain\naccess
to this equipment if you need authorization.\n\n\n";
}
}
}
The above login message configuration example would produce a login message similar to the following:
server% telnet router1
Trying 1.1.1.1...
Connected to router1.
Escape character is '^]'.
UNAUTHORIZED USE OF THIS SYSTEM
IS STRICTLY PROHIBITED!
Please contact 'company-noc@company.com' to gain
access to this equipment if you need authorization.
router1 (ttyp0)
login:
A system login message appears before the user logs in. A system login announcement appears after the user logs in. See Configuring a System Login Announcement.