List Credentials
List credentials:
-
Login as the user who installed the agent.
$ su oracle
-
Navigate to the
omcli
directory location.$ cd <AGENT_BASE_DIR>/agent_inst/bin
-
List credentials by using:
$ omcli list_credentials agent [ TARGETNAME:TARGETTYPE | -global ] [ -usage USAGE ]
The command lists the non-sensitive credential attributes for specified credentials. If no optional parameters are specified, it lists all credentials.
Where:
-
TARGETNAME:TARGETTYPE
: lists the specified credential definitions relative to the entity namedTARGETNAME:TARGETTYPE
.TARGETNAME
is the name part of the target id of the credential definition.TARGETTYPE
is the type part of the target id of the credential definition. -
-global
: lists credential definitions with global names. -
-usage
: it only lists credentials that may be used for that usage. When it’s supplied,USAGE
can be any of the following values: ORCHESTRATION, MONITORING, or INTERNAL.
For example, you can run the following:
$ omcli list_credentials agent Oracle Management Cloud Agent Copyright (c) 1996, 2018 Oracle Corporation. All rights reserved. Credential Name Type Entity Global Name Usage host1.example.com-HostSSHPwdCreds HostSSHPwdCreds (host1.example.com) "emcosComplianceCred"
-