[SunRay-Users] Sun Ray Bandwidth Scripts

William BRYSON William.BRYSON at telstraclear.co.nz
Tue Mar 16 05:00:46 EET 2010

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


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 =~


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: sunray-users-bounces at filibeto.org
[mailto:sunray-users-bounces at filibeto.org] On Behalf Of JKG
Sent: Thursday, 11 March 2010 4:41 a.m.
To: sunray-users at filibeto.org
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. 



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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.filibeto.org/pipermail/sunray-users/attachments/20100316/50238b19/attachment-0001.html>

More information about the SunRay-Users mailing list