|
您可以创建每日消息 (MOTD),以便向通过身份验证的命令行界面用户传达信息。在用户通过身份验证后,显示 clustershell 提示符之前,控制台会话(仅适用于集群访问)或 SSH 会话(适用于集群或 SVM 访问)会显示此 MOTD。
以下示例将使用非交互模式为“cluster1”集群创建 MOTD:
cluster1::> security login motd modify -message "Greetings!" cluster1::>
以下示例将使用交互模式为“svm1”SVM 创建 MOTD,并使用转义序列显示动态生成的内容:
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::>
以下示例将显示已创建的 MOTD:
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.
cluster1::>