Related Documentation
- M Series
- Configuring the Junos OS to Display a System Login Announcement
- Defining Junos OS Login Classes
- MX Series
- Configuring the Junos OS to Display a System Login Announcement
- Defining Junos OS Login Classes
- PTX Series
- Configuring the Junos OS to Display a System Login Announcement
- Defining Junos OS Login Classes
- T Series
- Configuring the Junos OS to Display a System Login Announcement
- Defining Junos OS Login Classes
Configuring the Junos OS to Display a System Login Message
By default, no login message is displayed. To configure a system login message, include the message statement at the [edit system login] hierarchy level:
If the message text contains any spaces, enclose it in quotation marks.
You can format the message using the following special characters:
- \n—New line
- \t—Horizontal tab
- \'—Single quotation mark
- \"—Double quotation mark
- \\—Backslash
The following is a sample login message configuration:
[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\authorization
to this equipment if you need access.\n\n\n";
}
}
}
The preceding login message configuration example produces 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 the Junos OS to Display a System Login Announcement.
Related Documentation
- M Series
- Configuring the Junos OS to Display a System Login Announcement
- Defining Junos OS Login Classes
- MX Series
- Configuring the Junos OS to Display a System Login Announcement
- Defining Junos OS Login Classes
- PTX Series
- Configuring the Junos OS to Display a System Login Announcement
- Defining Junos OS Login Classes
- T Series
- Configuring the Junos OS to Display a System Login Announcement
- Defining Junos OS Login Classes

