create_siteguard_credential_association

Associates the credentials with the targets in a site.

Format

emcli create_siteguard_credential_association
      -system_name=<name>
      [-target_name=<name>]
      -credential_type=<type>
      [-credential_name=<name>]
      [-use_preferred_credential=<type>]
      -credential_owner=<owner>

[ ]  indicates that the parameter is optional.

Options

  • system_name

    Name of the system.

  • target_name

    Name of the target.

  • credential_type

    Type of credential, which can be HostNormal, HostPrivileged, WLSAdmin, or DatabaseSysdba.

  • credential_name

    Name of the credential. If you do not specify this option, you need to specify the use_preferred_credential parameter.

  • use_preferred_credential

    Name of the credential. If you do not specify this option, you need to specify the credential_name parameter.

  • credential_owner

    Owner of the credential.

Examples

Example 1

emcli create_siteguard_credential_association
      -system_name="BISystem1"
      -credential_type="HostNormal"
      -credential_name="HOST-SGCRED"
      -credential_owner="sysman"

Example 2

emcli create_siteguard_credential_association
      -system_name="BIsystem1"
      -target_name="database-instance"
      -credential_type="HostNormal"
      -credential_name="HOST-DBCRED"
      -credential_owner="sysman"