Technical Documentation

Configuring the JUNOS Software 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:

[edit system login]message text;

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\naccess 
                 to this equipment if you need authorization.\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 Software to Display a System Login Announcement.


Published: 2010-04-26