Use the following examples to set preferences for user accounts. If you log into the CLI with other than your own account, the preferences are saved for that user, such as the root user. See Example 2 for how to change preferences for user accounts other than the one currently logged in to.
To set preferences for the current user account, use the following CLI commands.
This example shows setting the session annotation property, which can only be set for the currently logged in user.
hostname:> configuration preferences
hostname:configuration preferences> show
Properties:
locale = C
login_screen = status/dashboard
session_timeout = 15
session_annotation =
advanced_analytics = false
Children:
keys => Manage SSH public keys
hostname:configuration preferences> set session_annotation="Editing my user preferences"
session_annotation = Editing my user preferences (uncommitted)
hostname:configuration preferences> commit
Example 10 Setting Preferences for a Different User Account
To set preferences for a different user account, use the following CLI commands. Note that you cannot set a session annotation for a user other than the currently logged in user.
This example shows enabling advanced analytics for a selected user.
hostname:> configuration users
hostname:configuration users> select brendan
hostname:configuration users brendan> preferences
hostname:configuration users brendan preferences> show
Properties:
locale = C
login_screen = status/dashboard
session_timeout = 15
advanced_analytics = false
Children:
keys => Manage SSH public keys
hostname:configuration users brendan preferences> set advanced_analytics=true
advanced_analytics = true (uncommitted)
hostname:configuration users brendan preferences> commit