Sponsored Content
Full Discussion: Track user logoff in AIX 5.3
Operating Systems AIX Track user logoff in AIX 5.3 Post 302257014 by zaxxon on Tuesday 11th of November 2008 06:44:11 AM
Old 11-11-2008
For example you could have nmap running on some Linux box and check if the applications ports are reachable every second and test it's exit code with $? and just write a log for it. Maybe put that Linux PC in the same net like one of the clients having that problem, just to make the network environment the same.
Also you could check if your box has any performance (have a vmstat 1 running and when they call that it happened, check it) problems or shows network errors or something like that. Do the people get disconnected while other people or applications can still communicate with the app?
Maybe you can check the switches/routers that are in between the clients to your server for errors too.
Also the app guys should show their log for the time when this/these disconnect(s) happen. Maybe their app is reporting something.
Maybe it's also the same users every time or some kind of pattern noticeable like that only users from some subnet have this problems or with some sort of workstation?
What kind of application is running there?

Edit: You could also have tcpdump running and search it with ethereal/wireshark.

Last edited by zaxxon; 11-11-2008 at 07:53 AM.. Reason: Added info
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

logoff ghost user

I just noticed by running a who command that I was logged in twice . So two admin2 are on the list. (solaris 2.6) Since I telnet using a windows 98, I suppose that I forgot to CTRL-D last time I logged in and clicked on hangup. In such a case, how can I loggoff the old ghost loggin ? It's not a... (4 Replies)
Discussion started by: phpote
4 Replies

2. UNIX for Dummies Questions & Answers

logoff idle user script

Will someone please share a script with me that will read in each line of the who -u output and if idle time is more than 50 min, execute a kill on the PID? This is what I have so far: who -u | cut -c 40-56 I am comfortable in the korn shell, but I can broaden my horizons if you've got... (4 Replies)
Discussion started by: michieka
4 Replies

3. AIX

Logoff a user...

Hi... could anyone tell me how to kill a user session on my server with out affecting other user? Bala (6 Replies)
Discussion started by: balaji_prk
6 Replies

4. UNIX for Dummies Questions & Answers

Possible to track FTP user last login? Last and Finger don't track them.

Like the topic says, does anyone know if it is possible to check to see when an FTP only user has logged in? Because the shell is /bin/false and they are only using FTP to access the system doing a "finger" or "last" it says they have never logged in. Is there a way to see when ftp users log in... (1 Reply)
Discussion started by: LordJezo
1 Replies

5. Shell Programming and Scripting

keep track of every user

dear all , I m new to shell programming and I need your help. Actually i want to keep track of all the commands executed in a bash prompt of users , very much in same manner as it is displayed when we run "history" command. now the users are smart enough as they delete their history by... (6 Replies)
Discussion started by: xander
6 Replies

6. UNIX for Advanced & Expert Users

Track user commands

Hi, I have a unix server and I am concerned about the security on that server. I would like to be able to write a script that records all the commands that were typed at the command prompt before the user calls the 'history -c' command and deletes all the history. I was thinking about firing or... (7 Replies)
Discussion started by: mishkamima
7 Replies

7. UNIX for Dummies Questions & Answers

Track user

Hi, i suddenly realized that a directory is deleted unfortunately there are many user have pervilages on this directory is there a way to track the user who delete this directory or atleast from now can i enable something so that i can track from now I think there is way from... (2 Replies)
Discussion started by: crackgeek
2 Replies

8. Homework & Coursework Questions

Track user log!

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: The task is to measure the density of users that are logged on system. The program should check that every 30... (7 Replies)
Discussion started by: petel1
7 Replies

9. UNIX for Dummies Questions & Answers

How to track user activity?

Hi All Please can you help me with the following issue: A certain vendor installed an application in which for a user to log in; the user must use a user created/predefined by the application. And because this application has more than one user its difficult to track who did what and when,... (6 Replies)
Discussion started by: fretagi
6 Replies

10. UNIX for Advanced & Expert Users

Track activity of a user

Hi All We have a job which writes files to a server at a particular time. The files will be created by a particular user ID Today, during the execution of the job, it created a file to the server and the file sat on the server for sometime, but was deleted immediately at the end of the... (4 Replies)
Discussion started by: sparks
4 Replies
Appender::File(3pm)					User Contributed Perl Documentation				       Appender::File(3pm)

