Message Of The Day(MOTD)を作成して、認証されたCLIユーザに情報を提供することができます。MOTDは、ユーザの認証後、クラスタシェル プロンプトが表示される前に、コンソール セッション(クラスタ アクセスのみ)またはSSHセッション(クラスタ アクセスまたはSVMアクセス)に表示されます。
次の例では、非対話型モードを使用してクラスタcluster1
用のMOTDを作成しています。
cluster1::> security login motd modify -message "Greetings!" cluster1::>
次の例では、対話型モードを使用してSVMsvm1
用のMOTDを作成しています。この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::>