Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 192300

Re: retreive list of active processes from guest

$
0
0

After some searching based on your response, I came across   vGhetto / Code /  [r243]  /scripts/guestOpsManagement.pl where I found the solution:

 

my $vm_view = Vim::find_entity_views(view_type => 'VirtualMachine', filter => {'name' => $vmNameInVcenter});

my $guestOpMgr = Vim::get_view(mo_ref => Vim::get_service_content()->guestOperationsManager);

my $guestCreds = NamePasswordAuthentication->new(username => $guestusername, password => $guestpassword, interactiveSession => 'false');

my $procMgr = Vim::get_view(mo_ref => $guestOpMgr->processManager);

my $processlist = $procMgr->ListProcessesInGuest(vm => $vm_view, auth => $guestCreds);


Viewing all articles
Browse latest Browse all 192300

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>