mpr4ul's Posts

In older version of PowerCLI, those dll were added to GAC. But the latest version dll's were not able to add to GAC as they are not strong name signed. I am also hitting the same issue. Unab... See more...
In older version of PowerCLI, those dll were added to GAC. But the latest version dll's were not able to add to GAC as they are not strong name signed. I am also hitting the same issue. Unable to load into GAC. And Unable to import into strong name signed project.
Hi, Till 6.5.0 Power CLI, VMware.Vim.dll was strong name enabled dlls. But from 6.5.1, those dll's are not strongly named dll's. In PowerShell gallery based installation also, dll's were no... See more...
Hi, Till 6.5.0 Power CLI, VMware.Vim.dll was strong name enabled dlls. But from 6.5.1, those dll's are not strongly named dll's. In PowerShell gallery based installation also, dll's were not strongly named. Unable to load those dll's into strongly named execution binary. Unhandled Exception: System.IO.FileLoadException: Could not load file or assembly 'VMware.Vim, Version=6.5.1.378, Culture=neutral, PublicKeyToken=null' or one o f its dependencies. A strongly-named assembly is required. (Exception from HRESULT: 0x80131044)    at VimClientTest.Program.Main(String[] args)
Hi, I am trying to create a VM with French language words. vSphere Client allowing and creating fine, but I am getting below error with Perl API call. Failed to Create virtual ma... See more...
Hi, I am trying to create a VM with French language words. vSphere Client allowing and creating fine, but I am getting below error with Perl API call. Failed to Create virtual machine "fenêtres" due to  SOAP Fault: ---- Fault string:  Error returned by expat parser: unclosed token   while parsing SOAP envelope at line 2, column 3   while parsing HTTP request for method createVm on object of type vim.Folder at line 1, column 0 Fault detail: InvalidRequestFault . Failed to Create virtual machine "fenêtres" due to  SOAP Fault: ---- Fault string:  Error returned by expat parser: unclosed token   while parsing SOAP envelope at line 2, column 3   while parsing HTTP request for method createVm on object of type vim.Folder at line 1, column 0 Fault detail: InvalidRequestFault .   Do we have to set any language related parameters ? For connection i set default local to "en_US" to connect non-english vCenter. Thanks in advance
Yes, It working , Thanks. my $serviceContent    = Vim::get_service_content(); my $sessionManager    = Vim::get_view( mo_ref => $serviceContent->sessionManager ); $sessionMan... See more...
Yes, It working , Thanks. my $serviceContent    = Vim::get_service_content(); my $sessionManager    = Vim::get_view( mo_ref => $serviceContent->sessionManager ); $sessionManager->SetLocale(locale => "en_US"); my $serviceContent= Vim::get_service_content();   my $sessionManager= Vim::get_view( mo_ref => $serviceContent->sessionManager );   $sessionManager->SetLocale(locale => "en_US");
Here vCenter installed on French locale system. My vSphere cli is installed on English language machine. Getting output in French language. Is there any way we can convert output... See more...
Here vCenter installed on French locale system. My vSphere cli is installed on English language machine. Getting output in French language. Is there any way we can convert output to english ?
I am facing issue with non-english vCenter. Here client machine is in english language, but vCenter locale language is French. I am getting french language in output. Is there an... See more...
I am facing issue with non-english vCenter. Here client machine is in english language, but vCenter locale language is French. I am getting french language in output. Is there any way to convert to english language ?
Stumpr, Thanks for reply, How the vCenter will always connect to ESX even after changing password for ESX. What mechanism is using, I am thinking that some agent will sit on the ESX to communi... See more...
Stumpr, Thanks for reply, How the vCenter will always connect to ESX even after changing password for ESX. What mechanism is using, I am thinking that some agent will sit on the ESX to communicate with vCenter.
Try this my $url = "https://<serverip>/sdk/webService"; Vim::login(service_url => $url, user_name => <>, password => <> );
You need to login to the server, then you can use VIM object, how can you use by creating just empty VIM object ? use VMware::VIRuntime; Opts::parse(); Opts::validate(); Util::connect(); ... See more...
You need to login to the server, then you can use VIM object, how can you use by creating just empty VIM object ? use VMware::VIRuntime; Opts::parse(); Opts::validate(); Util::connect(); ------------------------------- your code here ------------------------------ Util::disconnect();
Hi, Is there any way we can connect to the vCenter/ESX from client with single time credentials, and that can connect to vCenter even after changing the password of vcenter user. Here my re... See more...
Hi, Is there any way we can connect to the vCenter/ESX from client with single time credentials, and that can connect to vCenter even after changing the password of vcenter user. Here my requirement is to connect to vCenter periodically without asking the user to enter credentials every time even after changing password of user with one time credentials . Thanks in advance.
Thank you for reply it will work to hide the error , but operation not performed i wrote like this $rpView->ResourcePoolOperations::MoveIntoResourcePool(list=>[$vmView]); but vm is no... See more...
Thank you for reply it will work to hide the error , but operation not performed i wrote like this $rpView->ResourcePoolOperations::MoveIntoResourcePool(list=>[$vmView]); but vm is not moved to given resouce pool
In every subroutine given in Perl API sub .....{ my ($self, %args) = @_;    my $response = Util::check_fault($self->invoke('Rename_Task', %args));    return $response } can any one ... See more...
In every subroutine given in Perl API sub .....{ my ($self, %args) = @_;    my $response = Util::check_fault($self->invoke('Rename_Task', %args));    return $response } can any one explain , what args to be passed In general how to correlate them Thank you
Hi , can anyone help me in writing the programming to " move virtual machine to resource pool " i wrote like this , but error in #!/usr/bin/perl #to move the VM into Resource pool# us... See more...
Hi , can anyone help me in writing the programming to " move virtual machine to resource pool " i wrote like this , but error in #!/usr/bin/perl #to move the VM into Resource pool# use strict; use warnings; use VMware::VIM25Runtime; use VMware::VIRuntime; use VMware::VIMRuntime; use VMware::VILib; Opts::parse(); Opts::validate(); Util::connect(); #to get the list of Vms my $vmView = Vim::find_entity_view(view_type => 'VirtualMachine',                                         filter => {'config.name' => 'PB_Win2K8_64.22'}); print "VM name : " . $vmView->name . "\n"; #to get the Resource pool view my $rpView = Vim::find_entity_view(view_type => 'ResourcePool',                                         filter => {'name' => 'mpr_pool'}); print "Resourcepool name : " . $rpView->name . "\n"; my $mor_vm = $vmView->resourcePool; #my $m_vm = (mo_ref=>$mor_vm); my $mor_rp = $rpView->vm; #my $m_rp = (mo_ref=>$mor_rp); #to move a particular vm into Resource pool# my $res = ResourcePoolOperations::MoveIntoResourcePool( $mor_rp, 'VirtualMachine', $mor_vm );  #here is the error of invalid arguments Util::disconnect(); Please help me Thank you