Sponsored Content
Operating Systems Linux [Solved] Setup Nmon on Suse Enterprise 11 Post 302574646 by hedkandi on Friday 18th of November 2011 02:53:59 AM
Old 11-18-2011
Hi pludi

Sorry about that, was kind of stressed out yesterday. Now lets see, script I was working on is this :

Code:
print "'date +%H:%M' -Performance Monitoring Report" > /dev/console
APPLDIR=/usr/local/bin/
 LOGDIR=/tmp/nmon-reports/
ls $LOGDIR | grep -v "nmon.Z" | grep -v "lost+found" | while read LINE;
do
compress -F $LOGDIR/$LINE
done
find $LOGDIR -name 'hostname'.'date +%d'.nmon.Z -exec rm {} \;
$APPLDIR/nmon -F $LOGDIR/'hostname'.'date +%d'.nmon -t -s $1 -c $2

but the error messages I get when i run this script are "print in line 1 and compress in line 6 are not found" but I know compress works because I just compressed a file this morning

I'm not very good at scripting so I guess I'll have to start afresh and set a cronjob for this Smilie

---------- Post updated at 11:53 PM ---------- Previous update was at 05:54 PM ----------

Ok, so this is what I did

I added a crontab entry which reads:

Code:
my-xftp0:/tmp/nmon_reports # crontab -l
# DO NOT EDIT THIS FILE - edit the master and reinstall.
# (/tmp/crontab.XXXXrwrPNq installed on Fri Nov 18 14:42:49 2011)
# (Cron version V5.0 -- $Id: crontab.c,v 1.12 2004/01/23 18:56:42 vixie Exp $)
0 0 * 11 * /usr/local/bin/nmon -fr "Performance Report:myxftp0" -s 300 -c 288 -m /tmp/nmon_reports
my-xftp0:/tmp/nmon_reports # date
Fri Nov 18 15:51:35 MYT 2011

my-xftp0:/tmp/nmon_reports # ll
total 132
-rw-r--r-- 1 root root 37231 Nov 18 14:37 my-xftp0_111118_1432.nmon
-rw-r--r-- 1 root root 36581 Nov 18 14:40 my-xftp0_111118_1440.nmon
-rw-r--r-- 1 root root 49898 Nov 18 15:48 my-xftp0_111118_1443.nmon
my-xftp0:/tmp/nmon_reports # date
Fri Nov 18 15:53:14 MYT 2011

this basically gathers all the basic info I need with the default values and then i use nmon analyzer to transform all that into human readable xls sheet:

..lol i pretty much answered my own questions...
This User Gave Thanks to hedkandi For This Post:
 

6 More Discussions You Might Find Interesting

1. SuSE

Setup Problem with SUSE Linux

I setup SUSE Linux 10. I downloaded from SUSE website. A DVD version. But I have a problem: Please click to see the screen shots Shot 1: (Problem is here, with Software) http://www.vernoos.net/shot-1.jpg Shot 2: http://www.vernoos.net/shot-2.jpg Shot 3:... (1 Reply)
Discussion started by: HASSELBLAD
1 Replies

2. SuSE

LKCD for suse linux enterprise server 8

Hi, I have installed LKCD using lkcdutils pakage through Yast install and remove applications. I have used enterprise server cd for installation. But I did not found any service of lkcd like /etc/init.d/boo.lkcd there. if we dont have this servers lkcd dump can not be saved at dump... (0 Replies)
Discussion started by: bryanabhay
0 Replies

3. UNIX Desktop Questions & Answers

Suse Linux enterprise 10 - booting problem

Hi, It was happened to close my laptop without proper shutdown due to power failure with USB device connected to it. (removed the USB after shut down) After this incident, I was not able to boot my suse linux OS. Initial study reveals that the device is not unmounted properly and shows... (2 Replies)
Discussion started by: Prabhu V
2 Replies

4. UNIX for Dummies Questions & Answers

SunOS5.10 and SuSe Linux Enterprise

OK, I've been thrown into an issue at my company where the security folks want password aging turned on for their limited NIS environment. The config is a SunOS5.10 (Solaris 10) Master with several slaves and several SuSe Enterprise Server 11 Clients. What I'm looking to understand is... (0 Replies)
Discussion started by: rzrv15
0 Replies

5. UNIX and Linux Applications

SUSE Linux Enterprise 12

Is there any SUSE enterprise 12 x86_32 version available? I have SUSE enterprise 12 x86_64 and I am unable to compile 32 programs in that. It looks to be that gcc compiler (32 bit) does not come with SUSE 12. How can I get that? Regards, George (6 Replies)
Discussion started by: George47
6 Replies

6. SuSE

Suse enterprise server installation help

hello All, good day to you. could you tell me is there any way I can download SUSE lunux enterprise server trail version ? I want to install sap application over it. thanks in advance. (1 Reply)
Discussion started by: Leaner_963
1 Replies
chroot(1M)						  System Administration Commands						chroot(1M)

NAME
chroot - change root directory for a command SYNOPSIS
/usr/sbin/chroot newroot command DESCRIPTION
The chroot utility causes command to be executed relative to newroot. The meaning of any initial slashes (/) in the path names is changed to newroot for command and any of its child processes. Upon execution, the initial working directory is newroot. Notice that redirecting the output of command to a file, chroot newroot command >x will create the file x relative to the original root of command, not the new one. The new root path name is always relative to the current root. Even if a chroot is currently in effect, the newroot argument is relative to the current root of the running process. This command can be run only by the super-user. RETURN VALUES
The exit status of chroot is the return value of command. EXAMPLES
Example 1: Using the chroot Utility The chroot utility provides an easy way to extract tar files (see tar(1)) written with absolute filenames to a different location. It is necessary to copy the shared libraries used by tar (see ldd(1)) to the newroot filesystem. example# mkdir /tmp/lib; cd /lib example# cp ld.so.1 libc.so.1 libcmd.so.1 libdl.so.1 libsec.so.1 /tmp/lib example# cp /usr/bin/tar /tmp example# dd if=/dev/rmt/0 | chroot /tmp tar xvf - ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWcsu | +-----------------------------+-----------------------------+ SEE ALSO
cd(1), tar(1), chroot(2), ttyname(3C), attributes(5) NOTES
Exercise extreme caution when referencing device files in the new root file system. References by routines such as ttyname(3C) to stdin, stdout, and stderr will find that the device associated with the file descriptor is unknown after chroot is run. SunOS 5.10 15 Dec 2003 chroot(1M)
All times are GMT -4. The time now is 11:46 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy