免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1356 | 回复: 9
打印 上一主题 下一主题

求助各路神仙 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-01-12 10:51 |只看该作者 |倒序浏览
HP-UX中怎样使用glance,参数都是什么?都是什么意思?还有为什么我用sar -d,它提示打不开sa12文件呢?各位哥哥姐姐帮帮我吧!谢谢了!

论坛徽章:
0
2 [报告]
发表于 2007-01-12 11:45 |只看该作者
不懂,路过,帮顶

论坛徽章:
0
3 [报告]
发表于 2007-01-12 12:17 |只看该作者

回复 2楼 tanyear 的帖子

初次接触HP,想看一下某个进程占用多少内存,cpu状态等。想用glance看一下。谢谢帮顶!小女子感激不尽!

论坛徽章:
0
4 [报告]
发表于 2007-01-12 14:18 |只看该作者
glance 我也不知道是什么咚咚,至于 sar,
http://bbs.chinaunix.net/viewthr ... p;page=1#pid4485118

论坛徽章:
0
5 [报告]
发表于 2007-01-12 14:29 |只看该作者
man glance

论坛徽章:
0
6 [报告]
发表于 2007-01-12 18:31 |只看该作者

  1. edit by vita 目录


  2. glance.1




  3. glance(1)                          HP-UX                          glance(1)

  4. NAME
  5.       glance - GlancePlus system performance monitor for HP-UX

  6. SYNOPSIS
  7.       glance [-command]
  8.           [-j interval] [-nice nicevalue] [-nosort] [-lock]
  9.           [-p [dest]] [-f dest] [-maxpages numpages]
  10.           [-disks <n>] [-nfs <n>] [-pids <n>]
  11.           [-kernel <path>] [-fs_interval interval]
  12.           [-no_fkeys]
  13.           [-adviser_off] [-adviser_only] [-iterations count]
  14.           [-bootup] [-syntax filename]
  15.           [-aos filename]
  16.           [-all_trans] [-all_instances]

  17. DESCRIPTION
  18.       GlancePlus is a powerful and easy-to-use online performance diagnostic
  19.       tool  for  HP-UX  systems.   It  is distributed in two forms: "gpm", a
  20.       Motif-based program  and  "glance",  a  character  mode  program.   We
  21.       provide both so you can choose the most appropriate tool for your job.
  22.       With gpm, you get the power and ease-of-use  of  a  Motif-based  tool.
  23.       With glance, you can run on almost any terminal or workstation, over a
  24.       serial interface and relatively slow  data  communication  links,  and
  25.       with  lower resource requirements.  Either component provides the same
  26.       rich set of performance information.

  27.       The default Process  List  screen  provides  general  data  on  system
  28.       resources  and  active processes.  More specific data is presented via
  29.       the CPU, Memory, Disk IO, Network, NFS, System Calls, Swap, and System
  30.       Table  screens.  Specific per-process detail is also available via the
  31.       individual process screens.  Running in a terminal environment, Glance
  32.       aids performance problem resolution on all HP 9000 series systems.

  33.       Definitions and descriptions of each metric are provided in GlancePlus
  34.       online help.

  35. Options
  36.       -command       This option can be used to request a different  initial
  37.                      screen  than  the  Process  List  screen.  This startup
  38.                      option  corresponds  to  the  keystroke  commands  that
  39.                      display  different detail screens once the tool is run.
  40.                      Only one of the commands in the first  section  of  the
  41.                      COMMAND SUMMARY (below) is allowed for this option.

  42.       -j interval    This option allows you to preset the number of  seconds
  43.                      between  screen refreshes in place of the default value
  44.                      of 5 seconds.  For example, if -j 60 is passed in,  the

  45.                                     - 1 -          Formatted:  June 20, 2006

  46. glance(1)                          HP-UX                          glance(1)

  47.                      screen  update  interval would be preset to 60 seconds.
  48.                      The allowable update value range is  from  1  to  32767
  49.                      seconds.

  50.       -nice nicevalue
  51.                      This option allows you to set the nice  priority  value
  52.                      for  the  glance process. The default nice value is -10
  53.                      (see man-page nice(1)).

  54.       -nosort        This option tells GlancePlus not  to  sort  interesting
  55.                      processes  listed  on  the  Process  List screen.  This
  56.                      reduces Glance's CPU overhead.

  57.       -lock          This option allows Glance to lock itself  into  memory.
  58.                      (This is opposite of the meaning of earlier releases of
  59.                      GlancePlus).  Note that response time may  be  enhanced
  60.                      by using this option, but there is the possibility that
  61.                      you  will  receive  the  error  "Unable   to   allocate
  62.                      memory/swap  space".   If  this  happens,  you must run
  63.                      GlancePlus without using this option.

  64.       -p [dest]      This option indicates that the continuous Print  option
  65.                      should  be  enabled  when the tool starts.  This can be
  66.                      useful for printing screens automatically over  a  long
  67.                      interval.   The  output will be directed to the default
  68.                      lp device, unless the dest parameter is supplied.  Once
  69.                      GlancePlus  is  running,  another p command toggles the
  70.                      continuous print off.

  71.       -f dest        This option indicates that the continuous Print  option
  72.                      should  be  enabled  when the tool starts.  This can be
  73.                      useful for printing screens automatically over  a  long
  74.                      interval.  The output will be directed to the specified
  75.                      destination file.  Once GlancePlus is running,  another
  76.                      p command toggles the continuous print off.

  77.       -maxpages numpages
  78.                      This option changes the maximum number  of  pages  that
  79.                      can be printed with the p command.  The default maximum
  80.                      is 200 pages.

  81.       -disks <n>
  82.       -nfs <n>
  83.       -pids <n>

  84.                                     - 2 -          Formatted:  June 20, 2006

  85. glance(1)                          HP-UX                          glance(1)

  86.       -kernel <path>
  87.                      These command line options are passed directly into the
  88.                      midaemon   and  they  control  the  midaemon's  startup
  89.                      parameters (see man-page midaemon(1)).  If the midaemon
  90.                      is already running, then these options are ignored.

  91.       -fs_interval interval
  92.                      This option allows you to reset the number  of  seconds
  93.                      between updates of FS_SPACE_UTIL. Currently the default
  94.                      value for this metric is 4 minutes.   The  the  minimum
  95.                      allowed update interval with this option is 30 seconds.

  96.       -no_fkeys      This  option  disables  the  display  of  function  key
  97.                      labels.

  98.       -adviser_off   Allows you to run Glance without the Adviser.

  99.       -adviser_only  This  option  allows  Glance  to  run  with  no  screen
  100.                      displays  to  the terminal.  Only the Adviser will run,
  101.                      sending it's output to stdout.  With this  option,  the
  102.                      glance  Adviser  runs  in  the  background, with stdout
  103.                      output optionally redirected to a file. If you want  to
  104.                      run  glance in "Adviser only" mode at startup time, you
  105.                      must include the -bootup option as well.

  106.       -iterations count
  107.                      This option allows you to limit the number of intervals
  108.                      that  Glance will run.  This can be used in conjunction
  109.                      with the -adviser_only option which enables  glance  to
  110.                      run in the background with no terminal screen displays.
  111.                      Glance  will  execute  for  the  number  of  iterations
  112.                      specified  and  then  terminate.  The minimum iteration
  113.                      value is 2 which will be used if the count is specified
  114.                      as 2 or less.

  115.       -bootup        Use this option along with -adviser_only when you  want
  116.                      to run glance in "Adviser only" mode at startup time.

  117.       -syntax filename
  118.                      Use this option to specify a file name  which  contains
  119.                      the  syntax  to  be  used by the Adviser.  If no syntax
  120.                      file is specified, the Adviser will search for  a  user
  121.                      default file, ~/adviser.syntax.  If no user syntax file
  122.                      is   found,   the   system   default    syntax    file,

  123.                                     - 3 -          Formatted:  June 20, 2006

  124. glance(1)                          HP-UX                          glance(1)

  125.                      /var/opt/perf/adviser.syntax, will be used.

  126.       -aos filename  Use this option  as  an  alternative  to  -adviser_only
  127.                      -syntax filename option.

  128.       -all_trans     This option allows glance to display  all  transactions
  129.                      registered  on  your  system.  If not specified, glance
  130.                      only  displays  transactions  filtered  by  the  values
  131.                      specified in your threshold file.

  132.       -all_instances This option allows glance to display  the  most  recent
  133.                      2048  instances  in  a  transaction.  If not specified,
  134.                      glance only displays  active  instances  with  no  stop
  135.                      time.

  136.                                     - 4 -          Formatted:  June 20, 2006

  137. glance(1)                          HP-UX                          glance(1)

  138. COMMAND SUMMARY
  139.       The following commands are grouped  into  three  sections;  top  level
  140.       screens, secondary screens, and miscellaneous commands.  The top level
  141.       screen commands are the only ones allowed on the command line.
  142.           _____________________________________________________________
  143.           |Command |          Screen Displayed / Description           |
  144.           |________|___________________________________________________|
  145.           |   a    | CPU By Processor                                  |
  146.           |   c    | CPU Report                                        |
  147.           |   d    | Disk Report                                       |
  148.           |   g    | Process List                                      |
  149.           |   i    | IO By File System                                 |
  150.           |   l    | Network By Interface                              |
  151.           |   m    | Memory Report                                     |
  152.           |   n    | NFS By System                                     |
  153.           |   t    | System Tables Report                              |
  154.           |   u    | IO By Disk                                        |
  155.           |   v    | IO By Logical Volume                              |
  156.           |   w    | Swap Space                                        |
  157.           |   A    | Application List                                  |
  158.           |   B    | Global Waits                                      |
  159.           |   D    | DCE Global Activity                               |
  160.           |   G    | Process Threads                                   |
  161.           |   H    | Alarm History                                     |
  162.           |   I    | Thread Resource                                   |
  163.           |   J    | Thread Wait                                       |
  164.           |   K    | DCE Process List                                  |
  165.           |   N    | NFS Global Activity                               |
  166.           |   P    | PRM Group List                                    |
  167.           |   T    | Transaction Tracker                               |
  168.           |   Y    | Global System Calls                               |
  169.           |   Z    | Global Threads                                    |
  170.           |   ?    | Commands Menu                                     |
  171.           |________|___________________________________________________|
  172.           |   S    | Select a NFS system/Disk/Application/Trans/Thread |
  173.           |   s    | Select a single process                           |
  174.           |   F    | Process Open Files                                |
  175.           |   L    | Process System Calls                              |
  176.           |   M    | Process Memory Regions                            |
  177.           |   R    | Process Resources                                 |
  178.           |   W    | Process Wait States                               |
  179.           |________|___________________________________________________|

  180.                                     - 5 -          Formatted:  June 20, 2006

  181. glance(1)                          HP-UX                          glance(1)

  182.                      _______________________________________
  183.                      |Command |         Description         |
  184.                      |________|_____________________________|
  185.                      |   b    | Scroll page backward        |
  186.                      |   f    | Scroll page forward         |
  187.                      |   h    | Online help                 |
  188.                      |   j    | Adjust refresh interval     |
  189.                      |   o    | Adjust process threshold    |
  190.                      |   p    | Print toggle                |
  191.                      |  e/q   | Quit GlancePlus             |
  192.                      |   r    | Refresh the current screen  |
  193.                      |   y    | Renice a process            |
  194.                      |   z    | Reset statistics to zero    |
  195.                      |   >    | Display next logical screen |
  196.                      |   <    | Display previous screen     |
  197.                      |   !    | Invoke a shell              |
  198.                      |________|_____________________________|

  199. EXAMPLES
  200.       To choose the default start up options,  which  start  glance  in  the
  201.       Process List screen, updating statistics every five seconds, enter:

  202.            glance

  203.       To monitor system resource usage overnight, run glance, and print  the
  204.       screen once every hour until you return and exit the program, enter:

  205.            glance -j 3600 -p

  206.       To monitor and print swap utilization once every two hours, specifying
  207.       the lp2 destination printer, enter:

  208.            glance -j 7200 -p lp2 -w

  209.       To execute glance at a higher than normal priority, limit the  maximum
  210.       number  of  pages  output by the print command to 10, and request that
  211.       the interesting processes be unsorted, enter:

  212.            glance -nice -19 -maxpages 10 -nosort

  213.       To run glance  in  the  background  against  special  adviser  syntax,
  214.       logging data to a file, you must first create a file that contains the
  215.       appropriate  adviser  commands,  then  execute  glance   with   stdout
  216.       redirected to a file.  For example:
  217.            echo 'print gbl_stattime, " runq=", gbl_run_queue' >temp
  218.            glance -aos ./temp -j 60>outfile &

  219. AUTHOR
  220.       glance was developed by Hewlett-Packard.

  221.                                     - 6 -          Formatted:  June 20, 2006

  222. glance(1)                          HP-UX                          glance(1)

  223. SEE ALSO
  224.       gpm(1), midaemon(1)

  225.                                     - 7 -          Formatted:  June 20, 2006



  226.          




  227. edit by vita 目录




  228. Made by hp-ux-gen-htm V 1.95
