switch_swlib_oms_agent_storage

Modify a Software Library OMS Agent storage location to change the associated OMS Host and the credential for accessing the location.

Format

emcli switch_swlib_oms_agent_storage 
        -name="location_name" 
        -host="hostname" 
        [-credential_set_name="setname"] | [-credential_name="name" 
           -credential_owner="owner"]

[ ]  indicates that the parameter is optional

Options

  • name

    Name of an existing OMS Agent storage location.

  • host

    Target name of the OMS host where the file system path for the storage location exists.

  • credential_set_name

    Set name of the preferred credential stored in the repository for the host target. The value can be one of the following:

    • HostCredsNormal — Default unprivileged credential set

    • HostCredsPriv — Privileged credential set

  • credential_name

    Name of a named credential stored in the repository. You must specify this option with the -credential_owner option.

  • credential_owner

    Owner of a named credential stored in the repository. You must specify this option with the -credential_name option.

Examples

This example modifies the OMS Agent file system storage location named 'myOMSAgtLocation' to use the specified host 'fs1.us.acme.com', and the named credential 'MyAcmeCreds' owned by 'ACME_USER' for reading/writing files from/to this location.'

emcli switch_swlib_oms_agent_storage 
        -name="myOMSAgtLocation"
        -host="fs1.us.acme.com"  
        -credential_name="MyAcmeCreds"
        -credential_owner="ACME_USER"