How do I determine the age of a virtual machine?
I've seen some Powershell to go through all the events and find the creation event, but this method doesn't seem ideal, as I understand it can get confused by software version upgrades, and the events...
View ArticleRe: How do I determine the age of a virtual machine?
Yes, if a DB maintenance job runs it'll clean up old events from the database. So it's not really a PyVmomi or SDK issue, but just the fact the actual event is cleaned from the DB. The disk creation...
View ArticleRe: Creating a VMFS Datastore using Vi Perl Toolkit Question
If you use get_view() and just need it to call a method, I recommend you use properties => ['name'] to minimize the SDK overhead: $thisDatastore = Vim::get_view(mo_ref => $dsRef, properties =>...
View ArticleRe: Creating a VMFS Datastore using Vi Perl Toolkit Question
The Vim::get_view() method can be used like this to create a new VMFS Datastore in Perl: # Get HostDatastoreSystem MO to call CreateVMFSDatastore() method my $hdSystem_mo_ref = $host_view ->...
View ArticleRe: How do I determine the age of a virtual machine?
Not sure about creativity, more of a brute-force approach: I grepped the pyVmomi sources and docs for 'dateTime', and printed all of them to see if they made sense! Although it's not exactly an...
View ArticleThe variable String of the fault message in customized task can not be...
I registered a customized Task to my web client Extension with the task id: com.test.my_task.After that, I also registered the Extension Fault for this Task, the content of the fault.vmsg is as...
View ArticleHow to get performance data from CIM/SMASH for processor, memory etc. ?
I need to get some data for monitoring purposes concerning processor usage, memory usage, storage and similar. Right now, I'm using a system which manages its own Http packets and uses WS Management to...
View ArticleRe: The variable String of the fault message in customized task can not be...
I have found a similar question, but also no answerExtendedFault message, variable substitution
View ArticleObject is NULL if querying a VM with brackets in DisplayName
Hello everybody, I just started using the VimClient with C#/.NETI have the following code: VimClient client = new VimClient(); client.Connect(serviceUrl); client.Login(userName,...
View ArticleRe: How to configure VLAN in VSWITCH from VM?
can someone please say if it is possible to do this?
View ArticleRe: How to configure VLAN in VSWITCH from VM?
Yes, you'll need one of the automation kits (Perl, Python, PowerCLI, VIPerl CLI, etc). You'll also need appropriate credentials with rights to modify the portgroup backing the VLAN.
View ArticleCreate Schedule task throwing invalid argument error.
Hi, Currently we are using DailyTaskScheduler for SOME activity in our plugin. Code Snip : taskSpec details : name : "task name" description : "some desc"...
View ArticleRe: Object is NULL if querying a VM with brackets in DisplayName
You may need to use url encoding to match the string in the API fields. They'll be converted to their %## values (depends on the character). This is documented (somewhat) in the API documentation:...
View ArticleRe: How to configure VLAN in VSWITCH from VM?
Hi Thank you so much for your response. With this i understand that it is possible to modify vswitch configuration through VM if i have access to it. Can you give me a hint or point me to some document...
View ArticleHow to get ESXi information from vCenter via scripts
Hello Guru's,How do I collect all the ESXi hosts information in a cluster by doing SSH to vCenter. Basically, I want to do SSH to vCenter and get the host version, enic, fnic driver versions. I have a...
View ArticleRe: How to get ESXi information from vCenter via scripts
I've used Ansible with raw commands vs ESXi (many of the core modules will not work as some of the python libs are not there). That worked well for doing bulk operations and retrieving command results...
View ArticleRe: How to get ESXi information from vCenter via scripts
Hi, Have a try with this.... very beautiful script on collecting the ESXi host information as per your requirement. Collecting ESXi Host Hardware Information with PowerShell
View ArticleSSO Client Samples return 400 bad request
I'm using VMware-vSphere-SDK-6.0.0-2561048 and trying to obtain a token from vSphere SSO. Both the Java and .NET samples for AcquireHoKTokenByUserCredentialSample return a 400 http error code. I've...
View ArticleRe: How to configure VLAN in VSWITCH from VM?
Can you please give me an example or point me to the right documentation
View ArticleRe: How to get ESXi information from vCenter via scripts
Stumpr,Thanks for the info. I managed to get the ESXi version from Pyvmomi api. Can you please tell me what is the exact class/method to get enic and fnic version? e.g vim.host.HostBusAdapter ? Thanks,...
View Article