Dell UPS 1920T Manual del usuario

Página 31

Advertising
background image

Configuración

31

delay: 0, // This property can be used to delay first execution of
the script

interval: 10000, // and at an interval of every 10 seconds after
that

Secuencia de comandos de ejemplo: humidity_shutdown.js
Se trata de una secuencia de comandos de ejemplo para disparar una alarma de temperatura o humedad

desde una PDU y ejecutar una secuencia de apagado. Esta secuencia de comandos ilustra lo que se puede

hacer con las sondas de una PDU.
Los atributos en negrita se pueden modificar de la siguiente manera:

UserScript =

{

name: "ShutdownByTemperatureOrHumidity",

enabled: false, // Set this property to true to enable the script

onEvent: true,

delay: 0, // This property can be used to delay first execution of
the script

interval: 10000, // and every 10s from that

/// @property {Integer} pduName This property is PDU ip address
with humidity sonde which must be checked

pduName : "178.222.223.224",

/// @property {Integer} pduHumidityLimit This property is value
limit of humidity before shutdown.

pduHumidityLimit : 20,

/// @property {Integer} pduTemperatureLimit This property is value
limit of temperature before shutdown.

Advertising