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)
- 
type¶ Returns the designated license type of the node
Synonym for
designatedOne of [server, client, fpo]
Return type: str 
- 
designated¶ Returns the designated license type of the node
One of [server, client, fpo]
Return type: str 
- 
 
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')