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:
The global top relies on the user configuration for the local top utility; The global command will use the local SGM configuration file for configuring the output on the remote SGMs
> top [local] [-f [-o filename] [-n niter] | -s <filename> | -h] [global command-flags] [top cmd line args]
Top uses a configuration file to manage output display; top by default will copy and use this configuration file from the local blade (usually located under ~/.toprc). This file will be copied to all SGMs and will be used when calling top.
To manage g_top display:
- Run local top (from shell) and set the desired display view
- Save configuration (shift+w)
- Run global top
It is also possible for each blade to display output using its own local configuration file
simply run "top local "
How to send 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 then the screen can handle. To enable the file mode use the -f flag.
In file mode the output top will be sent to a file (default: /var/log/gtop.<time>). Use --o flag to specify a different file to save in.
By default top will perform one iteration in file mode, use --n to specify a different number
Use top --s <filename> to show the content of file <filename>.
|