Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All

    Configuring Junos OS to Display a System Login Message

    By default, no login message is displayed on the router or switch. 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 10.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.

    Modified: 2016-06-21