Quantcast
Channel: VMware Communities: Message List - vSphere Management SDK
Viewing all articles
Browse latest Browse all 2052

Re: Refresh Network Information

$
0
0

Hi Doug,

 

Quesiton ,

 

I want to use your script but just to get the refresh information for 1 HOST, could you please make me a script where I can enter the host name please? thanks!!

 

Call it on the HostNetworkSystem object

(To get an mor of HostNetworkSystem, you can traverse from the HostSystem.configManager.networkSystem)...

 

my $hostViews = Vim::find_entity_views(view_type => 'HostSystem' );

foreach (@$hostViews ) {

  my $netMgr = Vim::get_view(mo_ref => $_->configManager->networkSystem);

  $netMgr->RefreshNetworkSystem();

}


Viewing all articles
Browse latest Browse all 2052

Trending Articles