stop_agent

Shuts down a Management Agent. This verb requires operator privilege or full privilege on the Agent.

Format

emcli stop_agent
        -agent_name="agent_target_name"
        [-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 optional

Options

  • agent_name

    Name of the Management Agent target.

  • 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 stop_agent -agent_name="agent.example.com:1234"
                           -host_username="test_user"
                           -host_pwd="test"

Example 2

emcli stop_agent -agent_name="agent.example.com:1234"
                           -credential_name="MyMachineCredential"