storedcredentials
This command creates, modifies and deletes stored credentials in Lenovo XClarity Administrator.
Syntax
storedcredentials -h
storedcredentials [-v <filter>]
storedcredentials -u <user_name> -p <password> [-d <description>]
storedcredentials -i <stored_credential_ID> [-u <user_name>] [-p <password>]
[-d <description>]
storedcredentials --delete_id <stored_credential_ID>
Options
- {-h | --help}
- Displays the syntax and brief usage information for this command.
- --delete_id <stored_credential_ID>
- Deletes the specified stored-credential account.
- {-d | --description} <description>
- Specifies the description of the stored-credential account
- {-i | --id} <stored_credential_ID>
- Specifies the ID of the stored-credential account to be managed. If specified, the stored credential is updated. If not specified, the stored credential is created.
- {-p | --password} <password>
- Specifies the password of the stored-credential account.
- {-u | --user_name} <user_name>
- Specifies a user name of the stored-credential account.
- {-v | --view} <filter>
- Identifies the view to use for the returned data. If a filter is not specified, the default view is used.
You can also create custom views (see Creating custom views).
Examples
The following example returns information about all stored credentials.
connect --url https://192.0.2.0 --user ADMIN --noverify
storedcredentials
The following example creates a new stored credential.
connect --url https://192.0.2.0 --user ADMIN -noverify
storedcredentials -u USERID -p xxxxxxxx
The following example changes the user name and password for a stored credential.
connect --url https://192.0.2.0 --user ADMIN -noverify
storedcredentials –i AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA -u USERID2 -p xxxxxxxx
The following example deletes a stored credential.
connect --url https://192.0.2.0 --user ADMIN -noverify
storedcredentials --delete_id AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Give documentation feedback