diff options
Diffstat (limited to 'templates/show')
-rw-r--r-- | templates/show/date/node.def | 2 | ||||
-rw-r--r-- | templates/show/date/utc/node.def | 2 | ||||
-rw-r--r-- | templates/show/ntp/node.def | 2 | ||||
-rw-r--r-- | templates/show/ntp/node.tag/node.def | 3 |
4 files changed, 9 insertions, 0 deletions
diff --git a/templates/show/date/node.def b/templates/show/date/node.def new file mode 100644 index 0000000..10e01a3 --- /dev/null +++ b/templates/show/date/node.def @@ -0,0 +1,2 @@ +help: "Show system date and time" +run: /bin/date diff --git a/templates/show/date/utc/node.def b/templates/show/date/utc/node.def new file mode 100644 index 0000000..d24808f --- /dev/null +++ b/templates/show/date/utc/node.def @@ -0,0 +1,2 @@ +help: "Show system date and time as Coordinated Universal Time" +run: /bin/date -u diff --git a/templates/show/ntp/node.def b/templates/show/ntp/node.def new file mode 100644 index 0000000..bd75136 --- /dev/null +++ b/templates/show/ntp/node.def @@ -0,0 +1,2 @@ +help: "Show date and time of network server [default: ntp.vyatta.com]" +run: ntpdate -q ntp.vyatta.com diff --git a/templates/show/ntp/node.tag/node.def b/templates/show/ntp/node.tag/node.def new file mode 100644 index 0000000..691fa9d --- /dev/null +++ b/templates/show/ntp/node.tag/node.def @@ -0,0 +1,3 @@ +help: "Show date and time of given NTP server" +allowed: sed 's/#.*//; s/^[^ \t]*[ \t]//; /^$/d; $s/$/\n--/' ${HOSTFILE:-/dev/null} +run: ntpdate -q ${3:-ntp.vyatta.com} |