Changes between Version 6 and Version 7 of jazz/10-05-11


Ignore:
Timestamp:
May 11, 2010, 12:19:50 PM (14 years ago)
Author:
jazz
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • jazz/10-05-11

    v6 v7  
    88 * [http://packages.debian.org/acct acct] - The GNU Accounting utilities for process and login accounting
    99   * 從 [http://phantom.nchc.org.tw/ Phantom Cluster] 的架構圖中看到 psacct package,原來是可以拿來統計不同使用者登入登出跟執行指令的工具啊!! ([wiki:jazz/09-09-23#ClusterComputing 2009-09-23])
     10   * ac - 統計使用者連線時間 (單位: 小時) (Ref: [http://cha.homeip.net/blog/archives/2006/11/psacct_checkins.html psacct & checkinstall 使用備忘])
     11   * sa - 統計執行過的程序
     12{{{
     13#!sh
     14~$ sudo apt-get install acct
     15~$ ac -d                 # 依日期統計
     16~$ ac -p                 # 依使用者帳號統計
     17~$ ac -f /var/log/wtmp.1 # 指定來源檔案 (預設 /var/log/wtmp) - 因此只能統計近期的使用情形
     18~$ sudo sa -a            # 顯示所有程序記錄
     19~$ sudo sa -m            # 依使用者統計
     20}}}
    1021
    1122== Perl + SQLite3 ==