Loading

×Sorry to interrupt
Uncaught ReferenceError: addCTracking is not defined
throws at https://kb.vmware.com/resource/KM_TealiumTrackingJS?v=0.5:100:1

Refresh

Cookie Preference Center

General Information on cookies

When you visit our website, we use cookies to ensure that we give you the best experience. This information does not usually directly identify you, but it can give you a more personalized web experience. Because we respect your right to privacy, you can choose not to allow some types of cookies by clicking on the different category headings to find out more and change your settings. However, blocking some types of cookies may impact your experience on the site and the services we are able to offer. Further information can be found in our

Cookie Policy.

Strictly Necessary

Strictly Necessary

Always Active

Strictly Necessary

Strictly necessary cookies are always enabled since they are essential for our website to function. They enable core functionality such as security, network management, and website accessibility. You can set your browser to block or alert you about these cookies, but this may affect how the website functions. For more information please visit www.aboutcookies.org or www.allaboutcookies.org.

Cookie Details‎

Performance

Performance

Performance

Performance cookies are used to analyze the user experience to improve our website by collecting and reporting information on how you use it. They allow us to know which pages are the most and least popular, see how visitors move around the site, optimize our website and make it easier to navigate.

Cookie Details‎

Please confirm your settings by refreshing the page.

Functional

Functional

Functional

Functional cookies help us keep track of your past browsing choices so we can improve usability and customize your experience. These cookies enable the website to remember your preferred settings, language preferences, location and other customizable elements such as font or text size. If you do not allow these cookies, then some or all of these services may not function properly.

Cookie Details‎

Advertising

Advertising

Advertising

Advertising cookies are used to send you relevant advertising and promotional information. They may be set through our site by third parties to build a profile of your interests and show you relevant advertisements on other sites. These cookies do not directly store personal information, but their function is based on uniquely identifying your browser and internet device.

Cookie Details‎

Advertising Cookies

Consent Leg.Interest

Select All Vendors

Select All Vendors

Select All Hosts

Select All

Clear Filters

Information storage and access

Apply

Confirm My Choices Reject All Allow All

My Subscriptions

Loading

Knowledge Base

Configure pgAdmin to connect to a vRealize Automation instance (71153)

Last Updated: 7/16/2020Categories: How toTotal Views: 11457Language:
Chinese (Simplified)English

1 like this article

Subscribe to get an email
newsletter with new updates

1 people found this helpful Please provide article feedback:

Purpose

Provide detailed instructions on setting up external connections to vRealize Automation to allow remote pgAdmin connections to the embedded vPostgres database.

Impact / Risks

This knowledge article includes directions on how to query a live vPostgres database embedded on the vRealize Automation appliance.  If manual updates to the database are expected, ensure a valid backup is generated before any changes.

Resolution

Setting up pgAdmin

Download & Install the pgAdmin Tool:  https://www.pgadmin.org/download/

SSH into primary appliance

Retrieve the vPostgres password:

xpath /etc/vcac/server.xml "//@password" 2>&1 | grep password | cut -d'"' -f2
The result will look similar to:
s2enc~jczzANwNk35PNxcUuRjlGUIe9uF6y/ZkQfbm41j2Ln8=

Decrypt the password:

vcac-config prop-util -d --p 's2enc~jczzANwNk35PNxcUuRjlGUIe9uF6y/ZkQfbm41j2Ln8='

The result will look similar to:

EbjQVLiOypXHO3Zl

The password can be saved in the PGPASSWORD environment variable:

export PGPASSWORD="EbjQVLiOypXHO3Zl"

Log into vPostgres with the password:

/opt/vmware/vpostgres/current/bin/psql -h localhost vcac vcac

NOTE: This should connect to the database without asking for a password.
NOTE: Additional Tip: Add these two lines to the logged in user .profile in the vRealize Automation appliance so that it is executed at login:

pg_password=$(xpath /etc/vcac/server.xml "//@password" 2>&1 | grep password | cut -d'"' -f2)
export PGPASSWORD=$(vcac-config prop-util -d --p ${pg_password})

Update pg_hba.conf with new trust settings for external connections:

echo "host all all 0.0.0.0/0 trust" >> /var/vmware/vpostgres/current/pgdata/pg_hba.conf

Edit pg_hba.conf changing md5 to trust for vcac:

vi /var/vmware/vpostgres/current/pgdata/pg_hba.conf

Reload vPostgres configuration:

service vpostgres reload

Open the pgAdmin tool and create a server with hostname (vRAApplianceFQDN or ipAddress) and the Password from step 2.  The database connection should be successful

Use pgAdmin to interact with the database as necessary.

Revert the pg_hba.conf changes when pgAdmin access is no longer needed.

Detectable by VMware SkylineTM

Actions

Copy

link to clipboard
copied!

Print

Language:
Chinese (Simplified)English

Attachments

Additional Resources

KB
•
スケールアウト要求が部分的に成功すると、後続のリクエストが失敗する (71000)

KB
•
End Of General Availability of the Free vSphere Hypervisor (ESXi 7.x and 8.x) (2107518)

KB
•
Die Neukonfigurationsanforderung der virtuellen Maschine bleibt auf unbestimmte Zeit in vRealize Automation im Zustand „Neukonfigurieren“ hängen (71246)

KB
•
La solicitud de reconfiguración de la máquina virtual se bloquea en el estado "reconfigurar" de forma indefinida en vRealize Automation (71246)

KB
•
vRealize Log Insight 4.7 和 4.8 应对 CVE-2019-11477、CVE-2019-11478 和 CVE-2019-11479 的临时解决方案 (70892)

Results 1-5 of 5

Ask The Community

Get answers quickly from VMware experts in the community

Post Subject

CONTINUE IN COMMUNITIES

Related Products:

VMware Aria Automation

Related Versions:

VMware vRealize Automation 7.x

Take Our Survey

Support Assistant