summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2009-12-18 15:18:36 -0800
committerStephen Hemminger <stephen.hemminger@vyatta.com>2009-12-18 15:18:36 -0800
commit5792e5ffc5683493f04dc5f5f13c583b855cffcf (patch)
treee09bd8218a3ec94529938575c1299029fb374836
parent735f56914eeb409dcf850662d4e60db462fb7213 (diff)
downloadvyatta-op-5792e5ffc5683493f04dc5f5f13c583b855cffcf.tar.gz
vyatta-op-5792e5ffc5683493f04dc5f5f13c583b855cffcf.zip
Add display of accounting information
Bug 4929 New command: show system accounting show system accounting <user>
-rw-r--r--debian/control1
-rw-r--r--templates/show/system/accounting/node.def2
-rw-r--r--templates/show/system/accounting/node.tag/node.def2
3 files changed, 5 insertions, 0 deletions
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"