Sponsored Content
Top Forums Shell Programming and Scripting monitoring various things (mainly activity) on different unix boxes Post 302560628 by albator1932 on Friday 30th of September 2011 11:26:35 AM
Old 09-30-2011
Thanks but I guess I didn't explain right :
I need to monitor who is connected (and doing what) during the night (e.g. from 9pm to 7am next morning) let's say every 15 minutes.

I thought about a shell script launched by cron job doing the who and the ps -ef command in a text file with some increment (like who.1.txt, who.2.txt and so on) and everyday when I start working compute all the data gathered during the night to have a report saying who was on each host and what was going on.

The purpose of all that is to check if there's some unknown activity by night that could possibly be killed by switching off workstations (user's crontab for example) and take the required actions to secure it.

Maybe my plan isn't the best (or at least the most effective) that's why I came to ask I you've got a better idea or if I'm on the good path.
 

9 More Discussions You Might Find Interesting

1. Programming

text boxes, radio buttons , check boxes in c++ on unix

Hi ! Please tell me how to get radio buttons, text boxes , check boxes , option buttons , pull down menus in C++ on Unix. I think it would be done using curses.h ..but that's all i know. TIA, Devyani. (3 Replies)
Discussion started by: devy8
3 Replies

2. UNIX for Dummies Questions & Answers

users logging on to unix boxes

I have been asked to write a unix script to log and report all users logging on to our unix boxes as either the root or oracle users only on a 24 hour basis. This should trap the logon and logoff time,if possible what they are doing and their username. Thanks in Advance (2 Replies)
Discussion started by: irehman
2 Replies

3. UNIX for Dummies Questions & Answers

monitoring /tmp and /var/tmp for suspicous activity

Hello, does anyone have a script that can check the contents of the /tmp directory and for example e-mail the directory content if anything other than session files are present? Maybe there are better ways to monitor suspicous /tmp and /var/tmp activity, if so I'm listening :) (1 Reply)
Discussion started by: jamesbond
1 Replies

4. UNIX for Dummies Questions & Answers

Help! Suggestions on what I can I use my 2 unix boxes for?

Once upon a looong time ago I used to work with Unix systems - SGI mainly. Now I've inherited 2 boxes - an SGI dual processor Octane and an Indigo2. For the past 2 years they've sat waiting for me to do something with them and never getting round to it. I run a windows network at home so... (3 Replies)
Discussion started by: JimmyChang
3 Replies

5. UNIX for Dummies Questions & Answers

How do I install things on Unix?

I am really confused as to how to install a piece of software on Unix especially after having worked with Windows for over 10 years. I see the tar.gz, tar.gz2 and rpm packages. How do I install these things? Do I have to be a root to do this? If its only the root, then how do users generally... (4 Replies)
Discussion started by: Legend986
4 Replies

6. AIX

Monitoring the network activity happening in a port in AIX 5.3

Hi All, I would like to monitor the volume of Data that is transferred through a single port in AIX. I have nmon installed in my machine. What is the best possible solution for this problem. Thanks in Advance. (3 Replies)
Discussion started by: bravo13
3 Replies

7. Solaris

Monitoring all user keystroke activity

Hello, First post so bear with me....i've done lost of searches on this and did not find a definitive answer. I need to be able to capture in log every single keystroke a user performs, I am aware that the script command can be used to do this, however, here is my dilemma/problem. Here... (1 Reply)
Discussion started by: giles.cardew
1 Replies

8. Solaris

how to config sudo in unix boxes

Hi How to configure sudo in all unix boxes. plz provide the step by step process. Regards Praveen (3 Replies)
Discussion started by: tv.praveenkumar
3 Replies

9. Red Hat

RHEL Linux process activity monitoring tool from windows 7 system

I have 2 RHEL 5.9 system where customized applications are running. These 2 servers are with in a network (LAN) with each other.One application in say Server 1 can talk to another application in server 2 and vice versa. The applications are exchanging data among each other. Recently I am... (0 Replies)
Discussion started by: Anjan Ganguly
0 Replies
SGE_INTRO(1)						   Sun Grid Engine User Commands					      SGE_INTRO(1)

