AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.

 View Only
  • 1.  Exiting topas

    Posted Thu November 06, 2008 03:03 AM

    Originally posted by: SystemAdmin


    Hy all,
    I need to record the topas output command.
    For a lots of reasons the only one solution I can use is to execute this command (I've just found topasout and xmwlm -L but I can't use thoose solutions):

    
    (sleep 3, echo q) | topas > logfile
    


    The problem is that I have to execute this command from a remote server.
    The output I have is:

    Please provide a more specific terminal type than unknown.

    Do you have any idea about this?
    Do tou know any other way to extract the
    
    % Comp
    
    value of the topas command?

    Thank you all!


  • 2.  Re: Exiting topas

    Posted Fri November 07, 2008 02:17 PM

    Originally posted by: SystemAdmin


    If you are running the command remotely, you may have some shell.

    If you got that command of yours to work (did not work for me on 5.3) then

    export TERM=vt100;(sleep 3,echo q)|topas > logfile

    Should work. If not, you can add a crontab of your command and just remote access the data written.

    Sar is also a standard performance monitoring tool that crosses unix platforms and is easily scripted. Nmon is decent on aix also but I believe is not formally supported.



  • 3.  Re: Exiting topas

    Posted Mon November 10, 2008 04:55 AM

    Originally posted by: nagger


    I think this is a hopeless idea.

    topas is a cursors program so the file ends up with all sorts of cursor control characters in it.
    This would make picking out the data your really want very hard indeed and possibly different each time you run it
    • cursors does not have to output the screen the same way every time.

    If you replay the output file like: cat output
    then you don't get the pauses so ten minutes recording would flash out on the scree in 1 second.

    What is the data you need as I am sure there are other ways to access them?

    Programs like nmon that save to a sane format are fully supported - just not by IBM.