MTCL Banner on Alcatel OxE

If you want to add a banner on the login of mtcl then do the following.

This is an updated how-to as editing the .bashrc file introduces an issue on using the mastercopy command which stops it from working!

>vi .local_profile or on later releases use nano .local_profile (unless you really like using vi) if the file doesn’t exist this will create it.

(if you want it to be displayed for all logins then use /etc/issue (for v24) or /etc/issue.net (for telnet/ssh))
Enter the lines that you want to display using echo -e “(text that you want)” at the end of the file
For formatting you can use the following, so to add 2 new lines and a tab it would be echo -e “\n\n\t”

Example:

echo -e “\n\n”
echo -e “\t ___________________________________________
echo -e “\t | This login is restricted to “Company X employees |”
echo -e “\t | Don’t use it in any other circumstances! |”
echo -e “\ | By order of Sys Admin |”
echo -e “\t ___________________________________________\n\n”

OptionsDefinition
-nDo not print the trailing newline
-EDisable interpretation of back-slash escaped characters
-eEnable interpretation of backslash escapes
\aAlert
\bBackspace
\cSuppress trailing newline
\eEscape
\fForm feed
\\backslash
\nNew line
\rCarriage return
\tHorizontal tab
\vVertical tab
Formatting options
chris.newby Written by: