Your best bet for this would probably be to pipe the output of
"/opt/SUNWut/sbin/utcapture -r -s <servername>" to a log file.

 

Be aware that this will generate some quite large logs very quickly.
To turn these into more useful files (CSV, for example), you would want
to use grep/awk/perl to massage the masses of data into the form you
want.

 

I prefer Perl myself, so I'll give a Perl example below.

 

A sample Perl regex to capture the data from a utcapture raw output line
would be (forgive me if I mis-type):

my ($dtu, $year, $month, $day, $hour, $min, $sec, $total_packets,
$total_loss, $bytes_sent, $percent_loss, $latency) = 

 $utcapture_line =~
m/^([0-9a-f]{12})\s+(\d{4})(\d{2})(\d{2})(\d{2})(\d{2})(\d{2})\s+(\d+)\s
+(\d+)\s+(\d+)\s+(\d+\.\d+)\s+(\d+\.\d+)/;

 

Using this regex, just iterate over the log, pushing whatever data you
want to keep into arrays or hashes.

 

If you let me know what specific statistics you're trying to keep track
of, I can probably throw together a quick script for you.

 

Best Regards,

William Bryson

 

From: [email protected]
[mailto:[email protected]] On Behalf Of JKG
Sent: Thursday, 11 March 2010 4:41 a.m.
To: [email protected]
Subject: [SunRay-Users] Sun Ray Bandwidth Scripts

 

Hi all,

I use the Sun Ray Bandwidth Scripts quite often. I would like to be able
to send the output to a file to review later and possible do graphing.
Is it possible to modify the script(s) to do so? Is this something
utcapture should be able to do? If anybody has already created something
like this or can point me in the right direction to create myself, it
would be much appreciated. 


Thanks!

 



TelstraClear. Simple Solutions. Everyday
Residential 0508 888 800 Business 0508 555 500 Enterprise & Government 0508 400 
300

This email contains information which may be confidential and subject to 
copyright.  If you are not the intended recipient you must not use, distribute 
or copy this email or attachments.  If you have received this email in error 
please notify us immediately by return email and delete this email and any 
attachments.  
TelstraClear Limited accepts no responsibility for changes made to this email 
or to any attachments after transmission from TelstraClear Limited.  It is your 
responsibility to check this email and any attachments for viruses.   
Emails are not secure.  They can be intercepted, amended, lost or destroyed and 
may contain viruses.  Anyone who communicates with TelstraClear Limited by 
email is taken to accept these risks.
_______________________________________________
SunRay-Users mailing list
[email protected]
http://www.filibeto.org/mailman/listinfo/sunray-users

Reply via email to