创建 MOTD
您可以创建当天消息(MOTD)以便将信息传递给经过认证的 CLI 用户。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 <span className="ph">SVM</span>. Your user ID is '\N'. Your last successful login was \L.
2 entries were displayed.
cluster1::>
提供反馈