Global top
The global top command shows SGM processor activity in real time. The default output also shows a list of the most processor-intensive processes. In addition to the standard functionality of the Linux top command, global top adds these features for the 61000/41000 Security System:
Global top relies on the user configuration for the local top utility. The command uses the local SGM configuration file for configuring the output on the remote SGMs.
Syntax
> top [local] [-f [-o <filename>] [-n <iter>] | -s <filename>] -b <sgm_ids> [<top_params>] [-h]
Parameter
|
Description
|
local
|
Use the local configuration file
|
-f
|
Export the output to a file
|
-o <filename>
|
File and path of the output file
Default: /vat/log/gtop.< time>
Use with: -f
|
-n <iter>
|
Number of iterations
Default: 1
Use with: -f
|
-b <sgm_ids>
|
Works with SGMs and/or Chassis as specified by <sgm_ids>.
< sgm_ids> can be:
- No <sgm_ids> specified or
all shows all SGMs and Chassis - One SGM
- A comma-separated list of SGMs (
1_1,1_4 ) - A range of SGMs (
1_1-1_4 ) - One Chassis (
Chassis1 or Chassis2 ) - The active Chassis (
chassis_active )
|
< top_params>
|
Parameters of the standard top command
For more information, see the top documentation.
|
-s <filename>
|
Shows the content of the output file <filename>
|
Managing the g_top display
top uses a configuration file to manage output display. By default it copies and uses this configuration file from the local blade (usually located under ~/.toprc ). This file is copied to all SGMs and is used when top is run.
To manage the g_top display:
- Run:
top - Set the desired display view.
- Save configuration (shift+w).
- Run:
g_top
Sending output to a file
At times, it is more convenient to send g_top output to a file, for example, when there are more SGMs than the screen can handle. To enable the file mode use: -f
|