Package schrodinger :: Package utils :: Module sysinfo
[hide private]
[frames] | no frames]

Module sysinfo

Gather information about current system.

Functions [hide private]
 
catch_subprocess_errors(f)
Catches non-zero return code for any operations that might fail.
 
get_glibc_version()
Return string of glibc version.
 
get_kernel_version()
Return string of Linux kernel verison.
 
get_cpu()
Return a descriptive string of CPU type.
 
query_registry(key, value)
 
get_osname()
Return descriptive name of OS for reporting.
 
get_hostid()
 
get_hostname()
Variables [hide private]
  EXE = ''
  MMSHARE_EXEC = '/nfs/builds/objects/NB/2015-3/Linux-x86_64/bui...
  LMUTIL = '/nfs/builds/objects/NB/2015-3/Linux-x86_64/build-145...
  UNKNOWN = 'Unknown'
  __package__ = 'schrodinger.utils'
Function Details [hide private]

catch_subprocess_errors(f)

 

Catches non-zero return code for any operations that might fail. Use this to return UNKNOWN for any values we can't query.

Decorators:
  • @decorator

get_glibc_version()

 

Return string of glibc version.

Decorators:
  • @catch_subprocess_errors

get_kernel_version()

 

Return string of Linux kernel verison.

Decorators:
  • @catch_subprocess_errors

get_cpu()

 

Return a descriptive string of CPU type.

Decorators:
  • @catch_subprocess_errors

get_osname()

 

Return descriptive name of OS for reporting.

Decorators:
  • @catch_subprocess_errors

get_hostid()

 
Decorators:
  • @catch_subprocess_errors

get_hostname()

 
Decorators:
  • @catch_subprocess_errors

Variables Details [hide private]

MMSHARE_EXEC

Value:
'/nfs/builds/objects/NB/2015-3/Linux-x86_64/build-145/mmshare-v3.1/bin\
/Linux-x86_64'

LMUTIL

Value:
'/nfs/builds/objects/NB/2015-3/Linux-x86_64/build-145/mmshare-v3.1/bin\
/Linux-x86_64/lmutil'