GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Test::Parser::Sar(3) User Contributed Perl Documentation Test::Parser::Sar(3)

Test::Parser::Sar - Perl module to parse output from sar.

 use Test::Parser::Sar;

 my $parser = new Test::Parser::Sar;
 $parser->parse($text);

This module transforms sar output into a hash that can be used to generate XML.

Also see Test::Parser for functions available from the base class.

Creates a new Test::Parser::Sar instance. Also calls the Test::Parser base class' new() routine. Takes no arguments.

data()

Returns a hash representation of the sar data.

Override of Test::Parser's default parse() routine to make it able to parse sar output. Support only reading from a file until a better parsing algorithm comes along.

to_xml()

Returns sar data transformed into XML.

Mark Wong <markwkm@gmail.com>

Copyright (C) 2006-2008 Mark Wong & Open Source Development Labs, Inc. All Rights Reserved.

This script is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

Test::Parser

Hey! The above document had some coding errors, which are explained below:
Around line 555:
'=end' without a target?
2008-02-27 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.