icons openhab
https://fontawesome.com/icons?d=gallery&m=free
https://fontawesome.com/icons?d=gallery&m=free
SSH Zugang ssh pi@10.10.10.56 Passwort: anharo11012005 su root Passwort: bananapi HFERCH-MAC:~ hferch$ ssh pi@10.10.10.56 pi@10.10.10.56’s password: The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable…
vRealize Orchestrator 7.# – Unlocking vRO Root Account after too many failed login attempts Recently I tried to access one of my many vRO Server and noticed the root account was locked out due to too many tries. If you are here because of root account lockout, this post will walk you through unlocking root…
If you want to set the self generated Hostname during the Clone Event you must set so properties as follow: The DnsName is optional, but Hostname and Name must be set var machine = payload.get(„machine“); virtualMachineAddOrUpdateProperties = new Properties (); virtualMachineAddOrUpdateProperties.put(‚Name‘, Your_hostname); virtualMachineAddOrUpdateProperties.put(‚Hostname‘, Your_hostname); virtualMachineAddOrUpdateProperties.put(‚DnsName‘, Your_hostname);
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
var category = Server.getConfigurationElementCategoryWithPath(categoryPath); if (category == null) { throw("Configuration element path '" + categoryPath + "' not found!!"); } var cfgElements = category.configurationElements.filter(function(element) { return element.name == cfgName; }); //Get attribute names if(cfgElements != null && cfgElements.length == 1){ for (attribute in cfgElements[0].attributes) { if(cfgElements[0].attributes[attribute].name == attributeName){ return cfgElements[0].attributes[attribute]; } } }else{ throw("Configuration name '" + cfgName + "' not found or not unique!!"); } return null; |
Call
1 2 3 |
var attribute = System.getModule("com.vmware.pso.util").getConfigElementAttribute("Demo","demo2 General","vCenter") ; System.log("Attribute Name: " + attribute.name); System.log("Attribute Value: " + attribute.value); |
vRO Package with Example com.vmware.pso.util.getAttributeFromConfigurationElement Only the Action getConfigElementAttribute
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
// Get a specific (LAB) machine prefixes from vRA var searchMachinePrefix = "LAB"; var machinePrefixes = vCACCAFEEntitiesFinder.findMachinePrefixes(cafeHost, searchMachinePrefix); System.log(machinePrefix) for (var machinePrefix in machinePrefixes){ if(machinePrefixes[machinePrefix].name == searchMachinePrefix){ var foundMachinePrefix = machinePrefixes[machinePrefix]; System.log("ID: " + foundMachinePrefix.id); var machinePrefixId = foundMachinePrefix.id; var nextNumber = foundMachinePrefix.nextNumber; var newNumber = nextNumber + 1 // increase the nextNumber field in machine prefix var modelName = 'ManagementModelEntities.svc'; // The model name var entitySetName = 'HostNamePrefixes'; // The IaaS MSSQL DB table nacme var links = null; var headers = null; // Create entityId Property to get the right column from HostNamePrefixes table in IaaqS MSSQL DB var entityId = new Properties(); entityId.put("HostnamePrefixID", machinePrefixId.toString()) var entity = vCACEntityManager.readModelEntity(iaasHost.id, modelName, entitySetName, entityId, headers); var entityIdString = entity.keyString System.log("Machine Prefix Entity: " + entity) System.log ("Updating prefix entity with new next number " + newNumber) // Create properties variable var updateProperties = { NextMachineNo:newNumber } // Update the next number in existing prefix System.getModule("com.vmware.library.vcac").updateVCACEntity(iaasHost.id, modelName, entitySetName, entityIdString, updateProperties, links, headers); } } if(!foundMachinePrefix){ throw("No machine prefix with name: " + searchMachinePrefix + " found!"); } |
Scriptable Task Inputs / Outputs Workflow Attributes Workflow package com.vmware.pso.vra.updatenextmachineprefixnumber
First, log into the vRA appliance or SSH to it using root account. Next edit pg_hba.conf file
1 |
vi /storage/db/pgdata/pg_hba.conf |
Check for the presence of the line
1 |
local all postgres trust |
What this enables, is using the local machine you can use vcac user to login to the database. Since I wanted to access it remotely, I added the following…
DISM /Online /Set-Edition:ServerStandard /ProductKey:D2N9P-3P6X9-2R39C-7RTCD-MDVJX /AcceptEula
var cred = Server.getCredential(); vmPassword = VcPlugin.createCustomizationPasswordFromCredentials(cred, true).value; vmUsername = cred.username;
If you get the Bad Gateway error 502, if you press the Container TAB in vRA, then check whether the Xenon Service is started. Service xenon-service status Xenon service is running with SSL on port: 8484 …. service xenon-service start