summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Southworth <john.southworth@vyatta.com>2011-07-05 11:01:45 -0500
committerJohn Southworth <john.southworth@vyatta.com>2011-07-05 11:01:45 -0500
commit0b1ae6fdafb5bcab41118a23300855336f803ba6 (patch)
tree3872cf8429206c9af283d4eddca280a3e99a4775
parent2920be17b3e3d2ec2d49bc3829f1c2ca54376da5 (diff)
downloadvyatta-op-0b1ae6fdafb5bcab41118a23300855336f803ba6.tar.gz
vyatta-op-0b1ae6fdafb5bcab41118a23300855336f803ba6.zip
Bugfix 7278: Add a 'show log image <image-name> tail' command
-rw-r--r--templates/show/log/image/node.tag/tail/node.def2
-rw-r--r--templates/show/log/image/node.tag/tail/node.tag/node.def3
2 files changed, 5 insertions, 0 deletions
diff --git a/templates/show/log/image/node.tag/tail/node.def b/templates/show/log/image/node.tag/tail/node.def
new file mode 100644
index 0000000..c7f0190
--- /dev/null
+++ b/templates/show/log/image/node.tag/tail/node.def
@@ -0,0 +1,2 @@
+help: Show last lines of messages file
+run: tail /live/image/boot/$4/live-rw/var/log/messages
diff --git a/templates/show/log/image/node.tag/tail/node.tag/node.def b/templates/show/log/image/node.tag/tail/node.tag/node.def
new file mode 100644
index 0000000..f0af559
--- /dev/null
+++ b/templates/show/log/image/node.tag/tail/node.tag/node.def
@@ -0,0 +1,3 @@
+help: Show last changes to messages
+allowed: echo -n '<NUMBER>'
+run: tail -n "$6" /live/image/boot/$4/live-rw/var/log/messages | ${VYATTA_PAGER:-cat}