The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Operating Systems > AIX
.
google unix.com



AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
using TOPAS pasion AIX 2 12-24-2007 03:20 PM
dump .snap question thumper UNIX for Dummies Questions & Answers 3 03-23-2007 11:12 AM
unix screen shot royal UNIX for Dummies Questions & Answers 7 07-14-2004 04:36 PM
Topas cgatrader UNIX for Advanced & Expert Users 1 04-15-2004 08:22 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 07-24-2008
abhishek27 abhishek27 is offline
Registered User
  
 

Join Date: Jun 2008
Posts: 32
Question script which take a snap shot of Topas

can any one give me a script which take a snap shot of Topas at a fix interval of 15min and save it in a perticular file!!!!!!!!
  #2 (permalink)  
Old 07-25-2008
zaxxon's Avatar
zaxxon zaxxon is offline Forum Staff  
Moderator
  
 

Join Date: Sep 2007
Location: Germany
Posts: 2,259
What did you try on your own so far? Did you check the man page for topas if the output can be directed to a file?
As a starting point, read the man page for topas - if there is no such switch, maybe write a simple script using vmstat for example and put it into the crontab.

Good luck.
  #3 (permalink)  
Old 07-25-2008
abhishek27 abhishek27 is offline
Registered User
  
 

Join Date: Jun 2008
Posts: 32
if u can give me a Idea of how to do it....then i'll proceed b'coz i dont find a way how to go thru...
  #4 (permalink)  
Old 07-25-2008
johnf johnf is offline
Registered User
  
 

Join Date: May 2006
Location: England
Posts: 284
Why bother with any of this when NMON is a free tool and NMON Analyser is also free. Save your self the pain!
  #5 (permalink)  
Old 07-25-2008
bakunin bakunin is offline Forum Staff  
Bughunter Extraordinaire
  
 

Join Date: May 2005
Location: In the leftmost byte of /dev/kmem
Posts: 1,628
True, nmon is the way to go: there is a switch which puts nmon in "daemon mode", where it writes its output to a logfile. The sampling interval is configurable. This output can be analysed with "nmon analyzer", another free tool downloadable on the IBM freeware webpage for AIX. Unfortunately (to me, at least) the analyzer part is basically an "Excel" application and "Excel" only runs on some outlandish OS which i have not installed on any of my machines.

Still, the point zaxxon raised holds: it is always a good idea to at least give the solution a try and invest at least some effort into solving the issue before coming here asking for advice. We have banned homework questions for a reason and similarly we are not all too fond of helping people unwilling to help themselves.

I hope this helps.

bakunin
  #6 (permalink)  
Old 08-06-2008
vidyadhar85's Avatar
vidyadhar85 vidyadhar85 is offline Forum Staff  
Moderator(The Tutor)
  
 

Join Date: Jun 2008
Location: INDIA
Posts: 1,390
hey brother you can use one of the following tricks1) you can use xwd command which takes the dump of the screen into some file.go through the man page2) simply u can use tee command which will display the o/p on screen at the same time copy it to the file
  #7 (permalink)  
Old 08-18-2008
pagink pagink is offline
Registered User
  
 

Join Date: Mar 2006
Posts: 10
cd /etc/perf/daily
ls -lrt
topasout -a <<xmwlm>>.file
sort -o <<file>>.csv <<file>>.csv
ftp off and open in nmon

shrug

x='/etc/perf/daily'
cd $x
error=$?
if [[ $error != '0' ]] then
echo "There was an error running script: $0 $(date) please trouble shoot"
echo "This script could not cd to $x to convert the files to the nmon format"
exit
fi
#LIST=$(ls)
LIST=$(ls | grep -v csv | grep xmwlm) #Do not grab any files that have been
#coverted already

for f in $LIST; do
# make the file.csv files here "man topasout" for help
topasout -a $f
sleep 3

# sort the file and set back as the same file name
# so the time stamps are right in nmon
sort -o $f.csv $f.csv
sleep 3

# encode so you can attach the file, and then send it to the exe person
# checking the .forward file if it exists.
uuencode $x/$f.csv $x/$f.csv | mail -s "Your-weekly-$f.csv-file" $USER
error=$?
sleep 3
if [[ $error == '0' ]] then
rm $f.csv
else
echo "There were errors running script $0 at $(date) you will need to clean u
p the CSV files"
fi
done
Sponsored Links
Closed Thread

Bookmarks

Tags
monitoring

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 01:57 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0