resecure_agent
Resecures a Management Agent already secured. This verb requires operator privilege or full privilege on the Management Agent.
Format
emcli resecure_agent
        -agent_name="agent_target_name"
        -registration_pwd="registration_password"
        [-host_username="agent_host_username" -host_pwd="agent_host_password"]
        [-credential_name="credential_name"]
        [-credential_setname="credential_setname_of_agent"]
[ ]  indicates that the parameter is optionalOptions
- 
                        agent_name Name of the Management Agent target. 
- 
                        registration Registration password to securely communicate with OMS. 
- 
                        host_username User name of the OS user (on the host) who owns the Management Agent. 
- 
                        host_pwd Password of the OS user (on the host) who owns the Management Agent. 
- 
                        credential_name Name of the saved credential. 
- 
                        credential_setname Name of the credential set of the Management Agent. Example: "HostCreds". 
Examples
Example 1
emcli resecure_agent -agent_name="agent.example.com:1234"
                           -registration_pwd="test_pwd"
                           -host_username="test_user"
                           -host_pwd="test"
Example 2
emcli resecure_agent -agent_name="agent.example.com:1234"
                           -registration_pwd="test_pwd"
                           -credential_name="MyMachineCredential"