Module sysinfo
Access to system information on machine, which could be Linux, Mac or
Windows, and could be local or remote. In general, the REMOTE and LOCAL attributes of this module should be used. They
contain _SysInfo objects with
information about, respectively, the remote and local host. The
jobcontrol interface is used to determine the remote host - it is pulled
from the HOST argument, and is equivalent to the localhost if no remote
host is requested. Because of the reporting that this module is used for,
the remote host only cares about the FIRST host supplied to the HOST
argument.
Contains the _SysInfo class, which determines a variety
of system information and stores it. Information includes: 64/32 bit,
OS, mmshare #, and processor details.
Use like this:
>>> import sysinfo
>>> sysinfo.LOCAL.host
'localhost'
Can be called directly to determine system information for all command
line arguments.
To Do:
-
Implement the Schrodinger logger.
-
Reduce the number of imports.
-
Make this a subclass of schrodinger.job.jobcontrol.Host
Copyright:
Schrodinger, Inc. All rights reserved.
|
_version = "$Revision 1.0 $"
|
|
_PLATFORMS = 'Linux-x86_64', 'Linux-x86', 'Windows-x64', 'WIN3...
|
|
LOCAL = _FakeLocal()
Information about the localhost in a _SysInfo object.
|
|
REMOTE = _FakeRemote()
Information about the first remote host supplied to -HOST in a _SysInfo object.
|
_PLATFORMS
- Value:
'Linux-x86_64', 'Linux-x86', 'Windows-x64', 'WIN32-x86', 'Darwin-x86_6
4'
|
|