I'm a bit desperate now - i have been trying to figure the framework options out, using get-view commands, and the API SDK reference site.
As an exercise for myself, i set out to learn how to change linkspeed on a pnic, using the get-view commands. My problem is that i have no idea about where to find those informations, im not sure how to navigate the SDK, and when to use new-object.
Here is an example of how far i get:
$HS = Get-View -ViewType "HostSystem" -Filter @{"Name" = "ESXSERVER"}.ID
$mod = $HS.ConfigManager.NetworkSystem
$networkConfig = New-Object VMware.Vim.HostNetworkConfig
$networkconfig
The $networkconfig turns out empty (I would expect to see som kind of info on what is included in the HostNetworkConfig), and im not sure how to drill down to choosing the pnic i want to make the changes to.
When writing $HS value to the screen, i can drill down thrue the different options, but how do i know when to use New-Object to define settings?
Im pretty much grasping at straws here...
I would like to get an understanding of the methods beyound using cmdlets, but im kinda stuck...