Configuring an End Point Operations Management Agent silent configuration script to populate the required fields automatically
search cancel

Configuring an End Point Operations Management Agent silent configuration script to populate the required fields automatically

book

Article ID: 340758

calendar_today

Updated On:

Products

VMware Aria Suite

Issue/Introduction

When configuring the End Point Operations Management Agent there are several parameters that need to be set before the agent successfully sends data back to vRealize Operations Manager.

This article provides guidance on configuring a script to assist with the silent configuration of the End Point Operations Management Agent.

Environment

VMware vRealize Operations Manager 6.1.x

Resolution

To configuring a silent configuration script:
  1. Set the username and password for agent/node communications by running these commands:

    /opt/vmware/epops-agent/bin/ep-agent.sh set-property agent.setup.serverLogin admin
    /opt/vmware/epops-agent/bin/ep-agent.sh set-property agent.setup.serverPword VMware123
    !

    Where admin and VMware123! is the desired username and password.

  2. Allow the agent to accept an unverified certificate by running this command::

    /opt/vmware/epops-agent/bin/ep-agent.sh set-property accept.unverified.certificates true

  3. Set the hostname/IP of the vRealize Operations Manager node by running this command:

    /opt/vmware/epops-agent/bin/ep-agent.sh set-property agent.setup.serverIP Hostname_or_IPaddress

    Where Hostname_or_IPaddress is the hostname or IP address of the vRealize Operations Manager node that accepts Endpoint Operations agent traffic. For example: vropsvm-3.vcloud.local

  4. Set the port to be used for agent/node communications by running this command:

    /opt/vmware/epops-agent/bin/ep-agent.sh set-property agent.setup.serverSSLPort 443

  5. Obtain the vRealize Operations Manager SSL certificate thumbprint and put it into the agent.properties file by running this command:

    openssl s_client -connect vropsvm-3.vcloud.local:443 > /tmp/vropsvm-3.vcloud.local.cert.pem
    /opt/vmware/epops-agent/bin/ep-agent.sh set-property agent.setup.serverCertificateThumbprint $(openssl x509 -fingerprint -noout -in /tmp/vropsvm-3.vcloud.local.cert.pem |awk -F= '{print $2}');rm /tmp/vropsvm-3.vcloud.local.cert.pem


    Where hostname_or_IPaddress is the hostname or IP address of the vRealize Operations Manager node that accepts Endpoint Operations agent traffic. For example: vropsvm-3.vcloud.local

  6. Start the Endpoint Operations agent service by running this command:

    /opt/vmware/epops-agent/bin/ep-agent.sh setup


Additional Information

You see output similar to this when starting the Endpoint Operations agent service:

depth=1 CN = vc-ops-cluster-ca_cfbe43f8-ae3c-4079-8247-a1264db2ab5f, O = "VMware, Inc.", OU = MBU
verify error:num=19:self signed certificate in certificate chain
verify return:0

Starting End Point Operations Management Agent...... running (27169).
[ Running agent setup ]
- The agent loaded an existing token
1442267823173-1245504375321477747-7751060404281102996
Enter the server hostname or IP address: vropsvm-3.vcloud.local
Enter the server SSL port [default=443]: 443
- Testing secure connection ...
Found a certificate thumbprint that matches the one provided in the properties file.
- Connection successful.
Enter your server username: admin
Enter your server password: **Not echoing value**
- Registering the agent with server.
- The agent has received a client certificate from server.
- The agent has been successfully registered.
[ Running agent setup ]
- The agent loaded an existing token
1442267823173-1245504375321477747-7751060404281102996
- The agent is already setup for [email protected]:443
- Testing secure connection ...
- Connection successful.
Enter your server username: admin
Enter your server password: **Not echoing value**
- Sending request for a new certificate
- The agent has received a client certificate from server.
- The agent has successfully acquired a new certificate.



配置终端 Operations Management 代理静默配置脚本以自动填充所需字段