summaryrefslogtreecommitdiff
path: root/source4/scripting
diff options
context:
space:
mode:
authorTheresa Halloran <thallora@linux.vnet.ibm.com>2011-11-09 20:16:33 -0500
committerAndrew Tridgell <tridge@samba.org>2011-11-10 06:04:22 +0100
commit7d84805ac06522dabeb4f8d5b69dab2918a508ba (patch)
treec6ce0eefd3aa6228451d7283bcd63c7b3c162a4b /source4/scripting
parent4ea6225c58108c4f4d45a30857b1cc1e3423c298 (diff)
downloadsamba-7d84805ac06522dabeb4f8d5b69dab2918a508ba.tar.gz
samba-7d84805ac06522dabeb4f8d5b69dab2918a508ba.tar.bz2
samba-7d84805ac06522dabeb4f8d5b69dab2918a508ba.zip
s4: samba-tool time --help documentation improvements
Signed-off-by: Theresa Halloran <thallora@linux.vnet.ibm.com> Signed-off-by: Andrew Tridgell <tridge@samba.org> Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Thu Nov 10 06:04:22 CET 2011 on sn-devel-104
Diffstat (limited to 'source4/scripting')
-rw-r--r--source4/scripting/python/samba/netcmd/time.py15
1 files changed, 14 insertions, 1 deletions
diff --git a/source4/scripting/python/samba/netcmd/time.py b/source4/scripting/python/samba/netcmd/time.py
index 62d4d1ba3c..966799e7db 100644
--- a/source4/scripting/python/samba/netcmd/time.py
+++ b/source4/scripting/python/samba/netcmd/time.py
@@ -28,7 +28,20 @@ from samba.netcmd import (
)
class cmd_time(Command):
- """Retrieve the time on a remote server"""
+ """Retrieve the time on a server
+
+This command returns the date and time of the Active Directory server specified on the command. The server name specified may be the local server or a remote server. If the servername is not specified, the command returns the time and date of the local AD server.
+
+Example1:
+samba-tool time samdom.example.com
+
+Example1 returns the date and time of the server samdom.example.com.
+
+Example2:
+samba-tool time
+
+Example2 return the date and time of the local server.
+"""
synopsis = "%prog [server-name] [options]"
takes_args = ["server_name?"]