The purpose is to identify which user of the server has more process in a peak time of the day.
We identify that the server has a lot syscall between 10:00 am and 12:00 pm.
That is the reason to automation the process to collect information during this period ot time.
I though that the comand awk could the appropiate because it has a field capabilities per row but if you consider to create the script using another tool is welcome.
You can simplify your pipeline a little bit... The uniq won't reorder the output, so the second sort isn't needed. Also note that the standards don't clearly specify what happens when both the -f option and the -o option to ps are given (they place conflicting requirements on the output format; so specifying both is non-portable).
Putting your code in a loop to run your command line (and add a timestamp to the start of each line) is pretty easy. If you start the following script at 10am, by default it will produce reports at about 10:00, 10:15, 10:30, 10:45, 11:00, 11:15, 11:30, 11:45, and noon and then quit. If you pass arguments to the script you can change the number of minutes between samples and the number of samples to be run. It was a written and tested using a Korn shell, but will work with any shell that meets basic POSIX conforming shell requirements for arithmetic and variable expansions.
get email notification from from system when a process from XXXX user takes longer than 15 min run.Let me know the time estimation for the same.
hi ,any one please tell me , how to write a script to get email notification from system when a process from as mentioned above a xxxx user takes... (1 Reply)
Hello Everyone.
I am trying to display contains of a file from a specific line to a specific line(let say, from line number 3 to line number 5). For this I got the shell script as shown below:
if ; then
if ; then
tail +$1 $3 | head -n $2
else
... (5 Replies)
Hi Experts, we do have a shell script for Unix Solaris, which will kill all the process manullay, it used to work in my previous env, but now it is throwing this error.. could some one please help me to resolve it
This is how we execute the script (and this is the requirement) ... (2 Replies)
Monitoring the IT infrastructure is an important key to ensure your business continuity and prepare for future grow. SDR is a simple toolkit, containing a number of data collectors, used to record and report data from your Solaris servers. SDR is mainly designed around Solaris operating system due... (0 Replies)