I use sar reports for getting the statistic. It is better for me to get these reports converted to xml. I use some scripts to convert them but it takes a long time. Do you know any public scripts to convert sar report to xml in 1 -2 kicks.
Please help with the command to generate SAR report (CPU and memory) for the past 30 days (in one command).
Is it possible?
Instead of using one line by one line like this :
sar -r -f /var/adm/sa/sa14 (1 Reply)
I am trying to understand the CPU utilization on my server.
its running Solaris 10 in an container (zone)
the physical server has 1 cpu, 4 cores and 2 threads per core.
the zone has been configured to use only 6 threads (3 cores)
So when i run sar -u reports against the zone, i am seeing... (1 Reply)
I'm pretty new to Java and I am trying to write a program that will pick up a file from a windows directory adn parse through the XML file to produce a report that will show a total item count and a total paid amount. Any one have any suggestions? Trying to figure out where to start... (4 Replies)
Hi,
I want to calculate the total cpu usage from the sar report. Say for example,
Linux 2.6.24-21-generic (blade10) 09/10/2012
04:54:36 PM CPU %user %nice %system %iowait %steal %idle
04:54:37 PM all 0.00 0.00 0.00 0.00 ... (1 Reply)
Thanks in advance who can answer.
I have to make a small shell that after reading an XML file and extract the fields I create a text file with the same fields taken previously in tabular form.
I did this
parse.awk
----------------------
BEGIN {
FS=""
}
{
for(i=2; i<=NF; i+=2) {
... (1 Reply)
Looking for a Unix command / tool that would convert PCL files into PDF files.
I've searched the forum and the web and can't find any.
Is it even possible?
Cheers. (1 Reply)
Does anyone know of a lightweight freeware utility that will do the following?:
1) Input an XML file and XLS file
2) Do a transform
3) Then output a pdf file
for Unix Platform.
Thanks
Andrea (3 Replies)
sadc(8) BSD System Manager's Manual sadc(8)NAME
sadc -- system activity data collector
SYNOPSIS
/usr/lib/sa/sadc [-m mode] [t n] [ofile]
DESCRIPTION
The sadc tool is used to collect cumulative system activity data. The sample system data is collected at intervals t seconds apart, in a
loop n times. The binary sample data is written to ofile if specified. Otherwise, the binary data is written to stdout. If the ofile file
does not exist, it is created, otherwise it is truncated.
sadc is intended to be used as the engine behind the sar(1) command, and is not typically invoked on the command line. Two shell scripts,
sa1 and sa2, are provided to drive the typical sampling, saving, and reporting process.
OPTIONS
The following options modify the way data is collected by sadc.
-m mode Modify the collection of system statistics as specified by mode. Currently only one mode is supported.
PPP By default, the collection of ppp network interface statistics is turned off. This is because the number of ppp connec-
tions can be very high, causing the raw data file to grow unexpectedly large, especially when samples are collected at
short intervals. Use the PPP mode to turn the collection back on.
EXAMPLES
/usr/lib/sa/sadc 15 20 /tmp/sample.out
This call collects 20 samples at 15 second intervals. The binary data is written to the /tmp/sample.out file
FILES
/var/log/sa/sadd Default daily activity file that holds the binary sampling data. dd are digits that represent the day of the month.
/usr/lib/sa/sa1 Shell script used to drive the sar data collection.
/usr/lib/sa/sa2 Shell script used to drive the sar data reporting.
SEE ALSO fs_usage(1), netstat(1), sar(1), sc_usage(1), top(1), vm_stat(1), iostat(8), sa1(8), sa2(8)Mac OS X Jul 25 2003 Mac OS X