25.06.2015 Views

Administering Platform LSF - SAS

Administering Platform LSF - SAS

Administering Platform LSF - SAS

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Event Generation<br />

Event Generation<br />

Enabling event generation<br />

SNMP trap<br />

program<br />

Custom event<br />

handling<br />

programs<br />

<strong>LSF</strong> detects events occurring during the operation of <strong>LSF</strong> daemons. <strong>LSF</strong><br />

provides a program which translates <strong>LSF</strong> events into SNMP traps. You can also<br />

write your own program that runs on the master host to interpret and respond<br />

to <strong>LSF</strong> events in other ways. For example, your program could:<br />

◆ Page the system administrator<br />

◆ Send email to all users<br />

◆ Integrate with your existing network management software to validate and<br />

correct the problem<br />

On Windows NT, use the Windows NT Event Viewer to view <strong>LSF</strong> events.<br />

If you use the <strong>LSF</strong> SNMP trap program as the event handler, see the SNMP<br />

documentation for instructions on how to enable event generation.<br />

If you use a custom program to handle the <strong>LSF</strong> events, take the following steps<br />

to enable event generation.<br />

1 Write a custom program to interpret the arguments passed by <strong>LSF</strong>. See<br />

“Arguments passed to the <strong>LSF</strong> event program” on page 479 and “Events list”<br />

on page 479 for more information.<br />

2 To enable event generation, define <strong>LSF</strong>_EVENT_RECEIVER in lsf.conf.<br />

You must specify an event receiver even if your program ignores it.<br />

The event receiver maintains cluster-specific or changeable information<br />

that you do not want to hard-code into the event program. For example,<br />

the event receiver could be the path to a current log file, the email address<br />

of the cluster administrator, or the host to send SNMP traps to.<br />

3 Set <strong>LSF</strong>_EVENT_PROGRAM in lsf.conf and specify the name of your<br />

custom event program. If you name your event program genevent<br />

(genevent.exe on Windows) and place it in <strong>LSF</strong>_SERVERDIR, you can<br />

skip this step.<br />

4 Reconfigure the cluster with the commands lsadmin reconfig and<br />

badmin reconfig.<br />

478<br />

<strong>Administering</strong> <strong>Platform</strong> <strong>LSF</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!