复制代码

论坛徽章:
0
7 [报告]
发表于 2007-01-12 18:35 |只看该作者
原帖由 小翎子 于 2007-1-12 10:51 发表
HP-UX中怎样使用glance,参数都是什么?都是什么意思?还有为什么我用sar -d,它提示打不开sa12文件呢?各位哥哥姐姐帮帮我吧!谢谢了!



你不是root,可能用不了sar的。  try: vmstat, top, glance

论坛徽章:
0
8 [报告]
发表于 2007-01-12 18:39 |只看该作者

回复 7楼 ivhb 的帖子

ivhb精灵王,谢谢啦!我得好好研究研究。周日加班,明天就要研究明白。再次感谢喽!呵呵

论坛徽章:
0
9 [报告]
发表于 2007-01-12 18:43 |只看该作者
原帖由 小翎子 于 2007-1-12 18:39 发表
ivhb精灵王,谢谢啦!我得好好研究研究。周日加班,明天就要研究明白。再次感谢喽!呵呵



客气客气,top 和 glance 看起来都是界面的, 很容易看明白的。不要紧张。 没有什么问题的。不行你把界面贴到这儿。 CU热心的朋友们会给你一个解释的。

论坛徽章:
0
10 [报告]
发表于 2007-01-12 18:49 |只看该作者

回复 9楼 ivhb 的帖子

哦!知道了!我刚工作,有很多地方不明白,和学校学的一点都不一样,挺有压力的,不过幸好有大家帮忙,感动死了,555......
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP