Actions

Cisco banners

From Ever changing code

Banner	Telnet			SSHv1			SSHv2
motd	Displayed before login	Displayed after login	Displayed after login
login	Displayed before login	Not displayed		Displayed before login
exec	Displayed after login	Displayed after login	Displayed after login

The exec banner is displayed after authentication therefore it is safe to display system specific info thus certain variables can be used. See an example below to display a hostname and a domain name using $(variable).

banner exec ^C  You have logged in to $(hostname).$(domain).  ^C

Examples

Example 1

            YOU HAVE ACCESSED A DEVICE THAT IS A PART OF A
                    PRIVATE NETWORK INFRASTRUCTURE
 
        *********************************************************
        *                                                       *
        *     Unauthorised access or use of this equipment      *
        *      is prohibited and constitutes an offence         *
        *        under the Computer Misuse Act 1990.            *
        *     If you are not authorised to use this system      *
        *         TERMINATE THIS SESSION IMMEDIATELY            *
        *                                                       *
        *********************************************************


Example 2

********************************************************************
*                                                                  *
* This system is for the use of authorized users only.  Usage of   *
* this system may be monitored and recorded by system personnel.   *
*                                                                  *
* Anyone using this system expressly consents to such monitoring   *
* and is advised that if such monitoring reveals possible          *
* evidence of criminal activity, system personnel may provide the  *
* evidence from such monitoring to law enforcement officials.      *
*                                                                  *
********************************************************************