Skip to content

Instantly share code, notes, and snippets.

View jibanezvela's full-sized avatar

José Ibañez jibanezvela

View GitHub Profile
@imravichaudhary
imravichaudhary / unlock-and-reset-account-in-mongo-ops-manager.md
Last active November 14, 2022 20:54
Unlock and reset account in Mongo Ops Manager when SMTP not set up

To unlock the account in Mongo Ops Manager when smtp not setup

  • Connect the Mongo Ops Manager AppDB using Mongo Shell
  • Run below command
  • use mmsdbconfig
  • db.config.users.update({"un": ""}, {$set: {"isLocked": false, lastPageView: new Date()}})

To reset the account in Mongo Ops Manager when smtp not setup

  • Click on the reset password link from the ops manager login page
@dlinsley
dlinsley / getVcVirtualMachineFromVcacVirtualMachine.js
Last active September 25, 2018 15:57
Get vCenter VirtualMachine from vRA VirtualMachine
// VMware vRealize Orchestrator (vRO) action sample
//
// Returns the vCenter VM for a vCAC/vRA VM
//
// For vRO/vRA 7.0+
//
// Action Inputs:
// vCACVm - vCAC:VirtualMachine
//
// Return type: VC:VirtualMachine
@trisharia
trisharia / getCatalogResourceOfVcacVm.js
Last active January 14, 2019 15:09
Get the Catalog Resource of a vRA VM
// VMware vRealize Orchestrator action sample
//
// Get the Catalog Resource of a vRA IaaS VM
//
// For vRO/VRA 7.0+
//
// Action Inputs:
// cafeHost - vCACCAFE:VCACHost - vRA CAFE Host
// virtualMachine - vCAC:VirtualMachine - vRA IaaS VM
//