1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
|
IPMIUTIL USER GUIDE
VERSION 2.9.5
An easy-to-use IPMI server management utility
------------------------
CONTENTS
------------------------
1.0 Overview
1.1 Features
2.0 Dependencies
2.1 Configuration
2.2 References
3.0 Utility Man Pages
3.1 IPMIUTIL (ipmiutil)
3.2 IALARMS (ipmiutil alarms)
3.3 ICMD (ipmiutil cmd)
3.4 ICONFIG (ipmiutil config)
3.5 IDISCOVER (ipmiutil discover)
3.6 IEVENTS (ipmiutil events)
3.7 IFRU (ipmiutil fru)
3.8 IGETEVENT (ipmiutil getevt)
3.9 IHEALTH (ipmiutil health)
3.10 ILAN (ipmiutil lan)
3.11 IRESET (ipmiutil reset)
3.12 ISEL (ipmiutil sel)
3.13 ISENSOR (ipmiutil sensor)
3.14 ISERIAL (ipmiutil serial)
3.15 ISOL (ipmiutil sol)
3.16 IWDT (ipmiutil wdt)
3.17 IFRUSET (ifruset)
3.18 IPMI_PORT (ipmi_port)
3.19 IPICMG (ipmiutil picmg)
3.20 IFIREWALL (ipmiutil ifirewall)
3.21 IFWUM (ipmiutil fwum)
3.22 IHPM (ipmiutil hpm)
3.23 ISUNOEM (ipmiutil sunoem)
3.24 IEKANALYZER (ipmiutil ekanalyzer, deprecated)
3.25 ITSOL (ipmiutil tsol)
3.26 IDELLOEM (ipmiutil delloem)
3.27 IDCMI (ipmiutil dcmi)
3.28 ISMCOEM (ipmiutil smcoem)
3.29 ISELTIME (iseltime)
4.0 Use Cases
4.1 Usage of IPMI utilities for sensor thresholds
4.2 Usage to configure a system for IPMI LAN
4.3 Usage of IPMI utilities for Automated IPMI LAN configuration
4.4 Usage of IPMI utilities to Set Watchdog timer
4.5 Usage of kernel panic handler code
4.6 Interpreting BMC LAN SNMP Traps from Platform Events
4.7 Interpreting newer PECI sensors for CPU Thermal Margin
4.8 How to configure a system for IPMI Serial-Over-LAN Console
4.9 Using ipmiutil Library APIs for custom programs
4.10 How to configure a system for SNMP Traps via IPMI PEF rules
5.0 IPMI Utilities on Windows
5.1 Windows Install Instructions
5.2 Windows Build Instructions
5.3 Windows Command Usage
6.0 Sample output
7.0 Problems
7.1 Error Return Codes
7.2 IPMI Completion Codes
8.0 Building IPMI Utilities
8.1 Building ipmiutil on Linux
8.2 Building ipmiutil on Windows
8.3 Building ipmiutil on Solaris
8.4 Building ipmiutil on FreeBSD
8.5 Building ipmiutil on ARM (Android)
9.0 IPMIUtil Library APIs
10.0 Related Information
9.1 History
9.2 Links
------------------------
1.0 OVERVIEW
------------------------
The IPMI Specification provides a standard way to do both simple and complex
server management functions. Everything from remote reset/power-off to sending
an SNMP alert from a sensor event even if the OS is down. Being able to
perform these tasks in Baseboard Management Controller (BMC) firmware allows
OS-independent management. What many integrators need, however, is a set of
utilities and/or sample code to perform these functions within their
enterprise management subsystem without a learning curve.
The IPMI Management Utilities project provides a series of utilities that
perform common IPMI server management functions, such as viewing the firmware
log, or configuring the BMC LAN & PEF features.
The utilities are designed for end-users, so that they should not require
intimate knowledge of how to build IPMI commands. Each of the utilities detects or reasonably assigns default values so that a working configuration can be
easily obtained. More detailed options allow changes to these default values.
These utilities can be used separately, or merged with a larger server
management subsystem. The source license is BSD and ipmiutil compiles under
Linux (Makefile) and Windows (buildwin.cmd). There are also corresponding
SA Forum HPI standard utilities that run with two different HPI
implementations, including OpenHPI. These were the basis of the current
openhpi/clients.
This project includes both IPMI utilities and a kernel patch for
panic handler enhancements. See the project web site for binaries
and documentation at http://ipmiutil.sourceforge.net.
The ipmiutil IPMI utilities below allow the user to access the firmware
System Event Log and configure the Platform Event Filter table for the new
'OS Critical Stop' records, as well as other common IPMI system management
functions.
ipmiutil - a meta-command to invoke all of the below as sub-commands
ievents - a standalone utility to interpret IPMI and PET event data
isel - show/set the firmware System Event Log records
isensor - show Sensor Data Records, sensor readings, and thresholds
ireset - cause the BMC to hard reset or power down the system
ilan - show and configure the BMC LAN port and Platform Event Filter
table to allow BMC LAN alerts from firmware events and
OS Critical Stop messages,
iserial - show and configure the BMC Serial port for various modes,
such as Terminal Mode.
ifru - show the FRU chassis, board, and product inventory data,
and optionally write a FRU asset tag.
ialarms - show and set front panel alarms (LEDs and relays)
iwdt - show and set watchdog timer parameters
igetevent - receive any IPMI events and display them
ihealth - check and report the basic health of the IPMI BMC
iconfig - list/save/restore the BMC configuration parameters
icmd - send specific IPMI commands to the BMC,
mainly for testing and debug purposes.
idiscover - discover the available IPMI LAN nodes on a subnet
isol - start/stop an IPMI Serial-Over-LAN Console session
ipicmg - show/set the IPMI PICMG parameters
ifirewall - show/set the IPMI firmware firewall configuration
iekanalyzer - run FRU-EKeying analyzer on FRU files
ifwum - OEM firmware update manager extensions
ihpm - HPM firmware update manager extensions
isunoem - Sun OEM functions
idelloem - Dell OEM functions
itsol - Tyan SOL console start/stop session
idcmi - get/set DCMI parameters, if supporting the DCMI spec
Other supporting files:
checksel = cron script using ipmiutil sel to check the SEL, write new
events to the OS system log, and clear the SEL if nearly full.
ipmi_port = daemon to bind the RMCP port and sleep to prevent
Linux portmap from stealing the RMCP port
ipmi_port.sh = init script to reserve the RMCP port from portmap,
this also restores saved sensor thresholds, if any.
ipmiutil_wdt = init script to restart watchdog timer every 60 sec via cron
ipmiutil_asy = init script runs 'ipmiutil getevt -a' for remote shutdown
ipmiutil_evt = init script runs 'ipmiutil getevt -s' for monitoring events
evt.sh = sample script which can be invoked by ipmiutil_evt
ipmi_if.sh = script using dmidecode to determine the IPMI Interface Type
bmclanpet.mib = SNMP MIB for BMC LAN Platform Event Traps
test/* = scripts and utilities used in testing ipmiutil/panicsel
kern/* = kernel patches for panic handling
The kernel panic handler patch (kern/bmcpanic.patch) adds additional
features to the Linux Panic Handler so that more information can be
saved and passed along if a Linux panic condition occurs.
bmc_panic features:
1. Write an OS Critical Stop event to firmware System Event Log (SEL)
This is in bmcpanic.patch, in OpenIPMI and in Intel IMB.
2. Send SNMP trap via BMC LAN Alerting mechanism
Accomplished by configuring the BMC with 'ipmiutil lan'.
3. Turn on the Critical Alarm LED on the Telco Alarms Panel
This is in bmcpanic.patch, but not in OpenIPMI due to
platform-specific issues with the alarms panel.
The kernel portion of this, except item 3, is now included in the OpenIPMI
project with the CONFIG_IPMI_PANIC_EVENT option, and the OpenIPMI
driver has merged into Linux kernel 2.4.21 and beyond.
The latest version of the OpenIPMI driver can be obtained from
http://openipmi.sourceforge.net.
This patch is also included in the Intel IMB IPMI driver v28 and greater,
for any Linux kernel. This Intel IMB IPMI driver can be obtained from
http://downloadcenter.intel.com/Product_Search.aspx?Prod_nm=imbsrc or
a copy is cached on http://ipmiutil.sf.net also.
------------------------
1.1 FEATURES
------------------------
These are the key strengths, user features and functions that are
supported by ipmiutil.
Key Strengths = supports any IPMI server platforms,
top-down user-friendly IPMI functions,
detection, portability,
incorporates fixes and new features quickly
Target Market = Administrators, Developers, and OEMs
OS Support = Linux, Windows, Solaris, and FreeBSD
(supports Windows natively for remote or local interface)
License = BSD
Drivers = For Linux: openipmi, imb, valinux ipmikcs, lan, lanplus,
landesk, and driverless direct KCS & SSIF
For Windows: Intel IMB and Microsoft IPMI drivers
For Solaris: bmc
For FreeBSD: openipmi, driverless KCS or SSIF
LEDs = Show/set ATCA LEDs, set identify LED, Intel Telco Alarm LEDs
health = show overall health and product information
discovery = find all IPMI LAN servers on a given subnet
fru = Display all FRU and SPD inventory data, also
Set some FRU product fields (asset tag, serial number)
sensor = Show SDRs and sensor readings, also set sensor thresholds
getevent = Receive any IPMI events and decode them,
The IPMI event monitoring service is automated in Linux via
the ipmiutil_evt init script.
reset = IPMI local and remote reset/power-control,
IPMI boot device selection.
remote IPMI = Perform an OS shutdown/restart request via IPMI LAN,
soft-shutdown using ipmiutil getevt -a and invoking ipmiutil reset -o.
This async bridge service is automated in Linux via the
ipmiutil_asy init script.
cmd = Execute raw IPMI commands locally or remotely
lan = Show/set IPMI LAN and PEF configuration parameters,
adds more PEF rules, or can add a custom PEF rule
serial = Show/set IPMI serial configuration parameters
sel = Show decoded System Event Log records, clear SEL,
see the checksel cron script to automate SEL management.
sol console = Start/stop an SOL console session
watchdog = Show, set, and reset the IPMI watchdog timer and its actions,
The watchdog timer service can be automated in Linux via the
ipmiutil_wdt init script.
save/restore = save and restore all BMC configuration parameters
ievents = Standalone app to decode IPMI or PET event data,
especially useful at the management station for interpreting
IPMI PET SNMP traps. See also SNMP PET MIB (bmclanpet.mib).
picmg = Support IPMI PICMG functions
firewall = Support IPMI firmware firewall functions
Through various services, ipmiutil allows automatic management of common
IPMI tasks:
ipmi_port = Automatically prevent Linux port mapper from stealing
the RMCP port 623 used by IPMI LAN firmware.
checksel = a cron script to daily write new SEL records to syslog, and
clear the SEL if nearly full.
ipmiutil_asy = A Linux init script using the ipmiutil getevt -a service to
enable receiving soft-shutdown requests from ipmiutil reset -o
ipmiutil_wdt = A Linux init script to reset the watchdog timer every 60 sec.
ipmiutil_evt = A Linux init script using the ipmiutil getevt -s service to
monitor IPMI events, log them, and optionally run a script.
------------------------
2.0 DEPENDENCIES
------------------------
The IPMI Utilities will run on Linux, Windows Solaris, or FreeBSD, and should
be portable to other OSs, if an IPMI driver for that OS can be obtained.
The IPMI Utilities and Panic Handler Enhancements currently work with
platforms that support the IPMI standard. If the platform does not
support IPMI, these changes are inert. The Service Availability Forum
has developed a Hardware Platform Interface (HPI) specification that
can be used to group IPMI and other system management interfaces
together. A set of comparable HPI utilities is included in the
ipmiutil project source as hpiutil/*.
The Panic Handler kernel enhancements (via kern/bmcpanic.patch) are now
included in the Intel IMB driver v28 and later, and in the OpenIPMI driver
via the CONFIG_IPMI_PANIC_EVENT and CONFIG_IPMI_PANIC_STRING parameters in
the kernel config file (/usr/src/linux/.config) with kernels 2.4.21 or greater.
If run locally, the ipmiutil utilities must be run as
superuser/Administrator and an IPMI driver must be used.
For Linux, these IPMI drivers are supported:
. the MontaVista OpenIPMI driver (/dev/ipmi0),
. the Intel IMB IPMI driver (/dev/imb, via 'ipmidrvr' or 'ipmi_imb'),
. the valinux IPMI Driver (/dev/ipmikcs),
. the LANDesk ldipmi daemon,
. or direct user-space I/Os to the IPMI KCS or SSIF/SMBus interfaces,
if no other driver is detected.
For Windows, these drivers are supported:
. the Intel IMB IPMI driver (imbdrv.sys) for any Windows Server OS,
. the Microsoft IPMI driver (ipmidrv.sys) for Win2003R2 or Win2008.
For Solaris, these drivers are supported:
. the Sun bmc driver (/dev/bmc) for Solaris 10 and greater
For FreeBSD, these drivers are supported:
. the FreeBSD 7.x OpenIPMI driver port (kldload ipmi, /dev/ipmi0)
. direct user-space I/Os to the IPMI KCS or SSIF/SMBus interfaces
Each of the IPMI management utilities will detect which IPMI driver
is present, and in Linux, if none are found, it will attempt to use direct
KCS or SSIF I/Os to communicate with the IPMI BMC.
If using the IPMI LAN interface, neither the local or remote system requires
any IPMI driver, but the remote target system must have had IPMI LAN enabled,
(e.g. via ipmiutil lan) which is done locally on the target system.
Note that the IPMI LAN session password is sent with either MD5 or MD2
encryption by default.
See http://openipmi.sourceforge.net for the OpenIPMI driver.
See http://downloadcenter.intel.com/Product_Search.aspx?Prod_nm=imbsrc for Intel IMB driver
See http://cvs.sf.net/cgi-bin/viewcvs.cgi/ipmitools/ipmitools/kernel/kcs/patches/2.4.x/ for the valinux driver.
See http://www.landesk.com/ or the CD supplied with your server for LANDesk.
List of companies that have adopted IPMI (over 198):
http://www.intel.com/design/servers/ipmi/adopterlist.htm
Example IPMI Server Platforms tested with ipmiutil, by BMC manufacturer:
Intel RackMount Servers (various, both 32-bit and 64-bit)
Intel ATCA (MPCMM0001 and MPBL00xx)
Kontron CRMS servers and KTC5520
Dell PowerEdge 18xx, 19xx, 2800
SuperMicro with AOC-IPMI20 (by LMC)
SuperMicro with AOC-SIMSO (by Peppercon)
Sun (product id 0x4701)
Tyan (product id 0x14e9)
NSC (product id 0x4311, National SemiConductor)
NEC (product id 0x024b)
Tatung TS-2552 (product id 0x09f8)
AMI IPMI MegaRAC
------------------------
2.1 CONFIGURATION
------------------------
To find the base address of the IPMI KCS interface, or to find the IPMI
SSIF/SMBus slave address, you can use the 'dmidecode' utility provided
with most Linux distributions. See also http://www.nongnu.org/dmidecode.
The ipmi_if.sh script can determine the IPMI Interface Type, and the
resulting /usr/share/ipmiutil/ipmi_if.txt file can be edited if needed.
The ipmiutil binary uses the same mechanism to detect the IPMI KCS or
SSIF interface parameters by default if no driver is loaded.
For some IPMI systems, a minimum firmware version may be needed to
support the BMC LAN/PEF feature. On an Intel TSRLT2 system, for instance,
these are the minimum levels:
BMC Firmware ver 54 or greater
Systems with IPMI versions prior to 1.5 do not support BMC LAN or PEF features
By default, the ipmiutil IPMI utilities rpm does not set the panic timeout.
If a different kernel panic timeout is desired, add the kernel parameter
"panic=10" in grub.conf/lilo.conf, or do "echo 10 >/proc/sys/kernel/panic"
in one of the /etc/init.d scripts to set it to 10 seconds, for instance.
The ipmiutil lan (ilan) utility can be used to configure the BMC LAN
Alerting while the OS is running. It has additional PEF rules and LAN
parameter detection logic beyond what most other utilities provide.
The ipmiutil serial (iserial) utility is intended to configure the EMP
serial port on the server for shared access between BMC/IPMI functions
and BIOS Console Redirection. Some older platforms only support only Basic
Mode for BMC/IPMI functions. Basic Mode requires a remote client application
to utilize it (Windows ISC Console/DPC applet, or a special modified Linux
telnet). There are many platforms which implement Terminal Mode via IPMI v1.5
Appendix E to make remote management with character commands available
on the serial port without a special remote client application.
Notes about BMC Users:
Most IPMI 1.5 systems support at least 3 users, numbered 1,2,3, where
user 1 is the default and has a null username. Users 2 and 3 are
alternate users whose usernames can be set. For ipmiutil, these are
currently implemented by default as follows:
user 1: used by default for BMC LAN and Serial (ilan & iserial)
user 2: set for BMC LAN if ipmiutil lan -u is specified
user 3: set for BMC Serial/EMP if ipmiutil serial -u is specified
Also note that the -q option can be used to set different users by number.
Note that the checksel script will be copied to /etc/cron.daily when
the Linux ipmiutil rpm is installed, so that ipmiutil sel will automatically
save SEL records to syslog and clear the SEL if it gets nearly full.
If you do not want this to happen automatically, remove the checksel
script from the /etc/cron.daily directory.
In order for the ipmiutil sel -w function to work cleanly on a Windows system,
the showselmsg.dll should be copied to %SystemRoot%\system32, and the
showsel.reg should be run to set up the corresponding EventLog service
registry values. See install.cmd to perform these functions.
The BSD License in the COPYING file applies to all source files
herein, except for
* util/md5.c (Aladdin unrestricted license, compatible with BSD)
* util/md2.h (GPL)
* util/ipmi_ioctls.h (GPL)
While the BSD License allows code reuse in both open and non-open
applications, the md2.h and ipmi_ioctls.h files would have to be removed
if used in a non-open application. The default ipmiutil build omits GPL code.
There is a ALLOW_GPL compile flag for this that is disabled by default, but
can be enabled for open-source by running "./configure --enable-gpl".
See the INSTALL file for build instructions for various configurations.
------------------------
2.2 REFERENCES
------------------------
The IPMI 1.5 spec, Table 36-3 defines the sensor types for SEL records,
as used by ipmiutil sel.
The IPMI 1.5 spec, Table 15-2 defines the Platform Event Filter table
entries, as used by ipmiutil lan.
The IPMI 1.5 spec, Table 19-4 defines the LAN Configuration Parameters,
as used by ipmiutil lan.
The IPMI 2.0 spec, Section 15 defines the Serial-Over-LAN functionality.
The enterprises.3183 SNMP traps come from the BMC firmware, and are defined in
bmclan*.mib files in the ipmiutil project. Details about the format of these
Platform Event Traps are available in section 12.2 through 12.5 of the ISM
(Intel Server Management) 5.x Technical Product Specification at
http://www.intel.com/support/motherboards/server/isc/sb/cs-008024.htm
The enterprises.343 SNMP traps come from ISM or SNMPSA and are defined in
basebrd*.mib or mapbase*.mib files on the platform CD.
The enterprises.412 SNMP traps come from ISM/DMTF, defined in dmtf*.mib files
on the platform CD.
------------------------
3.0 UTILITY MAN PAGES
------------------------
--------------------------------------
3.1 IPMIUTIL (ipmiutil)
IPMIUTIL(8) IPMIUTIL(8)
NAME
ipmiutil - a meta-command to invoke various IPMI functions.
SYNOPSIS
ipmiutil <command> [-x -NUPREFJTVY] [other command options]
DESCRIPTION
This utility performs various IPMI functions. Each of the individual
commands in the ipmiutil project can be invoked via this meta-command.
The <command> is one of the following:
alarms show/set the front panel alarm LEDs and relays
leds show/set the front panel alarm LEDs and relays
cmd send a specified raw IPMI command to the BMC
config list/save/restore BMC configuration parameters
dcmi get/set DCMI parameters
discover discover all IPMI servers on this LAN
ekanalyzer run FRU-EKeying analyzer on FRU files (deprecated, see fru)
events decode IPMI events and display them
firewall show/set firmware firewall functions
fru show decoded FRU inventory data, write asset tag
fwum OEM firmware update manager extensions
getevt get IPMI events and display them, event daemon
getevent get IPMI events and display them, event daemon
health check and show the basic health of the IPMI BMC
hpm HPM firmware update manager extensions
lan show/set IPMI LAN parameters and PEF table
picmg show/set picmg extended functions
reset cause the BMC to reset or power down the system
sel show/clear firmware System Event Log records
sensor show Sensor Data Records, readings, thresholds
serial show/set IPMI Serial & Terminal Mode parameters
sol start/stop an SOL console session
smcoem SuperMicro OEM functions
sunoem Sun OEM functions
delloem Dell OEM functions
tsol Tyan SOL console start/stop session
wdt show/set/reset the watchdog timer
For help on each command (e.g. ’sel’), enter:
ipmiutil sel -?
For man pages on each command, its man page is named "i<command>", or
refer to SEE ALSO below.
This utility can use either the /dev/ipmi0 driver from OpenIPMI, the
/dev/imb driver from Intel, the /dev/ipmikcs driver from valinux,
direct user-space IOs, or the IPMI LAN interface if -N is used.
OPTIONS
Command options are described in the man page for each command. Below
are a few of the common options.
-x Causes extra debug messages to be displayed.
-N nodename
Nodename or IP address of the remote target system. If a node-
name is specified, IPMI LAN interface is used. Otherwise the
local system management interface is used.
-U rmt_user
Remote username for the nodename given. The default is a null
username.
-P/-R rmt_pswd
Remote password for the nodename given. The default is a null
password.
-E Use the remote password from Environment variable IPMI_PASSWORD.
-F drv_t
Force the driver type to one of the followng: imb, va, open,
gnu, landesk, lan, lan2, lan2i, kcs, smb. Note that lan2i means
lan2 with intelplus. The default is to detect any available
driver type and use it.
-J Use the specified LanPlus cipher suite (0 thru 17):
0=none/none/none, 1=sha1/none/none, 2=sha1/sha1/none,
3=sha1/sha1/cbc128, 4=sha1/sha1/xrc4_128, 5=sha1/sha1/xrc4_40,
6=md5/none/none, ... 14=md5/md5/xrc4_40. Default is 3.
-T Use a specified IPMI LAN Authentication Type: 0=None, 1=MD2,
2=MD5, 4=Straight Password, 5=OEM.
-V Use a specified IPMI LAN privilege level. 1=Callback level,
2=User level, 3=Operator level, 4=Administrator level (default),
5=OEM level.
-Y Yes, do prompt the user for the IPMI LAN remote password.
Alternatives for the password are -E or -P.
EXAMPLES
ipmiutil sel
Shows the IPMI System Event Log entries.
ipmiutil wdt
Shows the watchdog timer values.
SEE ALSO
ialarms(8) iconfig(8) icmd(8) idiscover(8) ievents(8) ifirewall(8)
ifru(8) ifruset(8) ifwum(8) igetevent(8) ihealth(8) ihpm(8) ilan(8)
ipicmg(8) ireset(8) isel(8) isensor(8) iserial(8) isol(8) isunoem(8)
iwdt(8) ipmiutil(8) ipmi_port(8)
WARNINGS
See http://ipmiutil.sourceforge.net/ for the latest version of ipmiutil
and any bug fix list.
--------------------------------------
3.2 IALARMS (ipmiutil alarms)
IALARMS(8) IALARMS(8)
NAME
ipmiutil_alarms - display and set alarm indicators
SYNOPSIS
ipmiutil alarms [-abcdimnoprx -N node -U user -P/-R pswd -EFJTVY]
DESCRIPTION
ipmiutil alarms is a program that uses IPMI commands to display and set
alarm indicators, which are usually LEDs on the system chassis front
panel. This utility can use either the /dev/ipmi0 driver from
OpenIPMI, the /dev/imb driver from Intel, the /dev/ipmikcs driver from
valinux, direct user-space IOs, or the IPMI LAN interface if -N. Note
that a LAN user must have Administrative privileges to read or write
the alarm LEDs.
Note that this utility may not be the only logic setting alarm states.
The BMC firmware, system management software, or cluster fault manager
may also want to set alarm states. Intel provides a Telco Alarms Man-
ager API which presents a consolidated interface for all alarm manage-
ment applications.
OPTIONS
Command line options are described below.
-r Read-only. Show the alarms status, but do not set any states.
This is also the default mode if no parameters are specified.
-iN Sets the Chassis Identify feature, which can be an LED or some
other alarm. If N=0, turn off the Chassis ID, otherwise turn
the ID on for N seconds. N=255 will turn on the ID indefi-
nitely, if it is IPMI 2.0.
-aN Sets Disk A Fault LED. If N=0, turn it off. If N=1, turn it
on. Used only for TIGPT1U platform.
-bN Sets Disk B Fault LED. If N=0, turn it off. If N=1, turn it
on. Used only for TIGPT1U platform.
-dXN Sets Disk X Fault LED, where X=0-6. If N=0, turn it off. If
N=1, turn it on. Used only for NSC2U platform.
-cN Sets the Critical Alarm. If N=0, turn it off. If N=1, turn it
on.
-mN Sets the Major Alarm. If N=0, turn it off. If N=1, turn it on.
-nN Sets the Minor Alarm. If N=0, turn it off. If N=1, turn it on.
-pN Sets the Power Alarm. If N=0, turn it off. If N=1, turn it on.
Note that the Power LED is also wired to the System Fault LED in
the back of the system, so this state may be off for Power, but
the LED could be lit for a System Fault reason instead. Refer
to the system Technical Product Specification for System Faults.
-o Sets all alarms off, including the Chassis ID.
-x Causes extra debug messages to be displayed.
-N nodename
Nodename or IP address of the remote target system. If a node-
name is specified, IPMI LAN interface is used. Otherwise the
local system management interface is used.
-P/-R rmt_pswd
Remote password for the nodename given. The default is a null
password.
-U rmt_user
Remote username for the nodename given. The default is a null
username.
-E Use the remote password from Environment variable IPMI_PASSWORD.
-F drv_t
Force the driver type to one of the followng: imb, va, open,
gnu, landesk, lan, lan2, lan2i, kcs, smb. Note that lan2i means
lan2 with intelplus. The default is to detect any available
driver type and use it.
-J Use the specified LanPlus cipher suite (0 thru 17):
0=none/none/none, 1=sha1/none/none, 2=sha1/sha1/none,
3=sha1/sha1/cbc128, 4=sha1/sha1/xrc4_128, 5=sha1/sha1/xrc4_40,
6=md5/none/none, ... 14=md5/md5/xrc4_40. Default is 3.
-T Use this IPMI LAN Authentication Type: 0=None, 1=MD2, 2=MD5,
4=Straight Password, 5=OEM.
-V Use this IPMI LAN privilege level. 1=Callback level, 2=User
level, 3=Operator level, 4=Administrator level (default), 5=OEM
level.
-Y Yes, do prompt the user for the IPMI LAN remote password.
Alternatives for the password are -E or -P.
SEE ALSO
ipmiutil(8) iconfig(8) icmd(8) idiscover(8) ievents(8) ifru(8)
igetevent(8) ihealth(8) ilan(8) ireset(8) isel(8) isensor(8) iserial(8)
isol(8) iwdt(8)
WARNINGS
See http://ipmiutil.sourceforge.net/ for the latest version of ipmiutil
and any bug fix list.
--------------------------------------
3.3 ICMD (ipmiutil cmd)
ICMD(8) ICMD(8)
NAME
ipmiutil_cmd - a tool to send specific IPMI commands via the command
line.
SYNOPSIS
ipmiutil cmd [-qsx -NUPREFJTVY] bus rsSa netFn/lun cmd [data bytes]
DESCRIPTION
This ipmiutil cmd tool sends specific IPMI commands to the firmware.
The commands are composed as hex values on the command line. This tool
was written to allow in-band use to match the DOS CMDTOOL.EXE or IPMI-
TOOL.EXE program which is distributed with many Intel servers. Certain
scripts or pre-written commands may have been supplied for the DOS tool
that can now be used while the system is running Linux or Windows.
This utility can use either the /dev/ipmi0 driver from OpenIPMI, the
/dev/imb driver from Intel, the /dev/ipmikcs driver from valinux,
direct user-space IOs, or the IPMI LAN interface if -N.
This tool should only be used if you are familiar with the IPMI 1.5
specification, or you have specific pre-written commands to send.
OPTIONS
Command line options are described below.
-q Quiet mode. Show only minimal header information.
-s Skips the GetDeviceID command
-x Causes extra debug messages to be displayed.
-N nodename
Nodename or IP address of the remote target system. If a node-
name is specified, IPMI LAN interface is used. Otherwise the
local system management interface is used.
-U rmt_user
Remote username for the nodename given. The default is a null
username.
-P/-R rmt_pswd
Remote password for the nodename given. The default is a null
password.
-E Use the remote password from Environment variable IPMI_PASSWORD.
-F drv_t
Force the driver type to one of the followng: imb, va, open,
gnu, landesk, lan, lan2, lan2i, kcs, smb. Note that lan2i means
lan2 with intelplus. The default is to detect any available
driver type and use it.
-J Use the specified LanPlus cipher suite (0 thru 17):
0=none/none/none, 1=sha1/none/none, 2=sha1/sha1/none,
3=sha1/sha1/cbc128, 4=sha1/sha1/xrc4_128, 5=sha1/sha1/xrc4_40,
6=md5/none/none, ... 14=md5/md5/xrc4_40. Default is 3.
-T Use a specified IPMI LAN Authentication Type: 0=None, 1=MD2,
2=MD5, 4=Straight Password, 5=OEM.
-V Use a specified IPMI LAN privilege level. 1=Callback level,
2=User level, 3=Operator level, 4=Administrator level (default),
5=OEM level.
-Y Yes, do prompt the user for the IPMI LAN remote password.
Alternatives for the password are -E or -P.
PARAMETERS
The following parameters are used by icmd. Each is represented as a
two-digit hex byte. The parameters have no default values.
bus This byte contains the bus number for this command, usually 00.
rsSa This is the resource slave address, usually 0x20 for the BMC.
netFn/lun
This byte combines the net Function and Lun. The 2 low-order
bits are the Lun and the 6 high-order bits are the net Function.
This representation is consistent with the DOS CMDTOOL/IPMITOOL.
cmd This byte contains the IPMI command.
[data bytes]
This is a sequence of zero to 16 bytes that represent data bytes
specific to this command.
EXAMPLES
icmd 00 20 18 01
Sends the GetDevice ID command to the BMC.
icmd 00 20 28 43 00 00 ff ff 00 ff
Sends a Get SEL entry command for the last entry in the firmware log.
SEE ALSO
ipmiutil(8) ialarms(8) iconfig(8) idiscover(8) ievents(8) ifru(8)
igetevent(8) ihealth(8) ilan(8) ireset(8) isel(8) isensor(8) iserial(8)
isol(8) iwdt(8)
WARNINGS
See http://ipmiutil.sourceforge.net/ for the latest version of ipmiutil
and any bug fix list.
--------------------------------------
3.4 ICONFIG (ipmiutil config)
ICONFIG(8) ICONFIG(8)
NAME
ipmiutil_config - list, save, and restore BMC configuration parameters
SYNOPSIS
ipmiutil config [-lpxLNUPREFJTVY] [-r file] [-s file]
DESCRIPTION
ipmiutil config is a program that uses an IPMI driver to send IPMI com-
mands which list, save and restore BMC configuration parameters for
LAN, Serial, PEF, SOL, User, Channel. This combines the functionality
of ipmiutil lan (ilan) and ipmiutil serial (iserial). Note that some
of the LAN parameters cannot be restored remotely over the IPMI LAN,
changing the configuration that is in use. This utility can use either
the /dev/ipmi0 driver from OpenIPMI, the /dev/imb driver from Intel,
the /dev/ipmikcs driver from valinux, direct user-space IOs, or the
IPMI LAN interface if -N.
OPTIONS
Command line options are described below.
-l Lists BMC configuration parameters with a keyword, index, and
its hex values. This is the default behavior if no options are
specified.
-r config_file
Restores BMC configuration from config_file, which was produced
with -s below.
-s config_file
Saves BMC configuration to config_file. This file could be
edited, in certain cases, such as to vary the BMC IP address
(LanParam 3), or to use the UserPassword records. Note that
lines beginning with ’#’ are comments and are ignored. For
editing UserPassword records, convert your text value to hex
format; for example "echo ’mypassword’ |od -t x1", and leave off
the trailing 0a.
-x Causes extra debug messages to be displayed.
-p password_to_set
This specifies the firmware password to set for BMC LAN access
for all users during the restore. If not specified, the pass-
word configuration will not be changed, unless a valid UserPass-
word record is present in the file to be restored. Note that
user passwords are write-only via standard IPMI commands.
-L lan_ch_num
This specifies the IPMI LAN channel number used for BMC LAN.
This varies by platform, and can be found in the platform tech-
nical specifications. By default, bmcconfig scans all IPMI
channels to find a LAN channel for BMC LAN.
-N nodename
Nodename or IP address of the remote target system. If a node-
name is specified, IPMI LAN interface is used. Otherwise the
local system management interface is used.
-P/-R rmt_pswd
Remote password for the nodename given. The default is a null
password.
-U rmt_user
Remote username for the nodename given. The default is a null
username.
-E Use the remote password from Environment variable IPMI_PASSWORD.
-F drv_t
Force the driver type to one of the followng: imb, va, open,
gnu, landesk, lan, lan2, lan2i, kcs, smb. Note that lan2i means
lan2 with intelplus. The default is to detect any available
driver type and use it.
-J Use the specified LanPlus cipher suite (0 thru 17):
0=none/none/none, 1=sha1/none/none, 2=sha1/sha1/none,
3=sha1/sha1/cbc128, 4=sha1/sha1/xrc4_128, 5=sha1/sha1/xrc4_40,
6=md5/none/none, ... 14=md5/md5/xrc4_40. Default is 3.
-T Use a specified IPMI LAN Authentication Type: 0=None, 1=MD2,
2=MD5, 4=Straight Password, 5=OEM.
-V Use a specified IPMI LAN privilege level. 1=Callback level,
2=User level, 3=Operator level, 4=Administrator level (default),
5=OEM level.
-Y Yes, do prompt the user for the IPMI LAN remote password.
Alternatives for the password are -E or -P.
SEE ALSO
ipmiutil(8) ialarms(8) icmd(8) idiscover(8) ievents(8) ifru(8)
igetevent(8) ihealth(8) ilan(8) ireset(8) isel(8) isensor(8) iserial(8)
isol(8) iwdt(8)
WARNINGS
See http://ipmiutil.sourceforge.net/ for the latest version of ipmiutil
and any bug fix list.
--------------------------------------
3.5 IDISCOVER (ipmiutil discover)
IDISCOVER(8) IDISCOVER(8)
NAME
ipmiutil_discover - discover IPMI LAN-enabled nodes
SYNOPSIS
idiscover [-abegisx]
DESCRIPTION
idiscover is a program that uses IPMI LAN commands to discover any
nodes on the LAN that are available, by probing the RMCP port (623.)
on those nodes. This utility uses IPMI LAN, so no IPMI drivers are
needed. There are three methods that can be used:
-a = broadcast RMCP ping method (default)
-g = GetChannelAuthCap command method
else = specific RMCP ping method
A beginning IP address can be specified with -b for broadcast and spe-
cific methods. An ending IP can be specified for non-broadcast methods.
OPTIONS
Command line options are described below.
-a All nodes, use the broadcast ping method. This is the default
if no options are specified. This will detect the first enabled
ethernet interface, and defaults to the broadcast address
x.x.x.255 (where x.x.x.x is IP address) unless -b is used to
specify otherwise.
-b <ip>
Beginning IP address, required, unless using broadcast with
defaults. This could be a specific IP address, or a broadcast
address, ending in 255, if the broadcast method (-a) is used.
-e <ip>
Endign IP address of the range. Not used for broadcast method.
If this is not specified, a range of one IP address matching the
beginning IP is assumed.
-g Use the GetChannelAuthenticationCapabilities command method over
IPMI LAN instead of the RMCP ping. Not compatible with broad-
cast. This may be useful if the vendor BMC does not support
RMCP ping for some reason.
-i eth0
The interface name to use when sending the probes. The default
is to detect the first enabled ethernet interface (e.g. eth0).
-m shows MAC address. Uses the broadcast ping method, but uses a
raw socket so that the MAC address can be displayed. This
detects the first enabled ethernet interface, and defaults to
the broadcast address 255.255.255.255 like -a. Using -m with
raw sockets requires root privilege.
-r N Repeat the ping N times to each node. Default is to send 1 ping
per node.
-x Causes extra debug messages to be displayed.
EXAMPLES
idiscover -a -b 192.168.1.255
Sends a broadcast RMCP ping to discover IPMI LAN nodes on the specified
subnet.
idiscover -b 192.168.1.100 -e 192.168.1.254
Sends RMCP pings to a range of IP addresses.
idiscover -g -b 192.168.1.100 -e 192.168.1.254
Sends GetChannelAuthCap commands to a range of IP addresses.
SEE ALSO
ipmiutil(8) ialarms(8) iconfig(8) icmd(8) ievents(8) ifru(8)
igetevent(8) ihealth(8) ilan(8) ireset(8) isel(8) isensor(8) iserial(8)
isol(8) iwdt(8)
WARNINGS
See http://ipmiutil.sourceforge.net/ for the latest version of ipmiutil
and any bug fix list.
--------------------------------------
3.6 IEVENTS (ipmiutil events)
IEVENTS(8) IEVENTS(8)
NAME
ievents - decode IPMI and PET event data
SYNOPSIS
ievents [-bfhnprsx] 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f 10
DESCRIPTION
ievents is a standalone utility delivered with ipmiutil, used to inter-
pret raw hex data from IPMI events or from IPMI PET SNMP trap varbind
data. This utility uses the same interpretation logic as is used by
"ipmiutil sel" (showsel) and "ipmiutil getevt" (getevents).
The data bytes in the input are always assumed to be in hex form.
This could be useful if a utility other than "ipmiutil sel" were used
to obtain IPMI SEL records or events and interpretation is needed.
This would also be needed at an enterprise management station to inter-
pret the PET SNMP trap hex data into human-readable form, see option
-p.
OPTIONS
-b bin_file
Interpret a file containing raw binary/hex SEL data dumped in
binary form, such as that produced by "ipmitool sel writeraw
bin_file". Each set of 16 bytes in the file will be interpreted
as an IPMI event. (same as -h)
-f sel_file
Interpret a file containing raw ascii text SEL data captured
with ipmiutil sel -r, or some other similar utility. Each line
in the file should be in this form, with no leading spaces:
04 00 02 76 a9 4a 47 20 00 04 10 09 6f 42 0f ff
If this option is not specified, the default is to use the 16
bytes taken from the command-line arguments. (same as -r)
-h bin_file
Interpret a file containing raw binary/hex SEL data dumped in
binary form, such as that produced by "ipmitool sel writeraw
bin_file". Each set of 16 bytes in the file will be interpreted
as an IPMI event. (same as -b)
-n This option generates a New IPMI platform event, using 9 bytes
of input. The input bytes are the same as the last 9 bytes of
an IPMI event.
-p Decode as PET event bytes, where the input is 34 PET hex data
bytes, skipping the first 8 of the 47-byte PET data. The
default without -p assumes that the input is a 16-byte IPMI
event.
-r sel_file
Interpret a file containing raw ascii text SEL data captured
with ipmiutil sel -r, or some other similar utility. (same as
-f)
-s sensor_file
Sensor file with the output of "ipmiutil sensor", used to get
the PET sensor_type from the sensor_num. The default is
/usr/share/ipmiutil/sensor_out.txt as generated during the
ipmiutil package installation. This is only needed with PET
interpretation (-p).
-x show eXtra debug messages
SEE ALSO
ipmiutil(8) ialarms(8) iconfig(8) icmd(8) idiscover(8) ifru(8)
igetevent(8) ihealth(8) ilan(8) ireset(8) isel(8) isensor(8) iserial(8)
isol(8) iwdt(8)
WARNINGS
See http://ipmiutil.sourceforge.net/ for the latest version of ipmiutil
and any bug fix list.
--------------------------------------
3.7 IFRU (ipmiutil fru)
IFRU(8) IFRU(8)
NAME
ipmiutil_fru - show Field Replacable Unit configuration data
SYNOPSIS
ipmiutil fru [-abcdeikmsvx -N node -U user -P/-R pswd -EFJTVY]
DESCRIPTION
ipmiutil fru is a program that uses IPMI commands to show FRU configu-
ration data and optionally write an asset tag string into the FRU data.
Setting the asset tag is a function that can be used to uniquely iden-
tify the unit, even if the storage devices are removed or changed.
This utility can use either the /dev/ipmi0 driver from OpenIPMI, the
/dev/imb driver from Intel, the /dev/ipmikcs driver from valinux,
direct user-space IOs, or the IPMI LAN interface if -N.
OPTIONS
Command line options are described below.
-a asset_string
This option specifies an asset tag string to be written to the
baseboard FRU Product area. The asset tag length is limited by
the existing FRU Product data, but is usually allowed up to 16
characters. The default is to not modify this FRU field.
-b Only show the Baseboard FRU data. The default behavior is to
also scan for any SDR FRU data or DIMM SPD data referenced by
the SDRs.
-c Show FRU output in a canonical format, with a default delimiter
of '|'.
-d file
Dump binary FRU data to the specified file.
-e Show Every FRU output in a bladed chassis, including those under
child MCs. The default is to show FRUs referred to by just the
target MC.
-i 00 This option specifies a specific FRU ID to show. The input
value should be in hex (0b, 1a, etc.), as shown from the sensor
SDR output. By default, all FRU IDs that are specified in the
FRU locator SDRs are shown.
-k <setsn | setmfgdate | nextboot>
These Kontron OEM functions set FRU data based on existing data
stored elsewhere. The setsn option sets the FRU Board and Prod-
uct serial number, and the setmfgdate option sets the FRU Board
Mfg DateTime. The nextboot option specifies the boot device for
the next boot: BIOS, FDD, HDD, CDROM, or network. These options
are only supported on Kontron ATCA boards which have this func-
tionality.
-m 002000
Show FRU for a specific MC (e.g. bus 00, sa 20, lun 00). This
could be used for PICMG or ATCA blade systems. The trailing
character, if present, indicates SMI addressing if ’s’, or IPMB
addressing if ’i’ or not present.
-s serial_num
This option specifies a serial number string to be written to
the baseboard FRU Product area. The serial number can be any
string up to 16 characters. The default is to not modify this
FRU field.
-v prod_ver
This option specifies a product version number string to be
written to the baseboard FRU Product area. The version number
can be any string up to 16 characters. The default is to not
modify this FRU field.
-x Causes eXtra debug messages to be displayed.
-N nodename
Nodename or IP address of the remote target system. If a node-
name is specified, IPMI LAN interface is used. Otherwise the
local system management interface is used.
-U rmt_user
Remote username for the nodename given. The default is a null
username.
-P/-R rmt_pswd
Remote password for the nodename given. The default is a null
password.
-E Use the remote password from Environment variable IPMI_PASSWORD.
-F drv_t
Force the driver type to one of the followng: imb, va, open,
gnu, landesk, lan, lan2, lan2i, kcs, smb. Note that lan2i means
lan2 with intelplus. The default is to detect any available
driver type and use it.
-J Use the specified LanPlus cipher suite (0 thru 17):
0=none/none/none, 1=sha1/none/none, 2=sha1/sha1/none,
3=sha1/sha1/cbc128, 4=sha1/sha1/xrc4_128, 5=sha1/sha1/xrc4_40,
6=md5/none/none, ... 14=md5/md5/xrc4_40. Default is 3.
-T Use a specified IPMI LAN Authentication Type: 0=None, 1=MD2,
2=MD5, 4=Straight Password, 5=OEM.
-V Use a specified IPMI LAN privilege level. 1=Callback level,
2=User level, 3=Operator level, 4=Administrator level (default),
5=OEM level.
-Y Yes, do prompt the user for the IPMI LAN remote password.
Alternatives for the password are -E or -P.
SEE ALSO
ipmiutil(8) ialarms(8) iconfig(8) icmd(8) idiscover(8) ievents(8)
igetevent(8) ihealth(8) ilan(8) ireset(8) isel(8) isensor(8) iserial(8)
isol(8) iwdt(8)
WARNINGS
See http://ipmiutil.sourceforge.net/ for the latest version of ipmiutil
and any bug fix list.
--------------------------------------
3.8 IGETEVENT (ipmiutil getevt)
IGETEVENT(8) IGETEVENT(8)
NAME
ipmiutil_getevt - wait for IPMI events
SYNOPSIS
ipmiutil getevt [-abosx -t secs -N node -U user -P/-R pswd -EFJTVY]
DESCRIPTION
ipmiutil getevt is a program that uses IPMI commands to wait for IPMI
events sent from the BMC firmware. These events are also sent to the
IPMI System Event Log (SEL). This utility can use either the
/dev/ipmi0 driver from OpenIPMI, the /dev/imb driver from Intel, the
/dev/ipmikcs driver from valinux, direct user-space IOs, or the IPMI
LAN interface if -N.
Some server management functions want to trigger custom actions or
alerts when IPMI hardware-related events occur, but do not want to
track all events, just newly occurring events. This utility waits a
specified timeout period for any events, and returns interpreted output
for each event. It is designed as a scriptable command-line utility,
but if the timeout is infinite (-t 0), then this code could be used for
a sample service as well.
There are several methods to do this which are implemented here.
The SEL method:
This method polls the SEL once a second, keeps track of the last SEL
event read, and only new events are processed. This ensures that in a
series of rapid events, all events are received in order, however, some
transition-to-OK events may not be configured to write to the SEL on
certain platforms. This method is used if getevent -s is specified.
This is the only method supported over IPMI LAN, i.e. with -N.
The ReadEventMessageBuffer method:
This uses an IPMI Message Buffer in the BMC firmware to read each new
event. This receives any event, but if two events occur nearly simul-
taneously, only the most recent of the two will be returned with this
method. An example of simultaneous events might be, if a fan
stops/fails, both the non-critical and critical fan threshold events
would occur at that time. This is the default method for getevent.
The OpenIPMI custom method:
Different IPMI drivers may have varying behavior. For instance, the
OpenIPMI driver uses the IPMI GetMessage commands internally and does
not allow client programs to use those commands. It has its own custom
mechanism, see getevent_mv(). This method is used if the OpenIPMI
driver is detected, and no other method is specified.
The Async Event method:
This only gets certain Asynchronous requests from the BMC to an SMS OS
service, like a remote OS shutdown, and get_software_id. This method
is disabled by default and only turned on if the getevent -a option is
specified. This method is only supported via the Intel IMB and
OpenIPMI driver interfaces. There is an init script provided with
ipmiutil to automate the task of starting this async event daemon.
# chkconfig --add ipmiutil_asy (skip this if no chkconfig)
# /etc/init.d/ipmiutil_asy start
This listens for IPMI LAN requests for soft-shutdown, and logs the out-
put to /var/log/ipmiutil_asy.log
OPTIONS
Command line options are described below.
-a Use the Async request method, which receives SMS OS requests
from the BMC using the IMB or OpenIPMI driver interface. This
services remote SMS bridge agent requests, like remote OS shut-
down and get software_id.
-b Run in Background as a daemon. If this option is specified,
normal output will be redirected to /var/log/ipmiu-
til_getevt.log. The default is to run in foreground.
-c Show output in a canonical format, with a delimiter of '|'.
-e N Wait for a specific event sensor type N. The parameter can be
in hex (0x23) or decimal (35). The default is 0xFF which means
wait for any event.
-r F Run script file F when an event occurs. The filename can
include a full path. The script will be passed the event
description as a parameter. A sample evt.sh script is included
with the ipmiutil package.
-o Only run one pass to wait for the first event. Default is to
loop for multiple events for the timeout period.
-s Use the SEL method to get events. This polls the SEL once a
second for new events. The last SEL record read is saved in
/usr/share/ipmiutil/evt.idx. Otherwise, the default is to use
the ReadEventMessageBuffer method to get new events.
-t N Set the timeout period to N seconds. Default is 120 seconds. A
timeout of 0 means an infinite period.
-x Causes extra debug messages to be displayed.
-N nodename
Nodename or IP address of the remote target system. If a node-
name is specified, IPMI LAN interface is used. Otherwise the
local system management interface is used.
-P/-R rmt_pswd
Remote password for the nodename given. The default is a null
password.
-U rmt_user
Remote username for the nodename given. The default is a null
username.
-E Use the remote password from Environment variable IPMI_PASSWORD.
-F drv_t
Force the driver type to one of the followng: imb, va, open,
gnu, landesk, lan, lan2, lan2i, kcs, smb. Note that lan2i means
lan2 with intelplus. The default is to detect any available
driver type and use it.
-J Use the specified LanPlus cipher suite (0 thru 17):
0=none/none/none, 1=sha1/none/none, 2=sha1/sha1/none,
3=sha1/sha1/cbc128, 4=sha1/sha1/xrc4_128, 5=sha1/sha1/xrc4_40,
6=md5/none/none, ... 14=md5/md5/xrc4_40. Default is 3.
-T Use a specified IPMI LAN Authentication Type: 0=None, 1=MD2,
2=MD5, 4=Straight Password, 5=OEM.
-V Use a specified IPMI LAN privilege level. 1=Callback level,
2=User level, 3=Operator level, 4=Administrator level (default),
5=OEM level.
-Y Yes, do prompt the user for the IPMI LAN remote password.
Alternatives for the password are -E or -P.
SEE ALSO
ipmiutil(8) ialarms(8) iconfig(8) icmd(8) idiscover(8) ievents(8)
ifru(8) ihealth(8) ilan(8) ireset(8) isel(8) isensor(8) iserial(8)
isol(8) iwdt(8)
WARNINGS
See http://ipmiutil.sourceforge.net/ for the latest version of ipmiutil
and any bug fix list.
--------------------------------------
3.9 IHEALTH (ipmiutil health)
IHEALTH(8) IHEALTH(8)
NAME
ipmiutil_health- show IPMI health
SYNOPSIS
ipmiutil health [-ifhglmnopqsx -N node -U user -P/-R pswd -EFJTVY]
DESCRIPTION
ipmiutil health is a program that uses IPMI commands to show the health
of the BMC. This utility can use either the /dev/ipmi0 driver from
OpenIPMI, the /dev/imb driver from Intel, the /dev/ipmikcs driver from
valinux, direct user-space IOs, or the IPMI LAN interface if -N.
OPTIONS
Command line options are described below.
-c Show canonical, delimited output.
-f Show the FRUSDR version also.
-g Show the IPMI GUID of this system. The GUID is a read-only
unique identifier.
-h Check the health of the HotSwap Controller also.
-l Show the IPMI LAN channel statistics also.
-m 002000
Target a specific MC (e.g. bus 00, sa 20, lun 00). This could
be used for PICMG or ATCA blade systems. The trailing charac-
ter, if present, indicates SMI addressing if ’s’, or IPMB
addressing if ’i’ or not present.
-n string
Set the System Name to this string in the IPMI System Informa-
tion.
-o string
Set the Primary Operating System to this string in the IPMI Sys-
tem Information.
-p 1 Set the chassis Power restore policy, governing the desired
behavior when power was lost and is restored. Values: 0 = stay
off, 1 = last state, 2 = always on.
-q string
Set the Secondary Operating System to this string in the IPMI
System Information.
-s Show the IPMI Session information also.
-x Causes extra debug messages to be displayed.
-N nodename
Nodename or IP address of the remote target system. If a node-
name is specified, IPMI LAN interface is used. Otherwise the
local system management interface is used.
-P/-R rmt_pswd
Remote password for the nodename given. The default is a null
password.
-U rmt_user
Remote username for the nodename given. The default is a null
username.
-E Use the remote password from Environment variable IPMI_PASSWORD.
-F drv_t
Force the driver type to one of the followng: imb, va, open,
gnu, landesk, lan, lan2, lan2i, kcs, smb. Note that lan2i means
lan2 with intelplus. The default is to detect any available
driver type and use it.
-J Use the specified LanPlus cipher suite (0 thru 17):
0=none/none/none, 1=sha1/none/none, 2=sha1/sha1/none,
3=sha1/sha1/cbc128, 4=sha1/sha1/xrc4_128, 5=sha1/sha1/xrc4_40,
6=md5/none/none, ... 14=md5/md5/xrc4_40. Default is 3.
-T Use a specified IPMI LAN Authentication Type: 0=None, 1=MD2,
2=MD5, 4=Straight Password, 5=OEM.
-V Use a specified IPMI LAN privilege level. 1=Callback level,
2=User level, 3=Operator level, 4=Administrator level (default),
5=OEM level.
-Y Yes, do prompt the user for the IPMI LAN remote password.
Alternatives for the password are -E or -P.
SEE ALSO
ipmiutil(8) ialarms(8) iconfig(8) icmd(8) idiscover(8) ievents(8)
ifru(8) igetevent(8) ilan(8) ireset(8) isel(8) isensor(8) iserial(8)
isol(8) iwdt(8)
WARNINGS
See http://ipmiutil.sourceforge.net/ for the latest version of ipmiutil
and any bug fix list.
--------------------------------------
3.10 ILAN (ipmiutil lan)
ILAN(8) ILAN(8)
NAME
ipmiutil_lan - show and configure BMC LAN parameters and set up a PEF
entry to send BMC LAN Alerts for OS Critical Stop log events
SYNOPSIS
ipmiutil lan [-abcdefghijklmnopq#rstuvwxyzBDQK -i eth1 ]
[-I ipadr -M macadr -S subnet -B baud_sol ]
[-G gwyip -H gwymac -L lan_channel_num ]
[-A alertip -X alertmac -C community ]
[-u user_to_set -p password_to_set ]
[-N nodename -U username -Fimb ]
[-P/-R rmt_node_pswd -EFJTVY ]
DESCRIPTION
ipmiutil lan shows or sets all of the IPMI LAN Parameters to enable
remote LAN sessions or BMC LAN Alerts. The IP address and MAC address
of the local system, the default gateway, and the alert destination can
be defaulted to those specified in Linux, or can be overridden by user
parameters. It also creates a new Platform Event Filter table entry
for an OS Critical Stop (0x20) SEL firmware log event, so that it will
be enabled to send a BMC LAN Alert. This utility will skip the PEF
records if the system does not support IPMI 1.5 or greater. This util-
ity can use either the /dev/ipmi0 driver from OpenIPMI, the /dev/imb
driver from Intel, the /dev/ipmikcs driver from valinux, direct user-
space IOs, or the IPMI LAN interface if -N.
OPTIONS
Command line options are described below. Note that without options,
ipmiutil lan behaves as if option -r were used. To configure IPMI LAN
& PEF, use option -e.
-a alertnum
Specify which PEF alert number is to be used. Default is 1.
This would only be used if extra PEF alert destinations had been
set.
-b authmask
Specify a certain authtype mask in hex to use when configuring
this channel. The default mask is 0x16, so to include authtype
None (bit 0), it would require entering ’-b 17’.
-c Show Canonical output, which shows only interpreted text and
streamlines the parameters shown, using a common delimiter.
-d This option disables the IPMI LAN and PEF parameters, so as not
to allow BMC LAN connections or alerts. This option also sets
the IP address to zeros.
-e This option enables the BMC LAN configuration and PEF event
alerts. The utility will attempt to obtain the default BMC LAN
parameters from the OS automatically, or they can be specified
with command options below.
-f Set the ARP control parameter to 1 = gratuituous ARPs, 2 = ARP
responses, or 3 = both grat ARP and ARP responses. The default
is 1.
-g This specifies the secondary gateway IP address to use for the
BMC LAN. The default is to omit this parameter and only use the
default gateway. See also -G.
-h Set the IPMI VLAN ID to this value. Setting to a value >=4096
disables the VLAN ID. The default behavior is not to set this
parameter.
-i ethif
By default, the eth0 interface is used to find IP and MAC
addresses. Sometimes, however, the first ethernet port on the
baseboard may be represented by Linux as eth1 or eth2 instead.
If so, use this option to indicate the correct ethernet inter-
face to use. By default, ipmiutil lan will scan up to 32 eth
interfaces for the onboard one that BMC LAN uses.
-j This sets a custom PEF rule as the last PEF entry. The input is
a series of 10 hex bytes, forming the PEF entry. For example,
this sample PEF entry would perform a power down action if the
Baseboard Temp reached its threshold.
"ipmiutil lan -e -j020110ffff013001950a"
-k This causes ipmiutil lan to also insert two rules to send alerts
for transition-to-OK events, including Power Redundancy OK and
Temperature OK.
-l This option enables the BMC LAN configuration, but not PEF
events. The utility will attempt to obtain the default BMC LAN
parameters from the OS automatically, or they can be specified
with command options below.
-n num By default, the new PEF entry for OS Critical Stop is inserted
at offset 12 into the table. This can be changed to insert it
at an offset > 12 if another entry already exists at offset 12.
-o Disable Only SOL. This could be used after the IPMI LAN was
configured, to disable Serial-Over-LAN console access but still
allow other IPMI LAN access.
-p password_to_set
This specifies the firmware password to set for BMC LAN access.
If not specified, the user and password configuration will not
be changed.
-q Specify an alternate user number for the LAN username from the
-u option. This is normally user number 2, 3, or 4, where 2 is
the default. The maximum number of users is 15. Same as -#
below.
-# Specify an alternate user number for the LAN username from the
-u option. Same as -q above.
-r This option just reads the configuration without writing any BMC
LAN parameters or writing any new entries to the PEF table.
-s This option will also display some of the Serial parameters.
-t Test if the BMC LAN has already been configured. Returns 0 if
so.
-u username_to_set
This specifies the firmware username to set for BMC LAN access.
If a username is specified, user 3 will be set. If not speci-
fied, the default user 1 will be used.
-v priv
Set a specific access priVilege for this user, where priv can
be: 1=Callback, 2=User, 3=Operator, 4=Admin, 5=OEM, 15=NoAccess
The default if not specified or specified in error, is to use
4=Admin.
-w N Set the Gratuitous ARP Interval to N seconds. This has no
effect if the firmware does not support Grat-ARP, as shown in
Lan Param 10. If not set, the interval remains at the firmware
default.
-x Causes extra debug messages to be displayed.
-y N Set the OEM LAN Failover parameter to N. Values for N with
Intel Romley/S2600 baseboards: 1 = enable, 0 = disable. Val-
ues for N with SuperMicro baseboards: 2 = failover, 1 = lan1 , 0
= dedicated.
-z Also show the IPMI LAN Statistics
-A alert_ip_addr
This specifies the SNMP Alert Destination IP address to use for
the BMC LAN. By default, this utility will attempt to obtain
this from the /etc/snmp/snmpd.conf file, via the trapsink param-
eter. The alert destination will see the BMC LAN traps with the
enterprises.3183.1.1 OID. If no alert IP address is specified
in either snmpd.conf or this parameter, or if that IP address
does not respond, the other SNMP parameters for BMC LAN will be
skipped.
-B baud_sol
This specifies the Baud rate for SerialOverLan. The possible
values are: 9600, 19.2k, 38.4k, 57.6k, and 115.2k. The default
is 19.2k.
-C snmp_community
This specifies the SNMP Community name to use for BMC LAN
Alerts. The default community string is "public". This parame-
ter is ignored if there is no Alert IP address.
-D This causes the local IP address to be determined by DHCP
instead of a static IP address.
-E Use the remote password from Environment variable IPMI_PASSWORD.
-F drv_t
Force the driver type to one of the followng: imb, va, open,
gnu, landesk, lan, lan2, lan2i, kcs, smb. Note that lan2i means
lan2 with intelplus. The default is to detect any available
driver type and use it.
-G gwy_ip_addr
This specifies the default gateway IP address to use for the BMC
LAN. The default is to automatically obtain this from the Linux
route table.
-H gwy_mac_addr
This specifies the default gateway MAC address to use for the
BMC LAN. The format can be either 11:22:33:44:55:66 or
11-22-33-44-55-66. The default is to try to automatically
obtain this by sending an arp request from an OS LAN eth inter-
face: the default one, or as specified by -i.
-K hostname
This specifies the IPMI hostname to set, for Kontron servers
only. This enables the firmware to properly map the IP address
to a hostname, especially with the web interface. The default
is not to set this parameter, and use IP address only.
-I ip_addr
This specifies the local IP address to use for the BMC LAN on
eth0. The default is to automatically obtain this from the
Linux ifconfig.
-J Use the specified LanPlus cipher suite (0 thru 17):
0=none/none/none, 1=sha1/none/none, 2=sha1/sha1/none,
3=sha1/sha1/cbc128, 4=sha1/sha1/xrc4_128, 5=sha1/sha1/xrc4_40,
6=md5/none/none, ... 14=md5/md5/xrc4_40. Default is 3.
-L lan_ch_num
This specifies the IPMI LAN channel number used for BMC LAN.
This varies by platform, and can be found in the platform tech-
nical specifications. For instance, Intel platforms usually use
channels 1 & 2 for onboard NICs, and channel 3 for optional RMM
NICs. By default, ipmiutil lan scans all IPMI channels to find
the first LAN channel for BMC LAN. To just list all IPMI chan-
nels to see what is available, use the string ’list’ instead of
a LAN channel number. This will list the channels and exit.
-M mac_addr
This specifies the local MAC address to use for the BMC LAN on
eth0. The format can be either 11:22:33:44:55:66 or
11-22-33-44-55-66. The default is to automatically obtain this
from the Linux ifconfig.
-N nodename
Nodename or IP address of the remote target system. If a node-
name is specified, IPMI LAN interface is used. Otherwise the
local system management interface is used.
-P rmt_pswd
Remote password for the nodename given. The default is a null
password. Same as -R below.
-Q Set the IPMI VLAN Priority. The default priority is 0.
-R rmt_pswd
Remote password for the nodename given. The default is a null
password. Same as -P above.
-S subnet
This specifies the local subnet mask to use for the BMC LAN on
eth0. The default is to automatically obtain this from the
Linux ifconfig.
-T Use a specified IPMI LAN Authentication Type: 0=None, 1=MD2,
2=MD5, 4=Straight Password, 5=OEM.
-U rmt_user
Remote username for the nodename given. The default is a null
username.
-V Use a specified IPMI LAN privilege level. 1=Callback level,
2=User level, 3=Operator level, 4=Administrator level (default),
5=OEM level.
-X alert_mac_addr
This specifies the SNMP Alert Destinations’s MAC address to use
for the BMC LAN. The format can be either 11:22:33:44:55:66 or
11-22-33-44-55-66. The default is to attempt to obtain this
from the Linux arp cache. This parameter is ignored if there is
no Alert IP address.
-Y Yes, do prompt the user for the IPMI LAN remote password.
Alternatives for the password are -E or -P.
EXAMPLES
To read existing settings:
ipmiutil lan -r
To enable IPMI LAN with default settings detected, assuming shared
MAC/IP:
ipmiutil lan -e
To set up IPMI LAN for a unique IP address and set PEF SNMP Alerts:
ipmiutil lan -e -I 192.168.1.1 -A 192.168.1.10
To set the IPMI LAN password for the default user:
ipmiutil lan -e -p mypassword
To disable access to the IPMI LAN channel:
ipmiutil lan -d
SAMPLE PEF TABLE
These 11 PEF table entries are configured from the factory for various
Intel Sahalee BMC systems, and will be applied as the defaults for a
system with an empty PEF table:
PEF(01): 01 Temperature Sensor event - enabled for alert
01 c0 01 01 00 ff ff 01 ff 01 95 0a 00 00 00 00 00 00 00 00 00
PEF(02): 02 Voltage Sensor event - enabled for alert
02 c0 01 01 00 ff ff 02 ff 01 95 0a 00 00 00 00 00 00 00 00 00
PEF(03): 04 Fan Failure event - enabled for alert
03 c0 01 01 00 ff ff 04 ff 01 95 0a 00 00 00 00 00 00 00 00 00
PEF(04): 05 Chassis Intrusion event - enabled for alert
04 c0 01 01 00 ff ff 05 05 6f 01 00 00 00 00 00 00 00 00 00 00
PEF(05): 08 Power Supply Fault event - enabled for alert
05 c0 01 01 00 ff ff 08 ff 6f 06 00 00 00 00 00 00 00 00 00 00
PEF(06): 0c Memory ECC Error event - enabled for alert
06 c0 01 01 00 ff ff 0c 08 6f 02 00 00 00 00 00 00 00 00 00 00
PEF(07): 0f FRB Failure event - enabled for alert
07 c0 01 01 00 ff ff 0f 06 6f 01 00 00 00 00 00 00 00 00 00 00
PEF(08): 07 BIOS POST Error event - enabled for alert
08 c0 01 01 00 ff ff 07 ff 6f 1c 00 00 00 00 00 00 00 00 00 00
PEF(09): 13 Fatal NMI event - enabled for alert
09 c0 01 01 00 ff ff 13 ff 6f 3e 03 00 00 00 00 00 00 00 00 00
PEF(10): 23 Watchdog Timer Reset event - enabled for alert
0a c0 01 01 00 ff ff 23 03 6f 0e 00 00 00 00 00 00 00 00 00 00
PEF(11): 12 System Restart event - enabled for alert
0b c0 01 01 00 ff ff 12 ff 6f 02 00 00 00 00 00 00 00 00 00 00
SEE ALSO
ipmiutil(8) ialarms(8) iconfig(8) icmd(8) idiscover(8) ievents(8)
ifru(8) igetevent(8) ihealth(8) ireset(8) isel(8) isensor(8) iserial(8)
isol(8) iwdt(8)
WARNINGS
See http://ipmiutil.sourceforge.net/ for the latest version of ipmiutil
and any bug fix list.
--------------------------------------
3.11 IRESET (ipmiutil reset)
IRESET(8) IRESET(8)
NAME
ipmiutil_reset - perform a hardware reset on the system
SYNOPSIS
ipmiutil reset [-bcdDefhijmnoprsuwxy -N node -U user -P/-R pswd
-EFJTVY]
DESCRIPTION
ipmiutil reset is a program that uses IPMI commands to perform a hard-
ware reset of the chassis, or boot to a specific device. This utility
can use either the /dev/ipmi0 driver from OpenIPMI, the /dev/imb driver
from Intel, the /dev/ipmikcs driver from valinux, direct user-space
IOs, or the IPMI LAN interface if -N.
OPTIONS
Command line options are described below.
-c Power Cycle the system chassis
-d Power Down the system chassis
-n Send NMI to the system
-u Power Up the system chassis
-r Hard Reset the system chassis
-D Do a soft shutdown of the OS, and then power down. Note that
remote soft shutdown (-D -N) for Intel S5000 baseboard requires
ipmiutil getevt -a running on the target server.
-o Do a soft shutdown of the OS, and then reset. Note that remote
soft shutdown (-o -N) for Intel S5000 baseboard requires ipmiu-
til getevt -a running on the target server.
-k Do a cold reset to restart the BMC firmware.
-m 002000s
Perform these function for a specific MC (e.g. bus 00, sa 20,
lun 00). The trailing character, if present, indicates SMI
addressing if ’s’, or IPMB addressing if ’i’ or not present.
-b Do a hard reset and reboot to the BIOS Setup menu, for this
reboot only.
-e Do a hard reset to EFI, if IPMI EFI boot is enabled, for this
reboot only.
-f Do a hard reset to Floppy/Removable, for this reboot only.
-h Do a hard reset to a Hard Disk, for this reboot only.
-i Set the boot Initiator mailbox string, usually for PXE use. The
string must be less than 78 characters.
-j Set the IANA number used for the boot Initiator mailbox string.
-p Do a hard reset and network boot to PXE server, for this reboot
only.
-s Do a hard reset and reboot to the Service/Diagnostic Partition,
for this reboot only. Reboots to the default if no service par-
tition is configured.
-v Do a hard reset to DVD/CDROM Media, for this reboot only.
-w Wait for BMC ready after a reset before exiting the utility.
-x Causes extra debug messages to be displayed.
-y Yes, try to persist any boot options used [-befhprsv]. This
requires the IPMI firmware to ask the BIOS to change boot order
settings, so it may not be supported by all BMC firmware ven-
dors.
-N nodename
Nodename or IP address of the remote target system. If a node-
name is specified, IPMI LAN interface is used. Otherwise the
local system management interface is used.
-P/-R rmt_pswd
Remote password for the nodename given. The default is a null
password.
-U rmt_user
Remote username for the nodename given. The default is a null
username.
-E Use the remote password from Environment variable IPMI_PASSWORD.
-F drv_t
Force the driver type to one of the followng: imb, va, open,
gnu, landesk, lan, lan2, lan2i, kcs, smb. Note that lan2i means
lan2 with intelplus. The default is to detect any available
driver type and use it.
-J Use the specified LanPlus cipher suite (0 thru 17):
0=none/none/none, 1=sha1/none/none, 2=sha1/sha1/none,
3=sha1/sha1/cbc128, 4=sha1/sha1/xrc4_128, 5=sha1/sha1/xrc4_40,
6=md5/none/none, ... 14=md5/md5/xrc4_40. Default is 3.
-T Use a specified IPMI LAN Authentication Type: 0=None, 1=MD2,
2=MD5, 4=Straight Password, 5=OEM.
-V Use a specified IPMI LAN privilege level. 1=Callback level,
2=User level, 3=Operator level, 4=Administrator level (default),
5=OEM level.
-Y Yes, do prompt the user for the IPMI LAN remote password.
Alternatives for the password are -E or -P.
SEE ALSO
ipmiutil(8) ialarms(8) iconfig(8) icmd(8) idiscover(8) ievents(8)
ifru(8) igetevent(8) ihealth(8) ilan(8) isel(8) isensor(8) iserial(8)
isol(8) iwdt(8)
WARNINGS
See http://ipmiutil.sourceforge.net/ for the latest version of ipmiutil
and any bug fix list.
--------------------------------------
3.12 ISEL (ipmiutil sel)
ISEL(8) ISEL(8)
NAME
ipmiutil_sel - show firmware System Event Log records
SYNOPSIS
ipmiutil sel [-abcflswvx -N node -P/-R pswd -U user -EFJTVY]
DESCRIPTION
ipmiutil sel is a program that uses IPMI commands to to read and dis-
play the System Event Log (SEL) which is stored by the BMC firmware.
IPMI commands are issued to read each record, and, if specified, incre-
mentally write records that have not previously been read into the
Linux syslog (/var/log/messages). This utility can use either the
/dev/ipmi0 driver from OpenIPMI, the /dev/imb driver from Intel, the
/dev/ipmikcs driver from valinux, direct user-space IOs, or the IPMI
LAN interface if -N.
OPTIONS
Command line options are described below.
-a string
Add a SEL record with a string of up to 13 characters. Longer
strings will be truncated. Note that this should be used spar-
ingly, but would be useful for changes made to the hardware or
firmware environment, like "Fan replaced" or "flash FW2.1".
-b bin_file
Interpret a file containing raw binary/hex SEL data dumped in
binary form, such as that produced by "ipmitool sel writeraw
bin_file". Each set of 16 bytes in the file will be interpreted
as an IPMI event.
-c Show output in a canonical format, with a default delimiter of
'|'. (same as -n).
-d Deletes/Clears the SEL of all records. If the SEL becomes full
(free space = 0), it no longer accepts new records, so the SEL
should be cleared periodically (use checksel cron script).
-e Show Extended sensor descriptions for events if run locally.
This option will attempt to get the full sensor description from
/var/lib/ipmiutil/sensor_out.txt, and also use its SDR to decode
any raw threshold values in the event, if present.
-f sel_file
Interpret a file containing raw ascii text SEL data captured
with ipmiutil sel -r, or some other similar utility. Each line
in the file should be in this form, with no leading spaces:
04 00 02 76 a9 4a 47 20 00 04 10 09 6f 42 0f ff
Lines not in this format will be ignored.
-l N Show last N SEL records, in reverse order (newest first). For
some BMC implementations, this may not show all N records speci-
fied.
-n Show output in a nominal/canonical format, with a default delim-
iter of '|'. (same as -c).
-r Show the 16 raw hex bytes for each SEL entry. The default is to
display interpreted entries, and include relevant hex event
bytes.
-p By default, all SEL records are displayed. This option causes
only the Panic events with sensor_type = 0x20 (OS Critical Stop)
to be displayed.
-s N Show only SEL events with severity N or greater. Severity
0=INF, 1=MIN, 2=MAJ, 3=CRT. The default is to show all SEL
events.
-u Show the SEL time as UTC and also get the SEL Time UTC offset if
that command is supported. The default is to convert the SEL
Time to local time.
-v Only show the version information. This shows: the ipmiutil
sel utility version, the BMC version, the IPMI version, the SEL
version, and the amount of free space in the SEL.
-w This option writes SEL records to the Linux syslog
(/var/log/messages) or Windows Application Log. It only writes
SEL records that have timestamps newer than the last record
written to syslog. It saves the last timestamp in an index file
named /usr/share/ipmiutil/sel.idx (.\sel.idx in Windows).
-x Causes extra debug messages to be displayed.
-N nodename
Nodename or IP address of the remote target system. If a node-
name is specified, IPMI LAN interface is used. Otherwise the
local system management interface is used.
-U rmt_user
Remote username for the nodename given. The default is a null
username.
-P/-R rmt_pswd
Remote password for the nodename given. The default is a null
password.
-E Use the remote password from Environment variable IPMI_PASSWORD.
-F drv_t
Force the driver type to one of the followng: imb, va, open,
gnu, landesk, lan, lan2, lan2i, kcs, smb. Note that lan2i means
lan2 with intelplus. The default is to detect any available
driver type and use it.
-J Use the specified LanPlus cipher suite (0 thru 17):
0=none/none/none, 1=sha1/none/none, 2=sha1/sha1/none,
3=sha1/sha1/cbc128, 4=sha1/sha1/xrc4_128, 5=sha1/sha1/xrc4_40,
6=md5/none/none, ... 14=md5/md5/xrc4_40. Default is 3.
-T Use a specified IPMI LAN Authentication Type: 0=None, 1=MD2,
2=MD5, 4=Straight Password, 5=OEM.
-V Use a specified IPMI LAN privilege level. 1=Callback level,
2=User level, 3=Operator level, 4=Administrator level (default),
5=OEM level.
-Y Yes, do prompt the user for the IPMI LAN remote password.
Alternatives for the password are -E or -P.
SEE ALSO
ipmiutil(8) ialarms(8) iconfig(8) icmd(8) idiscover(8) ievents(8)
ifru(8) igetevent(8) ihealth(8) ilan(8) ireset(8) isensor(8) iserial(8)
isol(8) iwdt(8)
WARNINGS
See http://ipmiutil.sourceforge.net/ for the latest version of ipmiutil
and any bug fix list.
--------------------------------------
3.13 ISENSOR (ipmiutil sensor)
ISENSOR(8) ISENSOR(8)
NAME
ipmiutil_sensor - show Sensor Data Records
SYNOPSIS
ipmiutil sensor [-abcdefgmpqrstuvwx -i id -n snum -h tval -l tval
-NUPREFJTVY]
DESCRIPTION
ipmiutil sensor is a program that uses IPMI commands to show and decode
Sensor Data Records and current sensor readings for all sensors in the
system. This utility can use either the /dev/ipmi0 driver from
OpenIPMI, the /dev/imb driver from Intel, the /dev/ipmikcs driver from
valinux, direct user-space IOs, or the IPMI LAN interface if -N.
Note that this utility by default only displays Sensor Data Records
reported by from the Baseboard Management Controller. To show sensors
for other controllers, see options -b and -m below.
OPTIONS
Command line options are described below.
-a snum
ReArms the sensor number for events
-b Shows SDRs for Bladed (PICMG or ATCA) systems by traversing the
child MCs (same as -e).
-c Show sensor list in a simpler/Canonical format without uninter-
preted binary values. Only the user-friendly interpreted sensor
information is shown. (same as -s).
-d <file>
Dump the SDRs to a specified binary file.
-e Show Every SDR in a bladed system by traversing the child MCs
(same as -b).
-f <file>
Restore the SDRs from the specified binary File. This is nor-
mally only done with the initial factory provisioning.
-g sens_type
Shows only those SDRs matching the given sensor type group. The
sens_type string can be "fan", "temp", "voltage", or any string
or substring matching those in the IPMI 2.0 Table 42-3 for Sen-
sor Types. Multiple types can be listed, separated by a comma
(,) but no spaces.
-h tval
Highest threshold value to set for the specified sensor. This
tval can be in decimal, or of the form 0x1a, to match the raw
reading value shown by sensor following the " = ". The value
passed is set as the non-critical threshold value, with the more
critical ones set by the utility as incrementally lower. This
simplifies the interface and ensures that the threshold values
do not get out of order. This requires specifying the sensor
number via -n.
-i ID Show or set only the sensor Index corresponding to ID, where ID
is the hex ID of the SDR as shown in the sensor output under
"_ID_". The ID argument can be one hex number (e.g. 0x0e or
0e), or a range of hex numbers (e.g. 0e-1a or 1a,2a or
0x0e-0x2a). This is useful to repeatedly view just a few sensor
readings for changes, or to set just one sensor quickly without
reading all of the SDRs.
-l tval
Lowest threshold value to set for the specified sensor. This
tval can be in decimal, or of the form 0x1a, to match the raw
reading value shown by sensor following the " = ". The value
passed is set as the non-critical threshold value, with the more
critical ones set by the utility as incrementally higher. This
simplifies the interface and ensures that the threshold values
do not get out of order. This requires specifying the sensor
number via -n.
-m 002000s
Show SDRs for a specific MC (e.g. bus 00, sa 20, lun 00). This
could be used for PICMG or ATCA blade systems. The trailing
character, if present, indicates SMI addressing if ’s’, or IPMB
addressing if ’i’ or not present.
-n snum
Number of the sensor to set. This num can be in decimal, or of
the form 0x1a, to match the value shown by sensor following the
"snum" tag. This is required if setting hi/lo thresholds via
-h/-l.
-o Output the memory DIMM information from SMBIOS, including size.
Not available if using IPMI LAN via -N. Sample output:
Memory Device (0,0): DIMM_A1 : size=2048MB
Memory Device (0,1): DIMM_A2 : not present
-p Persist the threshold being set (as specified via -l or -h).
This writes a "sensor -i" script line to the file
/usr/share/ipmiutil/thresholds.sh, which can then be executed at
each reboot by starting the /etc/init.d/ipmi_port service for
the desired runlevels. For Windows, the filename is thresh-
olds.cmd.
-q Show any thresholds for each sensor in short format with ’:’
delimiters, useful as an example for setting thresholds with
’-u’.
-r Show Raw SDR bytes also.
-s Show sensor list in a simpler/canonical format without uninter-
preted binary values. Only the user-friendly interpreted sensor
information is shown. (same as -c).
-t Show any Thresholds for each sensor also, in text format.
-u Set unique threshold values. The values are specified in a
string of threshold values. It can be in raw hex characters or
in float values. All 6 possible thresholds must be specified,
but only the ones that are valid for this sensor will be
applied. These values are validated for ordering. For example:
-u 6:5:4:60:65:69 (float) or
-u 0x0605043c4145 (raw hex)
would mean 0x06=noncrit_lo, 0x05=crit_lo, 0x04=nonrec_lo,
0x3c=noncrit_hi, 0x41=crit_hi, 0x45=nonrec_hi.
-v Show Verbose output, including volatile thresholds, SDR thresh-
olds, max/min, hysteresis, and BMC_TAM decoding.
-w Wrap the threshold data onto the same line as the sensor. This
may be convenient for scripting.
-x Causes eXtra debug messages to be displayed.
-L n Loop n times. This is useful along with -i. Default is one
loop.
-N nodename
Nodename or IP address of the remote target system. If a node-
name is specified, IPMI LAN interface is used. Otherwise the
local system management interface is used.
-P/-R rmt_pswd
Remote password for the nodename given. The default is a null
password.
-U rmt_user
Remote username for the nodename given. The default is a null
username.
-E Use the remote password from Environment variable IPMI_PASSWORD.
-F drv_t
Force the driver type to one of the followng: imb, va, open,
gnu, landesk, lan, lan2, lan2i, kcs, smb. Note that lan2i means
lan2 with intelplus. The default is to detect any available
driver type and use it.
-J Use the specified LanPlus cipher suite (0 thru 17):
0=none/none/none, 1=sha1/none/none, 2=sha1/sha1/none,
3=sha1/sha1/cbc128, 4=sha1/sha1/xrc4_128, 5=sha1/sha1/xrc4_40,
6=md5/none/none, ... 14=md5/md5/xrc4_40. Default is 3.
-T Use a specified IPMI LAN Authentication Type: 0=None, 1=MD2,
2=MD5, 4=Straight Password, 5=OEM.
-V Use a specified IPMI LAN privilege level. 1=Callback level,
2=User level, 3=Operator level, 4=Administrator level (default),
5=OEM level.
-Y Yes, do prompt the user for the IPMI LAN remote password.
Alternatives for the password are -E or -P.
EXAMPLES
ipmiutil sensor sample output is below.
ipmiutil ver 2.21
sensor: version 2.21
-- BMC version 0.17, IPMI version 2.0
_ID_ SDR_Type_xx ET Own Typ S_Num Sens_Description Hex & Interp Read-
ing
000b SDR Full 01 01 20 a 01 snum 30 Baseboard Temp = 2e OK 46.00
degrees C
000e SDR Full 01 01 20 m 04 snum 50 Fan 1A = 6f OK 7659.00
RPM
0042 SDR Comp 02 6f 20 a 21 snum e0 DIMM 1A = 00 c0 04 00
Present
004e SDR FRU 11 1b dev: 20 03 80 00 0a 01 Pwr Supply 1 FRU
0050 SDR IPMB 12 1b dev: 20 00 bf 07 01 Basbrd Mgmt Ctlr
0051 SDR OEM c0 09 Intel: 02 02 00 01 70 71
0065 SDR OEM c0 11 Intel: SDR Package 17
[...]
Output Columns:
_ID_: This is an SDR ID or index number, in hex. This may vary from
chassis to chassis.
SDR_Type_xx: This shows the SDR Type and its hex representation. Some
SDR types have a custom display. The OEM SDRs only show the OEM vendor
by IANA number and then usually the data is listed in hex.
ET: For Full or Comp SDRs, this shows the Event Type. For other SDRs,
this shows the size of the SDR entry in hex (Sz).
Own: This is the hex slave address of the SDR Owner, usually 20 if BMC.
a/m: This indicates whether this sensor is either automatically or man-
ually rearmed, respectively.
Typ: This is the Sensor Type as defined in Table 42-3 of the IPMI 2.0
spec. (01 = Temperature, 02 = Voltage, 03 = Current, 04 = Fan, etc.)
S_Num: This is the sensor number in hex. This remains consistent
across baseboards of the same type. The output can be parsed with the
"snum" delimiter to extract this value.
Sens_Description: This is the text description of this SDR, which is
stored within the SDR on the BMC.
Hex & Interp Reading: This is the raw hex value returned by GetSensor-
Reading, and its interpreted meaning.
SEE ALSO
ipmiutil(8) ialarms(8) iconfig(8) icmd(8) idiscover(8) ievents(8)
ifru(8) igetevent(8) ihealth(8) ilan(8) ireset(8) isel(8) iserial(8)
isol(8) iwdt(8)
WARNINGS
See http://ipmiutil.sourceforge.net/ for the latest version of ipmiutil
and any bug fix list.
--------------------------------------
3.14 ISERIAL (ipmiutil serial)
ISERIAL(8) ISERIAL(8)
NAME
ipmiutil_serial - configure a system for Serial/EMP management func-
tions, such as Terminal Mode, and optionally share the port with the
Serial Console.
SYNOPSIS
ipmiutil serial [-bcdeflq#rsvxB -m0 -m1 -n ser_chan -u user -p passwd
-NUPREFJTVY]
DESCRIPTION
ipmiutil serial is a program that uses an IPMI driver to send IPMI com-
mands which configure a system to enable EMP/serial Terminal Mode man-
agement functions within the firmware, so that an administrator can use
command-line character commands via the serial port to power cycle the
system and perform other functions, even if the system is not running
an OS. This level of access needs to be protected by a username/pass-
word login, which can be specified with this utility. This utility can
use either the /dev/ipmi0 driver from OpenIPMI, the /dev/imb driver
from Intel, the /dev/ipmikcs driver from valinux, direct user-space
IOs, or the IPMI LAN interface if -N.
OPTIONS
Command line options are described below.
-b Set up and enable the Serial Port EMP parameters for Basic Mode
management functions. This does not set a username or password.
-c Configure and enable the Serial Port EMP parameters for Terminal
Mode management functions, shared with BIOS Console Redirection.
Setting a new username and password for serial access via -u and
-p is recommended for security.
-d Disable the serial port access for IPMI commands. The serial
port is then only available for BIOS console and OS functions.
A side-effect of this option is that it sets the default user
(1) back to admin access.
-e Enable EMP Terminal Mode without shared BIOS console. The
serial port is then only available for EMP Terminal Mode func-
tions.
-f Specifies the Flow Control for the Serial EMP. 0 means no flow
control, and 1 means RTS/CTS flow control (default). This must
match the BIOS Serial Console setting.
-l Show LAN Parameters. This option reads and displays the LAN
Parameter configuration also.
-m0 Switch the Serial Port MUX to Baseboard/BIOS Console operation.
Set no other configuration parameters.
-m1 Switch the Serial Port MUX to Terminal Mode management. Set no
other configuration parameters.
-n ser_chan
Sets the IPMI channel number to use for the EMP serial channel
(often 4). Note that the IPMI channels for LAN, Serial, etc.
are numbered differently on each platform type. The default is
to detect the first available IPMI serial channel.
-# Same as -q below.
-q Specify an alternate user number for the EMP Username from the
-u option. This is normally user number 2, 3, or 4, where 3 is
the default. The maximum number of users is 15.
-r Read Only. This option just reads the Serial Parameter configu-
ration without writing any values.
-s Set up and enable the Serial Port EMP parameters for Shared
operation between Basic Mode management functions and Baseboard
(BIOS) Remote Console. This option switches the Serial Port MUX
to Baseboard Console operation.
-t Configure and enable the Serial Port EMP parameters for Terminal
Mode management functions, shared with BIOS Console Redirection.
Same as -c, but easier to remember.
-u username
This specifies a username for the EMP Terminal Mode login. It
can be any string, up to 15 characters. If -u is not used, the
default user 1 (null) will be assumed. The username, if speci-
fied, will be set for user 3, unless option -q is specified.
-p password
This specifies a password for the EMP Terminal Mode login. It
can be any string, up to 15 characters. A null password is used
if none is specified. This password applies to user 3 if -u is
used, to user 1 otherwise.
-v priv
Set a specific access priVilege for this user, where priv can
be: 1=Callback, 2=User, 3=Operator, 4=Admin, 5=OEM, 15=NoAccess
The default if not specified or specified in error, is to use
4=Admin.
-x Causes extra debug messages to be displayed.
-B Set the Baud rate of the serial port to one of the following:
9600, 19,2K, 38.4K, 57.6K, or 115.2K. The default is 19.2K bps.
-N nodename
Nodename or IP address of the remote target system. If a node-
name is specified, IPMI LAN interface is used. Otherwise the
local system management interface is used.
-P/-R rmt_pswd
Remote password for the nodename given. The default is a null
password.
-U rmt_user
Remote username for the nodename given. The default is a null
username.
-E Use the remote password from Environment variable IPMI_PASSWORD.
-F drv_t
Force the driver type to one of the followng: imb, va, open,
gnu, landesk, lan, lan2, lan2i, kcs, smb. Note that lan2i means
lan2 with intelplus. The default is to detect any available
driver type and use it.
-J Use the specified LanPlus cipher suite (0 thru 17):
0=none/none/none, 1=sha1/none/none, 2=sha1/sha1/none,
3=sha1/sha1/cbc128, 4=sha1/sha1/xrc4_128, 5=sha1/sha1/xrc4_40,
6=md5/none/none, ... 14=md5/md5/xrc4_40. Default is 3.
-T Use a specified IPMI LAN Authentication Type: 0=None, 1=MD2,
2=MD5, 4=Straight Password, 5=OEM.
-V Use a specified IPMI LAN privilege level. 1=Callback level,
2=User level, 3=Operator level, 4=Administrator level (default),
5=OEM level.
-Y Yes, do prompt the user for the IPMI LAN remote password.
Alternatives for the password are -E or -P.
EXAMPLES
ipmiutil serial -t (or -c)
Enables Terminal Mode management functions, shared with BIOS
Serial Console redirection. The user can switch between serial
console operations and IPMI Terminal Mode commands by typing ESC
’)’ and ESC ’Q’.
ipmiutil serial -s
Enables Basic Mode management functions shared with BIOS Serial
Console redirection. The user can switch between serial console
operations and IPMI Basic Mode management programs on the same
serial port.
ipmiutil serial -d
Disables the serial port management functions. This would be
used if only the BIOS Serial Console were used and no BMC serial
management functions.
How to login to a Terminal Mode console:
ESC ( (switch to Terminal mode)
[SYS PWD -N ] (login for default user, null psw)
[SYS PWD -U ROOT -N PASSWORD] (syntax example for user 3)
[SYS 000157 ACTIVATE] (activate advanced commands)
[SYS HEALTH QUERY]
[SYS HELP]
[SYS PWD] (logoff)
ESC Q (switch to BIOS console)
See IPMI 1.5 Spec, Appendix E, and Intel TIGPR2U TPS for more informa-
tion.
DEPENDENCIES
The ipmiutil serial utility is intended to configure the EMP serial
port on the server for shared access between BMC/IPMI functions and
BIOS Console Redirection. Some platforms only support only Basic Mode
for BMC/IPMI functions. Basic Mode requires a remote client applica-
tion to utilize it (Windows ISC Console/DPC, or a special modified
Linux telnet). There are some platforms which implement Terminal Mode
via IPMI v1.5 Appendix E to make remote management with character com-
mands available on the serial port without a special remote client
application.
For example, Intel TSRLT2 systems would use "ipmiutil serial -s" for
Basic Mode shared functions, but Intel TIGPR2U systems could use
"ipmiutil serial -c" to configure Terminal Mode functions. On your
system, run "ipmiutil serial -r" to check whether Serial Param(29):
"Terminal Mode Config" is supported. If not, configure Basic Mode via
"ipmiutil serial -s".
PLATFORM SERIAL PORT CONFIGURATION EXAMPLES
First, enter BIOS Setup for Serial Console Redirection parameters:
(these vary by platform)
Console Redirection = Serial Port B
ACPI Redirection = Disabled
Baud Rate = 115.2K
Flow Control = CTS/RTS
Terminal Type = VT100
Legacy Redirection = Enabled
Note that the Baud Rate can vary, but it must match in all locations
where it is used (BIOS, IPMI, and Linux).
For some non-Intel platforms, the serial console would be COM1 instead
of COM2, but should be enabled in BIOS.
From Linux, run "ipmiutil serial -c" for Terminal Mode shared configu-
ration.
Or, on older Intel TSRLT2 platforms: From Linux, run "ipmiutil serial
-s" for Basic Mode Shared configuration.
LINUX CONFIGURATION FOR SERIAL CONSOLE
If using lilo, in /etc/lilo.conf, add
append="console=ttyS1,19200n8 console=tty0"
(and comment out the "message=" line because it includes graphics)
Note that the append line can be placed in the global section and
removed from each kernel section if there are no other differences.
Or, if using grub, edit /boot/grub/grub.conf as follows:
#Omit the splashimage or gfxmenu
# splashimage=(hd0,0)/grub/splash.xpm.gz
#The serial and terminal lines are not usually needed
# serial --unit=1 --speed=19200 --word=8 --parity=no --stop=1
# terminal --timeout=10 serial console
#Add the console=ttyS* parameter to the kernel line
kernel (hd0,0) /vmlinuz root=/dev/sda2 console=ttyS1,19200n8
Add this line to /etc/initab, if ttyS1 is not already there:
co:2345:respawn:/sbin/agetty ttyS1 19200 vt100
Add this line to /etc/securetty, if ttyS1 is not already there:
ttyS1
SEE ALSO
ipmiutil(8) ialarms(8) iconfig(8) icmd(8) idiscover(8) ievents(8)
ifru(8) igetevent(8) ihealth(8) ilan(8) ireset(8) isel(8) isensor(8)
isol(8) iwdt(8)
WARNINGS
See http://ipmiutil.sourceforge.net/ for the latest version of ipmiutil
and any bug fix list.
--------------------------------------
3.15 ISOL (ipmiutil sol)
ISOL(8) ISOL(8)
NAME
ipmiutil_sol - an IPMI Serial-Over-LAN Console application
SYNOPSIS
ipmiutil sol [-acdeilorsvwxz -NUPREFJTVY]
DESCRIPTION
This utility starts an IPMI Serial-Over-LAN console session. A Serial-
over-LAN console allows the client to see and modify functions before
the OS boots, such as BIOS setup, grub, etc. This utility uses either
the IPMI LAN 1.5 or 2.0 SOL interface. The 1.5 SOL interface is spe-
cific to Intel BMCs, while any IPMI 2.0 BMC should support 2.0 SOL.
The target system/node must first have these parameters configured
before SOL sessions can be started:
- [BIOS] serial console redirection parameters,
- [IPMI] lan and SOL parameters (see ipmiutil lan or ilan), and
- [OS] For Linux, edit grub.conf, inittab, and securetty parameters.
Be sure that the baud rate matches in all of the above places. See the
ipmiutil UserGuide section 4.8 for details.
OPTIONS
-a Activate the SOL Console session, and enter console mode. Use
the escape sequence (’~.’) to exit the session.
-c ’^’ Set the escape Character to ’^’, or another ANSI character.
This changes the default two-character escape sequence (’~.’) to
the specified single escape character, which will end the SOL
session.
-d Deactivate the SOL Console session. Use this if the previous
session was aborted abnormally and starting a new session gives
an error.
-e Turn Encryption off in negotiation when activating a session.
By default, encryption is on for Serial-Over-LAN console ses-
sions.
-l Use Legacy BIOS mapping for Enter key (CR+LF) instead of just
LF. This is needed for BIOS Setup menus and DOS, but causes an
extra LF to occur in Linux. So, only use this option if doing
BIOS or DOS changes. This should be seldom be needed since now
the default is to automatically detect these menus with colored
backgrounds and change the mapping.
-i input_file
Use this file as an input script. The input_file will be read
after the session is established. This can be used to automate
certain tasks. The input_file is read one line at a time. If
the input_file does not have an escape character (~) to end the
session, then the input is returned to the keyboard when the
file ends.
-o output_file
Use a Trace log. The output_file is created and all SOL screen
output is written to the file, including VT100 escape sequences.
If the output_file exists, the output is appended to it. This
can be used to log what the user has done in an SOL session.
-r Use Raw terminal I/O instead of custom VT100 to ANSI translation
(in Windows). Use this option if the server is configured in
BIOS and BMC for ANSI and the utility is being invoked from Win-
dows.
-s NNN For a slow link with high latency, this adds a delay of NNN
microseconds between sending and receiving SOL packets. The
default is 100 microseconds.
-w (Windows only) Do not use the Windows Console buffer, but use
Windows stdio instead. This does not handle cursor positioning
correctly in some cases, however.
-v log_file
Causes debug messages to be displayed to the specified debug
log_file. The default log_file is isoldbg.log in the current
directory.
-x Causes debug messages to be displayed to the debug log file.
-z Causes more verbose debug messages to be displayed to the debug
log file.
-N nodename
Nodename or IP address of the remote target system. If a node-
name is specified, IPMI LAN interface is used. Otherwise the
local system management interface is used.
-U rmt_user
Remote username for the nodename given. The default is a null
username.
-P/-R rmt_pswd
Remote password for the nodename given. The default is a null
password.
-E Use the remote password from Environment variable IPMI_PASSWORD.
-F drv_t
Force the driver type to one of the followng: imb, va, open,
gnu, landesk, lan, lan2, lan2i, kcs, smb. Note that lan2i means
lan2 with intelplus. The default is to detect any supported
driver type and use it.
-J Use the specified LanPlus cipher suite (0 thru 17):
0=none/none/none, 1=sha1/none/none, 2=sha1/sha1/none,
3=sha1/sha1/cbc128, 4=sha1/sha1/xrc4_128, 5=sha1/sha1/xrc4_40,
6=md5/none/none, ... 14=md5/md5/xrc4_40. Default is 3.
-T Use a specified IPMI LAN Authentication Type: 0=None, 1=MD2,
2=MD5, 4=Straight Password, 5=OEM.
-V Use a specified IPMI LAN privilege level. 1=Callback level,
2=User level, 3=Operator level, 4=Administrator level (default),
5=OEM level.
-Y Yes, do prompt the user for the IPMI LAN remote password.
Alternatives for the password are -E or -P.
EXAMPLES
ipmiutil sol -a -N nodename -U username -P password
Starts an SOL console session to the nodename. Detect the lan proto-
col.
ipmiutil sol -a -N nodename -U username -P password -Flan2
Starts an SOL console session to the nodename. Force lan protocol to
2.0.
SEE ALSO
ipmiutil(8) ialarms(8) iconfig(8) icmd(8) idiscover(8) ievents(8)
ifru(8) igetevent(8) ihealth(8) ilan(8) ireset(8) isel(8) isensor(8)
iserial(8) iwdt(8)
WARNINGS
See http://ipmiutil.sourceforge.net/ for the latest version of ipmiutil
and any bug fix list.
--------------------------------------
3.16 IWDT (ipmiutil wdt)
IWDT(8) IWDT(8)
NAME
ipmiutil_wdt- display and set WatchDog Timer parameters
SYNOPSIS
ipmiutil wdt [-acdelrtx -N node -P/-R pswd -U user -EFJTVY]
DESCRIPTION
ipmiutil wdt is a program that uses IPMI commands to display and set
WatchDog Timer parameters.
This utility can use either any available IPMI driver, or direct user-
space IOs, or the IPMI LAN interface if -N.
This utility is an example of how to access the IPMI watchdog parame-
ters directly, which allows changing the timer configuration.
There is an init script provided with ipmiutil to automate the task of
managing the watchdog timer in user-space.
# chkconfig --add ipmiutil_wdt (skip this if no chkconfig)
# /etc/init.d/ipmiutil_wdt start
This sets the watchdog timer to reset the system if the wdt is not
restarted within 90 seconds. It creates an /etc/cron.d/wdt file to
restart wdt every 60 seconds. See also ipmiutil UserGuide section 4.4
for more information.
OPTIONS
Command line options are described below.
-a N Set watchdog event Action to N. Values: 0 = No action, 1 = Hard
Reset(default), 2 = Power down, 3 = Power cycle.
-c Show watchdog output in a canonical format, with a default
delimiter of '|'.
-d Disables the watchdog timer.
-e Enables the watchdog timer. The timer is not actually started,
however, until the timer is reset. The pre-timeout action is
not enabled.
-l Set the watchdog dontLog bit to not log watchdog events in the
SEL.
-p N Set watchdog Pretimeout event action to N. Values: 0 = No
action(default), 1 = SMI, 2 = NMI, 3 = Messaging Interrupt. If
this is set to an action other than 0, the pretimeout will also
be set to 90% of the timeout. However, if the timeout is less
than 20 seconds, the pretimeout will not be enabled.
-q S Set watchdog pretimeout value to S seconds, rather than 90% of
the timeout as in -p. The pretimeout value must be >= 5 and at
least 5 seconds less than the timeout value.
-r Resets the watchdog timer. This should be done every N seconds
if the timer is running to prevent the watchdog action (usually
a system reset) from occurring.
-tN Set the watchdog Timeout to N seconds. The default is 120 sec-
onds (2 minutes).
-x Causes extra debug messages to be displayed.
-N nodename
Nodename or IP address of the remote target system. If a node-
name is specified, IPMI LAN interface is used. Otherwise the
local system management interface is used.
-P/-R rmt_pswd
Remote password for the nodename given. The default is a null
password.
-U rmt_user
Remote username for the nodename given. The default is a null
username.
-E Use the remote password from Environment variable IPMI_PASSWORD.
-F drv_t
Force the driver type to one of the followng: imb, va, open,
gnu, landesk, lan, lan2, lan2i, kcs, smb. Note that lan2i means
lan2 with intelplus. The default is to detect any available
driver type and use it.
-J Use the specified LanPlus cipher suite (0 thru 17):
0=none/none/none, 1=sha1/none/none, 2=sha1/sha1/none,
3=sha1/sha1/cbc128, 4=sha1/sha1/xrc4_128, 5=sha1/sha1/xrc4_40,
6=md5/none/none, ... 14=md5/md5/xrc4_40. Default is 3.
-T Use a specified IPMI LAN Authentication Type: 0=None, 1=MD2,
2=MD5, 4=Straight Password, 5=OEM.
-V Use a specified IPMI LAN privilege level. 1=Callback level,
2=User level, 3=Operator level, 4=Administrator level (default),
5=OEM level.
-Y Yes, do prompt the user for the IPMI LAN remote password.
Alternatives for the password are -E or -P.
SEE ALSO
ialarms(8) iconfig(8) icmd(8) idiscover(8) ievents(8) ifirewall(8)
ifru(8) ifruset(8) ifwum(8) igetevent(8) ihealth(8) ihpm(8) ilan(8)
ipicmg(8) ireset(8) isel(8) isensor(8) iserial(8) isol(8) isunoem(8)
iwdt(8) ipmiutil(8) ipmi_port(8)
WARNINGS
See http://ipmiutil.sourceforge.net/ for the latest version of ipmiutil
and any bug fix list.
--------------------------------------
3.17 IFRUSET (ifruset)
IFRUSET(8) IFRUSET(8)
NAME
ifruset - show/set Field Replacable Unit configuration data
SYNOPSIS
ifruset [-bcimx -unpvsafo -N node -U user -P/-R pswd -EFJTVY]
DESCRIPTION
ifruset is a program that uses IPMI commands to show FRU configuration
data and optionally write any Product area fields into the FRU data.
Setting the FRU Product area fields is a function that might be done by
a manufacturer or system integrator. This utility can use either the
/dev/ipmi0 driver from OpenIPMI, the /dev/imb driver from Intel, the
/dev/ipmikcs driver from valinux, direct user-space IOs, or the IPMI
LAN interface if -N.
This program is not built or installed by default. Integrators who
wish to use it should build ipmiutil from source, then do ’cd util;
make ifruset’.
OPTIONS
Command line options are described below.
-u manuf
This option specifies a product manufacturer string to be writ-
ten to the baseboard FRU Product area field 0. This field can
be any string up to 20 characters. The default is to not modify
this FRU field.
-n name
This option specifies a product name string to be written to the
baseboard FRU Product area field 1. This field can be any
string up to 20 characters. The default is to not modify this
FRU field.
-p partnum
This option specifies a product part number string to be written
to the baseboard FRU Product area field 2. This field can be
any string up to 20 characters. The default is to not modify
this FRU field.
-v prod_ver
This option specifies a product version number string to be
written to the baseboard FRU Product area field 3. The version
number can be any string up to 20 characters. The default is to
not modify this FRU field.
-s serial_num
This option specifies a serial number string to be written to
the baseboard FRU Product area field 4. The serial number can
be any string up to 20 characters. The default is to not modify
this FRU field.
-a asset_string
This option specifies an asset tag string to be written to the
baseboard FRU Product area field 5. The asset tag length is
limited by the existing FRU Product data, but is usually allowed
up to 20 characters. The default is to not modify this FRU
field.
-f fruid
This option specifies a product FRU file ID string to be written
to the baseboard FRU Product area field 6. This field can be
any string up to 20 characters.
-o oem This option specifies a product OEM field string to be written
to the baseboard FRU Product area field 7. This field can be
any string up to 20 characters.
-b Only show the Baseboard FRU data. The default behavior is to
also scan for any SDR FRU data or DIMM SPD data referenced by
the SDRs.
-c Show FRU output in a canonical format, with a default delimiter
of '|'.
-i 00 This option specifies a specific FRU ID to show. The input
value should be in hex (0b, 1a, etc.), as shown from the sensor
SDR output. By default, all FRU IDs that are specified in the
FRU locator SDRs are shown.
-m 002000
Show FRU for a specific MC (e.g. bus 00, sa 20, lun 00). This
could be used for PICMG or ATCA blade systems. The trailing
character, if present, indicates SMI addressing if ’s’, or IPMB
addressing if ’i’ or not present.
-x Causes eXtra debug messages to be displayed.
-N nodename
Nodename or IP address of the remote target system. If a node-
name is specified, IPMI LAN interface is used. Otherwise the
local system management interface is used.
-U rmt_user
Remote username for the nodename given. The default is a null
username.
-P/-R rmt_pswd
Remote password for the nodename given. The default is a null
password.
-E Use the remote password from Environment variable IPMI_PASSWORD.
-F drv_t
Force the driver type to one of the followng: imb, va, open,
gnu, landesk, lan, lan2, lan2i, kcs, smb. Note that lan2i means
lan2 with intelplus. The default is to detect any available
driver type and use it.
-J Use the specified LanPlus cipher suite (0 thru 17):
0=none/none/none, 1=sha1/none/none, 2=sha1/sha1/none,
3=sha1/sha1/cbc128, 4=sha1/sha1/xrc4_128, 5=sha1/sha1/xrc4_40,
6=md5/none/none, ... 14=md5/md5/xrc4_40. Default is 3.
-T Use a specified IPMI LAN Authentication Type: 0=None, 1=MD2,
2=MD5, 4=Straight Password, 5=OEM.
-V Use a specified IPMI LAN privilege level. 1=Callback level,
2=User level, 3=Operator level, 4=Administrator level (default),
5=OEM level.
-Y Yes, do prompt the user for the IPMI LAN remote password.
Alternatives for the password are -E or -P.
SEE ALSO
ipmiutil(8) ialarms(8) iconfig(8) icmd(8) idiscover(8) ievents(8)
igetevent(8) ihealth(8) ilan(8) ireset(8) isel(8) isensor(8) iserial(8)
isol(8) iwdt(8)
WARNINGS
See http://ipmiutil.sourceforge.net/ for the latest version of ipmiutil
and any bug fix list.
--------------------------------------
3.18 IPMI_PORT (ipmi_port)
IPMI_PORT(8) IPMI_PORT(8)
NAME
ipmi_port - a daemon to bind RMCP port 623 to prevent portmap from
using it
SYNOPSIS
ipmi_port [-bx]
DESCRIPTION
This ipmi_port service starts and binds port 623, then sleeps forever,
so that the portmap service will not try to reuse port 623, which it
otherwise might try to do. Since the IPMI firmware snoops the NIC
channel and grabs any traffic destined for RMCP port 623, any applica-
tion in the OS which tried to use port 623 would fail.
OPTIONS
Command line options are described below.
-b Background mode. Convert to a daemon and run in background.
Without specifying this option, ipmi_port will run in fore-
ground.
-x Causes eXtra debug messages to be displayed.
SEE ALSO
ipmiutil(8) ialarms(8) iconfig(8) idiscover(8) ievents(8) ifru(8)
igetevent(8) ihealth(8) ilan(8) ireset(8) isel(8) isensor(8) iserial(8)
isol(8) iwdt(8)
WARNINGS
See http://ipmiutil.sourceforge.net/ for the latest version of ipmiutil
and any bug fix list.
--------------------------------------
3.19 IPICMG (ipmiutil picmg)
IPICMG(8) IPICMG(8)
NAME
ipmiutil_picmg - send specific PICMG extended IPMI commands
SYNOPSIS
ipmiutil picmg [-mixNUPREFJTVY] parameters
DESCRIPTION
This ipmiutil picmg subcommand sends specific PICMG/ATCA extended IPMI
commands to the firmware.
This utility can use either the /dev/ipmi0 driver from OpenIPMI, the
/dev/imb driver from Intel, the /dev/ipmikcs driver from valinux,
direct user-space IOs, or the IPMI LAN interface if -N.
OPTIONS
Command line options are described below.
-i 00 This option specifies a specific FRU ID to show. The input
value should be in hex (0b, 1a, etc.), as shown from the sensor
SDR output. The default FRU ID is zero (0).
-m 002000
Show FRU for a specific MC (e.g. bus 00, sa 20, lun 00). This
could be used for PICMG or ATCA blade systems. The trailing
character, if present, indicates SMI addressing if ’s’, or IPMB
addressing if ’i’ or not present.
-x Causes extra debug messages to be displayed.
-N nodename
Nodename or IP address of the remote target system. If a node-
name is specified, IPMI LAN interface is used. Otherwise the
local system management interface is used.
-U rmt_user
Remote username for the nodename given. The default is a null
username.
-P/-R rmt_pswd
Remote password for the nodename given. The default is a null
password.
-E Use the remote password from Environment variable IPMI_PASSWORD.
-F drv_t
Force the driver type to one of the followng: imb, va, open,
gnu, landesk, lan, lan2, lan2i, kcs, smb. Note that lan2i means
lan2 with intelplus. The default is to detect any available
driver type and use it.
-J Use the specified LanPlus cipher suite (0 thru 17):
0=none/none/none, 1=sha1/none/none, 2=sha1/sha1/none,
3=sha1/sha1/cbc128, 4=sha1/sha1/xrc4_128, 5=sha1/sha1/xrc4_40,
6=md5/none/none, ... 14=md5/md5/xrc4_40. Default is 3.
-T Use a specified IPMI LAN Authentication Type: 0=None, 1=MD2,
2=MD5, 4=Straight Password, 5=OEM.
-V Use a specified IPMI LAN privilege level. 1=Callback level,
2=User level, 3=Operator level, 4=Administrator level (default),
5=OEM level.
-Y Yes, do prompt the user for the IPMI LAN remote password.
Alternatives for the password are -E or -P.
PARAMETERS
picmg parameters
properties
Get PICMG properties may be used to obtain and print
Extension major version information, PICMG identifier,
FRU Device ID and Max FRU Device ID.
addrinfo
Get address information. This command may return infor-
mation on the Hardware address, IPMB-0 Address, FRU ID,
Site/Entity ID, and Site/Entity Type.
frucontrol fru id options
Set various control options:
0x00 - Cold Reset
0x01 - Warm Reset
0x02 - Graceful Reboot
0x03 - Issue Diagnostic Interrupt
0x04 - Quiesce [AMC only]
0x05-0xFF - Cold Reset
activate fru id
Activate the specified FRU.
deactivate fru id
Deactivate the specified FRU.
policy get fru id
Get FRU activation policy.
policy set fru id lockmask lock
Set FRU activation policy. lockmask is 1 or 0 to indi-
cate action on the deactivation or activation locked bit
respectively. lock is 1 or 0 to set/clear locked bit.
portstate set|getall|getgranted|getdenied parameters
Get or set various port states. See usage for parameter
details.
EXAMPLES
ipmiutil picmg properties
Gets PICMG properties from the default target address (slave address
0x20).
ipmiutil picmg -N 192.168.1.1 -U root -P pswd addrinfo
Gets PICMG Address Information from the specified IP address.
SEE ALSO
ipmiutil(8) ialarms(8) iconfig(8) idiscover(8) ievents(8) ifru(8)
igetevent(8) ihealth(8) ilan(8) ireset(8) isel(8) isensor(8) iserial(8)
isol(8) iwdt(8)
WARNINGS
See http://ipmiutil.sourceforge.net/ for the latest version of ipmiutil
and any bug fix list.
--------------------------------------
3.20 IFIREWALL (ipmiutil firewall)
IFIREWALL(8) IFIREWALL(8)
NAME
ipmiutil_firewall - configure the IPMI firmware firewall functions
SYNOPSIS
ipmiutil firewall [-mxNUPREFJTVY] parameters
DESCRIPTION
This ipmiutil firewall command supports the IPMI Firmware Firewall
capability. It may be used to add or remove security-based restric-
tions on certain commands/command sub-functions or to list the current
firmware firewall restrictions set on any commands. For each firmware
firewall command listed below, parameters may be included to cause the
command to be executed with increasing granularity on a specific LUN,
for a specific NetFn, for a specific IPMI Command, and finally for a
specific command’s sub-function. See Appendix H in the IPMI 2.0 Speci-
fication for a listing of any sub-function numbers that may be associ-
ated with a particular command.
This utility can use either the /dev/ipmi0 driver from OpenIPMI, the
/dev/imb driver from Intel, the /dev/ipmikcs driver from valinux,
direct user-space IOs, or the IPMI LAN interface if -N.
OPTIONS
Command line options are described below.
-m 002000
Show FRU for a specific MC (e.g. bus 00, sa 20, lun 00). This
could be used for PICMG or ATCA blade systems. The trailing
character, if present, indicates SMI addressing if ’s’, or IPMB
addressing if ’i’ or not present.
-x Causes extra debug messages to be displayed.
-N nodename
Nodename or IP address of the remote target system. If a node-
name is specified, IPMI LAN interface is used. Otherwise the
local system management interface is used.
-U rmt_user
Remote username for the nodename given. The default is a null
username.
-P/-R rmt_pswd
Remote password for the nodename given. The default is a null
password.
-E Use the remote password from Environment variable IPMI_PASSWORD.
-F drv_t
Force the driver type to one of the followng: imb, va, open,
gnu, landesk, lan, lan2, lan2i, kcs, smb. Note that lan2i means
lan2 with intelplus. The default is to detect any available
driver type and use it.
-J Use the specified LanPlus cipher suite (0 thru 17):
0=none/none/none, 1=sha1/none/none, 2=sha1/sha1/none,
3=sha1/sha1/cbc128, 4=sha1/sha1/xrc4_128, 5=sha1/sha1/xrc4_40,
6=md5/none/none, ... 14=md5/md5/xrc4_40. Default is 3.
-T Use a specified IPMI LAN Authentication Type: 0=None, 1=MD2,
2=MD5, 4=Straight Password, 5=OEM.
-V Use a specified IPMI LAN privilege level. 1=Callback level,
2=User level, 3=Operator level, 4=Administrator level (default),
5=OEM level.
-Y Yes, do prompt the user for the IPMI LAN remote password.
Alternatives for the password are -E or -P.
PARAMETERS
Parameter syntax and dependencies are as follows:
firewall [channel H] [lun L [ netfn N [command C [subfn S]]]]
Note that if "netfn N" is specified, then "lun L" must also be speci-
fied; if "command C" is specified, then "netfn N" (and therefore "lun
L") must also be specified, and so forth.
"channel H" is an optional and standalone parameter. If not specified,
the requested operation will be performed on the current channel. Note
that command support may vary from channel to channel.
Firmware firewall commands:
info [(Parms as described above)]
List firmware firewall information for the specified LUN,
NetFn, and Command (if supplied) on the current or speci-
fied channel. Listed information includes the support,
configurable, and enabled bits for the specified command
or commands.
Some usage examples:
info [channel H] [lun L]
This command will list firmware firewall informa-
tion for all NetFns for the specified LUN on
either the current or the specified channel.
info [channel H] [lun L [ netfn N ]
This command will print out all command informa-
tion for a single LUN/NetFn pair.
info [channel H] [lun L [ netfn N [command C] ]]
This prints out detailed, human-readable informa-
tion showing the support, configurable, and
enabled bits for the specified command on the
specified LUN/NetFn pair. Information will be
printed about each of the command subfunctions.
info [channel H] [lun L [ netfn N [command C [subfn S]]]]
Print out information for a specific sub-func-
tion.
enable [(Parms as described above)]
This command is used to enable commands for a given
NetFn/LUN combination on the specified channel.
disable [(Parms as described above)] [force]
This command is used to disable commands for a given
NetFn/LUN combination on the specified channel. Great
care should be taken if using the "force" option so as
not to disable the "Set Command Enables" command.
reset [(Parms as described above)]
This command may be used to reset the firmware firewall
back to a state where all commands and command sub-func-
tions are enabled.
SEE ALSO
ipmiutil(8) ialarms(8) iconfig(8) idiscover(8) ievents(8) ifru(8)
igetevent(8) ihealth(8) ilan(8) ireset(8) isel(8) isensor(8) iserial(8)
isol(8) iwdt(8)
WARNINGS
See http://ipmiutil.sourceforge.net/ for the latest version of ipmiutil
and any bug fix list.
--------------------------------------
3.21 IFWUM (ipmiutil fwum)
IFWUM(8) IFWUM(8)
NAME
ipmiutil_fwum - Update IPMC using Kontron OEM Firmware Update Manager
SYNOPSIS
ipmiutil fwum [-mixNUPREFJTVY] parameters
DESCRIPTION
This ipmiutil fwum subcommand updates IPMC firmware using Kontron OEM
Firmware Update Manager.
This utility can use either the /dev/ipmi0 driver from OpenIPMI, the
/dev/imb driver from Intel, the /dev/ipmikcs driver from valinux,
direct user-space IOs, or the IPMI LAN interface if -N.
OPTIONS
Command line options are described below.
-i 00 This option specifies a specific FRU ID to show. The input
value should be in hex (0b, 1a, etc.), as shown from the sensor
SDR output. The default FRU ID is zero (0).
-m 002000
Show FRU for a specific MC (e.g. bus 00, sa 20, lun 00). This
could be used for PICMG or ATCA blade systems. The trailing
character, if present, indicates SMI addressing if ’s’, or IPMB
addressing if ’i’ or not present.
-x Causes extra debug messages to be displayed.
-N nodename
Nodename or IP address of the remote target system. If a node-
name is specified, IPMI LAN interface is used. Otherwise the
local system management interface is used.
-U rmt_user
Remote username for the nodename given. The default is a null
username.
-P/-R rmt_pswd
Remote password for the nodename given. The default is a null
password.
-E Use the remote password from Environment variable IPMI_PASSWORD.
-F drv_t
Force the driver type to one of the followng: imb, va, open,
gnu, landesk, lan, lan2, lan2i, kcs, smb. Note that lan2i means
lan2 with intelplus. The default is to detect any available
driver type and use it.
-J Use the specified LanPlus cipher suite (0 thru 17):
0=none/none/none, 1=sha1/none/none, 2=sha1/sha1/none,
3=sha1/sha1/cbc128, 4=sha1/sha1/xrc4_128, 5=sha1/sha1/xrc4_40,
6=md5/none/none, ... 14=md5/md5/xrc4_40. Default is 3.
-T Use a specified IPMI LAN Authentication Type: 0=None, 1=MD2,
2=MD5, 4=Straight Password, 5=OEM.
-V Use a specified IPMI LAN privilege level. 1=Callback level,
2=User level, 3=Operator level, 4=Administrator level (default),
5=OEM level.
-Y Yes, do prompt the user for the IPMI LAN remote password.
Alternatives for the password are -E or -P.
PARAMETERS
fwum parameters
info
Show information about current firmware.
status
Show status of each firmware bank present in the hard-
ware.
download filename
Download the specified firmware image.
upgrade [filename]
Install firmware upgrade. If the filename is specified,
the file is downloaded first, otherwise the last firmware
downloaded is used.
rollback
Ask IPMC to rollback to previous version.
tracelog
Show the firmware upgrade log.
EXAMPLES
ipmiutil fwum info
Gets Firmware information
ipmiutil fwum -N 192.168.1.1 -U root -P pswd download firmware.img
Downloads the firmware version contained in firmware.img over IPMI LAN.
SEE ALSO
ipmiutil(8) ialarms(8) iconfig(8) idiscover(8) ievents(8) ifru(8)
igetevent(8) ihealth(8) ilan(8) ireset(8) isel(8) isensor(8) iserial(8)
isol(8) iwdt(8)
WARNINGS
See http://ipmiutil.sourceforge.net/ for the latest version of ipmiutil
and any bug fix list.
--------------------------------------
3.22 IHPM (ipmiutil hpm)
IHPM(8) IHPM(8)
NAME
ipmiutil_hpm - PICMG HPM.1 Upgrade Agent
SYNOPSIS
ipmiutil hpm [-mxNUPREFJTVY] parameters
DESCRIPTION
This ipmiutil hpm subcommand updates HPM components using PICMG HPM.1
file
This utility can use either the /dev/ipmi0 driver from OpenIPMI, the
/dev/imb driver from Intel, the /dev/ipmikcs driver from valinux,
direct user-space IOs, or the IPMI LAN interface if -N.
OPTIONS
Command line options are described below.
-m 002000
Target a specific MC (e.g. bus 00, sa 20, lun 00). This could
be used for PICMG or ATCA blade systems. The trailing charac-
ter, if present, indicates SMI addressing if ’s’, or IPMB
addressing if ’i’ or not present.
-x Causes extra debug messages to be displayed.
-N nodename
Nodename or IP address of the remote target system. If a node-
name is specified, IPMI LAN interface is used. Otherwise the
local system management interface is used.
-U rmt_user
Remote username for the nodename given. The default is a null
username.
-P/-R rmt_pswd
Remote password for the nodename given. The default is a null
password.
-E Use the remote password from Environment variable IPMI_PASSWORD.
-F drv_t
Force the driver type to one of the followng: imb, va, open,
gnu, landesk, lan, lan2, lan2i, kcs, smb. Note that lan2i means
lan2 with intelplus. The default is to detect any available
driver type and use it.
-J Use the specified LanPlus cipher suite (0 thru 17):
0=none/none/none, 1=sha1/none/none, 2=sha1/sha1/none,
3=sha1/sha1/cbc128, 4=sha1/sha1/xrc4_128, 5=sha1/sha1/xrc4_40,
6=md5/none/none, ... 14=md5/md5/xrc4_40. Default is 3.
-T Use a specified IPMI LAN Authentication Type: 0=None, 1=MD2,
2=MD5, 4=Straight Password, 5=OEM.
-V Use a specified IPMI LAN privilege level. 1=Callback level,
2=User level, 3=Operator level, 4=Administrator level (default),
5=OEM level.
-Y Yes, do prompt the user for the IPMI LAN remote password.
Alternatives for the password are -E or -P.
PARAMETERS
hpm parameters
check
Check the target information.
check filename
Display both the existing target version and image ver-
sion on the screen.
download filename
Download specified firmware.
upgrade filename [all] [component x] [activate]
Upgrade the firmware using a valid HPM.1 image file. If
no option is specified, the firmware versions are checked
first and the firmware is upgraded only if they are dif-
ferent.
all
Upgrade all components even if the firmware ver-
sions are the same (use this only after using
"check" command).
component x
Upgrade only given component from the given file.
component 0 - BOOT
component 1 - RTK
activate
Activate new firmware right away.
activate
Activate the newly uploaded firmware.
targetcap
Get the target upgrade capabilities.
compprop id opt
Get the specified component properties. Valid component
id: 0-7. Opt can be one of following:
0 - General properties
1 - Current firmware version
2 - Description string
3 - Rollback firmware version
4 - Deferred firmware version
abort
Abort the on-going firmware upgrade.
upgstatus
Show status of the last long duration command.
rollback
Perform manual rollback on the IPM Controller firmware.
rollbackstatus
Show the rollback status.
selftestresult
Query the self test results.
EXAMPLES
ipmiutil hpm targetcap
Gets HPM target capabilities
ipmiutil hpm -N 192.168.1.1 -U root -P pswd download firmware.img
Downloads the HPM firmware version contained in firmware.img over IPMI
LAN.
SEE ALSO
ipmiutil(8) ialarms(8) iconfig(8) idiscover(8) ievents(8) ifru(8)
igetevent(8) ihealth(8) ilan(8) ireset(8) isel(8) isensor(8) iserial(8)
isol(8) iwdt(8)
WARNINGS
See http://ipmiutil.sourceforge.net/ for the latest version of ipmiutil
and any bug fix list.
--------------------------------------
3.23 ISUNOEM (ipmiutil sunoem)
ISUNOEM(8) ISUNOEM(8)
NAME
ipmiutil_sunoem - OEM commands for Sun servers
SYNOPSIS
ipmiutil sunoem [-mx -NPRUEFJTVY] commands
DESCRIPTION
ipmiutil sunoem commands is a program that uses Sun OEM IPMI commands
to perform platform-specific functions.
OPTIONS
-m 002000
Show FRU for a specific MC (e.g. bus 00, sa 20, lun 00). This
could be used for PICMG or ATCA blade systems. The trailing
character, if present, indicates SMI addressing if ’s’, or IPMB
addressing if ’i’ or not present.
-x Causes extra debug messages to be displayed.
-N nodename
Nodename or IP address of the remote target system. If a node-
name is specified, IPMI LAN interface is used. Otherwise the
local system management interface is used.
-P/-R rmt_pswd
Remote password for the nodename given. The default is a null
password.
-U rmt_user
Remote username for the nodename given. The default is a null
username.
-E Use the remote password from Environment variable IPMI_PASSWORD.
-F drv_t
Force the driver type to one of the followng: imb, va, open,
gnu, landesk, lan, lan2, lan2i, kcs, smb. Note that lan2i means
lan2 with intelplus. The default is to detect any available
driver type and use it.
-J Use the specified LanPlus cipher suite (0 thru 17):
0=none/none/none, 1=sha1/none/none, 2=sha1/sha1/none,
3=sha1/sha1/cbc128, 4=sha1/sha1/xrc4_128, 5=sha1/sha1/xrc4_40,
6=md5/none/none, ... 14=md5/md5/xrc4_40. Default is 3.
-T Use a specified IPMI LAN Authentication Type: 0=None, 1=MD2,
2=MD5, 4=Straight Password, 5=OEM.
-V Use a specified IPMI LAN privilege level. 1=Callback level,
2=User level, 3=Operator level, 4=Administrator level (default),
5=OEM level.
-Y Yes, do prompt the user for the IPMI LAN remote password.
Alternatives for the password are -E or -P.
COMMANDS
led
These commands provide a way to get and set the status of LEDs
on a Sun Microsystems server. Use ’sdr list generic’ to get a
list of devices that are controllable LEDs. The ledtype parame-
ter is optional and not necessary to provide on the command line
unless it is required by hardware.
get sensorid [ledtype]
Get status of a particular LED described by a Generic
Device Locator record in the SDR. A sensorid of all will
get the status of all available LEDS.
set sensorid ledmode [ledtype]
Set status of a particular LED described by a Generic
Device Locator record in the SDR. A sensorid of all will
set the status of all available LEDS to the specified
ledmode and ledtype.
LED Mode is required for set operations:
OFF Off
ON Steady On
STANDBY 100ms on 2900ms off blink rate
SLOW 1HZ blink rate
FAST 4HZ blink rate
LED Type is optional:
OK2RM Ok to Remove
SERVICE Service Required
ACT Activity
LOCATE Locate
fan speed 0-100
Set system fan speed (PWM duty cycle).
sshkey
set userid keyfile
This command will allow you to specify an SSH key
to use for a particular user on the Service Pro-
cessor. This key will be used for CLI logins to
the SP and not for IPMI sessions. View available
users and their userids with the ’user list’ com-
mand.
del userid
This command will delete the SSH key for a speci-
fied userid.
SEE ALSO
ipmiutil(8) ialarms(8) iconfig(8) icmd(8) idiscover(8) ievents(8)
ifru(8) igetevent(8) ihealth(8) ilan(8) ireset(8) isel(8) isensor(8)
iserial(8) isol(8)
WARNINGS
See http://ipmiutil.sourceforge.net/ for the latest version of ipmiutil
and any bug fix list.
--------------------------------------
3.24 IEKANALYZER (ipmiutil ekanalyzer)
IEKANALYZER(8) IEKANALYZER(8)
NAME
ipmiutil_ekanalyzer - run FRU-Ekeying analyzer with FRU files
SYNOPSIS
ipmiutil ekanalyzer [-mx -NPRUEFJTVY] commands (deprecated, see ifru
instead)
DESCRIPTION
ipmiutil ekanalyzer is a program that analyzes FRU Ekeying information
from files saved from PICMG IPMI systems.
ekanalyzer command xx=filename1 xx=filename2 [rc=filename3]
NOTE: This command can support a maximum of 8 files per command line
filename1
binary file that stores FRU data of a Carrier or an AMC module
filename2
binary file that stores FRU data of an AMC module. These binary
files can be generated from this command:
ipmiutil fru -i id -d filename
filename3
configuration file used for configuring On-Carrier Device ID or
OEM GUID. This file is optional.
xx indicates the type of the file. It can take the following value:
oc : On-Carrier device
a1 : AMC slot A1
a2 : AMC slot A2
a3 : AMC slot A3
a4 : AMC slot A4
b1 : AMC slot B1
b2 : AMC slot B2
b3 : AMC slot B3
b4 : AMC slot B4
sm : Shelf Manager
OPTIONS
-m 002000
Show FRU for a specific MC (e.g. bus 00, sa 20, lun 00). This
could be used for PICMG or ATCA blade systems. The trailing
character, if present, indicates SMI addressing if ’s’, or IPMB
addressing if ’i’ or not present.
-x Causes extra debug messages to be displayed.
-N nodename
Nodename or IP address of the remote target system. If a node-
name is specified, IPMI LAN interface is used. Otherwise the
local system management interface is used.
-P/-R rmt_pswd
Remote password for the nodename given. The default is a null
password.
-U rmt_user
Remote username for the nodename given. The default is a null
username.
-E Use the remote password from Environment variable IPMI_PASSWORD.
-F drv_t
Force the driver type to one of the followng: imb, va, open,
gnu, landesk, lan, lan2, lan2i, kcs, smb. Note that lan2i means
lan2 with intelplus. The default is to detect any available
driver type and use it.
-J Use the specified LanPlus cipher suite (0 thru 17):
0=none/none/none, 1=sha1/none/none, 2=sha1/sha1/none,
3=sha1/sha1/cbc128, 4=sha1/sha1/xrc4_128, 5=sha1/sha1/xrc4_40,
6=md5/none/none, ... 14=md5/md5/xrc4_40. Default is 3.
-T Use a specified IPMI LAN Authentication Type: 0=None, 1=MD2,
2=MD5, 4=Straight Password, 5=OEM.
-V Use a specified IPMI LAN privilege level. 1=Callback level,
2=User level, 3=Operator level, 4=Administrator level (default),
5=OEM level.
-Y Yes, do prompt the user for the IPMI LAN remote password.
Alternatives for the password are -E or -P.
COMMANDS
The available commands for ekanalyzer are:
print [carrier | power | all]
carrier (default) oc=filename1 oc=filename2 ...
Display point to point physical connectivity between carriers
and AMC modules.
Example:
# ipmiutil ekanalyzer print carrier oc=fru oc=carrierfru
From Carrier file: fru
Number of AMC bays supported by Carrier: 2
AMC slot B1 topology:
Port 0 =====> On Carrier Device ID 0, Port 16
Port 1 =====> On Carrier Device ID 0, Port 12
Port 2 =====> AMC slot B2, Port 2
AMC slot B2 topology:
Port 0 =====> On Carrier Device ID 0, Port 3
Port 2 =====> AMC slot B1, Port 2
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
From Carrier file: carrierfru
On Carrier Device ID 0 topology:
Port 0 =====> AMC slot B1, Port 4
Port 1 =====> AMC slot B1, Port 5
Port 2 =====> AMC slot B2, Port 6
Port 3 =====> AMC slot B2, Port 7
AMC slot B1 topology:
Port 0 =====> AMC slot B2, Port 0
AMC slot B1 topology:
Port 1 =====> AMC slot B2, Port 1
Number of AMC bays supported by Carrier: 2
power xx=filename1 xx=filename2 ...
Display power supply information between carrier and AMC
modules.
all xx=filename xx=filename ...
Display both physical connectivity and power supply of each car-
rier and AMC modules.
frushow xx=filename
Convert a binary FRU file into human readable text format. Use -v
option to get more display information.
summary [match | unmatch | all]
match (default) xx=filename xx=filename ...
Display only matched results of Ekeying match between an On-Car-
rier device and an AMC module or between 2 AMC modules. Example:
# ipmiutil ekanalyzer summary match oc=fru b1=amcB1 a2=amcA2
On-Carrier Device vs AMC slot B1
AMC slot B1 port 0 ==> On-Carrier Device 0 port 16
Matching Result
- From On-Carrier Device ID 0
-Channel ID 11 || Lane 0: enable
-Link Type: AMC.2 Ethernet
-Link Type extension: 1000BASE-BX (SerDES Gigabit) Ethernet
link
-Link Group ID: 0 || Link Asym. Match: exact match
- To AMC slot B1
-Channel ID 0 || Lane 0: enable
-Link Type: AMC.2 Ethernet
-Link Type extension: 1000BASE-BX (SerDES Gigabit) Ethernet
link
-Link Group ID: 0 || Link Asym. Match: exact match
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
AMC slot B1 port 1 ==> On-Carrier Device 0 port 12
Matching Result
- From On-Carrier Device ID 0
-Channel ID 6 || Lane 0: enable
-Link Type: AMC.2 Ethernet
-Link Type extension: 1000BASE-BX (SerDES Gigabit) Ethernet
link
-Link Group ID: 0 || Link Asym. Match: exact match
- To AMC slot B1
-Channel ID 1 || Lane 0: enable
-Link Type: AMC.2 Ethernet
-Link Type extension: 1000BASE-BX (SerDES Gigabit) Ethernet
link
-Link Group ID: 0 || Link Asym. Match: exact match
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
On-Carrier Device vs AMC slot A2
AMC slot A2 port 0 ==> On-Carrier Device 0 port 3
Matching Result
- From On-Carrier Device ID 0
-Channel ID 9 || Lane 0: enable
-Link Type: AMC.2 Ethernet
-Link Type extension: 1000BASE-BX (SerDES Gigabit) Ethernet
link
-Link Group ID: 0 || Link Asym. Match: exact match
- To AMC slot A2
-Channel ID 0 || Lane 0: enable
-Link Type: AMC.2 Ethernet
-Link Type extension: 1000BASE-BX (SerDES Gigabit) Ethernet
link
-Link Group ID: 0 || Link Asym. Match: exact match
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
AMC slot B1 vs AMC slot A2
AMC slot A2 port 2 ==> AMC slot B1 port 2
Matching Result
- From AMC slot B1
-Channel ID 2 || Lane 0: enable
-Link Type: AMC.3 Storage
-Link Type extension: Serial Attached SCSI (SAS/SATA)
-Link Group ID: 0 || Link Asym. Match: FC or SAS interface
{exact match}
- To AMC slot A2
-Channel ID 2 || Lane 0: enable
-Link Type: AMC.3 Storage
-Link Type extension: Serial Attached SCSI (SAS/SATA)
-Link Group ID: 0 || Link Asym. Match: FC or SAS interface
{exact match}
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
unmatch xx=filename xx=filename ...
Display the unmatched results of Ekeying match between an On-
Carrier device and an AMC module or between 2 AMC modules
all xx=filename xx=filename ...
Display both matched result and unmatched results of Ekeying
match between two cards or two modules.
SEE ALSO
ialarms(8) iconfig(8) icmd(8) idiscover(8) ievents(8) ifirewall(8)
ifru(8) ifruset(8) ifwum(8) igetevent(8) ihealth(8) ihpm(8) ilan(8)
ipicmg(8) ireset(8) isel(8) isensor(8) iserial(8) isol(8) isunoem(8)
iwdt(8) ipmiutil(8) ipmi_port(8)
WARNINGS
See http://ipmiutil.sourceforge.net/ for the latest version of ipmiutil
and any bug fix list.
--------------------------------------
3.25 ITSOL (ipmiutil tsol)
ITSOL(8) ITSOL(8)
NAME
ipmiutil_tsol - Tyan IPMIv1.5 Serial-Over-LAN Console application
SYNOPSIS
ipmiutil tsol [recvip] [port=NUM] [ro|rw] [rows=NUM] [cols=NUM] [alt-
term]
DESCRIPTION
This command allows Serial-over-LAN sessions to be established with
Tyan IPMIv1.5 SMDC such as the M3289 or M3290. The default command run
with no arguments will establish default SOL session back to local IP
address. Optional arguments may be supplied in any order.
OPTIONS
<recv ipaddr>
Send receiver IP address to SMDC which it will use to send
serial traffic to. By default this detects the local IP
address and establishes two-way session. Format of ipaddr is
XX.XX.XX.XX
port Configure UDP port to receive serial traffic on. By default
this is 6230.
ro|rw Confiure SOL session as read-only or read-write. Sessions
are read-write by default.
rows Set terminal rows [default: rows=24]
cols Set terminal columns [default: cols=80]
altterm
Alternate terminal setup [default is off]
EXAMPLES
ipmiutil tsol 192.168.1.1
Starts a Tyan SOL console session to the IP address.
SEE ALSO
ipmiutil(8) ialarms(8) iconfig(8) icmd(8) idiscover(8) ievents(8)
ifru(8) igetevent(8) ihealth(8) ilan(8) ireset(8) isel(8) isensor(8)
iserial(8) iwdt(8)
WARNINGS
See http://ipmiutil.sourceforge.net/ for the latest version of ipmiutil
and any bug fix list.
--------------------------------------
3.26 IDELLOEM (ipmiutil delloem)
IDELLOEM(8) IDELLOEM(8)
NAME
ipmiutil_delloem - OEM commands for Dell servers
SYNOPSIS
ipmiutil delloem [-mx -NPRUEFJTVY] commands
DESCRIPTION
ipmiutil delloem commands is a program that uses Dell OEM IPMI commands
to perform platform-specific functions.
OPTIONS
-m 002000
Show FRU for a specific MC (e.g. bus 00, sa 20, lun 00). This
could be used for PICMG or ATCA blade systems. The trailing
character, if present, indicates SMI addressing if ’s’, or IPMB
addressing if ’i’ or not present.
-x Causes extra debug messages to be displayed.
-N nodename
Nodename or IP address of the remote target system. If a node-
name is specified, IPMI LAN interface is used. Otherwise the
local system management interface is used.
-P/-R rmt_pswd
Remote password for the nodename given. The default is a null
password.
-U rmt_user
Remote username for the nodename given. The default is a null
username.
-E Use the remote password from Environment variable IPMI_PASSWORD.
-F drv_t
Force the driver type to one of the followng: imb, va, open,
gnu, landesk, lan, lan2, lan2i, kcs, smb. Note that lan2i means
lan2 with intelplus. The default is to detect any available
driver type and use it.
-J Use the specified LanPlus cipher suite (0 thru 17):
0=none/none/none, 1=sha1/none/none, 2=sha1/sha1/none,
3=sha1/sha1/cbc128, 4=sha1/sha1/xrc4_128, 5=sha1/sha1/xrc4_40,
6=md5/none/none, ... 14=md5/md5/xrc4_40. Default is 3.
-T Use a specified IPMI LAN Authentication Type: 0=None, 1=MD2,
2=MD5, 4=Straight Password, 5=OEM.
-V Use a specified IPMI LAN privilege level. 1=Callback level,
2=User level, 3=Operator level, 4=Administrator level (default),
5=OEM level.
-Y Yes, do prompt the user for the IPMI LAN remote password.
Alternatives for the password are -E or -P.
COMMANDS
mac list
Lists the MAC address of LOMs
mac get <NIC number>
Shows the MAC address of specified LOM. 0-7 System LOM, 8-
DRAC/iDRAC.
lan set <Mode>
Sets the NIC Selection Mode (dedicated, shared,
shared with failover lom2, shared with Failover all
loms).
lan get
Returns the current NIC Selection Mode (dedicated, shared,
shared with failover lom2, shared with Failover all loms).
lan get active
Returns the current active NIC (dedicated, LOM1, LOM2, LOM3,
LOM4).
powermonitor
Shows power tracking statistics
powermonitor clear cumulativepower
Reset cumulative power reading
powermonitor clear peakpower
Reset peak power reading
powermonitor powerconsumption
Displays power consumption in <watt|btuphr>
powermonitor powerconsumptionhistory <watt|btuphr>
Displays power consumption history
powermonitor getpowerbudget
Displays power cap in <watt|btuphr>
powermonitor setpowerbudget <val> <watt|btuphr|percent>
Allows user to set the power cap in <watt|BTU/hr|percentage>
powermonitor enablepowercap
To enable set power cap
powermonitor disablepowercap
To disable set power cap
windbg start
Starts the windbg session (Cold Reset & SOL Activation)
windbg end
Ends the windbg session (SOL Deactivation)
vFlash info Card
Shows Extended SD Card information
SEE ALSO
ipmiutil(8) ialarms(8) iconfig(8) icmd(8) idiscover(8) ievents(8)
ifru(8) igetevent(8) ihealth(8) ilan(8) ireset(8) isel(8) isensor(8)
iserial(8) isol(8)
WARNINGS
See http://ipmiutil.sourceforge.net/ for the latest version of ipmiutil
and any bug fix list.
--------------------------------------
3.27 IDCMI (ipmiutil dcmi)
IDCMI(8) IDCMI(8)
NAME
ipmiutil_dcmi - handle DCMI functions
SYNOPSIS
ipmiutil dcmi [-admsx -NUPREFTVY] <function>
DESCRIPTION
This ipmiutil dcmi subcommand handles DCMI command functions according
to the DCMI specification.
This utility can use either the /dev/ipmi0 driver from OpenIPMI, the
/dev/imb driver from Intel, the /dev/ipmikcs driver from valinux,
direct user-space IOs, or the IPMI LAN interface if -N.
OPTIONS
Command line options are described below.
-a string
Set the DCMI Asset Tag to this string.
-d string
Set the DCMI MC ID to this string.
-m 002000
Target a specific MC (e.g. bus 00, sa 20, lun 00). This could
be used for PICMG or ATCA blade systems. The trailing charac-
ter, if present, indicates SMI addressing if ’s’, or IPMB
addressing if ’i’ or not present.
-s When getting info, also get the DCMI sensor information.
-x Causes extra debug messages to be displayed.
-N nodename
Nodename or IP address of the remote target system. If a node-
name is specified, IPMI LAN interface is used. Otherwise the
local system management interface is used.
-U rmt_user
Remote username for the nodename given. The default is a null
username.
-P/-R rmt_pswd
Remote password for the nodename given. The default is a null
password.
-E Use the remote password from Environment variable IPMI_PASSWORD.
-F drv_t
Force the driver type to one of the followng: imb, va, open,
gnu, landesk, lan, lan2, lan2i, kcs, smb. Note that lan2i means
lan2 with intelplus. The default is to detect any available
driver type and use it.
-J Use the specified LanPlus cipher suite (0 thru 17):
0=none/none/none, 1=sha1/none/none, 2=sha1/sha1/none,
3=sha1/sha1/cbc128, 4=sha1/sha1/xrc4_128, 5=sha1/sha1/xrc4_40,
6=md5/none/none, ... 14=md5/md5/xrc4_40. Default is 3.
-T Use a specified IPMI LAN Authentication Type: 0=None, 1=MD2,
2=MD5, 4=Straight Password, 5=OEM.
-V Use a specified IPMI LAN privilege level. 1=Callback level,
2=User level, 3=Operator level, 4=Administrator level (default),
5=OEM level.
-Y Yes, do prompt the user for the IPMI LAN remote password.
Alternatives for the password are -E or -P.
FUNCTIONS
info Get DCMI Capabilities, MC ID, and Asset Tag. This is the default
function if no function was specified.
power Get DCMI Power reading and DCMI Power limit, if supported in the
DCMI capabilties.
power set_limit
Set Power limit
power set_action <action>
Set Power limit exception action (where action = no_action |
power_off | log_sel)
power set_correction
Set Power limit correction time (in ms)
power set_sample
Set Power limit sampling period (in sec)
power activate
Activate Power limit
power deactivate
Deactivate Power limit
thermal
Get/Set DCMI Thermal parameters. This requires DCMI 1.5 sup-
port.
config Get/Set DCMI Configuration parameters. This requires DCMI 1.5
support.
help Show the help (usage) message
EXAMPLES
ipmiutil dcmi info -s
Gets DCMI information, plus DCMI sensor information
ipmiutil dcmi -N 192.168.1.1 -U root -P pswd
Gets DCMI information over IPMI LAN.
SEE ALSO
ipmiutil(8) ialarms(8) iconfig(8) idiscover(8) ievents(8) ifru(8)
igetevent(8) ihealth(8) ilan(8) ireset(8) isel(8) isensor(8) iserial(8)
isol(8) iwdt(8)
WARNINGS
See http://ipmiutil.sourceforge.net/ for the latest version of ipmiutil
and any bug fix list.
--------------------------------------
3.28 ISMCOEM (ipmiutil smcoem)
ISMCOEM(8) ISMCOEM(8)
NAME
ipmiutil_smcoem - OEM commands for SuperMicro servers
SYNOPSIS
ipmiutil smcoem [-mx -NPRUEFJTVY] commands
DESCRIPTION
ipmiutil smcoem is a function that uses SuperMicro OEM IPMI commands to
perform platform-specific functions.
OPTIONS
-m 002000
Show FRU for a specific MC (e.g. bus 00, sa 20, lun 00). This
could be used for PICMG or ATCA blade systems. The trailing
character, if present, indicates SMI addressing if ’s’, or IPMB
addressing if ’i’ or not present.
-x Causes extra debug messages to be displayed.
-N nodename
Nodename or IP address of the remote target system. If a node-
name is specified, IPMI LAN interface is used. Otherwise the
local system management interface is used.
-P/-R rmt_pswd
Remote password for the nodename given. The default is a null
password.
-U rmt_user
Remote username for the nodename given. The default is a null
username.
-E Use the remote password from Environment variable IPMI_PASSWORD.
-F drv_t
Force the driver type to one of the followng: imb, va, open,
gnu, landesk, lan, lan2, lan2i, kcs, smb. Note that lan2i means
lan2 with intelplus. The default is to detect any available
driver type and use it.
-J Use the specified LanPlus cipher suite (0 thru 17):
0=none/none/none, 1=sha1/none/none, 2=sha1/sha1/none,
3=sha1/sha1/cbc128, 4=sha1/sha1/xrc4_128, 5=sha1/sha1/xrc4_40,
6=md5/none/none, ... 14=md5/md5/xrc4_40. Default is 3.
-T Use a specified IPMI LAN Authentication Type: 0=None, 1=MD2,
2=MD5, 4=Straight Password, 5=OEM.
-V Use a specified IPMI LAN privilege level. 1=Callback level,
2=User level, 3=Operator level, 4=Administrator level (default),
5=OEM level.
-Y Yes, do prompt the user for the IPMI LAN remote password.
Alternatives for the password are -E or -P.
COMMANDS
intrusion
This command resets any chassis intrusion condition that may
have occurred.
bmcstatus [enable|disable]
This command gets or sets the BMC service status. Alone, with-
out arguments, it gets the BMC status as either enabled or dis-
abled. With an argument of either enable or disable, it will
also set the BMC status as specified.
firmware
This command gets the extra firmware version information, if
available.
lanport [dedicated|lan1|failover]
This command gets or sets the IPMI LAN interface port. If set
to dedicated, only the dedicated IPMI NIC can be configured for
IPMI LAN. If set to lan1, only the first onboard NIC (LAN1) can
be configured for IPMI LAN. If set to failover, both the dedi-
cated and onboard LAN1 port would be configured for IPMI LAN,
with the same IP address.
SEE ALSO
ipmiutil(8) ialarms(8) iconfig(8) icmd(8) idiscover(8) ievents(8)
ifru(8) igetevent(8) ihealth(8) ilan(8) ireset(8) isel(8) isensor(8)
iserial(8) isol(8)
WARNINGS
See http://ipmiutil.sourceforge.net/ for the latest version of ipmiutil
and any bug fix list.
--------------------------------------
3.29 ISELTIME (iseltime)
ISELTIME(8) ISELTIME(8)
NAME
iseltime - synchronize BMC SEL time with OS system time
SYNOPSIS
seltime [-sx -NUPRETVF]
DESCRIPTION
seltime is a program that uses IPMI commands to set the BMC SEL time
from the OS system time. The OS system time should be in sync with the
BIOS Real-Time-Clock. The OS system time may also be kept from drift-
ing via an NTP server. Normally the BIOS will set the BMC time from
the RTC during boot, but running this command may be necessary periodi-
cally if the system does not reboot for many weeks, for instance. Note
that this command should not be run too frequently to avoid BMC timing
issues. Once per day should be sufficient.
Run with no options, this command reads the BMC SEL time without set-
ting anything.
This utility can use either the /dev/ipmi0 openipmi driver, the
/dev/imb Intel driver, the /dev/ipmikcs valinux driver, a driverless
interface, or IPMI LAN.
OPTIONS
-s Sets the SEL time (no more than once a day).
-x Causes eXtra debug messages to be displayed.
-N nodename
Nodename of the remote target system. If a nodename is speci-
fied, IPMI LAN interface is used. Otherwise the local system
management interface is used.
-P/-R password
Remote password for the nodename given. The default is a null
password.
-U username
Remote username for the nodename given. The default is a null
username.
-E Use the remote password from Environment variable IPMI_PASSWORD.
-F drv_t
Force the driver type to one of the followng: imb, va, open,
gnu, landesk, lan, lan2, lan2i, kcs, smb. Note that lan2i means
lan2 with intelplus. The default is to detect any available
driver type and use it.
-J Use the specified LanPlus cipher suite (0 thru 14):
0=none/none/none, 1=sha1/none/none, 2=sha1/sha1/none,
3=sha1/sha1/cbc128, 4=sha1/sha1/xrc4_128, 5=sha1/sha1/xrc4_40,
6=md5/none/none, ... 14=md5/md5/xrc4_40.
-T Use a specified IPMI LAN Authentication Type: 0=None, 1=MD2,
2=MD5, 4=Straight Password, 5=OEM.
-V Use a specified IPMI LAN privilege level. 1=Callback level,
2=User level, 3=Operator level, 4=Administrator level (default),
5=OEM level.
-Y Yes, do prompt the user for the IPMI LAN remote password.
Alternatives for the password are -E or -P.
SEE ALSO
ipmiutil(8) isel(8) ievents(8) icmd(8)
WARNINGS
See http://ipmiutil.sourceforge.net/ for the latest version of ipmiutil
and any bug fix list.
--------------------------
4.0 USE CASES
--------------------------
----------------------------------------------------------------
4.1 Usage of IPMI utilities for sensor thresholds
----------------------------------------------------------------
Get and set the Baseboard Temperature sensor threshold with
the 'sensor' utility like this:
# ipmiutil sensor -t
[...]
000e SDR Full 01 39 20 sensnum 30 Baseboard Temp = 1d OK 29.00 degrees C
hi-crit 65.00 hi-noncr 60.00 lo-noncr 10.00 lo-crit 5.00
[...]
Using sensor number 30, index 000e, and the hex raw reading (1d) as a
baseline from above, we can set the lower threshold above the current
reading, i.e. 0x1e or 30 C.
# ipmiutil sensor -i 0e -t -n 0x30 -l 30
sensor: version 1.39
idx = 0e
-- BMC version 0.48, IPMI version 1.5
_ID_ SDR_Type_xx Sz Own Typ S_Num Sens_Description Hex & Interp Reading
000e SDR Full 01 39 20 sensnum 30 Baseboard Temp = 1d OK 29.00 degrees C
hi-crit 65.00 hi-noncr 60.00 lo-noncr 10.00 lo-crit 5.00
Setting SDR 000e sensor 30 to lo=1e hi=ff
GetThreshold[30]: 30 1b 0a 05 00 3c 41 00
SetThreshold[30]: 30 03 20 1f 1e 00 00 00
SetSensorThreshold[30] to lo=1e(30.000) hi=ff(0.000), ret = 0
#
This sets the lower non-crit to 1e (30 C), and lower crit to 1f (31 C), and
would cause a sensor threshold event. Note that this utility takes the
raw threshold value and increments it sequentially for each of the severities.
Now we should set the lower threshold back to a more normal value of 5 C.
# ipmiutil sensor -i 0e -t -n 0x30 -l 5
sensor: version 1.39
idx = 0e
-- BMC version 0.48, IPMI version 1.5
_ID_ SDR_Type_xx Sz Own Typ S_Num Sens_Description Hex & Interp Reading
000e SDR Full 01 39 20 a 01 snum 30 Baseboard Temp = 1b Crit-lo 27.00 degrees
C
hi-crit 66.00 hi-noncr 60.00 lo-noncr 10.00 lo-crit 5.00
Setting SDR 000e sensor 30 to lo=05 hi=ff
GetThreshold[30]: 30 1b 20 1f 00 3c 42 00
SetThreshold[30]: 30 03 07 06 05 00 00 00
SetSensorThreshold[30] to lo=05(5.000) hi=ff(0.000), ret = 0
#
The threshold events can be displayed via ipmiutil sel.
# ipmiutil sel -l4
4b18 07/17/06 14:33:14 BMC 01 Temperature 30 LoC thresh OK now act=1b thr=06
4b04 07/17/06 14:33:14 BMC 01 Temperature 30 LoN thresh OK now act=1b thr=07
4af0 07/17/06 14:26:38 BMC 01 Temperature 30 Lo Crit thresh act=1b thr=1f
4adc 07/17/06 14:26:38 BMC 01 Temperature 30 Lo Noncrit thresh act=1b thr=20
#
----------------------------------------------------------------
4.2 How to configure a system for IPMI LAN
----------------------------------------------------------------
Below is a sample IPMI LAN configuration with IPMI LAN enabled,
PEF Alerts enabled, and 2 users configured for IPMI LAN.
The key unique LAN parameters that must be configured for basic
IPMI LAN functionality are: 3,4,5,6,12,13, plus the
Channel Access Mode and User Access.
Additional parameters for PEF and SOL are shown below also.
Defaults for required parameters are detected by ipmiutil lan, except
for the username, password, and the BMC LAN IP if it is not shared.
The detection uses the OS LAN configuration to find the gateway IP,
MAC addresses, mask, etc.
# ipmiutil lan -e -u user2 -p password2 [-I 192.168.1.1 ] [-L 3]
Running "ipmiutil lan -e -u user2 -p password2" would set up all required
IPMI LAN parameters if the OS and BMC share an IP address. If not,
the -I parameter should be included to specify the BMC IP.
You may want to add -G [-H] to specify the gateway IP address [gateway MAC]
if the OS does not have a NIC on the same subnet.
To configure an RMM NIC for IPMI LAN, the '-L 3' parameter specifies the
RMM NIC as IPMI LAN channel 3. Otherwise ipmiutil detects the first
available IPMI LAN channel and configures it (usually channel 1).
Note that this also sets up the PEF table for events, but the channel is
not enabled for PEF events unless an Alert destination is specified,
either in snmpd.conf or via -A.
Note that the IPMI LAN protocol works only from remote systems.
The IPMI LAN cannot recognize LAN commands from the local system
because those requests never really go onto the physical network.
Use the non-LAN form of a given ipmiutil command (without -N) to run locally.
Below is sample output from a system after being configured for IPMI LAN.
# ipmiutil lan
ipmiutil ver 2.71
ilan ver 2.71
-- BMC version 0.66, IPMI version 2.0
ilan, GetPefEntry ...
PEFilter(01): 01 Temperature Sensor event - enabled for alert
PEFilter(02): 02 Voltage Sensor event - enabled for alert
PEFilter(03): 04 Fan Failure event - enabled for alert
PEFilter(04): 05 Chassis Intrusion event - enabled for alert
PEFilter(05): 08 Power Supply Fault event - enabled for alert
PEFilter(06): 0c Memory ECC Error event - enabled for alert
PEFilter(07): 0f BIOS POST Error event - enabled for alert
PEFilter(08): 07 FRB Failure event - enabled for alert
PEFilter(09): 13 Fatal NMI event - enabled for alert
PEFilter(10): 23 Watchdog Timer Reset event - enabled for alert
PEFilter(11): 12 System Restart event - enabled for alert
PEFilter(12): 20 OS Critical Stop event - enabled for alert
PEFilter(13): 09 Power Redundancy Lost event - enabled for alert
PEFilter(14): 09 Power Unit OK event - enabled for alert
PEFilter(15): 01 Temperature OK event - enabled for alert
PEFilter(16): 02 Voltage OK event - enabled for alert
PEF Control: 01 : PEFenable
PEF Actions: 2f : Alert PwrDn Reset PwrCyc DiagInt
PEF Startup Delay: 3c : 60 sec
PEF Alert Startup Delay: 3c: 60 sec
PEF Alert Policy[1]: 01 18 11 00 : Chan[1] Dest[1] Enabled
PEF Alert Policy[2]: 02 00 00 00 : Disabled
PEF Alert Policy[3]: 03 00 00 00 : Disabled
PEF Alert Policy[4]: 04 00 00 00 : Disabled
ilan, GetLanEntry for channel 1 ...
Lan Param(0) Set in progress: 00
Lan Param(1) Auth type support: 15 : None MD5 Pswd
Lan Param(2) Auth type enables: 14 14 14 14 00 : MD5 Pswd
Lan Param(3) IP address: 192 168 1 192
Lan Param(4) IP addr src: 01 : Static
Lan Param(5) MAC addr: 00 15 17 8b b4 aa
Lan Param(6) Subnet mask: 255 255 255 0
Lan Param(7) IPv4 header: 1e 00 00
Lan Param(10) BMC grat ARP: 01 : Grat-ARP enabled
Lan Param(11) grat ARP interval: 04 : 2 sec
Lan Param(12) Def gateway IP: 192 168 1 200
Lan Param(13) Def gateway MAC: 00 15 17 8b b4 71
Lan Param(14) Sec gateway IP: 0 0 0 0
Lan Param(15) Sec gateway MAC: 00 00 00 00 00 00
Lan Param(16) Community string: public
Lan Param(17) Num dest: 04
Lan Param(18) Dest type: 01 00 01 00 00
Lan Param(18) Dest type: 02 00 00 00 00
Lan Param(18) Dest type: 03 00 00 00 00
Lan Param(18) Dest type: 04 00 00 00 00
Lan Param(19) Dest address: 01 00 00 [192 168 1 161] 00 07 e9 06 15 31
Lan Param(19) Dest address: 02 00 00 [0 0 0 0] 00 00 00 00 00 00
Lan Param(19) Dest address: 03 00 00 [0 0 0 0] 00 00 00 00 00 00
Lan Param(19) Dest address: 04 00 00 [0 0 0 0] 00 00 00 00 00 00
Lan Param(192) DHCP Server IP: 0 0 0 0
Lan Param(193) DHCP MAC Address: 00 00 00 00 00 00
Lan Param(194) DHCP Enable: 00
Channel(1=lan) Access Mode: 02 04 : Always Avail, PEF Alerts Enabled
ilan, GetSOL for channel 1 ...
SOL Enable: 01 : enabled
SOL Auth: 82 : User
SOL Accum Interval: 04 32 : 20 msec
SOL Retry Interval: 06 14 : 200 msec
SOL nvol Baud Rate: 0a : 115.2k
SOL vol Baud Rate: 00 : nobaud
SOL Payload Support(1): 03 00 15 00 00 00 00 00
SOL Payload Access(1,1): 02 00 00 00 : enabled
SOL Payload Access(1,2): 02 00 00 00 : enabled
SOL Payload Access(1,3): 00 00 00 00 : disabled
SOL Payload Access(1,4): 00 00 00 00 : disabled
Users: showing 4 of max 15 users (2 enabled)
User Access(chan1,user1): 0f 02 01 14 : IPMI, Admin ()
User Access(chan1,user2): 0f 02 01 14 : IPMI, Admin (root)
User Access(chan1,user3): 0f 02 01 0f : No access (admin)
User Access(chan1,user4): 0f 02 01 0f : No access ()
ipmiutil lan, completed successfully
----------------------------------------------------------------
4.3 Usage of IPMI utilities for Automatic IPMI LAN configuration
----------------------------------------------------------------
Suppose there are a number of IPMI servers that need to have their
BMC LAN interface configured. Shell access to the servers
(via ssh or similar) is assumed.
BMC LAN, Simple case, password is not changed:
[ssh connection]
# ipmiutil lan -e
[ssh exit]
BMC LAN, Complex case, assuming that a password needs to be set and
that the session text (or script) must encrypt the password.
So, using the gnupg.org utilities with public/private keys
would look something like this:
[ Set up list (or db) of encrypted passwords & key by nodename.
Note that the list and keyfile could reside locally, building
the ssh script syntax, so that only the encrypted password is
exposed remotely. ]
[ssh connection]
# gpg --import mykey.file
# mynode=`uname -n`
# my_enc_psw=`grep $mynode mylist.file |cut -f2`
# ipmiutil lan -e -p `gpg --decrypt $my_enc_psw`
[ssh exit]
----------------------------------------------------------------
4.4 Usage of IPMI Utilities to Set Watchdog timer
----------------------------------------------------------------
Watchdog timer coverage over the phases of boot and OS operation:
Power-on to end-of-POST = BIOS FRB2
end-of-POST to OS Running = BIOS OS Boot Timeout
OS User-space operation = SMS Timeout via "ipmiutil wdt"
Each of these phases uses the same watchdog timer mechanism but initializes
the timer with different values.
For user-space watchdog control, use "ipmiutil wdt" to read, set, and reset the
IPMI watchdog timer. There is an init script provided with ipmiutil to
automate this task.
# chkconfig --add ipmiutil_wdt (skip this if no chkconfig)
# /etc/rc.d/init.d/ipmiutil_wdt start
This sets the watchdog timer to reset the system if the wdt is not
restarted within 90 seconds. It creates an /etc/cron.d/wdt file to
restart wdt every 60 seconds.
This user-space approach is desirable if you wish the watchdog to expire for
such conditions as out-of-memory or out-of-processes, since the cron job will
start a short process for each invocation. Note that this also does not require additional services or modules to be running all the time.
Note that the device-independent way to start/stop watchdog timers in
Linux is to use the /dev/watchdog interface via the OpenIPMI driver.
For kernel-space watchdog management, you could build a custom kernel with
embedded watchdog support by changing the CONFIG_IPMI_* driver parameters
to =y in the Linux .config (including CONFIG_IPMI_WATCHDOG) and building the
kernel. Then edit grub.conf to start the watchdog with the kernel parameter
"ipmi_watchdog_start_now=1".
----------------------------------------------------------------
4.5 Usage of kernel panic handler code (now CONFIG_IPMI_PANIC_EVENT):
----------------------------------------------------------------
If a Linux panic occurs, the bmc_panic module will automatically save
the date/time of the panic, and minimal information about the panic.
This information will also be sent via SNMP to the remote management console,
and (if bmcpanic.patch) the Alarms panel LED will be turned on.
If lkcd is also configured, a full crash-dump of the panic will be saved
for later analysis.
After this, the system will automatically reboot.
This provides instant notification to the administrator, and significantly
improved post-mortem diagnosis.
Without these features, the administrator may never have any indication that
the system had crashed, and no way to know how to diagnose and fix the problem.
To enable this, set CONFIG_IPMI_PANIC_EVENT=y and CONFIG_IPMI_PANIC_STRING=y
in the kernel .config file.
You can also run ipmiutil lan to enable sending an SNMP trap for a kernel
panic as an "OS Critical Stop" event.
Make sure that the panic timeout is not zero (infinite), by using
echo "5" > /proc/sys/kernel/panic
or by adding 'append="panic=5"' to the lilo or grub configuration.
After a panic occurs, you can then use ipmiutil sel to view the firmware
SEL for that event. It should look something like this:
# ipmiutil sel
[...]
2d04 07/21/04 07:54:22 SMI 20 OS Critical Stop 46 (Fat) 6f [a1 61 74]
2d18 OEM Event 20 00 Fatal excep
2d2c OEM Event 20 01 tion
[...]
----------------------------------------------------------------
4.6 Interpreting BMC LAN SNMP Traps from Platform Events.
----------------------------------------------------------------
There are MIB files provided for BMC LAN SNMP traps with this project.
They are installed into /usr/share/ipmiutil/bmclan*.mib, and sym-linked
into /usr/share/snmp/mibs/.
The Platform Event Traps (enterprises.3183) are defined in bmclanpet.mib.
The Alert-on-LAN traps (enterprises.3183) are defined in bmclanaol.mib.
Note that Plaform Event Traps also have a 46-byte binary variable bindings
field included with the trap.
See Section 12.5 and 12.6 from the Intel ISM 5.x TPS for background.
Actual PET Trap Data from a System Restart Event trap:
snmputil: trap generic=6 specific=1208065
from -> 10.243.42.197
Variable = .iso.org.dod.internet.private.enterprises.3183.1.1.1
Value = String <0xa4><0x12><0x00><0x5f><0x62><0xa1><0xd5><0x11><0x00><0x80><0x60><0xff><0x94><0x47><0x03><0x00><0x21><0x19><0x0c><0x7f><0x3b><0x12><0xff><0xff><0x20><0x20><0x00><0x01><0x83><0x00><0x00><0x01><0xff><0xff><0x00><0x00><0x00><0x00><0x00><0x19><0x00><0x00><0x01><0x57><0x00><0x0c><0xc1>
Byte Mapping
Bytes of the trap variable binding data are mapped.
An extra byte of data is at the end (47).
Byte Data Meaning
1 0xa4 System GUID (16 bytes)
2 0x12
3 0x00
4 0x5f
5 0x62
6 0xa1
7 0xd5
8 0x11
9 0x00
10 0x80
11 0x60
12 0xff
13 0x94
14 0x47
15 0x03
16 0x00
17 0x21 Sequence Number/Cookie (2 bytes)
18 0x19
19 0x0c Local Timestamp (4 bytes)
20 0x7f
21 0x3b
22 0x12
23 0xff UTC Offset (2 bytes)
24 0xff
25 0x20 Trap Source Type
26 0x20 Event Source Type
27 0x00 Event Severity
28 0x01 Sensor Device
29 0x83 Sensor Number
30 0x00 Entity
31 0x00 Entity Instance
32 0x01 Event Data (8 bytes max, 3 bytes used)
33 0xff
34 0xff
35 0x00
36 0x00
37 0x00
38 0x00
39 0x00
40 0x19 filler byte
41 0x00 Manufacturer ID (4 bytes, 000157=Intel)
42 0x00
43 0x01
44 0x57
45 0x00 Product ID (2 bytes)
46 0x0c
47 0xc1 extra byte
Also, there is an optional "Extended Platform Event Trap" format defined
for IPMI which breaks up the 46-byte binary varbind into separate
varbinds for easier parsing.
See section 4.10 for how to use ipmiutil to perform the configuration and interpretation of IPMI PET traps. For example, the above trap would be interpreted as follows:
# events -p 00 80 60 ff 94 47 03 00 21 19 0c 7f 3b 12 ff ff 20 20 00 01 83 00 00 01 ff ff 00 00 00 00 00 19 00 00 01 57 00 0c c1
events version 2.34
0019 08/23/04 11:13:06 BMC 12 System Event #83 OEM System Boot 6f [01 ff ff]
----------------------------------------------------------------
4.7 Interpreting newer PECI sensors for CPU Thermal Margin
----------------------------------------------------------------
The newer CPUs do more monitoring internally rather that using absolute
temperature thresholds from the BMC. The CPU knows best what its
thresholds should be, and the thresholds may be different for different
CPUs. So, there are several IPMI sensors that expose the state of the
CPU temperature via the newer PECI interface.
1) Thermal Margin - A negative value indicating margin to throttling point.
Once margin reaches 0, throttling begins
2) Therm Control % - Reports the percentage of time within a 5.8 second
sliding window during which the processor was throttling
3) VRD Hot - Discrete sensor indicating one of the phases of the processor
VRD circuit on the baseboard has exceeded it's limit. This is not
indicative of CPU - just the VR circuit on the baseboard.
Therm Margin is the one to watch if you want max performance without
throttling. If it reaches 0, you will start losing performance to throttling.
However, the Therm Margin throttling is well in advance of the temperatures
that would cause a CPU ThermTrip condition and shut off the system.
----------------------------------------------------------------
4.8 How to configure a system for IPMI Serial-Over-LAN Console
----------------------------------------------------------------
The Serial-Over-LAN (SOL) console configuration requires
configuring BIOS, BMC/IPMI, and OS parameters.
Intel S5000 motherboards and prior use Serial Port B (ttyS1) for SOL,
but Intel S5500 and most other vendors use Serial Port A (ttyS0).
Enter BIOS Setup for Serial Console Redirection parameters:
(these vary by platform)
Console Redirection = Serial Port A
ACPI Redirection = Disabled
Baud Rate = 19.2K (or 115.2k)
Flow Control = CTS/RTS
Terminal Type = VT100
Legacy Redirection = Enabled or Disabled (optional, for DOS)
Note that the Baud Rate can vary, but it must match in all
locations where it is used (BIOS, IPMI, and Linux).
Some vendors may have OS utilities to change BIOS parameters, for instance,
Intel BIOS would use 'syscfg /bcs COM1 19200 CTS VT100' to do this.
Run this sample command for IPMI LAN & SOL configuration:
ipmiutil lan -e -u user2 -p password2 [-B 115.2k] [-I 192.168.1.1]
Use the -I portion if your BMC does not share a MAC address
with the OS. If not specified, the baud rate defaults to either
19.2k or the baud previously set with "ipmiutil serial", if set.
If there is more than one IPMI LAN channel, the alternate channel
can be configured by adding "-L 3" for channel 3.
---- FOR LINUX SERIAL CONSOLE -----
Edit /boot/grub/grub.conf to:
add "console=ttyS0,19200n8" on the end of the kernel line,
then comment out the "splashimage=" line
and optionally add these lines for grub menu display
serial --unit=0 --speed=19200 --word=8 --parity=no --stop=1
(use --unit=1 if ttyS1)
terminal --timeout=10 serial console
(Adding these two lines sometimes does not timeout and continue
without user interaction using some grub-0.9x versions.)
If using /etc/inittab, edit it to add:
co:2345:respawn:/sbin/agetty -h -L 19200 ttyS0 vt100
If using Ubuntu, RHEL6, or Fedora 11, the /etc/inittab has been replaced by
Upstart, with a different procedure.
If using Upstart (Ubuntu, RHEL6), adding the console=ttyS0,19200n8 in grub
will auto-start everything. Editing the serial init for getty is not
required. However, if you want to use hardware flow control, change the
/etc/init/serial.conf last line to:
exec /sbin/agetty -h -L $SPEED /dev/$DEV vt100-nav
Edit /etc/securetty to add:
ttyS0
Edit $HOME/.bashrc or /etc/bashrc to add:
stty crtscts
Adding "stty crtscts" in your bashrc turns on RTS/CTS flow control
once you are logged in. Otherwise operations with lots of output may
miss some chunks of data. Some Linux distributions do not turn this
on by default.
---- FOR WINDOWS SERIAL CONSOLE -----
To configure Windows for Serial (System Admin Console),
these BOOTCFG.EXE commands manipulate the BOOT.INI for SAC:
BOOTCFG /EMS ON /PORT BIOSSET /ID 1 (Enables SAC)
BOOTCFG /EMS OFF /ID 1 (Disables SAC)
---- FOR FREEBSD SERIAL CONSOLE -----
Open the file /etc/ttys with an editor and set up a line like this:
ttyu0 "/usr/libexec/getty std.19200" vt100 on secure
For more details, see
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/serialconsole-setup.html
----------------------------------------------------------------
4.9 Using ipmiutil Library APIs for custom programs
----------------------------------------------------------------
The various driver modules and LAN interfaces are included in
libipmiutil.a which is built by "cd util; make libipmiutil.a".
The library is named ipmiutil.lib in Windows.
The library is built by default along with the ipmi_sample application
to show how to use this library. Note that ipmi_sample is linked
with libcrypto.so (option -lcrypto) in order to support the lanplus
interface. Only the SOL console function requires lanplus, all other
functions can use the lan interface, since the IPMI 2.0 firmware is
required to support both lan and lanplus. If the custom program does
not require the lanplus interface, it can be reconfigured without
lanplus by first running './configure --enable-standalone'.
This library provides a common interface to use IPMI commands.
See section 9.0 for more information about the common library APIs.
See util/ipmi_sample.c for an example of how these APIs can be used.
----------------------------------------------------------------
4.10 How to configure a system for SNMP Traps via IPMI PEF rules
----------------------------------------------------------------
The IPMI Platform Event Filter (PEF) actions support sending
SNMP v1 traps from the IPMI firmware when IPMI events occur,
regardless of the state of the OS.
1) Configure the server to send IPMI PET traps.
These can be configured using ipmiutil on the target server
with ipmiutil. This command will enable the PEF rules
for SNMP traps.
# ipmiutil lan -e -I <bmc_ip> -A <alert_ip> [-k] [-a num]
The -k option enables PEF rules for the "OK" or clearing traps
for certain IPMI events.
Note that several SNMP alert destinations can be specified
by using the -a num option, where num=1,2,3,4 (1 is the default).
This enables the following PEF rules:
PEFilter(01): 01 Temperature Sensor event - enabled for alert
PEFilter(02): 02 Voltage Sensor event - enabled for alert
PEFilter(03): 04 Fan Failure event - enabled for alert
PEFilter(04): 05 Chassis Intrusion event - enabled for alert
PEFilter(05): 08 Power Supply Fault event - enabled for alert
PEFilter(06): 0c Memory ECC Error event - enabled for alert
PEFilter(07): 0f BIOS POST Error event - enabled for alert
PEFilter(08): 07 FRB Failure event - enabled for alert
PEFilter(09): 13 Fatal NMI event - enabled for alert
PEFilter(10): 23 Watchdog Timer Reset event - enabled for alert
PEFilter(11): 12 System Restart event - enabled for alert
PEFilter(12): 20 OS Critical Stop event - enabled for alert
PEFilter(13): 09 Power Redundancy Lost event - enabled for alert
PEFilter(14): 09 Power Unit OK event - enabled for alert
PEFilter(15): 01 Temperature OK event - enabled for alert
PEFilter(16): 02 Voltage OK event - enabled for alert
Note that Fan failure events do not have a clearing trap because
a fan failure would usually require removing system power to
physically replace the fan.
The IPMI Platform Event Traps (PET) can then be tested with these steps:
2) On the trap receiver, start the SNMP services.
For Linux, this would be:
Optionally edit /etc/snmp/snmpd.conf for a broader view, e.g.:
view systemview included .1
/etc/init.d/snmpd start
/etc/init.d/snmptrapd start
3) On the server under test, cause an event by:
a) removing and reinserting a power supply, or
b) setting the temperature thresholds out of range:
ipmiutil sensor -n 20 -t -h 15
(sets the Baseboard Temp high threshold to 15 degrees C)
then setting the temperature thresholds back to normal:
ipmiutil sensor -n 20 -t -h 61
(sets the Baseboard Temp high threshold to 61 degrees C)
c) you can see the IPMI events generated by doing:
ipmiutil sel
The IPMI PET traps (enterprises.3183) are defined in
/usr/share/ipmiutil/bmclanpet.mib, and the alert destination system
(trap receiver) can interpret them with the ipmiutil events utility
as follows:
4) Get the sensor output from a server of the same type.
Copy /usr/share/ipmiutil/sensor_out.txt to the system where the
traps are received. This would not be required if the trap receiver
and server are both the same type.
5) Get the hex data bytes from the IPMI PET trap.
This sample was taken from /var/log/messages on a Linux system with snmptrapd:
Sep 26 11:22:17 chapin1 snmptrapd[19859]: 2008-09-26 11:22:17 ac1-tigw1u-bmc [10.243.42.235] (via 10.243.42.235) TRAP, SNMP v1, community public SNMPv2-SMI::enterprises.3183.1.1 Enterprise Specific Trap (65792) Uptime: 141 days, 11:37:06.13 SNMPv2-SMI::enterprises.3183.1.1.1 = Hex-STRING: B1 D8 4F 76 1D E2 11 DC B3 E8 00 0E 0C C7 1B A0 11 08 14 31 D3 D4 FF FF 20 20 10 20 30 53 44 50 2B 30 00 00 00 00 00 19 00 00 01 57 08 11 C1
6) Skip the first 8 hex bytes from the hex data above and pass the data to
the ipmiutil events application.
# sfil=/usr/share/ipmiutil/sensor_out.txt
# ipmiutil events -p -s $sfil B3 E8 00 0E 0C C7 1B A0 11 08 14 31 D3 D4 FF FF 20 20 10 20 30 53 44 50 2B 30 00 00 00 00 00 19 00 00 01 57 08 11 C1
events version 2.34
000b SDR Full 01 01 20 a 01 snum 30 Baseboard Temp
0008 09/26/08 04:50:12 BMC 01 Temperature #30 Lo Noncrit thresh act=2b thr=30
This output should match the output from 'ipmiutil sel' on the server.
See also section 4.6 for the format of the IPMI PET data.
----------------------------------
5.0 IPMI UTILITIES ON WINDOWS
----------------------------------
Sample file contents of the ipmiutil win32/64 zip archive:
README.txt - Information about the archive, with install instructions
LICENSE.txt - the BSD license
UserGuide.txt - the ipmiutil User Guide
ChangeLog.txt - change history
install.cmd - INSTALL ipmiutil
uninstall.cmd - UNINSTALL ipmiutil
ipmiutil.exe - meta-command for all of the functions
ipmiutil_wdt.cmd - automatically resets the watchdog timer
checksel.cmd - automatically checks the SEL for nearly full
ialarms.cmd - shortcut for ipmiutil alarms
icmd.cmd - shortcut for ipmiutil cmd
iconfig.cmd - shortcut for ipmiutil config
idiscover.cmd - shortcut for ipmiutil discover
ievents.exe - shortcut for ipmiutil events
ifru.cmd - shortcut for ipmiutil fru
igetevent.cmd - shortcut for ipmiutil getevent
ihealth.cmd - shortcut for ipmiutil health
ilan.cmd - shortcut for ipmiutil lan
isensor.cmd - shortcut for ipmiutil sensor
iserial.cmd - shortcut for ipmiutil serial
isel.cmd - shortcut for ipmiutil sel
isol.cmd - shortcut for ipmiutil sol
ireset.cmd - shortcut for ipmiutil reset
iwdt.cmd - shortcut for ipmiutil wdt
showsel.reg - to add showsel DLL to registry
showselun.reg - to remove showsel DLL from registry
showselmsg.dll - DLL for System Log IPMI messages
libeay32.dll - from openssl crypto
ssleay32.dll - from openssl crypto
buildsamp.cmd - to build the sample programs
ipmiutil.dll - use this with the static library
ipmiutil.lib - static library with ipmiutil functions
ipmiutillib.dll - Use this for dynamic DLL
ipmiutillib.lib - link this into samples to use dynamic DLL
ipmiutillib.exp - exported list of ipmiutil functions
ipmi_sample.exe - sample application
ipmi_sample_evt.exe - sample application with eventing
The install and build instructions are below, all other information
in the UserGuide.txt is the same for Windows and Linux.
----------------------------------
5.1 WINDOWS INSTALL INSTRUCTIONS
----------------------------------
If installing from an MSI file, just double-click to run the install wizard.
If installing from the ZIP file, just run install.cmd.
Otherwise, these are the manual steps to perform.
The showselmsg.dll needs to be copied into the %SystemRoot%\System32
directory and then run showsel.reg, so that the Windows EventLog service
can find information about the showsel events.
Note that the openssl crypto libraries (libeay32.dll and ssleay32.dll)
should be copied to %SystemRoot%\System32 also to provide crypto functions
for the lanplus logic, if they are not already present.
Note that for Windows Vista/7 workstation and later, make sure to
'Run as administrator' when installing. Windows Server should not
require this step.
The utilities can be run separately, or an ipmiutil directory can be
added into the %PATH%.
A sample install batch file:
> set MYBIN=c:\bin
> copy libeay32.dll %SystemRoot%\system32
> copy ssleay32.dll %SystemRoot%\system32
> copy showselmsg.dll %SystemRoot%\system32
> start showsel.reg
> mkdir %MYBIN%
> copy *.exe %MYBIN%
The usage of ipmiutil in Windows is the same as in Linux OS, with the
exception of drivers:
* The Intel IPMI driver supported is the Intel IMB driver (imbdrv.sys),
which can be obtained from the Intel Resource CD for your system,
from the ISM CD, or from http://www.intel.com by searching downloads
for IMB driver.
http://downloadfinder.intel.com/scripts-df-external/Product_Search.aspx?Prod_nm=imb+driver
or cached at http://ipmiutil.sf.net/kern/imbdrv130.zip
* The Microsoft IPMI driver (ipmidrv.sys), which comes with Windows 2003 R2
and later, is also supported.
It should be noted that the two IPMI drivers should not be installed at the
same time, since they will interfere with each other.
So, for some systems or applications, you may need to uninstall the Microsoft
IPMI driver, like this:
* start Control Panel/System app
* go to Hardware tab, start Device Manager
* select View/Show Hidden Devices
* go to "System Devices",
* right-click "Microsoft Generic IPMI Compliant Device"
* select Properties
* on driver tab, click "Uninstall"
* then reboot.
How to install Intel IPMI driver from the cached copy at http://ipmiutil.sf.net/kern/imbdrv130.zip
Extract imbdrv130.zip to c:\temp or similar
> cd c:\temp
> cd x86_64 (or 'cd ia32' if 32-bit Windows)
> install.bat (DeviceSetup.exe install imbdrv.inf *IMBDRV)
> driverquery (shows the drivers currently installed/running)
How to install the Windows Intel IPMI driver (imbdrv.sys from the Intel CD):
> cd c:\temp
> copy d:\ism\software\win32\pi\common\imb*.*
> copy d:\ism\software\win32\pi\common\win2k*.exe
> ren imbdrv2k.sys imbdrv.sys
> copy imbapi.dll %SystemRoot%\system32
> win2kinstall c:\temp\imbdrv.inf *IMBDRV
> driverquery (shows the drivers currently installed/running)
Note that when using 32-bit binaries on 64-bit Windows Server installations,
make sure that the Microsoft VC++ Redistributable package is installed
(vcredist_x86.exe).
See http://www.microsoft.com/downloads/details.aspx?familyid=200B2FD9-AE1A-4A14-984D-389C36F85647&displaylang=en
to download this if needed.
----------------------------------
5.2 WINDOWS BUILD INSTRUCTIONS
----------------------------------
The ipmiutil Windows binaries for each release are pre-built and posted
at http://ipmiutil.sourceforge.net, but here is how to build the ipmiutil
EXEs for Windows from source.
Note that the WIN32 compile flag is used.
The ipmiutil buildwin.cmd shows how to compile and link the lib and exe
files, although many people prefer instead to do builds with the
Microsoft VisualStudio project GUI.
5.2.1 Install Visual Studio
The build environment assumes that VisualStudio 6.0 VC98 or
later is installed.
5.2.2 Download contrib files
Before running buildwin.cmd, first download the contributed
files for Windows (includes getopt.c and openssl).
A copy of these files is available from
http://ipmiutil.sf.net/FILES/ipmiutil-contrib.zip
The above zip contains all of the contributed source used.
Refer to getopt.c from one of these
BSD getopt.c:
http://www.openmash.org/lxr/source/src/getopt.c?c=gsm
public domain getopt.c:
http://www.koders.com/c/fid034963469B932D9D87F91C86680EB08DB4DE9AA3.aspx
GNU LGPL getopt.c:
http://svn.xiph.org/trunk/ogg-tools/oggsplit/
Refer to openssl from this link (Apache-style license, not gpl)
http://www.openssl.org/source/openssl-0.9.7l.tar.gz.
5.2.3 Copy initial contrib files into ipmiutil
Below are sample directories where ipmiutil*.tar.gz was unpacked,
and where the openssl*.tar.gz was unpacked.
> set ipmiutil_dir=c:\dev\ipmiutil
> set openssl_dir=c:\dev\openssl
First, copy the getopt.c & getopt.h into the util directory.
From the directory where ipmiutil-contrib.zip was unpacked,
> copy getopt.* %ipmiutil_dir%\util
The iphlpapi.lib comes from Visual Studio (2003 .Net), Win2003 DDK, or WinSDK.
> copy iphlpapi.lib %ipmiutil_dir%\lib
> copy iphlpapi.h %ipmiutil_dir%\util
5.2.4 Build the openssl libraries
To build from original source you would then want to build a copy of openssl
for Windows, and copy the built openssl files to lib & inc.
Follow the openssl build instructions from INSTALL.W32 for VC++ to build
these binaries.
5.2.5 Copy the resulting LIB and DLL binaries to ipmiutil
> copy %openssl_dir%\out32dll\libeay32.lib %ipmiutil_dir%\lib
> copy %openssl_dir%\out32dll\ssleay32.lib %ipmiutil_dir%\lib
> copy %openssl_dir%\out32dll\libeay32.dll %ipmiutil_dir%\util
> copy %openssl_dir%\out32dll\ssleay32.dll %ipmiutil_dir%\util
> mkdir %ipmiutil_dir%\lib\lanplus\openssl
> copy %openssl_dir%\include\openssl\*.h %ipmiutil_dir%\lib\lanplus\openssl
5.2.6 Set the Visual Studio variables with vcvars*.bat
For your installation of Microsoft Visual Studio, it has batch files to
set the Visual C variables. Run the appropriate architecture version of
these batch files to set the VC variables.
Example:
C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\vcvarsall.bat
or
C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin\vcvars32.bat
or
C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin\amd64\vcvarsamd64.bat
5.2.7 Run buildwin.cmd
buildwin.cmd will build all of the Windows EXE and DLL files.
If you are using ipmiutil for a bootable WinPE environment, and do not need
Serial-Over-LAN functionality, the buildwin2.cmd will build the Windows EXE
files without using the openssl libraries, to simplify the process. The
openssl libraries are required for the IPMI LAN 2.0 crypto functions that
Serial-Over-LAN requires.
----------------------------------
5.3 WINDOWS COMMAND USAGE
----------------------------------
Because of the differences in Linux getopt and the getopt used in
the Windows build, the order of parameters is more important in Windows.
For example in Linux, the following command usages work, but not in Windows:
# ipmiutil cmd 00 20 18 01 -N 192.168.1.154
# ipmiutil cmd 00 20 -N 192.168.1.154 18 01
The Windows equivalent would have to put the -N option immediately after
the subfunction, as shown below:
> ipmiutil cmd -N 192.168.1.154 00 20 18 01
--------------------------
6.0 SAMPLE OUTPUT
--------------------------
Below is sample ipmiutil output from an Intel TIGW1U server.
# ipmiutil alarms
ipmiutil ver 2.13
alarms ver 2.13
-- BMC version 0.19, IPMI version 2.0
Alarm LEDs: critical = off major = off minor = off power = off
Alarm Relays: major = off minor = off
disk slot 0 LED: off
disk slot 1 LED: off
disk slot 2 LED: off
disk slot 3 LED: off
disk slot 4 LED: off
disk slot 5 LED: off
alarms, completed successfully
# ipmiutil cmd 00 20 18 01
ipmiutil ver 2.21
icmd ver 2.21
This is a test tool to compose IPMI commands.
Do not use without knowledge of the IPMI specification.
-- BMC version 0.19, IPMI version 2.0
respData[len=15]: 20 01 00 19 02 9f 57 01 00 11 08 00 48 00 16
send_icmd ret = 0
icmd, completed successfully
# ipmiutil config -s /tmp/bmcconfig.out
ipmiutil ver 2.21
bmcconfig ver 1.1
-- BMC version 0.19, IPMI version 2.0
### bmcconfig, GetPefEntry ...
### bmcconfig, GetLanEntry for channel 1 ...
### bmcconfig, GetSOL for channel 1 ...
### bmcconfig, GetSerEntry for channel 4 ...
bmcconfig, completed successfully
# cat /tmp/bmcconfig.out
PEFParam 6,01: 01 c0 01 01 10 ff ff 01 ff 01 95 0a 00 00 00 00 00 00 00 00 00
PEFParam 6,02: 02 c0 01 01 10 ff ff 02 ff 01 95 0a 00 00 00 00 00 00 00 00 00
PEFParam 6,03: 03 c0 01 01 08 ff ff 04 ff 01 95 0a 00 00 00 00 00 00 00 00 00
PEFParam 6,04: 04 c0 01 01 08 ff ff 05 05 6f 01 00 00 00 00 00 00 00 00 00 00
PEFParam 6,05: 05 c0 01 01 08 ff ff 08 ff 6f 06 00 00 00 00 00 00 00 00 00 00
PEFParam 6,06: 06 c0 01 01 10 ff ff 0c 08 6f 02 00 00 00 00 00 00 00 00 00 00
PEFParam 6,07: 07 c0 01 01 08 ff ff 0f 06 6f 01 00 00 00 00 00 00 00 00 00 00
PEFParam 6,08: 08 c0 01 01 10 ff ff 07 ff 6f 1c 00 00 00 00 00 00 00 00 00 00
PEFParam 6,09: 09 c0 01 01 02 ff ff 13 ff 6f 3e 03 00 00 00 00 00 00 00 00 00
PEFParam 6,10: 0a c0 01 01 01 ff ff 23 03 6f 0e 00 00 00 00 00 00 00 00 00 00
PEFParam 6,11: 0b c0 01 01 01 ff ff 12 ff 6f 02 00 00 00 00 00 00 00 00 00 00
PEFParam 6,12: 0c 80 01 01 10 ff ff 20 ff 6f ff 00 00 00 00 00 00 00 00 00 00
PEFParam 6,13: 0d 80 01 01 08 ff ff 09 ff 0b 02 00 00 00 00 00 00 00 00 00 00
PEFParam 6,14: 0e 80 01 01 04 ff ff 09 ff 0b 01 00 00 00 00 00 00 00 00 00 00
PEFParam 6,15: 0f 80 01 01 04 ff ff 01 ff 81 95 0a 00 00 00 00 00 00 00 00 00
PEFParam 6,16: 10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
PEFParam 6,17: 11 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
PEFParam 6,18: 12 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
PEFParam 6,19: 13 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
PEFParam 6,20: 14 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
PEFParam 1: 01
PEFParam 2: 2f
PEFParam 3: 3c
PEFParam 4: 3c
PEFParam 9,1: 01 18 11 00
PEFParam 9,2: 02 00 00 00
PEFParam 9,3: 03 00 00 00
PEFParam 9,4: 04 00 00 00
LanParam 0,0: 00
LanParam 1,0: 15
LanParam 2,0: 14 14 14 14 00
LanParam 3,0: 0a f3 2a eb
LanParam 4,0: 01
LanParam 5,0: 00 0e 0c c7 1b a2
LanParam 6,0: ff ff ff 00
LanParam 7,0: 40 40 10
LanParam 10,0: 01
LanParam 11,0: 04
LanParam 12,0: 0a f3 2a fb
LanParam 13,0: 00 d0 06 21 eb fc
LanParam 14,0: 00 00 00 00
LanParam 15,0: 00 00 00 00 00 00
LanParam 16,0: 70 75 62 6c 69 63 00 00 00 00 00 00 00 00 00 00 00 00
LanParam 17,0: 04
LanParam 18,1: 01 00 01 00 00
LanParam 18,2: 02 00 00 00 00
LanParam 18,3: 03 00 00 00 00
LanParam 18,4: 04 00 00 00 00
LanParam 19,1: 01 00 00 0a f3 2a d8 00 07 e9 06 15 30
LanParam 19,2: 02 00 00 00 00 00 00 00 00 00 00 00 00
LanParam 19,3: 03 00 00 00 00 00 00 00 00 00 00 00 00
LanParam 19,4: 04 00 00 00 00 00 00 00 00 00 00 00 00
LanParam 192,0: 00 00 00 00
LanParam 193,0: 00 00 00 00 00 00
LanParam 194,0: 00
ChannelAccess 1: 02 04
SOLParam 1,0: 01
SOLParam 2,0: 82
SOLParam 3,0: 04 32
SOLParam 4,0: 06 14
SOLParam 5,0: 0a
SOLParam 6,0: 00
SOLPayloadSupport 1: 00 15 00 00 00 00 00
SOLPayloadAccess 1,1: 02 00 00 00
SOLPayloadAccess 1,2: 02 00 00 00
SOLPayloadAccess 1,3: 00 00 00 00
UserAccess 1,1: 0f 02 01 14
UserName 1: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
# UserPassword 1: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
UserAccess 1,2: 0f 02 01 14
UserName 2: 75 73 72 32 00 00 00 00 00 00 00 00 00 00 00 00
# UserPassword 2: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
UserAccess 1,3: 0f 02 01 0f
UserName 3: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
# UserPassword 3: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
UserAccess 1,4: 0f 02 01 0f
UserName 4: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
# UserPassword 4: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
SerialParam 0,0: 00
SerialParam 1,0: 15
SerialParam 2,0: 14 14 14 14 00
SerialParam 3,0: 87
SerialParam 4,0: 00
SerialParam 5,0: 00 00 ff ff ff
SerialParam 6,0: 03
SerialParam 7,0: 20 0a
SerialParam 8,0: 16 08
SerialParam 9,0: 3f 00
SerialParam 10,0: 01 41 54 45 31 51 30 56 31 58 34 26 44 32 26 43 31
SerialParam 11,0: 2b 2b 2b 00 00
SerialParam 12,0: 41 54 48 00 00 00 00 00
SerialParam 13,0: 41 54 44 00 00 00 00 00
SerialParam 14,0: 00
SerialParam 15,0: 70 75 62 6c 69 63 00 00 00 00 00 00 00 00 00 00 00 00
SerialParam 16,0: 08
SerialParam 17,1: 01 00 05 03 00
SerialParam 17,2: 02 00 05 03 00
SerialParam 17,3: 03 00 05 03 00
SerialParam 17,4: 04 00 05 03 00
SerialParam 18,0: 3c
SerialParam 19,1: 01 00 07
SerialParam 19,2: 02 00 07
SerialParam 19,3: 03 00 07
SerialParam 19,4: 04 00 07
SerialParam 29,0: 66 11
ChannelAccess 4: 2b 04
UserAccess 4,1: 0f 02 01 14
UserName 1: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
# UserPassword 1: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
UserAccess 4,2: 0f 02 01 14
UserName 2: 75 73 72 32 00 00 00 00 00 00 00 00 00 00 00 00
# UserPassword 2: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
UserAccess 4,3: 0f 02 01 0f
UserName 3: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
# UserPassword 3: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
UserAccess 4,4: 0f 02 01 0f
UserName 4: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
# UserPassword 4: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
# ipmiutil discover -a -b 10.243.42.255
ipmiutil ver 2.21
idiscover ver 1.3
Discovering IPMI Devices:
1: response from 10.243.42.141
2: response from 10.243.42.7
3: response from 10.243.42.14
4: response from 10.243.42.145
5: response from 10.243.42.172
6: response from 10.243.42.182
7: response from 10.243.42.185
8: response from 10.243.42.183
9: response from 10.243.42.184
10: response from 10.243.42.138
11: response from 10.243.42.181
12: response from 10.243.42.179
13: response from 10.243.42.139
14: response from 10.243.42.216
15: response from 10.243.42.210
16: response from 10.243.42.229
17: response from 10.243.42.150
18: response from 10.243.42.120
19: response from 10.243.42.246
20: response from 10.243.42.158
21: response from 10.243.42.168
22: response from 10.243.42.248
23: response from 10.243.42.242
24: response from 10.243.42.243
25: response from 10.243.42.223
26: response from 10.243.42.171
27: response from 10.243.42.174
28: response from 10.243.42.222
29: response from 10.243.42.226
30: response from 10.243.42.228
31: response from 10.243.42.110
32: response from 10.243.42.120
33: response from 10.243.42.128
34: response from 10.243.42.169
idiscover: 1 pings sent, 34 responses
# ipmiutil events 18 00 02 02 00 00 00 20 00 04 09 01 6f 44 0f ff
ipmiutil ver 2.40
ievents version 2.40
RecId Date/Time_______ Source_ Evt_Type SensNum Evt_detail - Trig [Evt_data]
0018 12/31/69 19:00:02 BMC 09 Power Unit #01 AC Lost 6f [44 0f ff]
ievents, completed successfully
# ipmiutil events -p -s sensor-TIGW1U.out B3 E8 00 0E 0C C7 1B A0 11 08 12 7F 10 90 FF FF 20 20 00 20 02 15 01 41 0F FF
ipmiutil ver 2.40
ievents version 2.40
0023 SDR Comp 02 2b 20 a 09 snum 02 Power Redundancy
0008 11/01/07 10:13:20 BMC 09 Power Unit #02 Redundancy Lost 0b [41 0f ff]
ievents, completed successfully
# ipmiutil fru
ipmiutil ver 2.21
fruconfig: version 2.21
-- BMC version 0.19, IPMI version 2.0
SDR[004c] FRU 20 00 0c 01 Baseboard FRU
SDR[004d] FRU 20 02 15 01 Power Dist FRU
Component FRU Size : 256
Product Manufacturer: DELTA
Product Name : AC-061 B
Product Part Number : D76441-003
Product Version : 00
Product Serial Num : DLD0719000969
Product Asset Tag :
Product FRU File ID :
SDR[004e] FRU 20 03 0a 01 Pwr Supply 1 FRU
Component FRU Size : 256
Product Manufacturer: DELTA
Product Name : DPS-450KBA
Product Part Number : D40117-007
Product Version : S6
Product Serial Num : DLD0721003047
Product Asset Tag :
Product FRU File ID :
SDR[004f] FRU 20 04 0a 02 Pwr Supply 2 FRU
Component FRU Size : 256
Product Manufacturer: DELTA
Product Name : DPS-450KBA
Product Part Number : D40117-003
Product Version : S2
Product Serial Num : DLC0630000244
Product Asset Tag :
Product FRU File ID :
SDR[0050] IPMB 20 00 07 01 Basbrd Mgmt Ctlr
Mainboard FRU Size : 256
Chassis Type : Rack-Mount Chassis
Chassis Part Number : TIGW1U
Chassis Serial Num :
Chassis OEM Field : TIGW1U
Board Mfg DateTime : Sun Jun 17 16:11:00 2007
Board Manufacturer : Intel
Board Product Name : S5000PHB
Board Serial Number : CFTW72400602
Board Part Number : D40552-601
Board FRU File ID : FRU Ver 0.05
Board OEM Field :
Product Manufacturer: Intel
Product Name : S5000PHB
Product Part Number : TMWA0201W
Product Version :
Product Serial Num : sernum4wd
Product Asset Tag : asset4wd
Product FRU File ID :
Product OEM Field :
System GUID : b1d84f76-1de2-11dc-b3e8-000e0cc71ba0
BIOS Version : S5000.86B.10.00.D414.081520081354
fruconfig, completed successfully
# ipmiutil getevt
ipmiutil ver 2.21
getevent ver 2.21
-- BMC version 0.19, IPMI version 2.0
event receiver sa = 20 lun = 00
bmc enables = 0f
Waiting 120 seconds for an event ...
got event, sensor_type = 01
event data: 3c 22 02 7b e6 bf 48 20 00 04 01 30 01 50 2e 33
223c 09/04/08 09:45:31 BMC 01 Temperature #30 Lo Noncrit thresh act=2e thr=33
Waiting 120 seconds for an event ...
got event, sensor_type = 01
event data: 64 22 02 7d e6 bf 48 20 00 04 01 30 81 50 2e 07
2264 09/04/08 09:45:33 BMC 01 Temperature #30 LoN thresh OK now act=2e thr=07
Waiting 120 seconds for an event ...
get_event timeout
getevent, completed successfully
# ipmiutil health
ipmiutil ver 2.21
bmchealth ver 2.21
BMC version 0.19, IPMI version 2.0
BMC manufacturer = 000157 (Intel), product = 0811 (TIGW1U)
BIOS Version = S5000.86B.10.00.D414.081520081354
Chassis Status = 01 (on, restore_policy=stay_off)
Power State = 00 (S0: working)
Selftest status = 0055 (OK)
Channel 15 Auth Types:
Status = 00, OEM ID 000000 OEM Aux 00
bmchealth, completed successfully
# ipmiutil lan
ipmiutil ver 2.21
pefconfig ver 2.21
-- BMC version 0.19, IPMI version 2.0
pefconfig, GetPefEntry ...
PEFilter(01): 01 Temperature Sensor event - enabled for alert
PEFilter(02): 02 Voltage Sensor event - enabled for alert
PEFilter(03): 04 Fan Failure event - enabled for alert
PEFilter(04): 05 Chassis Intrusion event - enabled for alert
PEFilter(05): 08 Power Supply Fault event - enabled for alert
PEFilter(06): 0c Memory ECC Error event - enabled for alert
PEFilter(07): 0f FRB Failure event - enabled for alert
PEFilter(08): 07 BIOS POST Error event - enabled for alert
PEFilter(09): 13 Fatal NMI event - enabled for alert
PEFilter(10): 23 Watchdog Timer Reset event - enabled for alert
PEFilter(11): 12 System Restart event - enabled for alert
PEFilter(12): 20 OS Critical Stop event - enabled for alert
PEFilter(13): 09 Power Redundancy Lost event - enabled for alert
PEFilter(14): 09 Power Unit OK event - enabled for alert
PEFilter(15): 01 Temperature OK event - enabled for alert
PEF Control: 01 : PEFenable
PEF Actions: 2f : Alert PwrDn Reset PwrCyc DiagInt
PEF Startup Delay: 3c : 60 sec
PEF Alert Startup Delay: 3c: 60 sec
PEF Alert Policy[1]: 01 18 11 00 : Chan[1] Dest[1] Enabled
PEF Alert Policy[2]: 02 00 00 00 : Disabled
PEF Alert Policy[3]: 03 00 00 00 : Disabled
PEF Alert Policy[4]: 04 00 00 00 : Disabled
pefconfig, GetLanEntry for channel 1 ...
Lan Param(0) Set in progress: 00
Lan Param(1) Auth type support: 15 : None MD5 Pswd
Lan Param(2) Auth type enables: 14 14 14 14 00
Lan Param(3) IP address: 10 243 42 235
Lan Param(4) IP addr src: 01 : Static
Lan Param(5) MAC addr: 00 0e 0c c7 1b a2
Lan Param(6) Subnet mask: 255 255 255 0
Lan Param(7) IPv4 header: 40 40 10
Lan Param(10) BMC grat ARP: 01 : Grat-ARP enabled
Lan Param(11) grat ARP interval: 04 : 2 sec
Lan Param(12) Def gateway IP: 10 243 42 251
Lan Param(13) Def gateway MAC: 00 d0 06 21 eb fc
Lan Param(14) Sec gateway IP: 0 0 0 0
Lan Param(15) Sec gateway MAC: 00 00 00 00 00 00
Lan Param(16) Community string: public
Lan Param(17) Num dest: 04
Lan Param(18) Dest type: 01 00 01 00 00
Lan Param(18) Dest type: 02 00 00 00 00
Lan Param(18) Dest type: 03 00 00 00 00
Lan Param(18) Dest type: 04 00 00 00 00
Lan Param(19) Dest address: 01 00 00 [10 243 42 216] 00 07 e9 06 15 30
Lan Param(19) Dest address: 02 00 00 [0 0 0 0] 00 00 00 00 00 00
Lan Param(19) Dest address: 03 00 00 [0 0 0 0] 00 00 00 00 00 00
Lan Param(19) Dest address: 04 00 00 [0 0 0 0] 00 00 00 00 00 00
Lan Param(192) DHCP Server IP: 0 0 0 0
Lan Param(193) DHCP MAC Address: 00 00 00 00 00 00
Lan Param(194) DHCP Enable: 00
Channel Access Mode(1=lan): 02 04 : Access = Always Avail, PEF Alerts Enabled
pefconfig, GetSOL for channel 1 ...
SOL Enable: 01 : enabled
SOL Auth: 82 : User
SOL Accum Interval: 04 32 : 20 msec
SOL Retry Interval: 06 14 : 200 msec
SOL nvol Baud Rate: 0a : 115.2k
SOL vol Baud Rate: 00 : nobaud
SOL Payload Support(1): 03 00 15 00 00 00 00 00
SOL Payload Access(1,1): 02 00 00 00 : enabled
SOL Payload Access(1,2): 02 00 00 00 : enabled
SOL Payload Access(1,3): 00 00 00 00 : disabled
SOL Payload Access(1,4): 00 00 00 00 : disabled
Get User Access(1): 0f 02 01 14 : IPMI, Admin ()
Get User Access(2): 0f 02 01 14 : IPMI, Admin (usr2)
Get User Access(3): 0f 02 01 0f : No access ()
Get User Access(4): 0f 02 01 0f : No access ()
pefconfig, completed successfully
# ipmiutil reset -n
ipmiutil ver 2.21
hwreset ver 2.21
-- BMC version 0.19, IPMI version 2.0
Power State = 00 (S0: working)
hwreset: sending NMI ...
chassis_reset ok
hwreset: IPMI_Reset ok
hwreset, completed successfully
# ipmiutil sel
ipmiutil ver 2.21
showsel: version 2.21
-- BMC version 0.19, IPMI version 2.0
SEL Ver 51 Support f, Size = 3987 records, Free space = 3553 records
RecId Date/Time_______ Source_ Evt_Type SensNum Evt_detail - Trig [Evt_data]
0004 07/16/08 15:17:58 BMC 10 SEL Disabled #09 Log Cleared 6f [42 0f ff]
0018 07/16/08 15:23:08 BIOS 12 System Event #83 Boot: ClockSync_1 6f [05 00 ff]
002c 07/16/08 10:23:08 BIOS 12 System Event #83 Boot: ClockSync_2 6f [05 80 ff]
0040 07/16/08 10:24:37 0033 12 System Event #01 OEM System Booted 6f [01 ff 00]
0054 07/16/08 10:24:49 BMC 22 ACPI Power State #82 S0/G0 Working 6f [40 0f ff]
0068 07/16/08 11:12:55 BMC 08 Power Supply #70 Removed ef [40 0f ff]
007c 07/16/08 11:12:55 BMC 09 Power Unit #02 Redundancy Lost 0b [41 0f ff]
0090 07/16/08 11:12:55 BMC 09 Power Unit #02 Not Redundant 0b [43 0f ff]
00a4 07/16/08 11:13:23 BMC 08 Power Supply #70 Inserted 6f [40 0f ff]
00b8 07/16/08 11:13:23 BMC 09 Power Unit #02 Redundancy OK 0b [40 0f ff]
00cc 07/16/08 11:31:30 BMC 08 Power Supply #70 Removed ef [40 0f ff]
00e0 07/16/08 11:31:31 BMC 09 Power Unit #02 Redundancy Lost 0b [41 0f ff]
00f4 07/16/08 11:31:31 BMC 09 Power Unit #02 Not Redundant 0b [43 0f ff]
0108 07/16/08 11:31:40 BMC 08 Power Supply #70 Inserted 6f [40 0f ff]
011c 07/16/08 11:31:41 BMC 09 Power Unit #02 Redundancy OK 0b [40 0f ff]
0130 07/16/08 11:46:34 BMC 01 Temperature #30 Lo Noncrit thresh act=2f thr=34
0144 07/16/08 11:46:34 BMC 01 Temperature #30 Lo Crit thresh act=2f thr=33
0158 07/16/08 11:46:36 BMC 01 Temperature #30 LoN thresh OK now act=2f thr=07
016c 07/16/08 11:46:36 BMC 01 Temperature #30 LoC thresh OK now act=2f thr=06
0180 07/16/08 12:00:59 BMC 08 Power Supply #70 Removed ef [40 0f ff]
0194 07/16/08 12:01:00 BMC 09 Power Unit #02 Redundancy Lost 0b [41 0f ff]
01a8 07/16/08 12:01:00 BMC 09 Power Unit #02 Not Redundant 0b [43 0f ff]
01bc 07/16/08 12:01:32 BMC 08 Power Supply #70 Inserted 6f [40 0f ff]
[...]
1a08 08/12/08 01:57:20 SMI 20 OS Critical Stop #64 panic(dop) 6f [a1 6f 70]
1a1c 08/12/08 01:58:08 BMC 2a Session Audit #0a Deactivated User 1 6f [a1 01 11]
1a30 08/12/08 01:58:18 BMC 2a Session Audit #0a Activated User 1 6f [a0 01 01]
[...]
219c 08/27/08 06:29:24 BIOS 12 System Event #83 Boot: ClockSync_1 6f [05 00 ff]
21b0 08/27/08 06:29:25 BIOS 12 System Event #83 Boot: ClockSync_2 6f [05 80 ff]
21c4 08/27/08 06:30:18 0033 12 System Event #01 OEM System Booted 6f [01 ff 00]
21d8 08/27/08 06:30:29 BMC 22 ACPI Power State #82 S0/G0 Working 6f [40 0f ff]
showsel, completed successfully
# ipmiutil sensor
ipmiutil ver 2.21
sensor: version 2.21
-- BMC version 0.20, IPMI version 2.0
_ID_ SDR_Type_xx ET Own Typ S_Num Sens_Description Hex & Interp Reading
0001 SDR Full 01 01 20 a 02 snum 10 BB +1.2V Vtt = be OK 1.20 Volts
0002 SDR Full 01 01 20 a 02 snum 12 BB +1.5V AUX = bd OK 1.47 Volts
0003 SDR Full 01 01 20 a 02 snum 13 BB +1.5V = 75 OK 1.52 Volts
0004 SDR Full 01 01 20 a 02 snum 14 BB +1.8V = af OK 1.78 Volts
0005 SDR Full 01 01 20 a 02 snum 15 BB +3.3V = c1 OK 3.32 Volts
0006 SDR Full 01 01 20 a 02 snum 16 BB +3.3V STB = bf OK 3.29 Volts
0007 SDR Full 01 01 20 a 02 snum 17 BB +1.5V ESB = be OK 1.48 Volts
0008 SDR Full 01 01 20 a 02 snum 18 BB +5V = c3 OK 5.07 Volts
0009 SDR Full 01 01 20 a 02 snum 1a BB +12V AUX = c1 OK 11.97 Volts
000a SDR Full 01 01 20 a 02 snum 1b BB +0.9V = ba OK 0.89 Volts
000b SDR Full 01 01 20 a 01 snum 30 Baseboard Temp = 2d OK 45.00 degrees C
000c SDR Full 01 01 20 a 01 snum 32 Front Panel Temp = 1a OK 26.00 degrees C
000d SDR Full 01 01 20 a 01 snum 48 Mem Therm Margin = 00 Init 0.00 degrees C
000e SDR Full 01 01 20 m 04 snum 50 Fan 1A = 6f OK 7659.00 RPM
000f SDR Full 01 01 20 m 04 snum 51 Fan 1B = 6b OK 5457.00 RPM
0010 SDR Full 01 01 20 m 04 snum 52 Fan 2A = 69 OK 7245.00 RPM
0011 SDR Full 01 01 20 m 04 snum 53 Fan 2B = 6b OK 5457.00 RPM
0012 SDR Full 01 01 20 m 04 snum 54 Fan 3A = 6c OK 7452.00 RPM
0013 SDR Full 01 01 20 m 04 snum 55 Fan 3B = 6b OK 5457.00 RPM
0014 SDR Full 01 01 20 m 04 snum 56 Fan 4A = 6f OK 7659.00 RPM
0015 SDR Full 01 01 20 m 04 snum 57 Fan 4B = 69 OK 5355.00 RPM
0016 SDR Full 01 01 20 m 04 snum 58 Fan 5 = 63 OK 6534.00 RPM
0017 SDR Full 01 01 20 a 03 snum 78 PS1 AC Current = 05 OK 0.31 Amps
0018 SDR Full 01 01 20 a 03 snum 79 PS2 AC Current = 16 OK 1.39 Amps
0019 SDR Full 01 01 20 a 03 snum 7a PS1 +12V Current = 01 OK 0.50 Amps
001a SDR Full 01 01 20 a 03 snum 7b PS2 +12V Current = 12 OK 9.00 Amps
001b SDR Full 01 01 20 a 0b snum 7c PS1 +12V Power = 01 OK 4.00 Watts
001c SDR Full 01 01 20 a 0b snum 7d PS2 +12V Power = 1b OK 108.00 Watts
001d SDR Full 01 01 20 a 01 snum 99 P1 Therm Margin = c7 OK -57.00 degrees C
001e SDR Full 01 01 20 m 01 snum c0 P1 Therm Ctrl % = 00 OK 0.00 unspecified
001f SDR Full 01 01 20 a 02 snum d0 Proc 1 Vccp = b0 OK 1.09 Volts
0020 SDR Comp 02 6f 20 a 09 snum 01 Power Unit = 00 c0 00 00 Enabled
0021 SDR Comp 02 0b 20 a 09 snum 02 Power Redundancy = 00 c0 01 00 Redundant
0022 SDR Comp 02 6f 20 a 23 snum 03 BMC Watchdog = 00 c0 00 00 OK
0023 SDR Comp 02 6f 20 a 06 snum 04 Scrty Violation = 00 c0 00 00 OK
0024 SDR Comp 02 6f 20 a 13 snum 07 FP Interrupt = 00 c0 00 00 OK
0025 SDR Comp 02 6f 20 a 10 snum 09 Event Log Clear = 00 c0 00 00 OK
0026 SDR Comp 02 6f 20 a 2a snum 0a Session Audit = 00 c0 00 00 Activated
0027 SDR Comp 02 6f 20 a 12 snum 0b System Event = 00 c0 00 00 OK
0028 SDR Comp 02 6f 20 a 29 snum 1e BB Vbat = 00 c0 00 00 OK
0029 SDR Comp 02 6f 20 a 08 snum 70 PS1 Status = 00 c0 01 00 Present
002a SDR Comp 02 6f 20 a 08 snum 71 PS2 Status = 00 c0 01 00 Present
002b SDR Comp 02 6f 20 a 22 snum 82 ACPI State = 00 c0 01 00 Working
002c SDR Comp 02 6f 20 a 14 snum 84 Button = 00 c0 00 00 OK
002d SDR Comp 02 03 20 a f3 snum 85 SMI Timeout = 00 c0 01 00 Enabled
002e SDR Comp 02 03 20 a c0 snum 87 NMI State = 00 c0 01 00 Enabled
002f SDR Comp 02 03 20 a c0 snum 88 SMI State = 00 80 01 00 Enabled
0030 SDR Comp 02 6f 20 m 07 snum 90 Processor 1 Stat = 00 c0 80 00 ProcPresent
0031 SDR Comp 02 6f 20 a 13 snum a0 PCIe Link0 = 00 c0 00 00 OK
0032 SDR Comp 02 6f 20 a 13 snum a1 PCIe Link1 = 00 c0 00 00 OK
0033 SDR Comp 02 6f 20 a 13 snum a2 PCIe Link2 = 00 c0 00 00 OK
0034 SDR Comp 02 6f 20 a 13 snum a3 PCIe Link3 = 00 c0 00 00 OK
0035 SDR Comp 02 6f 20 a 13 snum a4 PCIe Link4 = 00 c0 00 00 OK
0036 SDR Comp 02 6f 20 a 13 snum a5 PCIe Link5 = 00 c0 00 00 OK
0037 SDR Comp 02 6f 20 a 13 snum a6 PCIe Link6 = 00 c0 00 00 OK
0038 SDR Comp 02 6f 20 a 13 snum a7 PCIe Link7 = 00 c0 00 00 OK
0039 SDR Comp 02 6f 20 a 13 snum a8 PCIe Link8 = 00 c0 00 00 OK
003a SDR Comp 02 6f 20 a 13 snum a9 PCIe Link9 = 00 c0 00 00 OK
003b SDR Comp 02 6f 20 a 13 snum aa PCIe Link10 = 00 c0 00 00 OK
003c SDR Comp 02 6f 20 a 13 snum ab PCIe Link11 = 00 c0 00 00 OK
003d SDR Comp 02 6f 20 a 13 snum ac PCIe Link12 = 00 c0 00 00 OK
003e SDR Comp 02 6f 20 a 13 snum ad PCIe Link13 = 00 c0 00 00 OK
003f SDR Comp 02 05 20 m 01 snum c8 CPU1 VRD Temp = 00 c0 00 00 OK*
0040 SDR Comp 02 05 20 a 02 snum d2 CPU1 Vcc OOR = 00 c0 00 00 OK
0041 SDR Comp 02 03 20 a 07 snum d8 CPU Popul Error = 00 c0 00 00 OK
0042 SDR Comp 02 6f 20 a 21 snum e0 DIMM 1A = 00 c0 04 00 Present
0043 SDR Comp 02 6f 20 a 21 snum e1 DIMM 2A = 00 e0 40 00 NotAvailable
0044 SDR Comp 02 6f 20 a 21 snum e2 DIMM 3A = 00 e0 40 00 NotAvailable
0045 SDR Comp 02 6f 20 a 21 snum e3 DIMM 1B = 00 c0 04 00 Present
0046 SDR Comp 02 6f 20 a 21 snum e4 DIMM 2B = 00 e0 40 00 NotAvailable
0047 SDR Comp 02 6f 20 a 21 snum e5 DIMM 3B = 00 e0 40 00 NotAvailable
0048 SDR Comp 02 6f 20 a 0c snum ec Mem A Error = 00 c0 00 00 OK
0049 SDR Comp 02 6f 20 a 0c snum ed Mem B Error = 00 c0 00 00 OK
004a SDR Comp 02 6f 20 a 25 snum f0 DIMM Spare Enb = 00 e0 40 00 NotAvailable
004b SDR Comp 02 0b 20 a 0c snum f1 DIMM Spare Redu = 00 e0 40 00 NotAvailable
004c SDR FRU 11 18 dev: 20 00 80 00 0c 01 Baseboard FRU
004d SDR FRU 11 19 dev: 20 02 80 00 15 01 Power Dist FRU
004e SDR FRU 11 1b dev: 20 03 80 00 0a 01 Pwr Supply 1 FRU
004f SDR FRU 11 1b dev: 20 04 80 00 0a 02 Pwr Supply 2 FRU
0050 SDR IPMB 12 1b dev: 20 00 bf 07 01 Basbrd Mgmt Ctlr
0051 SDR OEM c0 09 Intel: 02 02 00 01 70 71
0052 SDR OEM c0 05 Intel: 06 01
0053 SDR OEM c0 19 Intel: 0b 01 01 32 14 f0 0a a4 01 96 00 61 00 08 0a 64 00 05 00 00 00 00
0054 SDR OEM c0 19 Intel: 0b 02 01 32 14 f0 0a a4 01 ff ff ff ff 10 14 ff ff 06 00 00 00 00
0055 SDR OEM c0 19 Intel: 0b 01 02 32 14 f0 0a a4 01 96 00 61 00 08 0a 64 00 05 00 00 00 00
0056 SDR OEM c0 19 Intel: 0b 02 02 32 14 f0 0a a4 01 ff ff ff ff 10 14 ff ff 06 00 00 00 00
0057 SDR OEM c0 2c Intel: 0c 01 30 64 64 01 02 03 30 20 32 64 01 90 0d 00 2b 20 30 21 35 22 3a 23 3f 24 43 25 47 26 4c 27 51 28 56 29 5b 2a 60 2b 64
0058 SDR OEM c0 2c Intel: 0c 02 30 64 64 01 02 03 30 20 32 64 01 90 0d 00 2b 20 30 21 35 22 3a 23 3f 24 43 25 47 26 4c 27 51 28 56 29 5b 2a 60 2b 64
0059 SDR OEM c0 2c Intel: 0c 03 30 64 64 01 02 03 30 20 32 64 01 90 0d 00 2b 20 30 21 35 22 3a 23 3f 24 43 25 47 26 4c 27 51 28 56 29 5b 2a 60 2b 64
005a SDR OEM c0 15 Intel: 0c 01 30 64 64 01 02 03 00 20 99 64 02 90 01 06 00 11
005b SDR OEM c0 15 Intel: 0c 01 30 64 64 01 02 03 00 20 48 00 02 b8 01 02 00 00
005c SDR OEM c0 15 Intel: 0c 02 30 64 64 01 02 03 00 20 99 64 02 90 01 06 00 11
005d SDR OEM c0 15 Intel: 0c 03 30 64 64 01 02 03 00 20 30 64 02 90 01 02 3c 00
005e SDR OEM c0 0e Intel: 08 00 00 45 88 45 88 45 88 45 88
005f SDR OEM c0 16 Intel: 09 00 00 90 33 90 33 90 33 90 33 90 33 90 33 68 42 68 42
0060 SDR OEM c0 08 Intel: BMC_TAM0 60 01 03 01 20 nrec=4 cfg=01
0061 SDR OEM c0 31 Intel: BMC_TAM1 60 01 13 00 20 41 01 01 01 23 71 93 41 02 01 02 24 72 94 41 03 01 02 24 72 94 21 04 01 01 23 11 02 05 14 31 29 6f 01 13 23 21 09 0b 14 34
0062 SDR OEM c0 31 Intel: BMC_TAM2 60 01 23 00 20 71 07 6f 03 13 23 33 43 55 83 11 08 6f 14 21 09 6f 54 64 20 7c 01 72 94 20 7d 01 72 94 11 21 6f 03 53 23 6f 05 15 25 35 85
0063 SDR OEM c0 17 Intel: BMC_TAM3 60 01 33 00 c0 22 02 00 03 51 22 03 00 03 51 22 04 00 03 51
0064 SDR OEM c0 0e Intel: SDR File 18
0065 SDR OEM c0 11 Intel: SDR Package 18
SDR IPMI sensor: Power On Hours = 6923 hours
sensor, completed successfully
# ipmiutil serial
ipmiutil ver 2.21
tmconfig ver 2.21
-- BMC version 0.19, IPMI version 2.0
Code 0 SEL Ver 81 Support 15
tmconfig: GetSerEntry for channel 4 ...
Serial Param(0) Set in progress: 00
Serial Param(1) Auth type support: 15 : None MD5 Pswd
Serial Param(2) Auth type enables: 14 14 14 14 00
Serial Param(3) Connection Mode: 87
Serial Param(4) Sess Inactiv Timeout: 00 : infinite
Serial Param(5) Channel Callback: 00 00 ff ff ff
Serial Param(6) Session Termination: 03
Serial Param(7) IPMI Msg Comm: 20 0a : no_flow, DTR, 115.2k
Serial Param(8) Mux Switch: 16 08
Serial Param(9) Modem Ring Time: 3f 00
Serial Param(10) Modem Init String: 01 ATE1Q0V1X4&D2&C1
Serial Param(11) Modem Escape Seq: +++
Serial Param(12) Modem Hangup Seq: ATH
Serial Param(13) Modem Dial Command: ATD
Serial Param(14) Page Blackout Interval: 00
Serial Param(15) Community String: public
Serial Param(16) Num of Alert Dest: 08
Serial Param(17) Destination Info: 01 00 05 03 00
Serial Param(17) Destination Info: 02 00 05 03 00
Serial Param(17) Destination Info: 03 00 05 03 00
Serial Param(17) Destination Info: 04 00 05 03 00
Serial Param(17) Destination Info: 05 00 05 03 00
Serial Param(17) Destination Info: 06 00 05 03 00
Serial Param(17) Destination Info: 07 00 05 03 00
Serial Param(17) Destination Info: 08 00 05 03 00
Serial Param(18) Call Retry Interval: 3c
Serial Param(19) Destination Comm Settings: 01 00 07 : no_flow, 8N1, 19.2k
Serial Param(19) Destination Comm Settings: 02 00 07 : no_flow, 8N1, 19.2k
Serial Param(19) Destination Comm Settings: 03 00 07 : no_flow, 8N1, 19.2k
Serial Param(19) Destination Comm Settings: 04 00 07 : no_flow, 8N1, 19.2k
Serial Param(19) Destination Comm Settings: 05 00 07 : no_flow, 8N1, 19.2k
Serial Param(19) Destination Comm Settings: 06 00 07 : no_flow, 8N1, 19.2k
Serial Param(19) Destination Comm Settings: 07 00 07 : no_flow, 8N1, 19.2k
Serial Param(19) Destination Comm Settings: 08 00 07 : no_flow, 8N1, 19.2k
Serial Param(20) Number Dial Strings: 06
Serial Param(21) Dest Dial String: 01 01
Serial Param(21) Dest Dial String: 02 01
Serial Param(21) Dest Dial String: 03 01
Serial Param(21) Dest Dial String: 04 01
Serial Param(21) Dest Dial String: 05 01
Serial Param(21) Dest Dial String: 06 01
Serial Param(22) Number Dest IP Addrs: 04
Serial Param(23) Dest IP Address: 01 0 0 0 0
Serial Param(23) Dest IP Address: 02 0 0 0 0
Serial Param(23) Dest IP Address: 03 0 0 0 0
Serial Param(23) Dest IP Address: 04 0 0 0 0
Serial Param(29) Terminal Mode Config: 66 11
Channel Access Mode(4=Ser): 2b 04 : Access = Shared, PEF Alerts Disabled
Get User Access (1): 0f 02 01 14 : IPMI, Admin ()
Get User Access (2): 0f 02 01 14 : IPMI, Admin (usr2)
Get User Access (3): 0f 02 01 0f : No access ()
Get User Access (4): 0f 02 01 0f : No access ()
Get Serial MUX Status: 04
Get Boot Options(3): 01 03 00
tmconfig, completed successfully
# ipmiutil sol -a -N 10.243.42.136
ipmiutil ver 2.21
isolconsole ver 2.21
Opening connection to node 10.243.42.136 ...
Connected to node 10.243.42.136 10.243.42.136
-- BMC version 0.17, IPMI version 2.0
Opening connection to node 10.243.42.136 ...
[SOL session is running, use '~' to end session.]
isolconsole exit via user input
isolconsole, completed successfully
# ipmiutil wdt
ipmiutil ver 2.21
wdt ver 2.21
-- BMC version 0.19, IPMI version 2.0
wdt data: 01 01 00 00 00 00 00 00
Watchdog timer is stopped for use with BIOS FRB2. Logging
pretimeout is 0 seconds, pre-action is None
timeout is 0 seconds, counter is 0 seconds
action is Hard Reset
wdt, completed successfully
# ipmi_port
ipmi_port ver 1.1
open_rmcp_port(623) succeeded, sleeping
--------------------------
7.0 PROBLEMS
--------------------------
Note that each utility function has an option for extra debug output (-x),
which can be used to find out the specific function which returned an
error.
For best-effort support, email the ipmiutil-developer mailing list:
http://lists.sourceforge.net/lists/listinfo/ipmiutil-developers
or enter a bug report at:
http://sourceforge.net/tracker/?group_id=116222&func=browse
7.1 ERROR RETURN CODES
Return code = 0 means success, negative numbers indicate failure, and a
positive return code represents an IPMI completion code.
RetCode Description
------ -----------------------------------------
0 "completed successfully"
-1 "error -1", a generic error, usually returned by an OS routine
-2 "send to BMC failed" over IPMI LAN
-3 "receive from BMC failed" over IPMI LAN
-4 "cannot connect to BMC" over IPMI LAN
-5 "abort signal caught", the user pressed Ctl-C
-6 "timeout occurred", the timeout for a response expired
-7 "length greater than max", length supplied was too big
-8 "invalid lan parameter", invalid parameter for IPMI LAN function
-9 "request not supported", a requested function is not supported
-10 "receive too short", did not receive the minimum number of bytes
-11 "error resolving hostname" neither DNS or hosts could resolve to an IP
-12 "error during ping" could not perform the RMCP ping function
-13 "BMC only supports lan v1". LAN 2.0 (lanplus) was attempted, but this
BMC firmware only supports IPMI LAN 1.x
-14 "BMC only supports lan v2". LAN 1.x was attempted, but this BMC
supports LAN 2.0 but not LAN 1.x, which violates the IPMI 2.0 spec.
-15 "other error", an unknown error occurred
-16 "cannot open IPMI driver". No IPMI driver could be opened. Since
the driverless mode is also attempted, this usually means that the
user does not have root privilege.
-17 "invalid parameter" a parameter was out of bounds
-18 "access not allowed" user does not have access to this file or function
-19 "session dropped by BMC" the BMC firmware aborted the IPMI session
-20 "cannot open file" cannot open the specified file
-21 "item not found" requested item was not found
-22 "usage or help requested", the user requested usage/help
-23 "bad format", the data format is invalid, cannot proceed
-504 "error getting msg from BMC" during driverless I/Os, a command did
not get a response.
7.2 IPMI COMPLETION CODES
IPMI Completion Codes are defined in IPMI 1.5, Table 5-2, and are also
included below in both hex and decimal format. Note that the meaning of
completion codes 0x80-0x9f may vary depending on the command.
Code Dec Description
---- --- -----------------------------------------
0x00, 0, "Command completed successfully",
0x80, 128, "Invalid Session Handle or Empty Buffer",
0x81, 129, "Lost Arbitration",
0x82, 130, "Bus Error",
0x83, 131, "NAK on Write - busy",
0x84, 132, "Truncated Read",
0xC0, 192, "Node Busy",
0xC1, 193, "Invalid Command",
0xC2, 194, "Command invalid for given LUN",
0xC3, 195, "Timeout while processing command",
0xC4, 196, "Out of space",
0xC5, 197, "Invalid Reservation ID, or cancelled",
0xC6, 198, "Request data truncated",
0xC7, 199, "Request data length invalid",
0xC8, 200, "Request data field length limit exceeded",
0xC9, 201, "Parameter out of range",
0xCA, 202, "Cannot return requested number of data bytes",
0xCB, 203, "Requested sensor, data, or record not present",
0xCC, 204, "Invalid data field in request",
0xCD, 205, "Command illegal for this sensor/record type",
0xCE, 206, "Command response could not be provided",
0xCF, 207, "Cannot execute duplicated request",
0xD0, 208, "SDR Repository in update mode, no response",
0xD1, 209, "Device in firmware update mode, no response",
0xD2, 210, "BMC initialization in progress, no response",
0xD3, 211, "Destination unavailable",
0xD4, 212, "Cannot execute command. Insufficient privilege level",
0xD5, 213, "Cannot execute command. Request parameters not supported",
0xFF, 255, "Unspecified error"
-------------------------------
8.0 BUILDING IPMI UTILITIES
-------------------------------
The ipmiutil source package provides IPMI-based utilities and kernel
patches for managing various servers in Linux or Windows.
The same source files can be built in both Linux and Windows as shown
below.
To get the ipmiutil source:
Download the latest released ipmiutil-*.tar.gz from
http://sourceforge.net/projects/ipmiutil/files/
Or download a tar.gz of the current subversion trunk with the latest source
http://ipmiutil.svn.sourceforge.net/viewvc/ipmiutil/trunk/?view=tar
Or, if you have subversion installed, you can check out the latest source
by doing:
# svn co https://ipmiutil.svn.sourceforge.net/svnroot/ipmiutil ipmiutil
See also section 4.9 for information about building custom applications
using ipmiutil library APIs. The ipmi_sample.c shows a sample application
using the ipmiutil library.
8.1 Build instructions for Linux
To build with some GPL code:
If you are building ipmiutil for open-source, then the MD2 hash
for IPMI LAN and the valinux driver interface (/dev/ipmikcs) can
be supported. If so, you should specify the following during
configure:
"./configure --enable-gpl"
The default is to build with only BSD-licensed code and not to
include the MD2 and valinux features. The md2.h and ipmi_ioctl.h
files with GPL code can be removed if this option is not enabled.
To build a standalone binary without IPMI LAN 2.0 (lanplus plugin),
which may be desirable for use on bootable media (USB/CDROM), to
decrease the size or to avoid using libcrypto, you can specify the
following during configure:
"./configure --enable-standalone"
builds it without lanplus libs and without GPL code.
Only the SOL console function requires lanplus, all other functions can
use the lan interface, since the IPMI 2.0 firmware is required to support
both lan and lanplus. However, lanplus does have more secure encryption,
as provided by libcrypto.
To add LanDesk IPMI support:
Support for the LanDesk IPMI driver requires a library supplied by
LanDesk (libipmiapi.a). After obtaining this library, place it in
lib/libipmiapi.a. Then you can link ipmiutil to support it by
specifying the following during configure:
"./configure --enable-landesk=yes"
Steps to build for Linux:
# ./beforeconf.sh
Which automates these functions:
* copying libtool files
* aclocal (may be needed if automake versions are different)
* autoconf (may be needed if automake versions are different)
* automake
# ./configure
--enable-landesk adds landesk library support [default=no]
--disable-lanplus disable lanplus library support
--enable-standalone build standalone, with no GPL or LanPlus libs.
--enable-gpl build with some GPL code [default=no]
# make
To add the ifruset utility, which allows setting any FRU Product fields:
# cd util; make ifruset
# ifruset -?
To build and install an rpm package, use one of the following:
# make install
# make rpm
The make rpm produces a binary rpm, and a source rpm, which can be
installed with "rpm -i *.rpm".
To build and install a Debian package, do this:
# mv debpkg debian
# dpkg-buildpackage
then install it with "dpkg -i *.deb".
8.2 Build instructions for Windows
The ipmiutil Windows binaries for each release are pre-built and posted
at http://ipmiutil.sourceforge.net, but here is how to build the ipmiutil
EXEs for Windows from source.
Note that the WIN32 compile flag is used.
The ipmiutil buildwin.cmd shows how to compile and link the lib and exe
files, although many people prefer instead to do builds with the
Microsoft VisualStudio project GUI.
See also ipmiutil UserGuide section 5.2 for more details.
1) Install Visual Studio (e.g. VS 6.0 or VC98)
2) Download contrib files from
http://ipmiutil.sf.net/FILES/ipmiutil-contrib.zip
and see section 5.2 for getopt.c and openssl.
3) Copy initial contrib files into ipmiutil
See section 5.2.3 for details
4) Build the openssl libraries according to its INSTALL.W32
5) Copy the resulting openssl LIB and DLL binaries to ipmiutil
6) Set the Visual C variables
Example: "C:\Program Files\Microsoft Visual Studio 8\VC\bin\vcvars32.bat"
7) Run buildwin.cmd
buildwin.cmd will build all of the Windows EXE and DLL files.
8.3 Build instructions for Solaris
# iver=2.7.9
# uname -a
SunOS unknown 5.10 Generic_127128-11 i86pc i386 i86pc
# gunzip ipmiutil-${iver}.tar.gz
# tar xvf ipmiutil-${iver}.tar
# cd ipmiutil-${iver}
# PATH=/usr/sbin:/usr/bin:/usr/ucb:/usr/openwin:/usr/ccs/bin:/usr/sfw/bin
# ./configure
# make
# make tarsol
This produces /tmp/ipmiutil-${iver}-solaris.tar with the binaries.
# gzip /tmp/ipmiutil-${iver}-solaris.tar
Solaris Release Notes:
- Built with support for bmc, lan, and lanplus interfaces.
Supports the Solaris 10 /dev/bmc driver via putmsg method.
- Requests to slave addresses other than BMC are not supported by
the Solaris bmc driver (e.g. to HSC at 0xc0), and are sent to
the BMC sa instead.
- Memory mapping logic returns an error (e.g. BIOS version).
- idiscover -a broadcast ioctl works now in ipmiutil-2.3.1
To Install on Solaris:
gunzip /tmp/ipmiutil-${iver}-solaris.tar.gz
tar xvf /tmp/ipmiutil-${iver}-solaris.tar
./install.sh
8.4 Build instructions for FreeBSD
# iver=2.7.9
# gunzip ipmiutil-${iver}.tar.gz
# tar xvf ipmiutil-${iver}.tar
# cd ipmiutil-${iver}
# ./configure
# make
# make tarbsd
This produces /tmp/ipmiutil-${iver}-bsd.tar with the binaries.
# gzip /tmp/ipmiutil-${iver}-bsd.tar
FreeBSD Release Notes:
- ipmiutil-2.3.5 supports FreeBSD with direct driverless KCS
- ipmiutil-2.5.2 adds support for FreeBSD 7.x ipmi driver port
To Install on FreeBSD:
gunzip /tmp/ipmiutil-${iver}-bsd.tar.gz
tar xvf /tmp/ipmiutil-${iver}-bsd.tar
./install.sh
8.5 Build instructions for ARM (Android)
# tar -xzvf ipmiutil-${iver}.tar.gz
# cd ipmiutil-${iver}
# ./configure --enable-standalone --host=arm
# make
-----------------------------
10.0 IPMIUTIL LIBRARY APIS
-----------------------------
Below are some common routines available in the ipmiutil library.
Also refer to util/ipmi_sample.c for an example of how these APIs are used.
/*
* ipmi_cmd
* ushort cmd (input): (netfn << 8) + command
* uchar *pdata (input): pointer to ipmi data
* int sdata (input): size of ipmi data
* uchar *presp (output): pointer to response data buffer
* int *sresp (input/output): on input, size of response buffer,
* on output, length of response data
* uchar *cc (output): completion code
* char fdebugcmd(input): flag =1 if debug output desired
* returns 0 if successful, <0 if error
*/
int ipmi_cmd(ushort cmd, uchar *pdata, int sdata, uchar *presp,
int *sresp, uchar *pcc, char fdebugcmd);
/*
* ipmi_cmdraw
* uchar cmd (input): IPMI Command
* uchar netfn (input): IPMI NetFunction
* uchar sa (input): IPMI Slave Address of the MC
* uchar bus (input): BUS of the MC
* uchar lun (input): IPMI LUN
* uchar *pdata (input): pointer to ipmi data
* int sdata (input): size of ipmi data
* uchar *presp (output): pointer to response data buffer
* int *sresp (input/output): on input, size of response buffer,
* on output, length of response data
* uchar *cc (output): completion code
* char fdebugcmd(input): flag =1 if debug output desired
* returns 0 if successful, <0 if error
*/
int ipmi_cmdraw(uchar cmd, uchar netfn, uchar sa, uchar bus, uchar lun,
uchar *pdata, int sdata, uchar *presp,
int *sresp, uchar *pcc, char fdebugcmd);
/*
* ipmi_close_
* Called to close an IPMI session.
* returns 0 if successful, <0 if error
*/
int ipmi_close_(void);
int ipmi_close(void); /*ditto*/
/*-----------------------------------------------------------------*
* These externals are conditionally compiled in ipmicmd.c
ipmi_cmdraw_ia() Intel IMB driver, /dev/imb
ipmi_cmdraw_mv() MontaVista OpenIPMI driver
ipmi_cmdraw_va() VALinux driver
ipmi_cmdraw_ld() LANDesk driver
ipmi_cmdraw_direct() Direct/Driverless KCS or SSIF
ipmi_cmdraw_lan() IPMI LAN
ipmi_cmdraw_lan2() IPMI LANplus (RMCP+ in IPMI 2.0)
*-----------------------------------------------------------------*/
/*
* parse_lan_options
* Parse the IPMI LAN options from the command-line getopt.
* int c (input): command-line option from getopt, one of:
case 'F': force driver type
case 'T': auth type
case 'V': priv level
case 'J': cipher suite
case 'N': nodename
case 'U': username
case 'R': remote password
case 'P': remote password
case 'E': get password from IPMI_PASSWORD environment var
case 'Y': prompt for remote password
case 'Z': set local MC address
* char *optarg (input): command-line argument from getopt
* char fdebug (input): show debug messages if =1, default=0
*/
void parse_lan_options(int c, char *optarg, char fdebug);
/*
* set_lan_options
* Use this routine to set the lan options 'gnode','guser','gpswd', etc.
* This would only be required before opening a new session.
* char *node (input): IP address or nodename of remote node's IPMI LAN
* char *user (input): IPMI LAN username
* char *pswd (input): IPMI LAN password
* int auth (input): IPMI LAN authentication type (1 - 5)
* IPMI_SESSION_AUTHTYPE_NONE 0x00
* IPMI_SESSION_AUTHTYPE_MD2 0x01
* IPMI_SESSION_AUTHTYPE_MD5 0x02
* IPMI_SESSION_AUTHTYPE_PASSWORD 0x04
* IPMI_SESSION_AUTHTYPE_OEM 0x05
* int priv (input): IPMI LAN privilege level (1 - 5)
* IPMI_PRIV_LEVEL_CALLBACK 0x01
* IPMI_PRIV_LEVEL_USER 0x02
* IPMI_PRIV_LEVEL_OPERATOR 0x03
* IPMI_PRIV_LEVEL_ADMIN 0x04
* IPMI_PRIV_LEVEL_OEM 0x05
* int cipher (input): IPMI LAN cipher suite (0 thru 17, default is 3)
* See table 22-19 in the IPMIv2 spec.
* void *addr (input): Socket Address to use (SOCKADDR_T *) if not NULL
* This is only used in itsol.c because it has an
* existing socket open. Default is NULL for this.
* int addr_len (input): length of Address buffer (128 if ipv6, 16 if ipv4)
* returns 0 if successful, <0 if error
*/
int set_lan_options(char *node, char *user, char *pswd, int auth, int priv,
int cipher, void *addr, int addr_len);
int get_lan_options(char *node, char *user, char *pswd, int *auth, int *priv,
int *cipher, void *addr, int *addr_len);
void print_lan_opt_usage(void);
int ipmi_getdeviceid(uchar *presp, int sresp, char fdebugcmd);
/* int ipmi_open(void); * embedded in ipmi_cmd() */
int ipmi_getpicmg(uchar *presp, int sresp, char fdebug);
char *show_driver_type(int idx);
int set_driver_type(char *tag);
int get_driver_type(void);
int nodeislocal(char *nodename);
/* These *_mc routines are used to manage changing the mc.
* The local mc (mymc) may be changed via -Z, and
* the remote mc (mc) may be changed with -m. */
void ipmi_set_mc(uchar bus, uchar sa, uchar lun, uchar type);
void ipmi_get_mc(uchar *bus, uchar *sa, uchar *lun, uchar *type);
void ipmi_restore_mc(void);
void ipmi_set_mymc(uchar bus, uchar sa, uchar lun, uchar type);
void ipmi_get_mymc(uchar *bus, uchar *sa, uchar *lun, uchar *type);
/* ipmi_cmdraw_mc and ipmi_cmd_mc are used in cases where the mc may
* have been changed via ipmi_set_mc. */
int ipmi_cmdraw_mc(uchar cmd, uchar netfn,
uchar *pdata, int sdata, uchar *presp,
int *sresp, uchar *pcc, char fdebugcmd);
int ipmi_cmd_mc(ushort icmd, uchar *pdata, int sdata, uchar *presp,
int *sresp, uchar *pcc, char fdebugcmd);
/* ipmi_sendrecv is a wrapper for ipmi_cmdraw which maps to ipmitool syntax */
int ipmi_sendrecv(struct ipmi_rq * req, uchar *rsp, int *rsp_len);
/* other common subroutines */
char * decode_rv(int rv); /*ipmicmd.c*/
char * decode_cc(ushort icmd, int cc);
void dump_buf(char *tag,uchar *pbuf,int sz, char fshowascii);
int get_lan_channel(uchar chstart, uchar *chan);
void show_fru_picmg(uchar *pdata, int dlen); /* ifru_picmg.c*/
/* show_outcome outputs the meaning of the return code. */
void show_outcome(char *prog, int ret);
/* these log routines are primarily for the isol debug log */
FILE *open_log(char *mname);
void close_log(void);
void flush_log(void);
void print_log( char *pattn, ... );
void dump_log(FILE *fp,char *tag,uchar *pbuf,int sz, char fshowascii);
void logmsg( char *pname, char *pattn, ... );
#ifdef WIN32
/* Implement the Linux strncasecmp for Windows. */
int strncasecmp(const char *s1, const char *s2, int n);
#endif
const char *val2str(ushort val, const struct valstr *vs); /*ipmilanplus.c*/
const char * oemval2str(ushort oem, uchar val, const struct oemvalstr *vs);
void set_debug(void); /*used only by oem_sun.c*/
void set_iana(int iana); /*ipmicmd.c*/
void set_mfgid(uchar *devid, int len);
void get_mfgid(int *pvend, int *pprod);
void get_devid_ver(uchar *bmaj, uchar *bmin, uchar *iver);
char *get_nodename(void);
char is_remote(void);
void show_devid(uchar b1, uchar b2, uchar i1, uchar i2);
int set_max_kcs_loops(int ms); /* ipmicmd.c, calls ipmidir.c if ok */
/* These common subroutines are in subs.c */
int str_icmp(char *s1, char *s2); /*used internally in ipmicmd.c*/
char * strdup_(const char *instr); /*wrapper for strdup, supports WIN32*/
int strlen_(const char *s); /*wrapper for strlen, avoids compile warnings*/
uchar htoi(char *inhex);
void os_usleep(int s, int u);
char *get_iana_str(int mfg); /*subs.c*/
int get_errno(void); /*subs.c*/
const char * buf2str(uchar * buf, int len); /*subs.c*/
int str2uchar(char *str_in, uchar *uchr_out);
uchar atob(char *str_in); /* calls str2uchar*/
void atoip(uchar *array,char *instr);
int get_system_info(uchar parm, char *pbuf, int *szbuf); /*subs.c*/
int set_system_info(uchar parm, uchar *pbuf, int szbuf); /*subs.c*/
int ipmi_reserved_user(int vend, int userid); /*subs.c*/
/* from mem_if.c */
int get_BiosVersion(char *str);
/* See util/isensor.h for SDR cache routines. */
/* See util/ievents.h for sensor_type_desc, sel_opts, decode_sel routines. */
--------------------------
10.0 RELATED INFORMATION
--------------------------
10.1 History
History of ipmiutil:
This project started in October 2001 as part of the Carrier Grade Linux effort.
It was then known as 'panicsel' and included a kernel patch to write a Linux
panic event to the IPMI firmware log, as well as utilities.
This code was first included in MontaVista CGE Linux 2.1 in July 2002.
The panicsel functionality was included in OSDL CGL 1.0 and 2.0 requirements.
The kernel panic functionality was included in the OpenIPMI driver for 2.6
Linux kernels. Compile flags for Windows 2000 & 2003 support were added in
Jan 2004.
In August 2004, the project was moved from panicsel.sf.net to ipmiutil.sf.net.
The new name more clearly reflects the purpose of the project in its current
state. In November 2004, support for the FreeIPMI library was added.
A Linux rpm and a Windows setup package for ipmiutil is included on the
Resource CD with Intel carrier-grade servers.
The ipmiutil (or panicsel) rpm is known to be included in the following
distributions: MontaVista CGE 2.1/3.0/3.1/4.0, SuSE SLES9, Red Flag 5.0
10.2 Links
Links with information related to the IPMI Management Utilities project.
ipmiutil project, sourceforge http://ipmiutil.sourceforge.net (current)
panicsel project, sourceforge http://panicsel.sourceforge.net (old)
IPMI Specification http://www.intel.com/design/servers/ipmi/index.htm
OSDL Carrier Grade Linux http://www.osdl.org/lab_activities/carrier_grade_linux/
Intel imb driver source http://downloadfinder.intel.com/scripts-df-external/Product_Search.asp?Prod_nm=ipmi*driver*source
Intel imb driver for Windows http://downloadfinder.intel.com/scripts-df-external/Product_Search.aspx?Prod_nm=imb+driver
OpenIPMI project http://sourceforge.net/projects/openipmi/
by Corey Minyard of MontaVista (home= http://openipmi.sourceforge.net)
ipmitools project by San Mehat http://sourceforge.net/projects/ipmitools/
valinux IPMI driver http://cvs.sf.net/cgi-bin/viewcvs.cgi/ipmitools/ipmitools/kernel/kcs/patches/2.4.x/
GNU FreeIPMI library project http://www.gnu.org/software/freeipmi/
LANDesk IPMI driver/daemon http://www.landesk.com/Support/ (or see
Intel System Resource CD for Intel servers)
lm-sensors project http://secure.netroedge.com/~lm78/
dmidecode project http://www.nongnu.org/dmidecode/
IPMI vendor/mfg IDs http://www.iana.org/assignments/enterprise-numbers
|