1 like 0 dislike
10 views
in Sanallaştırma by
Vmware orchestrator basics...

3 Answers

0 like 0 dislike
by anonymous Bilge (165k points)
Folder  içindeki folder isimlerini loglama;

//System.log("VM Folder CREATE FOLDER : "+vmFolder.createFolder("E1"));
System.log("VM Folder  : "+vmFolder.parent);
System.log("VM Folder : "+vmFolder.name);
var vmFolderChild=new VcVmFolder();
var fsize =vmFolder.childEntity.length;
System.log("VM Folder Count : "+fsize);
for (var i = 0; i < fsize; i++) {
    vmFolderChild = vmFolder.childEntity[i];
    System.log(vmFolderChild.name);
}
0 like 0 dislike
by anonymous Bilge (165k points)
vm adına göre vm alma;

// Search vm by name!
var vms = VcPlugin.getAllVirtualMachines(null, "xpath:name[translate(.,'abcdefghijklmnopqrstuvwxyz','ABCDEFGHIJKLMNOPQRSTUVWXYZ')='" + "TEST".toUpperCase() + "']");
vm=vms[0];
System.log("VMS : "+vms);
System.log("VM : "+vm.guest.ipAddress);
0 like 0 dislike
by anonymous
Vmware orchestrator folder check;

var listEnv=new Array();
var fsize =vmFolder.childEntity.length;
var newFolderName="A New Env Folder : E"+(fsize+1);
listEnv.push(newFolderName);
for (var i = 0; i < fsize; i++) {
    vmFolderChild = vmFolder.childEntity[i];
    listEnv.push(vmFolderChild.name);
}
listEnv.sort();
return listEnv;
En güncel teknolojiler hakkında yeni şeyler öğren, bilmediklerini sor, bildiklerini paylaş...

Categories

...