def SetLicenseServerMode( ixNet, mode ): # mode options: subscription, mixed, perpetual ixNet.setAttribute(ixNet.getRoot()+'globals/licensing', '-mode', mode) ixNet.commit()