Other Miscellaneous Operations
The following command is useful for obtaining basic statistics regarding a Samba domain. This command does
not work with current Windows XP Professional clients.
root# net rpc info
Domain Name: RAPIDFLY
Domain SID: S-1-5-21-399034208-633907489-3292421255
Sequence number: 1116312355
Num users: 720
Num domain groups: 27
Num local groups: 6
Another useful tool is the
net time
tool set. This tool may be used to query the
current time on the target server as shown here:
root# net time -S SAURON
Tue May 17 00:50:43 2005
In the event that it is the intent to pass the time information obtained to the UNIX
/bin/time
, it is a good idea to obtain the time from the target server in a format
that is ready to be passed through. This may be done by executing:
root# net time system -S FRODO
051700532005.16
The time can be set on a target server by executing:
root# net time set -S MAGGOT -U Administrator%not24get
Tue May 17 00:55:30 MDT 2005
It is possible to obtain the time zone of a server by executing the following command against it:
root# net time zone -S SAURON
-0600
|