NAME
sge_intro.1 - a facility for executing UNIX jobs on remote machines DESCRIPTION
Sun Grid Engine is a facility for executing UNIX batch jobs (shell scripts) on a pool of cooperating workstations. Jobs are queued and exe- cuted remotely on workstations at times when those workstations would otherwise be idle or only lightly loaded. The work load is distrib- uted among the workstations in the cluster corresponding to the load situation of each machine and the resource requirements of the jobs. User level checkpointing programs are supported and a transparent checkpointing mechanism is provided (see sge_ckpt(1)). Checkpointing jobs migrate from workstation to workstation without user intervention on load demand. In addition to batch jobs, interactive jobs and par- allel jobs can also be submitted to Sun Grid Engine. USER INTERFACE
The Sun Grid Engine user interface consists of several programs which are described separately. qacct(1) qacct extracts arbitrary accounting information from the cluster logfile. qalter(1) qalter changes the characteristics of already submitted jobs. qconf(1) qconf provides the user interface for configuring, modifying, deleting and querying queues and the cluster configuration. qdel(1) qdel provides the means for a user/operator/manager to cancel jobs. qhold(1) qhold holds back submitted jobs from execution. qhost(1) qhost displays status information about Sun Grid Engine execution hosts. qlogin(1) qlogin initiates a telnet or similar login session with automatic selection of a low loaded and suitable host. qmake(1) qmake is a replacement for the standard Unix make facility. It extends make by its ability to distribute independent make steps across a cluster of suitable machines. qmod(1) qmod allows the owner(s) of a queue to suspend and enable all queues associated with his machine (all currently active processes in this queue are also signaled) or to suspend and enable jobs executing in the owned queues. qmon(1) qmon provides a Motif command interface to all Sun Grid Engine functions. The status of all or a private selection of the configured queues is displayed on-line by changing colors at corresponding queue icons. qquota(1) qquota provides a status listing of all currently used resource quotas (see sge_resource_quota(1).) qresub(1) qresub creates new jobs by copying currently running or pending jobs. qrls(1) qrls releases holds from jobs previously assigned to them e.g. via qhold(1) (see above). qrdel(1) qrdel provides the means to cancel advance reservations. qrsh(1) qrsh can be used for various purposes such as providing remote execution of interactive applications via Sun Grid Engine comparable to the standard Unix facility rsh, to allow for the submission of batch jobs which, upon execution, support terminal I/O (stan- dard/error output and standard input) and terminal control, to provide a batch job submission client which remains active until the job has finished or to allow for the Sun Grid Engine-controlled remote execution of the tasks of parallel jobs. qrstat(1) qrstat provides a status listing of all advance reservations in the cluster. qrsub(1) qrsub is the user interface for submitting a advance reservation to Sun Grid Engine. qselect(1) qselect prints a list of queue names corresponding to specified selection criteria. The output of qselect is usually fed into other Sun Grid Engine commands to apply actions on a selected set of queues. qsh(1) qsh opens an interactive shell (in an xterm(1)) on a low loaded host. Any kind of interactive jobs can be run in this shell. qstat(1) qstat provides a status listing of all jobs and queues associated with the cluster. qtcsh(1) qtcsh is a fully compatible replacement for the widely known and used Unix C-Shell (csh) derivative tcsh. It provides a command- shell with the extension of transparently distributing execution of designated applications to suitable and lightly loaded hosts via Sun Grid Engine. qsub(1) qsub is the user interface for submitting a job to Sun Grid Engine. SEE ALSO
sge_ckpt(1), qacct(1), qalter(1), qconf(1), qdel(1), qhold(1), qhost(1), qlogin(1), qmake(1), qmod(1), qmon(1), qresub(1), qrls(1), qrsh(1), qselect(1), qsh(1), qstat(1), qsub(1), qtcsh(1), Sun Grid Engine Installation Guide, Sun Grid Engine Administration Guide, Sun Grid Engine User's Guide. COPYRIGHT
Copyright: 2008 by Sun Microsystems, Inc. SGE 6.2u5 $Date$ SGE_INTRO(1)
All times are GMT -4. The time now is 06:25 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy