topas -P save output


 
Thread Tools Search this Thread
Operating Systems AIX topas -P save output
# 1  
Old 10-06-2008
topas -P save output

hi

i have server monitor script which totally depends upon the output of TOP which works fine on HP.
now i am told to put same script on aix i found that topas -P produces same output but it doesnt redirect output to file i have to kill/terminate it. is there any other way to this.
as the script runs from cron every 10 mins i dont think killing topas command by kill command would be a great idea.

Last edited by otheus; 10-09-2008 at 06:43 AM.. Reason: Thread moved: Seems to be an AIX question more than a Shell scripting question.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. 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

2. 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

3. AIX

Record topas command output

How to record output of below command in a text file. topas -P or is there any other command which will do the same thing in AIX. I would like to get a report something similar to below commands. top -b prstat -c (5 Replies)
Discussion started by: NarayanaPrakash
5 Replies

4. UNIX for Advanced & Expert Users

Redirect Topas output to a file

Hi, I want to know how to redirect the output of topas -P to a file in a readable format. I tried doing it by using topas -P > topas.txt but the output is not properly aligned and when I opened it using vi it ahd some characters. Please help me out in this. Thanks (1 Reply)
Discussion started by: Preetha
1 Replies

5. Shell Programming and Scripting

how can save output?

I make shell script by use "if" statement, what should add it to shell script save which I enter it in output file txt? ---------- Post updated at 08:27 AM ---------- Previous update was at 05:59 AM ---------- I mean like this echo "enter your name" read name # now i when start... (1 Reply)
Discussion started by: Oman_Member
1 Replies

6. Shell Programming and Scripting

Save output in a variable

Hi, I have a 3rd party tool on Solaris 8. I am running it thorugh my script but I am not able to capture its output into a variable. Like, I tried, but did not work. output=`/usr/bin/myTool` echo $output Also, I tried saving in a file but when I run, output is always shown on the... (19 Replies)
Discussion started by: angshuman_ag
19 Replies

7. 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

8. AIX

topas -P output to file

Hi, I need to output to a file, what will be ftp'ed to windows the output of a topas -P command in AIX. I can't install anything in the server (because it's the bank AIX server) but i need to control and keep the history of the % cpu that my processes use. I tried to use topas -R >>... (7 Replies)
Discussion started by: jtmartins
7 Replies

9. UNIX for Dummies Questions & Answers

Command display output on console and simultaneously save the command and its output

Hi folks, Please advise which command/command line shall I run; 1) to display the command and its output on console 2) simultaneous to save the command and its output on a file I tried tee command as follows; $ ps aux | grep mysql | tee /path/to/output.txt It displayed the... (7 Replies)
Discussion started by: satimis
7 Replies

10. AIX

How to redirect output of topas?

Hi , How do i redirect output of topas to a file. i did not find any such option in topas command. Regards, Ashok (2 Replies)
Discussion started by: ashokd001
2 Replies
Login or Register to Ask a Question
uruk-save(8)						      SYSTEM ADMINISTRATION						      uruk-save(8)

  NAME
      uruk-save - save uruk rc configuration in iptables-save-style format

  SYNOPSIS
      uruk-save [-6 (save ip6tables rules)]

  OPTIONS
      -6 (save ip6tables rules)
	Don't save iptables rules but save ip6tables rules, for IPv6 filtering.

  DESCRIPTION
      uruk-save  saves	the  IPv4 rules in /etc/uruk/rc in iptables-save(5)-style format, without invoking iptables(8). If the -6 option is given,
      the IPv6 rules (if any) in /etc/uruk/rc are saved, in ip6tables-save(5)-style format. It	prints	output	to  stdout;  suggested	invocation
      therefore is

       # uruk-save > /var/lib/uruk/iptables/active

      or

       # uruk-save -6 > /var/lib/uruk/ip6tables/active

      .  This script is useful if you don't like the default behaviour of the uruk init script, and would like it to load the current uruk rc file
      instead of the current active file. Please note: generally you don't need to invoke this script manually: the init script which  comes  with
      uruk is suitable for most cases, it invokes uruk-save if needed.

  WARNING
      Just as uruk, in order to keep the uruk-save script small and simple, the script does very little error handling. It does not check the con-
      tents of the rc file in any way before executing it. When your rc file contains bogus stuff, uruk-save will very likely behave in unexpected
      ways. Caveat emptor.

      Things will likely break if you do fancy stuff in an rc hook file. For instance, uruk-save saves the filter table only. If you define mangle
      or nat tables, things will break.

      If your rc file is in verbose mode (i.e. it features set -x) or in no-act mode (i.e. it features iptables='echo iptables'), uruk-save fails.

  SEE ALSO
      uruk(8), uruk-rc(5) .

  COPYRIGHT
      Copyright (C) 2005 Joost van Baal <joostvb-uruk@mdcc.cx>

      This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License  as  published	by
      the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

      This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABIL-
      ITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

      You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

  AUTHOR
      Joost van Baal <joostvb-uruk@mdcc.cx>

  uruk-save 20120530						      30 mai 2012							uruk-save(8)