Either get used to the Unix accounting data with acctcom;
Read http://www.sdsc.edu/~victor/acct.html not man acct.
Or turn the accounting off.
Solaris also has got a front end: man acctadm
It might also be okay to disable the adm cron jobs
and put # in front.
Do someone know how to delete entry(some lines)
in file "wtmpx" that command "last" use it.
this file is binary so I cannot edit directy.
=========================
#last
root pts/1 noc Fri Mar 3 22:04 still logged in
root pts/1 noc Fri Mar 3 22:01 - 22:02 ... (4 Replies)
Hello everybody:
the wtmpx file on my Sol8 machine, got so big (2GB), that my root partition is almost full now, can I empty that file, I read about it that it contains database of user access and auditing, so in case I emptied it will it affect my system??
Thanks alot (3 Replies)
Hi,
I am using Sun Solaris 5.9 OS. I have found a file called wtmpx having a size of 5.0 GB. I want to clear this file using :>/var/adm/wtmpx. My query is, would it cause any problem to the running live system.
Could anyone suggest the best method to clear the file without causing problem to... (6 Replies)
Hi
in my solaris 9 system wmptx file is not updating so it is not recording any login or logout or any other entry.
can any one tell me how to solve this problem (0 Replies)
Hi,
now i need to remove the entires i inserted into my .txt file.
echo -n "Title: "
read Title
echo -n "Author: "
read Author
if grep -q "$Title: $Author" "BookDB.txt"; then
sed '$Title: $Author' BookDB.txt
echo "Book Title '$Title' removed successfully!"
... (6 Replies)
I am trying to delete a pattern without removing line. I searched a lot in this forum and using those I could come up with sed command but it seems that command does not work. Here's how my file looks like:
1 ./63990 7
1171 ./63990 2
2425 ./63990 9
2539 ./63990 1
3125 ./63990 1
10141... (7 Replies)
Hi All
I work on solaris 8, 9 and 10 platforms and have encountered an error which is my wtmpx files appear to be corrupted as all entries contain the date 1970 (the birth of unix).
Now this is obviously not the case, so my query is:
1 - Can the existing wtmpx files be manipulated to... (6 Replies)
Hi all,
I have been tasked to change permissions on the wtmpx file to 640. Currently the permissions are at 644. My question is will anything be affected if I change the permissions as shown? Thanks in advance.
Derek (2 Replies)
Hi,
I tried running the command "last" in the server to check the users that were last logged into the system.
However, I get this error :
root@csidblog:# last
/var/adm/wtmpx: Value too large for defined data type
How do I proceed to get this info?
I read some forums suggesting to use... (2 Replies)
Discussion started by: anaigini45
2 Replies
LEARN ABOUT V7
sa
SA(1M)SA(1M)NAME
sa, accton - system accounting
SYNOPSIS
sa [ -abcjlnrstuv ] [ file ]
/etc/accton [ file ]
DESCRIPTION
With an argument naming an existing file, accton causes system accounting information for every process executed to be placed at the end of
the file. If no arguemnt is given, accounting is turned off.
Sa reports on, cleans up, and generally maintains accounting files.
Sa is able to condense the information in /usr/adm/acct into a summary file /usr/adm/savacct which contains a count of the number of times
each command was called and the time resources consumed. This condensation is desirable because on a large system acct can grow by 100
blocks per day. The summary file is read before the accounting file, so the reports include all available information.
If a file name is given as the last argument, that file will be treated as the accounting file; sha is the default. There are zillions of
options:
a Place all command names containing unprintable characters and those used only once under the name `***other.'
b Sort output by sum of user and system time divided by number of calls. Default sort is by sum of user and system times.
c Besides total user, system, and real time for each command print percentage of total time over all commands.
j Instead of total minutes time for each category, give seconds per call.
l Separate system and user time; normally they are combined.
m Print number of processes and number of CPU minutes for each user.
n Sort by number of calls.
r Reverse order of sort.
s Merge accounting file into summary file /usr/adm/savacct when done.
t For each command report ratio of real time to the sum of user and system times.
u Superseding all other flags, print for each command in the accounting file the user ID and command name.
v If the next character is a digit n, then type the name of each command used n times or fewer. Await a reply from the typewriter; if
it begins with `y', add the command to the category `**junk**.' This is used to strip out garbage.
FILES
/usr/adm/acct raw accounting
/usr/adm/savacct summary
/usr/adm/usracct per-user summary
SEE ALSO ac(1), acct(2)SA(1M)