HP XC System Software Administration Guide Version 3.2

Example 7-1 Using the collectl Utility from the Command Line
# collectl
waiting for 10 second sample...
### RECORD 1 >>> n3 <<< (m.n) (date and time stamp) ###
# CPU SUMMARY (INTR, CTXSW & PROC /sec)
# USER NICE SYS IDLE WAIT INTR CTXSW PROC RUNQ RUN AVG1 AVG5 AVG15
0 0 0 99 0 1055 65 0 151 0 0.02 0.04 0.00
# DISK SUMMARY (/sec)
#Reads R-Merged R-KBytes Writes W-Merged W-KBytes
0 0 0 5 7 51
# MEMORY STATISTICS
#<---------------------Physical Memory------------------->
# TOTAL USED FREE BUFF CACHED SLAB MAPPED
3965M 1255M 2710M 129800K 920732K 89484K 157068K
<-----------Swap----------><-Inactive-><Pages/sec>
TOTAL USED FREE TOTAL IN OUT
6141M 0 6141M 368352K 0 51
# NETWORK SUMMARY (/sec)
#InPck InErr OutPck OutErr Mult ICmp OCmp IKB OKB
8 0 3 0 0 0 0 0 0
# SOCKET STATISTICS
# <-------------Tcp-------------> Udp Raw <---Frag-->
#Used Inuse Orphan Tw Alloc Mem Inuse Inuse Inuse Mem
146 33 0 13 51 0 27 1 0 0
# TCP SUMMARY (/sec)
# PureAcks HPAcks Loss FTrans
1 0 0 0
The collectl utility provides alternate output formats:
Use the --M 1 option to display the output in a single line for a more compressed and easier
to read format. Be aware that this option may not produce all the fields.
Use the --oT option to time stamp the data.
Use the --oD and --od options to provide two formats of a date and time stamp.
For a discussion of the options to the collectl utility and a description of its output, see
collectl(1).
7.7.2 Running the collectl Utility as a Service
After it is enabled, the collectl utility can be run as a service. You can use the service
command to stop and start the collectl service. You can also obtain the current status of this
service, as shown in the following example:
# service collectl status
collectl (pid process_id) is running...
The collectl service is set up to collect normally reported summary data and to write it in a
compressed text file in the /var/log/collectl directory.
The actions of the collectl service are specified by the
/opt/hptc/config/services/collectl.ini file.
7.7 The collectl Utility 95