使用此过程可为当前登录的用户或您对其具有 changePreferences 授权的任何用户设置首选项。有关获取 changePreferences 授权的信息,请参见用户授权和“编辑用户的例外 (BUI, CLI)”。
hostname:> configuration users
要为当前登录用户以外的其他用户编辑首选项,您必须对该用户具有 changePreferences 授权。
hostname:configuration users> select username
请注意,仅对当前登录用户显示 session_annotation 属性。
hostname:configuration users username> preferences hostname:configuration users username preferences> show Properties: locale = C login_screen = status/dashboard session_timeout = 15 cli_idle_timeout = infinite (default) session_annotation = advanced_analytics = false Children: keys => Manage SSH public keys tokens => Manage REST tokens
有关说明,请参见首选项属性。
默认情况下,浏览器会在用户不活动 15 分钟后自动注销 BUI 会话。要设置其他限制,请为 session_timeout 指定其他正整数。
默认情况下,对于 CLI 可以闲置的时间长度没有限制 (infinite)。要对 CLI 可以闲置的时间长度设置限制,请为 cli_idle_timeout 设置值,例如 15 分钟或 1 小时。默认时间单位为秒,因此,如果输入值 1800(未指定任何单位),则超时值为 1800 秒或 30 分钟。如果达到超时限制,将关闭 CLI。要禁用超时,请将 cli_idle_timeout 值设置为 infinite,或指定以下命令:
hostname:configuration preferences> unset cli_idle_timeout cli_idle_timeout = infinite (default, uncommitted)
有关 keys 的更多信息,请参见设置 SSH 公钥 (CLI)。
此方法仅允许为当前登录的用户设置首选项。