Skip to main content
A newer release of this product is available.

security login totp create

Contributors
Suggest changes

Add a TOTP secret

Availability: This command is available to cluster and Vserver administrators at the admin privilege level.

Description

The security login totp create associates an new secret key with a user account. This command requires that you enter a user name.

Parameters

-vserver <vserver name> - Vserver

This parameter optionally specifies the Vserver of the user for whom you are adding the secret key.

-username <text> - Username

This parameter specifies the name of the user for whom you are adding the secret key. If you do not specify a user in case of Cserver, the user named admin is specified by default. If it is a data vserver, it defaults to logged-in user

[-comment <text>] - Comment

This optionally specifies comment text for the TOTP key. Note that comment text should be enclosed in quotation marks.

Examples

The following command creates a secret key with a user named tsmith for Vserver vs1. The secret key has a comment text is “This is a new key”.

cluster1::> security login totp create -vserver vs1 -username tsmith
-comment "This is a new key"