s.n.t.cmd_time(Command) : class documentation

Part of samba.netcmd.time View In Hierarchy

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.

Method run Run the command. This should be overriden by all subclasses.

Inherited from Command:

Method __init__ Undocumented
Method usage Undocumented
Method show_command_error display a command error
Method message Undocumented
Method get_logger Get a logger object.
Method _get_short_description Undocumented
Method _get_full_description Undocumented
Method _get_name Undocumented
Method _create_parser Undocumented
Method _run Undocumented
def run(self, server_name=None, credopts=None, sambaopts=None, versionopts=None):
Run the command. This should be overriden by all subclasses.
API Documentation for Samba, generated by pydoctor at 2011-12-08 20:23:28.