Skip to main content

Manage the MOTD

Contributors netapp-ahibbard netapp-barbe

You can manage the message of the day (MOTD) at the cluster or SVM level. By default, the MOTD configured for the cluster is also enabled for all SVMs. Additionally, an SVM-level MOTD can be configured for each SVM. The cluster-level MOTD can be enabled or disabled for each SVM by the cluster administrator.

For a list of escape sequences that can be used to dynamically generate content for the MOTD, see the command reference.

Choices
  • Manage the MOTD at the cluster level:

    If you want to…​ Then…​

    Create an MOTD for all logins when there is no existing MOTD

    Set a cluster-level MOTD:

    security login motd modify -vserver cluster_name { [-message "text"] | [-uri ftp_or_http_addr] }

    Change the MOTD for all logins when no SVM-level MOTDs are configured

    Modify the cluster-level MOTD:

    security login motd modify -vserver cluster_name { [-message "text"] } | [-uri ftp_or_http_addr] }

    Remove the MOTD for all logins when no SVM-level MOTDs are configured

    Set the cluster-level MOTD to an empty string (""):

    security login motd modify -vserver cluster_name -message ""

    Have every SVM display the cluster-level MOTD instead of using the SVM-level MOTD

    Set a cluster-level MOTD, then set all SVM-level MOTDs to an empty string with the cluster-level MOTD enabled:

    1. security login motd modify -vserver cluster_name { [-message "text"] | [-uri ftp_or_http_addr] }

    2. security login motd modify { -vserver !"cluster_name" } -message "" -is-cluster-message-enabled true

    Have an MOTD displayed for only selected SVMs, and use no cluster-level MOTD

    Set the cluster-level MOTD to an empty string, then set SVM-level MOTDs for selected SVMs:

    1. security login motd modify -vserver cluster_name -message ""

    2. security login motd modify -vserver svm_name { [-message "text"] | [-uri ftp_or_http_addr] }

      You can repeat this step for each SVM as needed.

    Use the same SVM-level MOTD for all (data and admin) SVMs

    Set the cluster and all SVMs to use the same MOTD:

    security login motd modify -vserver * { [-message "text"] | [-uri ftp_or_http_addr] }

    Note

    If you use the interactive mode, the CLI prompts you to enter the MOTD individually for the cluster and each SVM. You can paste the same MOTD into each instance when you are prompted to.

    Have a cluster-level MOTD optionally available to all SVMs, but do not want the MOTD displayed for cluster logins

    Set a cluster-level MOTD, but disable its display for the cluster:

    security login motd modify -vserver cluster_name { [-message "text"] | [-uri ftp_or_http_addr] } -is-cluster-message-enabled false

    Remove all MOTDs at the cluster and SVM levels when only some SVMs have both cluster-level and SVM-level MOTDs

    Set the cluster and all SVMs to use an empty string for the MOTD:

    security login motd modify -vserver * -message ""

    Modify the MOTD only for the SVMs that have a non-empty string, when other SVMs use an empty string, and when a different MOTD is used at the cluster level

    Use extended queries to modify the MOTD selectively:

    security login motd modify { -vserver !"cluster_name" -message !"" } { [-message "text"] | [-uri ftp_or_http_addr] }

    Display all MOTDs that contain specific text (for example, “January” followed by “2015”) anywhere in a single or multiline message, even if the text is split across different lines

    Use a query to display MOTDs:

    security login motd show -message *"January"*"2015"*

    Interactively create an MOTD that includes multiple and consecutive newlines (also known as end of lines, or EOLs)

    In the interactive mode, press the space bar followed by Enter to create a blank line without terminating the input for the MOTD.

  • Manage the MOTD at the SVM level:

    Specifying -vserver svm_name is not required in the SVM context.

    If you want to…​ Then…​

    Use a different SVM-level MOTD, when the SVM already has an existing SVM-level MOTD

    Modify the SVM-level MOTD:

    security login motd modify -vserver svm_name { [-message "text"] | [-uri ftp_or_http_addr] }

    Use only the cluster-level MOTD for the SVM, when the SVM already has an SVM-level MOTD

    Set the SVM-level MOTD to an empty string, then have the cluster administrator enable the cluster-level MOTD for the SVM:

    1. security login motd modify -vserver svm_name -message ""

    2. (For the cluster administrator) security login motd modify -vserver svm_name -is-cluster-message-enabled true

    Not have the SVM display any MOTD, when both the cluster-level and SVM-level MOTDs are currently displayed for the SVM

    Set the SVM-level MOTD to an empty string, then have the cluster administrator disable the cluster-level MOTD for the SVM:

    1. security login motd modify -vserver svm_name -message ""

    2. (For the cluster administrator) security login motd modify -vserver svm_name -is-cluster-message-enabled false