Get Network Adapters (VMWare)
This Automation Manager object returns information about one or all network adapters attached to the given host(s).
Install VMware.PowerCLI
Before using this VMware Automation Manager Object, you must install the PowerShell module VMware.PowerCLI.
This VMware Automation Object runs on 64-bit PowerShell, and the module must also be added to 64-bit PowerShell.
Input Parameters
Name | Type | Required | Description |
---|---|---|---|
Session ID | String | Yes | The session ID that is generated by the VMware connection object. This is required for this object to work. |
Host Name | String | Yes | The VMware host name of the virtual machine for which you want to get information. The field support wildcards, so to return all hosts on vCenter, use "*" as the value. |
NIC Name | String | Yes | The name of the NIC for which you want to get information.This field supports "*" as a wildcard, which will find all NICs for a host or all hosts. |
Output Parameters
Name | Type | Description | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
NICArray | Collection | The list of NICs returned as an array to be used with a "Foreach" object. It contains following host information:
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Records Found | Number | The number of records found and returned. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Result | Number | Returns a success value of zero or any value other than zero to indicate failure. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Result String | String | Object execution error details. |
Example Input Parameters
Name | Type | Required | Example |
---|---|---|---|
Session ID | String | Yes | ab4c55c1273cb609678a2bb6a15104e927ac8dec 10.199.2.23 |
Host Name | String | Yes | SvrHost1 * |
NIC Name | String | Yes | Vmnic0 * |