home | O'Reilly's CD bookshelfs | FreeBSD | Linux | Cisco | Cisco Exam  


Book HomeJava and XSLTSearch this book

22.12. Win32::PerfLib

The Win32::PerfLib module allows you to retrieve the performance counter of any computer running Windows NT in the network. All of the functions return false if they fail, unless otherwise noted. If the $server argument is undef, the local machine is assumed.

new

$perflib->new($server) 

Creates a connection to the performance counters of the given server.

Close

$perflib->Close($hashref) 

Closes the connection to the performance counters.

GetCounterHelp

GetCounterHelp($server, $hashref) 

Retrieves the counter help strings and their indices from the registry and stores them in the hash reference.

GetCounterNames

GetCounterNames($server, $hashref) 

Retrieves the counter names and their indices from the registry and stores them in the hash reference.

GetCounterType

GetCounterType(countertype) 

Converts the counter type to a readable string.

GetObjectList

$perflib->GetObjectList($objectid, $hashref) 

Retrieves the object and counter list of the given performance object.



Library Navigation Links

Copyright © 2002 O'Reilly & Associates. All rights reserved.