vRealize Operations 6.1 End Point with existing JRE

In an earlier post, I shared that the vRealize Operations 6.1 End Point agent uses Java. Because Java can be a source of complexity on its own, vRealize Operations provides you with choice.

  1. You can use your own, existing Java that is already installed.
  2. You can use the embedded Java that comes with the installer.

Since I’ve covered the embedded Java in the earlier post, I’d now cover the existing Java in this post.

Java is a world by itself. The first thing you need to know is there are 2 JRE. The client JRE and Server JRE. What you want is the client JRE. You get it by simply pointing your browser to www.java.com, and click the Free Java Download. It does not say JRE, but that’s what you are getting.

The Server JRE is from another download site. Just in case you’re not sure, I’m showing it below.

a0

Going back to your www.java.com, the button will automatically select the latest Java for you. Strangely, it installed JRE 1.8 51 instead of 60 for me. Looks like there is different Java version for different of Windows. Simply follow the instruction.

When you are done, it will look something like this.

a1

Once you are done, launch the Java Control Panel. Go to your Windows Start Menu and find it there. Once launched, click the Java tab, as shown below. From there click on the View button. It will pop up a window, where you can find all your JRE. This can take minutes. In my example below, it finds a couple of JRE.

a20

Click Finish, and it will copy what it found. Notice now I have a lot more JRE.

a2

The weird thing is after I close the window, and open it again, it’s showing less JRE. Perhaps it considered some as duplicates as they are just symbolic links. Take note your JRE location. In my case below, it is c:\program files (x86)\java\jre1.8.0_51.

a3

We need to manually specify this directory in the Windows system variables. To do that, go to your System, and bring up the Systems Properties window. On the window, click on the Environment Variables.

If you are unable to find the setting in Windows 2012, here is a good guide. It’s better than the Technet article as I could not follow the later.

This will bring up the Environment Variables window. Click on New button. In the dialog box, type

  • HQ_JAVA_HOME as the variable name
  • C:\program files (x86)\java\jre1.8.0_51 as the variable value. Do not include the bin directory, as the agent has added it on its installer. If the space does not work, use C:\progra~1\java\jre1.8.0_51. Whether it is progra~1 or progra~2 or progra~3 depends on your Windows translation. Just open a command prompt that type progra~1 and it will show you the directory. From there, you can see what it translates to

a4 HQ_Java system variable

The above completes the Java installation, but we are not done yet. vRealize Operations expects the  Java Cryptography Extension (JCE) with Unlimited Strength Jurisdiction. For that, you need to download the files, and replace the standard file.

You download the JCE from the the URL below. No registration required.

b1

It is just a single, small zipped file. Open it, and you will see 3 files. Copy the files into your java\lib\security. See mine as example below.

b2 preparation - overwrite existing CE

Now that you’ve got the prerequisite completed, you’re ready to download and install the End Point agent. The VMware download page can be confusing, so I’ve highlighted what you need to download for Windows. It applies to both Windows server (e.g. 2008) and Windows desktop. It applies to both 32 bit and 64 bit.

c1

Once you downloaded, do this

  1. Unzip it.
  2. Open a command prompt
  3. Go to the installer directory. In my case, I called the directory vrops.
  4. Go to bin subdirectory.

The installation has 2 steps.

Step 1: execute ep-agent.bat install.

This should only take a few seconds. It’s just setting up, not doing the real install, so I did not show it on the screenshot below.

Step 2: execute ep-agent.bat start.

This is the real install. As you can see below, it’s only asking a few question. It asks for the following:

  • vRealize Operations server hostname or IP. I provided the FQDN, which is vrealize-ops-6.vmsg.lab in my case.
  • Default port. I left it as 443
  • Certificate to trust. I typed yes as I’m using the default one. Yair Yogev from vRealize team in Israel shared with me that if you have your own certificate, the installer would present that instead. Certainly, you need to modify the agent.properties file first.
  • User name. I used Admin.
  • Password. No, not gonna tell you 🙂

And that’s it. It only took around 1 minute.

c2 install

Some tips on troubleshooting:

  • If the ep-agent.bat complains about your HQ_JAVA_HOME directory, try to close the Command window, and opened it again. It could be a refreshed issue.
  • If the ep-agent.bat complains about wrong IP or port were used, uninstall it first. This includes manually removing EP Ops Agent directory at the C:\ProgramData\VMware.

Hope it helps!