Re: Script a license

Another option is to use SSH over the network to push license keys to iLO. You can automate this for Windows or Linux, a Windows example is shown using the "plink" utility (part of the free PuTTY client):

'set the variables for directory configuration xml files'format for this is yes or nostdirauthenabled ="YES"strdirlocaluseracct ="YES"strdirserveraddress ="192.168.1.1"strdirserverportvalue ="636"'format for the strdirobjectdn variable is like this CN=server1_rib, OU=RIB, DC=HPRIB, DC=LABSstrdirobjectdn = "CN=server1_rib, OU=RIB, DC=HPRIB, DC=LABS"strdirobjectpassword = "password"'format for the strdirusercontext is like this CN=Users, DC=HPRIB, DC=LABSstrdirusercontext1 ="CN=Users, DC=HPRIB, DC=LABS"'format for this is yes or nostrdirenablegrpacct ="YES"

'this sets up the advanced pack license'stractivatekey = InputBox("What is the advanced pack license for the ilo (no spaces!)", "Advanced Pack License", default)'this section of the vbs will build the name of the ilo to whatever standard you need based on the %computername% variable

'this is for deleting a user from the ilostrdeleteuserid = "userid"'strdeleteuserid = InputBox("What is the user id that you want to delete", "Delete a user", default)

'this is for ejecting media from the ilo'correct answer is cdrom or floppy (unrem the one that you want to eject)strdevicetoeject = "FLOPPY"'strdevicetoeject = "CDROM"