VMware Cloud Community
espi3030
Expert
Expert

VM annotations

Hello All,

I have a question for the scripting guru's out there. We currently have a VB script that pulls the computer account info from Active Directory and populates the BGinfo file then places it on the server's desktop (from within the VM or any server on the domain). I would like to apply that concept to populate the "Notes" section in the VIC. I have a script that edits the notes section now, and the vb script that pulls from AD, I was wondering if anyone out there is doing something similar?

Edit notes:

#GET CURRENT NOTES

for vm in `vmware-cmd -l` ; do

"vmware-cmd" -q $vm getconfig annotation

echo ""

#SET VARIABLE FOR CURRENT NOTES

export ann=`vmware-cmd -q $vm getconfig "annotation"`

ann2=${ann%Last}

#ADD NEW NOTES

"vmware-cmd" -q $vm setconfig annotation "$ann2 Last backup done:

$date"

done

AD info:

Set objSysInfo = CreateObject("ADSystemInfo")

Set objComputer = GetObject("LDAP://" & objSysInfo.ComputerName)

Echo objComputer.Description

I think this could be useful, if anyone has any input I would greatly appreciate it. Thank you.

0 Kudos
0 Replies