Note: Do not perform these operations against VMware Aria Automation (formerly vRealize Automation) refresh tokens.
su root -c "echo -e 'password'|/usr/local/bin/pcp_watchdog_info -p 9898 -h localhost -U pgpool"
export PGPASSWORD=`cat /usr/local/horizon/conf/db.pwd`
/opt/vmware/vpostgres/current/bin/psql -U postgres saas
SELECT "idClient", count("idClient") AS counter FROM "OAuth2RefreshToken" GROUP BY "idClient" ORDER BY counter DESC;
SELECT DISTINCT(ORT."idClient"), OC.* FROM "OAuth2RefreshToken" ORT, "OAuth2Client" OC WHERE ORT."idClient" = OC."id" ORDER BY ORT."idClient";
idClient | 515
id | 515
idOrganization | 2
idIdentityProvider |
clientId | {nsx local manager for management domain fqdn fqdn.example.com}.nsx_mgr_oauth_client.XXXXXXXXX
secrt | {secrt *XXXXXXX*}
scope | user
authGrantTypes | authorization_code password refresh_token
authorities |
redirectUri | https://{nsx local manager for management domain fqdn fqdn.example.com}/vidm-oauth2-login
idEncryptionMethod | 2
tokenType | Bearer
length | 32
accessTokenTTL | 15
refreshTokenTTL | 43200
displayUserGrant | f
createdDate | 2023-XX-XX 00:00:58.199
timestamp | XXXXXXXXXXXXXX
idUser |
rememberAs |
strData |
idDevice |
resourceUuid |
templateAppProductId |
internalSystemClient | f
userDeviceId |
inheritanceAllowed | f
refreshTokenIdleTTL |
strConfiguration | {
+
SELECT id, "authGrantTypes" FROM "OAuth2Client" WHERE id IN (idClientN1, idClientN2) ORDER BY "authGrantTypes" DESC;
SELECT id, "authGrantTypes" FROM "OAuth2Client" WHERE id IN (564,515,565,621) ORDER BY "authGrantTypes" DESC;
id | authGrantTypes
-----+------------------------------------------
564 | refresh_token client_credentials
515 | refresh_token client_credentials
565 | refresh_token client_credentials
621 | authorization_code password refresh_token
UPDATE "OAuth2Client" SET "authGrantTypes"='client_credentials' WHERE id IN (idClientN1, idClientN2);
UPDATE "OAuth2Client" SET "authGrantTypes"='client_credentials' WHERE id IN (564,515,565);
UPDATE "OAuth2Client" SET "authGrantTypes"='authorization_code password' WHERE id IN (621);
SELECT id, "authGrantTypes" FROM "OAuth2Client" WHERE id IN (idClientN1, idClientN2) ORDER BY "authGrantTypes" DESC;
SELECT id, "authGrantTypes" FROM "OAuth2Client" WHERE id IN (564,515,565,621) ORDER BY "authGrantTypes" DESC;
id | authGrantTypes
-----+----------------------------
564 | client_credentials
515 | client_credentials
565 | client_credentials
621 | authorization_code password
Note: For Database related changes, please take same time snapshot without memory for vIDM nodes in the cluster. In case of a situation requiring rollback to Snapshot, please engage VMware Support
service horizon-workspace restart
on all IDM nodes appliance and can check if the disk space start to reduce.Impact/Risks:
If the /db partition is full, all system operations will halt.