solaris.properties revision 1870:4aa2e64eff30
1#
2# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
3# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4#
5# This code is free software; you can redistribute it and/or modify it
6# under the terms of the GNU General Public License version 2 only, as
7# published by the Free Software Foundation.
8#
9# This code is distributed in the hope that it will be useful, but WITHOUT
10# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
12# version 2 for more details (a copy is included in the LICENSE file that
13# accompanied this code).
14#
15# You should have received a copy of the GNU General Public License version
16# 2 along with this work; if not, write to the Free Software Foundation,
17# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18#
19# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20# or visit www.oracle.com if you need additional information or have any
21# questions.
22#
23
24config.execSuffix=
25# pattern will be replaced with the PID
26config.getChildren.pattern=%p
27config.getChildren.app=pgrep
28config.getChildren.args=-P %p
29################################################################################
30# prepareProcess info to gather
31################################################################################
32onTimeout=\
33  native.pmap \
34  native.pfiles \
35  native.stack native.core
36################################################################################
37# solaris specific
38################################################################################
39native.pattern=%p
40native.javaOnly=false
41
42native.pmap.app=pmap
43native.pmap.args=-F %p
44
45native.pfiles.app=pfiles
46native.pfiles.args=-F %p
47
48# native.locks  TODO find 'analog for solaris' for Linux lslocks
49
50native.stack.app=pstack
51native.stack.args=-F %p
52native.stack.params.repeat=6
53
54native.core.app=gcore
55native.core.args=-F -o ./core %p
56native.core.params.timeout=3600000
57################################################################################
58# environment info to gather
59################################################################################
60environment=\
61  users.current users.logged users.last \
62  disk \
63  env \
64  system.dmesg system.prtconf system.sysdef \
65  process.ps process.top \
66  memory.swap memory.vmstat.default memory.vmstat.statistics memory.pagesize \
67  netstat.av netstat.m netstat.s netstat.i
68################################################################################
69# common unix
70################################################################################
71users.current.app=id
72users.current.args=-a
73users.logged.app=who
74users.logged.args=-a
75users.last.app=last
76users.last.args=-10
77
78disk.app=df
79disk.args=-h
80
81env.app=env
82
83system.dmesg.app=dmesg
84system.prtconf.app=prtconf
85system.sysdef.app=sysdef
86
87memory.swap.app=swap
88memory.swap.args=-l
89
90process.ps.app=ps
91process.ps.args=-Leo pid,lwp,ppid,tty,s,wchan,pcpu,time,stime,pmem,vsz,osz,rss,args
92
93process.top.app=top
94process.top.args=-b -n
95
96memory.vmstat.app=vmstat
97memory.vmstat.default.args=3 3
98memory.vmstat.statistics.args=-s
99
100memory.pagesize.app=pagesize
101
102# TODO: how to start prstat to show statistics and exit?
103# prstat.app=prstat
104# prstat.args=-a
105
106netstat.app=netstat
107netstat.av.args=-av
108netstat.m.args=-m
109netstat.s.args=-s
110netstat.i.args=-i 1 5
111################################################################################
112