我想知道是否有办法在Solaris操作系统中获取sheduler历史记录。输出可能包含以下详细信息。
user : user name who invoked the process
name : name of the process / command used to invoke the process
loc : location or path of the binary
pid : process id
event: event happened to the process (init, suspend or end)
time : time the event happend
date : date the event happeed
我很想知道其他操作系统是否有这样的东西。
答案 0 :(得分:1)
您可以使用dtrace
脚本利用proc provider(proc:::exec-success
,proc:::exit
和proc:::signal_handle
)来实现该目标。
您的活动列表看起来很可疑,应该至少应为“start
,suspend
,resume
和exit
”
答案 1 :(得分:1)
您需要Solaris的审核功能。 man审计和相关的实用程序,auditconfig等