Skip to content

Commit bdeb3ac

Browse files
authored
Merge pull request #455 from tclahr/add-artifacts
artif: new artifacts
2 parents 28b04ef + 8ae0121 commit bdeb3ac

3 files changed

Lines changed: 33 additions & 68 deletions

File tree

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ All notable changes to this project will be documented in this file.
1010

1111
- `live_response/network/netstat.yaml`: Updated to include `netstat -Aan` [aix].
1212
- `live_response/network/rmsock.yaml`: Identify process ownership for TCP network connections. Used to associate PIDs with network activity on AIX systems where lsof is unavailable [aix].
13+
- `live_response/process/fstat.yaml`: Updated to include `fstat -n` [freebsd, netbsd, netscaler, openbsd].
14+
- `live_response/process/ps.yaml`:
15+
- Updated to include `ps -eo user,pid,ppid,pcpu,pmem,tty,stat,lstart,args` [freebsd, linux, macos, netbsd, netscaler, openbsd].
16+
- Updated to include `ps -eo user,pid,ppid,pcpu,pmem,tty,stat,etime,args` [aix, freebsd, linux, macos, netbsd, netscaler, openbsd].
17+
- Updated to include `ps -eo user,pid,ppid,pcpu,pmem,tty,s,etime,args` [solaris].
1318

1419
### Fixed
1520

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: 2.0
1+
version: 2.1
22
condition: command_exists "fstat"
33
output_directory: /live_response/process
44
artifacts:
@@ -7,4 +7,10 @@ artifacts:
77
supported_os: [freebsd, netbsd, netscaler, openbsd]
88
collector: command
99
command: fstat
10-
output_file: fstat.txt
10+
output_file: fstat.txt
11+
-
12+
description: Collect status of open files.
13+
supported_os: [freebsd, netbsd, netscaler, openbsd]
14+
collector: command
15+
command: fstat -n
16+
output_file: fstat_-n.txt

artifacts/live_response/process/ps.yaml

Lines changed: 20 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: 4.1
1+
version: 5.0
22
output_directory: /live_response/process
33
artifacts:
44
-
@@ -8,87 +8,41 @@ artifacts:
88
command: ps
99
output_file: ps.txt
1010
-
11-
description: Report a snapshot of the current processes.
12-
supported_os: [aix, freebsd, linux, macos, netbsd, openbsd, solaris]
11+
description: Report a snapshot of the current processes including time the command started.
12+
supported_os: [freebsd, linux, macos, netbsd, netscaler, openbsd]
1313
collector: command
14-
command: ps auxwww
15-
output_file: ps_auxwww.txt
14+
command: ps -eo user,pid,ppid,pcpu,pmem,tty,stat,lstart,args
15+
output_file: ps_-eo_user_pid_ppid_pcpu_pmem_tty_stat_lstart_args.txt
1616
-
17-
description: Report a snapshot of the current processes.
18-
supported_os: [linux]
17+
description: Report a snapshot of the current processes including elapsed time since the process was started.
18+
supported_os: [aix, freebsd, linux, macos, netbsd, netscaler, openbsd]
1919
collector: command
20-
command: ps auxwwwf
21-
output_file: ps_auxwwwf.txt
20+
command: ps -eo user,pid,ppid,pcpu,pmem,tty,stat,etime,args
21+
output_file: ps_-eo_user_pid_ppid_pcpu_pmem_tty_stat_etime_args.txt
2222
-
23-
description: Report a snapshot of the current processes.
24-
supported_os: [aix, freebsd, linux, macos, netscaler, solaris]
23+
description: Report a snapshot of the current processes including elapsed time since the process was started.
24+
supported_os: [solaris]
2525
collector: command
26-
command: ps -deaf
27-
output_file: ps_-deaf.txt
26+
command: ps -eo user,pid,ppid,pcpu,pmem,tty,s,etime,args
27+
output_file: ps_-eo_user_pid_ppid_pcpu_pmem_tty_s_etime_args.txt
2828
-
2929
description: Report a snapshot of the current processes.
30-
supported_os: [aix, freebsd, linux, macos, netscaler, solaris]
30+
supported_os: [aix, freebsd, linux, macos, netbsd, openbsd, solaris]
3131
collector: command
32-
command: ps -ef
33-
output_file: ps_-ef.txt
32+
command: ps auxwww
33+
output_file: ps_auxwww.txt
3434
-
3535
description: Report a snapshot of the current processes.
3636
supported_os: [aix, freebsd, linux, macos, netscaler, solaris]
3737
collector: command
38-
command: ps -efl
39-
output_file: ps_-efl.txt
40-
-
41-
description: Collect system date before reporting a snapshot of the current processes including elapsed time since the process was started.
42-
supported_os: [aix, solaris]
43-
collector: command
44-
condition: ps -eo pid,user,etime,args
45-
command: date
46-
output_file: date_before_ps_-eo_pid_user_etime_args.txt
47-
-
48-
description: Report a snapshot of the current processes including elapsed time since the process was started.
49-
supported_os: [aix, solaris]
50-
collector: command
51-
command: ps -eo pid,user,etime,args
52-
output_file: ps_-eo_pid_user_etime_args.txt
53-
-
54-
description: Collect system date before reporting a snapshot of the current processes including elapsed time since the process was started.
55-
supported_os: [freebsd, linux, macos, netbsd, netscaler, openbsd]
56-
collector: command
57-
condition: ps -axo pid,user,etime,args
58-
command: date
59-
output_file: date_before_ps_-axo_pid_user_etime_args.txt
60-
-
61-
description: Report a snapshot of the current processes including elapsed time since the process was started.
62-
supported_os: [freebsd, linux, macos, netbsd, netscaler, openbsd]
63-
collector: command
64-
command: ps -axo pid,user,etime,args
65-
output_file: ps_-axo_pid_user_etime_args.txt
66-
-
67-
description: Collet system date before reporting a snapshot of the current processes including time the command started.
68-
supported_os: [freebsd, linux, macos, netbsd, netscaler, openbsd]
69-
collector: command
70-
condition: ps -axo pid,user,lstart,args
71-
command: date
72-
output_file: date_before_ps_-axo_pid_user_lstart_args.txt
73-
-
74-
description: Report a snapshot of the current processes including time the command started.
75-
supported_os: [freebsd, linux, macos, netbsd, netscaler, openbsd]
76-
collector: command
77-
command: ps -axo pid,user,lstart,args
78-
output_file: ps_-axo_pid_user_lstart_args.txt
38+
command: ps -ef
39+
output_file: ps_-ef.txt
7940
-
8041
description: Report a snapshot of the current processes including the control groups to which the process belongs.
8142
supported_os: [linux]
8243
collector: command
83-
command: ps -axo pid,user,cgroup
84-
output_file: ps_-axo_pid_user_cgroup.txt
85-
-
86-
description: Collect system date before reporting a snapshot of the current processes including used time, verbose, session ID and process group, state and type.
87-
supported_os: [esxi]
88-
collector: command
89-
condition: ps -P -T -c -g -s -t -J
90-
command: date
91-
output_file: date_before_ps_-P_-T_-c_-g_-s_-t_-J.txt
44+
command: ps -eo user,pid,ppid,cgroup
45+
output_file: ps_-eo_user_pid_ppid_cgroup.txt
9246
-
9347
description: Report a snapshot of the current processes including used time, verbose, session ID and process group, state and type.
9448
supported_os: [esxi]

0 commit comments

Comments
 (0)