License

The License Object represents the IBM Spectrum Scale license type of a node

A license object cannot be created directly, and is always accessed either via the relevant Node object or the Licenses collection.

Description

class arcapix.fs.gpfs.license.License(nodeName, designatedLicense, requiredLicense)

A license determines what functions a node can perform and what data can be shared with who/what (according the relevant IBM Spectrum Scale license agreement)

id

Returns the name of the node the license applies to

Synonym for nodeName

Return type:str
nodeName

Returns the name of the node the license applies to

Return type:str
type

Returns the designated license type of the node

Synonym for designated

One of [server, client, fpo]

Return type:str
designated

Returns the designated license type of the node

One of [server, client, fpo]

Return type:str
required

Returns the required license type of the node, given the role it is performing

Return type:str
is_set()

Returns whether that node has a designed license

Return type:bool

Examples

Checking the designated licenses of the nodes on a cluster

>>> from arcapix.fs.gpfs import Cluster
>>>
>>> # Load the cluster
... mycluster = Cluster()
>>>
>>> # Print the block size of all file systems
... for node in mycluster.nodes.values():
...     print("Name: {0}\tLicense: {1}".format(node.name, node.license.type))
...
Name: pixstor-demo-01  License: server
Name: pixstor-demo-02  License: server

Changing the license of a node

>>> from arcapix.fs.gpfs import Cluster
>>>
>>> # Change node 'pixstor-demo-01' to a client license
... Cluster().nodes['pixstor-demo-01'].change(license='client')