import PyNUT ups = PyNUT.PyNUTClient( host='serveur', login='upsadmin', password='upspass' ) result = ups.GetRWVars( ups='ups1' ) print( result ) >> {'test.battery.start' : 'Start a battery test', 'calibrate.stop' : 'Stop run time calibration', 'shutdown.stayoff' : 'Turn off the load and remain off', 'test.battery.stop' : 'Stop the battery test', 'test.panel.start' : 'Start testing the UPS panel', 'calibrate.start' : 'Start run time calibration', 'load.off' : 'Turn off the load immediately', 'test.failure.start' : 'Start a simulated power failure', 'shutdown.return' : 'Turn off the load and return when power is back'}