From 5792e5ffc5683493f04dc5f5f13c583b855cffcf Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Fri, 18 Dec 2009 15:18:36 -0800 Subject: Add display of accounting information Bug 4929 New command: show system accounting show system accounting --- debian/control | 1 + templates/show/system/accounting/node.def | 2 ++ templates/show/system/accounting/node.tag/node.def | 2 ++ 3 files changed, 5 insertions(+) create mode 100644 templates/show/system/accounting/node.def create mode 100644 templates/show/system/accounting/node.tag/node.def diff --git a/debian/control b/debian/control index e467822..a6a8638 100644 --- a/debian/control +++ b/debian/control @@ -20,6 +20,7 @@ Depends: sed (>= 4.1.5), less, libio-prompt-perl, mail-transport-agent, + acct, at, net-tools, libtimedate-perl diff --git a/templates/show/system/accounting/node.def b/templates/show/system/accounting/node.def new file mode 100644 index 0000000..8fe9b11 --- /dev/null +++ b/templates/show/system/accounting/node.def @@ -0,0 +1,2 @@ +help: Show system command accounting information +run: lastcomm diff --git a/templates/show/system/accounting/node.tag/node.def b/templates/show/system/accounting/node.tag/node.def new file mode 100644 index 0000000..053e706 --- /dev/null +++ b/templates/show/system/accounting/node.tag/node.def @@ -0,0 +1,2 @@ +help: Show accounting information for a specified user +run: lastcomm --user "$4" -- cgit v1.2.3