Module: computer

This module is used to deal with all things related to the computer.

Members

linuxmusterLinuxclient7.computer.hostname()[source]

Get the hostname of the computer

Returns

The hostname

Return type

str

linuxmusterLinuxclient7.computer.isInAD()[source]

Check if the computer is joined to an AD

Returns

True or False

Return type

bool

linuxmusterLinuxclient7.computer.isInGroup(groupName)[source]

Check if the computer is part of an ldap group

Parameters

groupName – The name of the group to check

Returns

True or False

Return type

bool

linuxmusterLinuxclient7.computer.krbHostName()[source]

Get the krb hostname, eg. COMPUTER01$

Returns

The krb hostname

Return type

str

linuxmusterLinuxclient7.computer.readAttributes()[source]

Read all ldap attributes of the cumputer

Returns

Tuple (success, dict of attributes)

Return type

tuple