X hits on this document

PDF document

February 10, 2006 - page 88 / 238

591 views

0 shares

0 downloads

0 comments

88 / 238

76

CHAPTER 3. IPMI INTERFACES

Table 3.38: Alert Policy Table Entry

Byte 1

Field Channel / Destina- tion

Description

bits 0-3 - The destination selector. For the chosen channel, this is the specific destination in the channel to use to send the alert. See the LAN Configuration Table (table 3.16) or the Serial Configu- ration Table (table 3.17) for information on what the destination selectors can do. bits 4-7 - The channel. This tells the BMC which channel to send the alert over.

2

Alert String Info

Some types of alerts need a string associated with them, this chooses the string. The specific strings are stored in the PEF configuration parameters 12 and 13 in table 3.36. If bit 7 of this byte is one, then the string is dependent on the event fil- ter number that was matched for this alert policy. Bits 0-6 of this byte are the alert string set. The event filter number and the alert string set are looked up in the table in parameter 12 of the PEF configuration to choose the alert string to use. See that parameter for more details on how this works. if bit 7 of this byte is zero, then the bits 0-6 of this field are the alert string selector. The alert string selector is used as a direct index into the alert string table in parameter 13 of the PEF configuration.

3.13.4

OpenIPMI and SNMP Traps

Setting Up A System To Send Traps

Setting up a system to send traps with OpenIPMI can be done two basic ways. The hard way is to set up each table individually. This is more work, but is very flexible. The easy way just sets up for SNMP traps

but does all the work for you.

Setting Up the PEF Table and LAN Configuration Table

For a system to send traps, you must set

up the PEF table as described in section 3.13.3 and the LAN configuration table described in section 3.9.1. However, this is a lot of work.

Setting

Up

For

Traps

the

Easy

Way

OpenIPMI

provides a

way to

set

up

a

simple

SNMP

trap

send

from a BMC. The call has an unfortunately large number of parameters because OpenIPMI cannot pick the various selectors and policy numbers needed to set up for the trap, because you may be using them for other

things.

The function

call is:

unsigned int

connection,

unsigned int

channel,

struct in_addr

ip_addr,

i n t i p m i _ p e t _ c r e a t e ( i p m i _ d o m a i n _ t

*domain,

Document info
Document views591
Page views591
Page last viewedTue Dec 06 09:50:47 UTC 2016
Pages238
Paragraphs8090
Words85809

Comments