04-01-2009
i am not running sa1 or sa2 from cron. The cron is -
/usr/bin/sar -o <filename> 60 180
and then i try to sar -f <filename> when i get that error.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi Everyone,
I am having problem to delete an "empty" folder ( messages attached ).
It displays "total 12" when i typed "ls -lart" on the fnxroot44 folder, but i can't view any file.
Is there any way to view those unseen files ? I don't know why option "a" is not working this time.
Would... (1 Reply)
Discussion started by: deejay
1 Replies
2. HP-UX
Hi Guys,
I am new to HP-UX system, can someone please let me know which file or what process is require to load all the devices when the system boot up. Currently I am having a few issue when starting the system it does not load all the device.
Cheers, (0 Replies)
Discussion started by: fkaba81
0 Replies
3. Shell Programming and Scripting
Hi,
When I execute one of my shellscript I am getting the below mentioned error message .This application takes 2input files which have the records counts 26463 and 1178046
exec(2): insufficient swap or memory available.
exec(2): insufficient swap or memory available.
exec(2):... (2 Replies)
Discussion started by: kavithakuttyk
2 Replies
4. UNIX for Advanced & Expert Users
Hi,
When I execute one of my shellscript I am getting the below mentioned error message .This application takes 2input files which have the records counts 26463 and 1178046
exec(2): insufficient swap or memory available.
exec(2): insufficient swap or memory available.
exec(2): insufficient swap... (3 Replies)
Discussion started by: kavithakuttyk
3 Replies
5. UNIX for Dummies Questions & Answers
Hi,
To comply with a new naming convention on a mediawiki site we have to run a SED or other PERL command to change all instances of
] or ] or ]
to
]
Can someone please explain how to do this...
It has to be done on a mysql dump, so if there is a way to do this in mysql even... (2 Replies)
Discussion started by: lawstudent
2 Replies
6. Solaris
hi guys, me again ;)
i recently opened a thread about physical to zone migration.
My zone is mounted over a "bigger" LUN (500GB) and step is now to move the old files, from the physical server, to my zone.
We are talking about 22mio of files.
i used rsync to do that and every time at... (8 Replies)
Discussion started by: beta17
8 Replies
7. UNIX for Dummies Questions & Answers
Hi, I'm John_giova and I'm new in this Forum. Sorry my english, it's not my first language.
So, I'm trying to check the CPU utlization during the video encoding and decoding (making a comparison between SW and HW ) using the SAR tool. According to a past thread I saw as CPU utilization I should... (4 Replies)
Discussion started by: John_giova
4 Replies
8. Shell Programming and Scripting
I'm trying to crudely hack my way through some data processing.
I have file.txt with around 17,000 lines like this:
ACYPI002690-PA.aa.afa.afa.trim_phyml_tree_fullnames_fullhomolog.txt 3 72 71
ACYPI002690-PA.aa.afa.afa.trim_phyml_tree_fullnames_fullhomolog.txt 97 111 71... (1 Reply)
Discussion started by: pathunkathunk
1 Replies
9. Solaris
Hi all,
Been reading a lot of the cpu load and its "analogy of it to car traffic path of expressway"
From wiki
Most UNIX systems count only processes in the running (on CPU) or runnable (waiting for CPU) states. However, Linux also includes processes in uninterruptible sleep states... (13 Replies)
Discussion started by: javanoob
13 Replies
10. Linux
Hello all
posting here after scanning the net and tried most of the things offered
still no solution that worked
when I do :
$ df -h
Filesystem Size Used Avail Use% Mounted on
footmpfs 7.9G 60K 7.9G 1% /dev
tmpfs 7.9G 0 7.9G 0% /dev/shm
/dev/da1 ... (3 Replies)
Discussion started by: umen
3 Replies
sar(1M) System Administration Commands sar(1M)
NAME
sar, sa1, sa2, sadc - system activity report package
SYNOPSIS
/usr/lib/sa/sadc [ t n] [ofile]
/usr/lib/sa/sa1 [ t n]
/usr/lib/sa/sa2 [-aAbcdgkmpqruvwy] [-e time] [-f filename] [-i sec] [-s time]
DESCRIPTION
System activity data can be accessed at the special request of a user (see sar(1)) and automatically, on a routine basis, as described
here. The operating system contains several counters that are incremented as various system actions occur. These include counters for CPU
utilization, buffer usage, disk and tape I/O activity, TTY device activity, switching and system-call activity, file-access, queue activ-
ity, inter-process communications, and paging. For more general system statistics, use iostat(1M), sar(1), or vmstat(1M).
sadc and two shell procedures, sa1 and sa2, are used to sample, save, and process this data.
sadc, the data collector, samples system data n times, with an interval of t seconds between samples, and writes in binary format to ofile
or to standard output. The sampling interval t should be greater than 5 seconds; otherwise, the activity of sadc itself may affect the sam-
ple. If t and n are omitted, a special record is written. This facility can be used at system boot time, when booting to a
multi-user state, to mark the time at which the counters restart from zero. For example, when accounting is enabled, the svc:/sys-
tem/sar:default service writes the restart mark to the daily data file using the command entry:
su sys -c "/usr/lib/sa/sadc /var/adm/sa/sa'date +%d'"
The shell script sa1, a variant of sadc, is used to collect and store data in the binary file /var/adm/sa/sadd, where dd is the current
day. The arguments t and n cause records to be written n times at an interval of t seconds, or once if omitted. The following entries in
/var/spool/cron/crontabs/sys will produce records every 20 minutes during working hours and hourly otherwise:
0 * * * 0-6 /usr/lib/sa/sa1
20,40 8-17 * * 1-5 /usr/lib/sa/sa1
See crontab(1) for details.
The shell script sa2, a variant of sar, writes a daily report in the file /var/adm/sa/sardd. See the OPTIONS section in sar(1) for an
explanation of the various options. The following entry in /var/spool/cron/crontabs/sys will report important activities hourly during the
working day:
5 18 * * 1-5 /usr/lib/sa/sa2 -s 8:00 -e 18:01 -i 1200 -A
FILES
/tmp/sa.adrfl address file
/var/adm/sa/sadd Daily data file
/var/adm/sa/sardd Daily report file
/var/spool/cron/crontabs/sys
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWaccu |
+-----------------------------+-----------------------------+
SEE ALSO
crontab(1), sag(1), sar(1), svcs(1), timex(1), iostat(1M), svcadm(1M), vmstat(1M), attributes(5), smf(5)
System Administration Guide: Basic Administration
NOTES
The sar service is managed by the service management facility, smf(5), under the service identifier:
svc:/system/sar
Administrative actions on this service, such as enabling, disabling, or requesting restart, can be performed using svcadm(1M). The ser-
vice's status can be queried using the svcs(1) command.
SunOS 5.10 20 Aug 2004 sar(1M)