Quantcast
Channel: VMware Communities : Discussion List - All Communities
Viewing all articles
Browse latest Browse all 176483

retreive list of active processes from guest

$
0
0

Hi all,

 

I'm trying to rewrite some of our monitoring checks so I can monitor our vCloud customers without needing any network connectivity for fe. snmp. I've tried writing something in Perl, but am now stuck at the following point:

 

I can get to the view of ProcessManager, but I can't get the listProcessesInGuest() method to work. If I execute the following bit of code, I just get the response: Undefined subroutine &GuestOperationsManager::listProcessesInGuest

 

The relevant piece of code is as follows:

my $serviceContent = Vim::get_service_content(

    filter => {'name' => $vmNameInVcenter }

);

my $operationsManager = Vim::get_view(mo_ref => $serviceContent->guestOperationsManager);

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

my $processlist = $processManager->listProcessesInGuest();

 

Regards,

 

MrBoogiee


Viewing all articles
Browse latest Browse all 176483

Trending Articles



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