NAME
Log::Log4perl::Appender::File - Log to file SYNOPSIS
use Log::Log4perl::Appender::File; my $app = Log::Log4perl::Appender::File->new( filename => 'file.log', mode => 'append', autoflush => 1, umask => 0222, ); $file->log(message => "Log me "); DESCRIPTION
This is a simple appender for writing to a file. The "log()" method takes a single scalar. If a newline character should terminate the message, it has to be added explicitely. Upon destruction of the object, the filehandle to access the file is flushed and closed. If you want to switch over to a different logfile, use the "file_switch($newfile)" method which will first close the old file handle and then open a one to the new file specified. OPTIONS filename Name of the log file. mode Messages will be append to the file if $mode is set to the string "append". Will clobber the file if set to "clobber". If it is "pipe", the file will be understood as executable to pipe output to. Default mode is "append". autoflush "autoflush", if set to a true value, triggers flushing the data out to the file on every call to "log()". "autoflush" is on by default. syswrite "syswrite", if set to a true value, makes sure that the appender uses syswrite() instead of print() to log the message. "syswrite()" usually maps to the operating system's "write()" function and makes sure that no other process writes to the same log file while "write()" is busy. Might safe you from having to use other syncronisation measures like semaphores (see: Synchronized appender). umask Specifies the "umask" to use when creating the file, determining the file's permission settings. If set to 0222 (default), new files will be created with "rw-r--r--" permissions. If set to 0000, new files will be created with "rw-rw-rw-" permissions. owner If set, specifies that the owner of the newly created log file should be different from the effective user id of the running process. Only makes sense if the process is running as root. Both numerical user ids and user names are acceptable. group If set, specifies that the group of the newly created log file should be different from the effective group id of the running process. Only makes sense if the process is running as root. Both numerical group ids and group names are acceptable. utf8 If you're printing out Unicode strings, the output filehandle needs to be set into ":utf8" mode: my $app = Log::Log4perl::Appender::File->new( filename => 'file.log', mode => 'append', utf8 => 1, ); binmode To manipulate the output filehandle via "binmode()", use the binmode parameter: my $app = Log::Log4perl::Appender::File->new( filename => 'file.log', mode => 'append', binmode => ":utf8", ); A setting of ":utf8" for "binmode" is equivalent to specifying the "utf8" option (see above). recreate Normally, if a file appender logs to a file and the file gets moved to a different location (e.g. via "mv"), the appender's open file handle will automatically follow the file to the new location. This may be undesirable. When using an external logfile rotator, for example, the appender should create a new file under the old name and start logging into it. If the "recreate" option is set to a true value, "Log::Log4perl::Appender::File" will do exactly that. It defaults to false. Check the "recreate_check_interval" option for performance optimizations with this feature. recreate_check_interval In "recreate" mode, the appender has to continuously check if the file it is logging to is still in the same location. This check is fairly expensive, since it has to call "stat" on the file name and figure out if its inode has changed. Doing this with every call to "log" can be prohibitively expensive. Setting it to a positive integer value N will only check the file every N seconds. It defaults to 30. This obviously means that the appender will continue writing to a moved file until the next check occurs, in the worst case this will happen "recreate_check_interval" seconds after the file has been moved or deleted. If this is undesirable, setting "recreate_check_interval" to 0 will have the appender check the file with every call to "log()". recreate_check_signal In "recreate" mode, if this option is set to a signal name (e.g. "USR1"), the appender will recreate a missing logfile when it receives the signal. It uses less resources than constant polling. The usual limitation with perl's signal handling apply. Check the FAQ for using this option with the log rotating utility "newsyslog". recreate_pid_write The popular log rotating utility "newsyslog" expects a pid file in order to send the application a signal when its logs have been rotated. This option expects a path to a file where the pid of the currently running application gets written to. Check the FAQ for using this option with the log rotating utility "newsyslog". create_at_logtime The file appender typically creates its logfile in its constructor, i.e. at Log4perl "init()" time. This is desirable for most use cases, because it makes sure that file permission problems get detected right away, and not after days/weeks/months of operation when the appender suddenly needs to log something and fails because of a problem that was obvious at startup. However, there are rare use cases where the file shouldn't be created at Log4perl "init()" time, e.g. if the appender can't be used by the current user although it is defined in the configuration file. If you set "create_at_logtime" to a true value, the file appender will try to create the file at log time. Note that this setting lets permission problems sit undetected until log time, which might be undesirable. header_text If you want Log4perl to print a header into every newly opened (or re-opened) logfile, set "header_text" to either a string or a subroutine returning a string. If the message doesn't have a newline, a newline at the end of the header will be provided. Design and implementation of this module has been greatly inspired by Dave Rolsky's "Log::Dispatch" appender framework. COPYRIGHT AND LICENSE
Copyright 2002-2009 by Mike Schilli <m@perlmeister.com> and Kevin Goess <cpan@goess.org>. This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.10.1 2010-07-21 Appender::File(3pm)
All times are GMT -4. The time now is 12:06 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy