test_named_credential

Tests the named credentials provided in the list. Instance credentials are tested against the credential target. Global credentials are tested against the target provided.

Format

emcli test_named_credential 
       -cred_names=<cred_name_list> 
       [-target_name=<target_name>] 
       [-target_type=<target_type>] 

Options

  • cred_names

    List of credential names to be tested.

  • target_name

    Target name to test the global credentials. Instance credentials are tested against their respective targets.

  • target_type

    Target type to test the global credentials.

Examples

Example 1

This example tests the instance named credentials NC1 owned by the current logged in user and NC2 owned by ADMIN1.

emcli test_named_credential 
        -cred_names="NC1;NC2:ADMIN1"

Example 2

This example tests the global host named credentials NC1, NC2, and NC3 against the target testhost.example.com.

emcli test_named_credential 
        -cred_names="NC1;NC2;NC3" 
        -target_name="testhost.example.com"
        -target_type="host