VMware Cloud Community
damascushill
Contributor
Contributor
Jump to solution

adapter dvuplink assignment

I'm looking for a way to get the DVSwitch dvUplink and VMnic assignment. I can get this information from going to the switch below.

This gets me to the pnic...

// VcHostNetworkSystem

var networkSystem = host.configManager.networkSystem;

var networkInfo = networkSystem.networkInfo;  

var pnic = networkInfo.pnic;

for (var i in pnic){

  System.log("pnic.device: " + pnic[i].device); 

  System.log("pnic.key: " + pnic[i].key); 

  System.log("pnic.mac: " + pnic[i].mac); 

  System.log("pnic.spec: " + pnic[i].spec); 

System.log("--"); 

}

switch.png

0 Kudos
1 Solution

Accepted Solutions
Burke-
VMware Employee
VMware Employee
Jump to solution

Here's the workflow I provided via internal channels that helps get the desired info.. adding to community for reference.

If my answer resolved or helped you, please mark it as Correct or Helpful to award points. Thank you!

Visit http://www.vcoteam.info & http://blogs.vmware.com/orchestrator
for vRealize Orchestrator tips and tutorials - @TechnicalValues on Twitter

View solution in original post

0 Kudos
1 Reply
Burke-
VMware Employee
VMware Employee
Jump to solution

Here's the workflow I provided via internal channels that helps get the desired info.. adding to community for reference.

If my answer resolved or helped you, please mark it as Correct or Helpful to award points. Thank you!

Visit http://www.vcoteam.info & http://blogs.vmware.com/orchestrator
for vRealize Orchestrator tips and tutorials - @TechnicalValues on Twitter
0 Kudos