Create message-of-the-day text for ONTAP users
You can create a message of the day (MOTD) to communicate information to authenticated CLI users. The MOTD is displayed in a console session (for cluster access only) or an SSH session (for cluster or SVM access) after a user is authenticated but before the clustershell prompt appears.
- 
Use the
security login motd modifycommand to create an MOTD for the cluster or SVM:If you want to… Then… Specify a message that is a single line
Use the
-message"text" parameter to specify the text.Include newlines (also known as end of lines)
Use the command without the
-messageor-uriparameter to launch the interactive mode for editing the MOTD.Upload content from a location to use for the MOTD
Use the
-uriparameter to specify the content's FTP or HTTP location.The maximum size for an MOTD is 2,048 bytes, including newlines.
Security login motd modifydescribes the escape sequences that you can use to enable the MOTD to display dynamically generated content.An MOTD created by using the
-uriparameter is static. It is not automatically refreshed to reflect subsequent changes of the source content.An MOTD created for the cluster is displayed also for all SVM logins by default, along with an SVM-level MOTD that you can create separately for a given SVM. Setting the
-is-cluster-message-enabledparameter tofalsefor an SVM prevents the cluster-level MOTD from being displayed for that SVM. - 
Verify that the MOTD has been created by displaying it with the
security login motd showcommand.Specifying the
-messageparameter with an empty string (``) displays MOTDs that are not configured or have no content.Learn more about
security login motd modifyand parameters to enable the MOTD to display dynamically generated content in the ONTAP command reference. 
The following example uses the noninteractive mode to create an MOTD for the cluster1 cluster:
cluster1::> security login motd modify -message "Greetings!"
The following example uses the interactive mode to create an MOTD for the svm1 SVM that uses escape sequences to display dynamically generated content:
cluster1::> security login motd modify -vserver svm1 Enter the message of the day for Vserver "svm1". Max size: 2048. Enter a blank line to terminate input. Press Ctrl-C to abort. 0 1 2 3 4 5 6 7 8 12345678901234567890123456789012345678901234567890123456789012345678901234567890 Welcome to the \n SVM. Your user ID is '\N'. Your last successful login was \L.
The following example displays the MOTDs that have been created:
cluster1::> security login motd show Vserver: cluster1 Is the Cluster MOTD Displayed?: true Message ----------------------------------------------------------------------------- Greetings! Vserver: svm1 Is the Cluster MOTD Displayed?: true Message ----------------------------------------------------------------------------- Welcome to the \n SVM. Your user ID is '\N'. Your last successful login was \L. 2 entries were displayed.
Learn more about security login motd show in the ONTAP command reference.