Hi Zdenek - I was clear on your proposal to be regarding the interface. I am presently setting up the PEF environment using a large number of ipmitool raw commands, hence my interest in this proposal.

A further comment on the problem of specifying a PEF filter entry - a good goal is to provide for symbolic names to represent numeric codes (as opposed to simply all numeric codes), and these names match the pef list detail of names. Also helpful is to use the same ordering as pef list.

[root@r1lead ~]# ipmitool -H r1i0n0-bmc -U ADMIN -P ADMIN pef list
 1 | active | 0x11 | Temperature | 17 | Non-recoverable | Threshold | 
(0x01/0x0200),<UC | Alert,Power-off | 1
 2 | active | 0x11 | Voltage | Any | Warning | Threshold | 
(0x01/0x0a14),<LC,<LNR,<UC,<UNR | Alert | 1
 3 | active | 0x11 | Temperature | Any | Critical | Threshold | 
(0x01/0x0a00),<UC,<UNR | Alert | 1
 4 | active | 0x11 | Processor | Any | Non-recoverable | Discrete | 
Sensor-specific | Alert | 1
 5 | active | 0x11 | Memory | Any | Non-recoverable | Discrete | 
Sensor-specific | Alert | 1
 6 | inactive

possible syntax could be
pef filter add <index> <action> <sensor type> <sensor> <severity> <event> <mask> 
<policy number>

pef filter add 1 Alert,Power-off Temperature 17 Non-recoverable Threshold <UC 1
pef filter add 3 Alert Temperature Any Critical Threshold <UC,<UNR 1

Note that the generator ID bytes are commonly just 0xFF 0xFF and here I chose to 
omit them, implying default values used. Also the last 9 bytes of event data mask 
& compare are optional.

Regards,

Pat


On 5/28/2014 5:24 AM, Zdenek Styblik wrote:
On Tue, May 27, 2014 at 3:19 PM, Pat Donlin <p...@sgi.com> wrote:
Hi Zdenek - nice to see you are thinking about the PEF interface. Much
better than clumsy "raw" commands. Some comments on each item:
Hello Pat,

I'm not exactly sure whether you haven't misunderstood the whole thing.

Original post: https://sourceforge.net/p/ipmitool/mailman/message/31943679/
Bug: https://sourceforge.net/p/ipmitool/bugs/312/

This is only to outline interface rather its implementation as can be
seen from the diff attached to bug and sent to mailing list. I'm going
to leave implementation to others.

On 5/24/2014 9:21 AM, ipmitool-devel-requ...@lists.sourceforge.net wrote:
[...]

30.1 Get PEF Capabilities
   * 'pef info' - it's ok, but should be accompanied/complemented with
'pef capabilities' or something
I would prefer the capabilities to be a separate option.
Yes, they're separate, although synonymous.

30.3 Set PEF Config Parameters
30.4 Get PEF Config Parameters
   * 'pef policy list'
   * 'pef policy enable <policy_id>'
   * 'pef policy disable <policy_id>'
   * 'pef policy create <policy_id> <params>'
   * 'pef policy delete <policy_id>'
   * and the same thing for 'pef filters'
Will this also include settings such as the Action Global control, Start
Delay, Alert Delay?

The PEF filters themselves - each PEF entry has a lot of parameters. Are
you considering simply all numeric values for each byte, or names for
values?
I would suggest that in many cases the last 9 bytes aren't used, hence
if not supplied then default to zero.

Parameters aren't specified, so it can be anything. Really, feel free
to build on what I've written or say it's bad idea completely :)
Also, let me add that my feeling is some of PEF stuff isn't intended
for human beings to fiddle with.

[...]
30.7 Alert Immediate
   * unresolved - I haven't figured out this one
I have in the past used a dummy sensor number to make an alert
immediate, but it does not seem to be a universal solution.

I meant I haven't found fitting "alias" for this one, nothing more.

Regards,
Z.

Regards,

Pat

------------------------------------------------------------------------------
The best possible search technologies are now affordable for all companies.
Download your FREE open source Enterprise Search Engine today!
Our experts will assist you in its installation for $59/mo, no commitment.
Test it for FREE on our Cloud platform anytime!
http://pubads.g.doubleclick.net/gampad/clk?id=145328191&iu=/4140/ostg.clktrk
_______________________________________________
Ipmitool-devel mailing list
Ipmitool-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ipmitool-devel

------------------------------------------------------------------------------
Time is money. Stop wasting it! Get your web API in 5 minutes.
www.restlet.com/download
http://p.sf.net/sfu/restlet
_______________________________________________
Ipmitool-devel mailing list
Ipmitool-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ipmitool-devel

Reply via email to