"pef policy list" and "lan alert" commands enhanced to support IPv6 addresses as alert destination.
$src/ipmitool -I lan -H 172.17.10.132 -A none pef policy list
1 | 1 | enabled | Try-next-set | 9 | 802.3 LAN | PET | public | 0 | 0 | 172.17.3.101 | 00:00:00:00:00:00
2 | 2 | enabled | Try-next-entry | 9 | 802.3 LAN | PET | public | 0 | 0 | 2003::3
3 | 0 | disabled | Match-always | 0 | IPMB (I2C) | 0
4 | 0 | disabled | Match-always | 0 | IPMB (I2C) | 0
5 | 0 | disabled | Match-always | 0 | IPMB (I2C) | 0
6 | 0 | disabled | Match-always | 0 | IPMB (I2C) | 0
7 | 0 | disabled | Match-always | 0 | IPMB (I2C) | 0
8 | 0 | disabled | Match-always | 0 | IPMB (I2C) | 0
$src/ipmitool -I lan -H 172.17.10.132 -A none lan alert print 9 0
Alert Destination : 0
Alert Acknowledge : Unacknowledged
Destination Type : PET Trap
Retry Interval : 0
Number of Retries : 0
Alert Gateway : Default
Alert IP Address : 0.0.0.0
Alert MAC Address : 21:22:23:24:25:36
$src/ipmitool -I lan -H 172.17.10.132 -A none lan alert print 9 1
Alert Destination : 1
Alert Acknowledge : Unacknowledged
Destination Type : PET Trap
Retry Interval : 0
Number of Retries : 0
Alert Gateway : Default
Alert IP Address : 172.17.3.101
Alert MAC Address : 00:00:00:00:00:00
$src/ipmitool -I lan -H 172.17.10.132 -A none lan alert print 9 2
Alert Destination : 2
Alert Acknowledge : Unacknowledged
Destination Type : PET Trap
Retry Interval : 0
Number of Retries : 0
Alert IP Address : 2003::3
$src/ipmitool -I lan -H 172.17.10.132 -A none lan alert set 9 3 ipv6addr 1004::4.3.2.1
Setting LAN Alert 3 IP Address to 1004::403:201
Hello Dmitry,
Please, put these into A-Z order. Also, shouldn't these be used later on or is it just a coincidence?
What's the meaning of 2? Please, can you create a (local)
#definefor it?Wouldn't it be worth to create
#definefor the following?I see mix of tabs and spaces used for indentation. Please, fix it as well.
I didn't try to compile patch and comments are based on read-through.
Thanks,
Z.
Fixed.
That was not coincedence. I have duplicated defines with the same name in ipmi_pef.c and used them. This is not perfect, but ipmi_pef.c already duplicates enough such stuff from ipmi_lanp.c Sometimes with different names. E.g. for Get LAN Configuration command code:
I agree with duplicate defines and mess, but that wasn't my point. Applogies. My point was whether the code shouldn't be like:
Thanks,
Z.