norisnetwork's Posts

No, newest version (build-2043780)
5.5 U2b (218311) here ... Strange stuff. Maybe it works with U2d again ...
Which vsphere version are you using? I've cut&pasted this script 1:1 and again the following error: SOAP Fault: ----------- Fault string: Ein angegebener Parameter war nicht korrekt. sp... See more...
Which vsphere version are you using? I've cut&pasted this script 1:1 and again the following error: SOAP Fault: ----------- Fault string: Ein angegebener Parameter war nicht korrekt. spec.sharesInfo.limit Fault detail: InvalidArgument My script worked with vsphere 5.1, but with 5.5 (U2 or above) it doesn't - maybe you have 5.1?
Could you post your solution?
Also tried that this morning. Same error
Now I'm getting the following error: Cannot parse "PrimType=HASH(0x3330340)" as a long value Further ideas?
Hello, I've a script that limits disks io of all VMs. With upgrade to 5.5 Ux, that doesn'nt work anymore. my $io_alloc = StorageIOAllocationInfo->new (shares => $sharesInfo, limit=> "10"); ... See more...
Hello, I've a script that limits disks io of all VMs. With upgrade to 5.5 Ux, that doesn'nt work anymore. my $io_alloc = StorageIOAllocationInfo->new (shares => $sharesInfo, limit=> "10"); $device->storageIOAllocation ($io_alloc); my $virtualDeviceConfigSpec = VirtualDeviceConfigSpec->new (device => $device, operation => VirtualDeviceConfigSpecOperation->new('edit')); my $vmConfig = VirtualMachineConfigSpec->new (deviceChange => [$virtualDeviceConfigSpec]); $vm->ReconfigVM (spec => $vmConfig); I'm getting the following error: SOAP Fault: ----------- Fault string: Ein angegebener Parameter war nicht korrekt. spec.sharesInfo.limit Why is there any problem with shares? I think that's a bug. Now I'm unable to set the disk io limit. Any ideas, tricks oder workarounds? Thanks! Regards, Alex
Hello, I want to monitor the count of free ports in a portgroup (Distributed Virtual Switch). The number for total ports is no problem, I can get this value from the DVS-Object. The better qu... See more...
Hello, I want to monitor the count of free ports in a portgroup (Distributed Virtual Switch). The number for total ports is no problem, I can get this value from the DVS-Object. The better question is: where to get the count of used ports from. I can't get this value from the DVS-Object. I tried to fill a hash with the portgroups used in all VMs, but it seems, that there were some ports missing (i.e. VM powered off). Has anyone some scripts or ideas how to get an overview of all portgroups with used/free ports? Thanks so far, Greets, Alex
Hello, I've got a script which creates new Ports-Groups (VLANs) in VirtualDistributedSwitches: ################## (...) my $DatacenterView = Vim::find_entity_view(       'view_type' ... See more...
Hello, I've got a script which creates new Ports-Groups (VLANs) in VirtualDistributedSwitches: ################## (...) my $DatacenterView = Vim::find_entity_view(       'view_type' => 'Datacenter',       'filter'        => { 'name' => "DATACENTER" }); my $DVSView = Vim::find_entity_view(       'view_type'     => 'DistributedVirtualSwitch',       'filter'           => { 'name' => 'Distributed Switch nbg6a-1' },       'begin_entity' => $DatacenterView); my $VmwareDistributedVirtualSwitchVlanSpec   = VmwareDistributedVirtualSwitchVlanIdSpec->new(       'vlanId' => $pg_vlan,       'inherited' => 'false'); my $DVPortSetting =  VMwareDVSPortSetting->new('vlan' => $VmwareDistributedVirtualSwitchVlanSpec); my $DVPortgroupConfigSpec = DVPortgroupConfigSpec->new (       'name'              => $pg_name,       'numPorts'          => 16,       'type'              => 'earlyBinding',       'defaultPortConfig' => $DVPortSetting); $DVSView->AddDVPortgroup_Task('spec' => $DVPortgroupConfigSpec); (...) ##################### What I need the other way: delete a Portgroup out of the VirtualDistributedSwitch by using the "Name" not the key. And important: I need to specify the DistributedVirtualSwitch, because I could have more Portgroups with the same name in different vdSwitches. How can I do that? Thanks, Greets Alex
Hello, I want to list all VMs in a specific cluster which doesn't have an IOPS-Limit set on any of there disks. My virtualisation environment looks like: DATASTORE - Cluster x - Cluste... See more...
Hello, I want to list all VMs in a specific cluster which doesn't have an IOPS-Limit set on any of there disks. My virtualisation environment looks like: DATASTORE - Cluster x - Cluster y   * Ressource Pool x   * Ressource Pool y     = VM 1     = VM 2 How can I list VMs in a specific cluster and then only these, where any disk hasn't got an IOPS-Limit. Thanks for any help, Greets Alex