Creating a MOTD
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.
Examples of creating MOTDs
The following example uses the noninteractive mode to create a MOTD for the cluster1
cluster:
cluster1::> security login motd modify -message "Greetings!"
cluster1::>
The following example uses the interactive mode to create a 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.
cluster1::>
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 <span className="ph">SVM</span>. Your user ID is '\N'. Your last successful login was \L.
2 entries were displayed.
cluster1::>
Give documentation feedback