How to save the 'nmon' output to a text file with a script?


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting How to save the 'nmon' output to a text file with a script?
# 1  
Old 01-21-2014
Error How to save the 'nmon' output to a text file with a script?

Hi all,
I want to do an Unix Script to save the 'nmon' output on a text file and I don't know how to do it.
I need a Script for each monitoring and also one to multiple monitorings.

Thanks

Last edited by Javi1990; 01-21-2014 at 10:19 AM.. Reason: more information
# 2  
Old 01-21-2014
What beyond output redirection do you need?
# 3  
Old 01-21-2014
Re-edit. I need this two scripts.

thanks
# 4  
Old 01-21-2014
A few questions:-
  • What have you tried so far?
  • What output do you actually want?
  • What is your operating system and version?
  • Have you read the manual pages for nmon, vmstat, iostat, sar etc.
Most importantly, what have you tried so far?

It is better for you to learn by trying and us suggesting adjustments than for us to give you a solution that might not be quite what you want, then we're back again to get it changed. if you have a go and understand then it will be better for us all.



Robin
# 5  
Old 01-22-2014
Hi rbatte1
I've never done a script of its kind, and want to know what to do to get the monitoring of each of the options of the "nmon" comand to diferents text files.
My OS is Windows 7 Enterprise 64 bit
I read the manual of nmon, but i don't see nothing about it, and i look for that in google but nothing...

thanks for your attention.
# 6  
Old 01-22-2014
If the output you want comes to the screen, try:-
Code:
your-command > file-name

I'm hoping that will capture the output into the file you name.

What is the command you are running? Is it just nmon on it's own with nothing else?


Smilie I'm a bit confused by your OS being Windows. Are you connecting to a unix server somewhere or using Cygwin, MS Tools for unix, or something else to pretend to be in one? Smilie



Robin
# 7  
Old 01-22-2014
Solved.

I'm using putty for connect to a Linux server.

the Script is :topas_nmon -f -t -r Test1 -s 60 -c 60 to generate a text file .nmon

and them i use a tool of IBM called nmon_analys that convert the .nmon file in excel file.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Need to save output of echo and awk to a file

Hi, I am generating a YAML file from a hosts file, but am having trouble saving it to a new file. hosts file 127.0.0.1 localhost 192.168.1.2 host1 192.168.1.3 host2 192.168.1.4 host3 192.168.1.5 host4 YAML file $ echo 'host_entries:' && awk '{printf " %s:\n ip:... (3 Replies)
Discussion started by: sand1234
3 Replies

2. Shell Programming and Scripting

Run sql query in shell script and output data save as delimited text

I want to run sql query in shell script and output data save as delimited text (delimited text would be comma) Code: SPOOL_FILE=/pgedw/dan.txt SQL=/pgedw/dan.sql sqlplus -s username/password@myhost:port/servicename <<EOF set head on set COLSEP , set linesize 32767 SET TRIMSPOOL ON SET... (8 Replies)
Discussion started by: Jaganjag
8 Replies

3. Shell Programming and Scripting

Use text of one file to save in another

I am trying to use the text of one file as a text file name with and the text of another as the contents of that text file. Is this possible? Thank you :). For example, in the two files attached, target.txt has: 1.txt 2.txt and out_parse.txt has: 13 20763642 20763642 C G... (5 Replies)
Discussion started by: cmccabe
5 Replies

4. Shell Programming and Scripting

Save value from output of Corestat and save in a list for each core

I am trying to modify the "corestat v1.1" code which is in Perl.The typical output of this code is below: Core Utilization CoreId %Usr %Sys %Total ------ ----- ----- ------ 5 4.91 0.01 4.92 6 0.06 ... (0 Replies)
Discussion started by: Zam_1234
0 Replies

5. Homework & Coursework Questions

Save output into file bash scripting

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: Hi there. i have created a program that in the end it will give output like this 1 2 3 4 5 10 9 ... (1 Reply)
Discussion started by: shdin271
1 Replies

6. Programming

Save output in text C++

Hi , i want to save the output of my c ++ code to a text file which is in a particular path : this is part of my code and I dunno where I am doing it wrong do { for( int i = 0; i < l; ++i ) { std::cout << 1 + k * i + index << ' '; } ... (2 Replies)
Discussion started by: siya@
2 Replies

7. Shell Programming and Scripting

Save output to file - inside a script ?

I'm using the following script to check cisco router health and I'd like to save output to a file, vty_runcmd.sh > /check/check-cisco-health script works and output is saved to a file. However using it in crontab file is created but output is not printed inside it. In crontab, */5 * * * *... (4 Replies)
Discussion started by: marmellata
4 Replies

8. Shell Programming and Scripting

Save cURL verbose output to file or do it like browser "save as.."

hi there ! i have exactly the same problem like this guy here https://www.unix.com/shell-programming-scripting/127668-getting-curl-output-verbose-file.html i am not able to save the curl verbose output.. the sollution in this thread (redirecting stderr to a file) does not work for me.... (0 Replies)
Discussion started by: crabmeat
0 Replies

9. Shell Programming and Scripting

let curl output to stdout AND save to a file

hello hackers. i have a curl process running as cgi directly pushing stdout to the client. but i want to additionally save that stream to a file at the same time. any directions madly welcome. thanks in advance (3 Replies)
Discussion started by: scarfake
3 Replies

10. Solaris

terminal output - save to file?

I have a window open on my ultra 10 - a terminal window connecting to a server. Is there any way I can log all output to this window to a log file on my ultra 10 ? (2 Replies)
Discussion started by: frustrated1
2 Replies
Login or Register to Ask a Question