/usr/include/ipmi_monitoring.h is in libipmimonitoring-dev 0.8.12-3ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 | /*****************************************************************************\
* $Id: ipmi_monitoring.h,v 1.51.4.4 2010-06-10 22:10:06 chu11 Exp $
*****************************************************************************
* Copyright (C) 2007-2010 Lawrence Livermore National Security, LLC.
* Copyright (C) 2006-2007 The Regents of the University of California.
* Produced at Lawrence Livermore National Laboratory (cf, DISCLAIMER).
* Written by Albert Chu <chu11@llnl.gov>
* UCRL-CODE-222073
*
* This file is part of Ipmimonitoring, an IPMI sensor monitoring
* library. For details, see http://www.llnl.gov/linux/.
*
* Ipmimonitoring is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by the
* Free Software Foundation; either version 2 of the License, or (at your
* option) any later version.
*
* Ipmimonitoring is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* for more details.
*
* You should have received a copy of the GNU General Public License along
* with Ipmimonitoring. If not, see <http://www.gnu.org/licenses/>.
\*****************************************************************************/
#ifndef _IPMI_MONITORING_H
#define _IPMI_MONITORING_H
#ifdef __cplusplus
extern "C" {
#endif
enum ipmi_monitoring_error_codes
{
IPMI_MONITORING_ERR_SUCCESS = 0,
IPMI_MONITORING_ERR_CTX_NULL = 1,
IPMI_MONITORING_ERR_CTX_INVALID = 2,
IPMI_MONITORING_ERR_PARAMETERS = 3,
IPMI_MONITORING_ERR_PERMISSION = 4,
IPMI_MONITORING_ERR_LIBRARY_UNINITIALIZED = 5,
IPMI_MONITORING_ERR_CONFIG_FILE_PARSE = 6,
IPMI_MONITORING_ERR_SENSOR_CONFIG_FILE_PARSE = 7,
IPMI_MONITORING_ERR_SDR_CACHE_PERMISSION = 8,
IPMI_MONITORING_ERR_SDR_CACHE_FILESYSTEM = 9,
IPMI_MONITORING_ERR_HOSTNAME_INVALID = 10,
IPMI_MONITORING_ERR_SENSOR_NOT_FOUND = 11,
IPMI_MONITORING_ERR_NO_SENSOR_READINGS = 12,
IPMI_MONITORING_ERR_SENSOR_READINGS_LIST_END = 13,
IPMI_MONITORING_ERR_CONNECTION_TIMEOUT = 14,
IPMI_MONITORING_ERR_SESSION_TIMEOUT = 15,
IPMI_MONITORING_ERR_USERNAME_INVALID = 16,
IPMI_MONITORING_ERR_PASSWORD_INVALID = 17,
IPMI_MONITORING_ERR_PASSWORD_VERIFICATION_TIMEOUT = 18,
IPMI_MONITORING_ERR_K_G_INVALID = 19,
IPMI_MONITORING_ERR_PRIVILEGE_LEVEL_INSUFFICIENT = 20,
IPMI_MONITORING_ERR_PRIVILEGEL_LEVEL_CANNOT_BE_OBTAINED = 21,
IPMI_MONITORING_ERR_AUTHENTICATION_TYPE_UNAVAILABLE = 22,
IPMI_MONITORING_ERR_IPMI_2_0_UNAVAILABLE = 23,
IPMI_MONITORING_ERR_CIPHER_SUITE_ID_UNAVAILABLE = 24,
IPMI_MONITORING_ERR_CALLBACK_ERROR = 25,
IPMI_MONITORING_ERR_BMC_BUSY = 26,
IPMI_MONITORING_ERR_OUT_OF_MEMORY = 27,
IPMI_MONITORING_ERR_IPMI_ERROR = 28,
IPMI_MONITORING_ERR_SYSTEM_ERROR = 29,
IPMI_MONITORING_ERR_INTERNAL_ERROR = 30,
IPMI_MONITORING_ERR_ERRNUMRANGE = 31,
};
enum ipmi_monitoring_sensor_type
{
IPMI_MONITORING_SENSOR_TYPE_TEMPERATURE = 0x00,
IPMI_MONITORING_SENSOR_TYPE_VOLTAGE = 0x01,
IPMI_MONITORING_SENSOR_TYPE_CURRENT = 0x02,
IPMI_MONITORING_SENSOR_TYPE_FAN = 0x03,
IPMI_MONITORING_SENSOR_TYPE_PHYSICAL_SECURITY = 0x04,
IPMI_MONITORING_SENSOR_TYPE_PLATFORM_SECURITY_VIOLATION_ATTEMPT = 0x05,
IPMI_MONITORING_SENSOR_TYPE_PROCESSOR = 0x06,
IPMI_MONITORING_SENSOR_TYPE_POWER_SUPPLY = 0x07,
IPMI_MONITORING_SENSOR_TYPE_POWER_UNIT = 0x08,
IPMI_MONITORING_SENSOR_TYPE_MEMORY = 0x09,
IPMI_MONITORING_SENSOR_TYPE_DRIVE_SLOT = 0x0A,
IPMI_MONITORING_SENSOR_TYPE_SYSTEM_FIRMWARE_PROGRESS = 0x0B,
IPMI_MONITORING_SENSOR_TYPE_EVENT_LOGGING_DISABLED = 0x0C,
IPMI_MONITORING_SENSOR_TYPE_SYSTEM_EVENT = 0x0D,
IPMI_MONITORING_SENSOR_TYPE_CRITICAL_INTERRUPT = 0x0E,
IPMI_MONITORING_SENSOR_TYPE_MODULE_BOARD = 0x0F,
IPMI_MONITORING_SENSOR_TYPE_SLOT_CONNECTOR = 0x10,
IPMI_MONITORING_SENSOR_TYPE_WATCHDOG2 = 0x11,
IPMI_MONITORING_SENSOR_TYPE_ENTITY_PRESENCE = 0x12,
IPMI_MONITORING_SENSOR_TYPE_MANAGEMENT_SUBSYSTEM_HEALTH = 0x13,
IPMI_MONITORING_SENSOR_TYPE_BATTERY = 0x14,
IPMI_MONITORING_SENSOR_TYPE_FRU_STATE = 0x15,
IPMI_MONITORING_SENSOR_TYPE_CABLE_INTERCONNECT = 0x16,
IPMI_MONITORING_SENSOR_TYPE_BOOT_ERROR = 0x17,
IPMI_MONITORING_SENSOR_TYPE_BUTTON_SWITCH = 0x18,
IPMI_MONITORING_SENSOR_TYPE_SYSTEM_ACPI_POWER_STATE = 0x19,
IPMI_MONITORING_SENSOR_TYPE_UNKNOWN = 0x1B,
} ipmi_monitoring_sensor_type_t;
enum ipmi_monitoring_sensor_state
{
IPMI_MONITORING_SENSOR_STATE_NOMINAL = 0x00,
IPMI_MONITORING_SENSOR_STATE_WARNING = 0x01,
IPMI_MONITORING_SENSOR_STATE_CRITICAL = 0x02,
IPMI_MONITORING_SENSOR_STATE_UNKNOWN = 0x03,
};
enum ipmi_monitoring_sensor_units
{
IPMI_MONITORING_SENSOR_UNITS_NONE = 0x00,
IPMI_MONITORING_SENSOR_UNITS_CELSIUS = 0x01,
IPMI_MONITORING_SENSOR_UNITS_FAHRENHEIT = 0x02,
IPMI_MONITORING_SENSOR_UNITS_VOLTS = 0x03,
IPMI_MONITORING_SENSOR_UNITS_AMPS = 0x04,
IPMI_MONITORING_SENSOR_UNITS_RPM = 0x05,
IPMI_MONITORING_SENSOR_UNITS_WATTS = 0x06,
IPMI_MONITORING_SENSOR_UNITS_UNKNOWN = 0x07,
};
enum ipmi_monitoring_sensor_reading_type
{
IPMI_MONITORING_SENSOR_READING_TYPE_UNSIGNED_INTEGER8_BOOL = 0x00,
IPMI_MONITORING_SENSOR_READING_TYPE_UNSIGNED_INTEGER32 = 0x01,
IPMI_MONITORING_SENSOR_READING_TYPE_DOUBLE = 0x02,
IPMI_MONITORING_SENSOR_READING_TYPE_UNKNOWN = 0x03,
};
enum ipmi_monitoring_sensor_bitmask_type
{
IPMI_MONITORING_SENSOR_BITMASK_TYPE_THRESHOLD = 0x00,
IPMI_MONITORING_SENSOR_BITMASK_TYPE_TRANSITION_STATE = 0x01,
IPMI_MONITORING_SENSOR_BITMASK_TYPE_STATE = 0x02,
IPMI_MONITORING_SENSOR_BITMASK_TYPE_PREDICTIVE_FAILURE = 0x03,
IPMI_MONITORING_SENSOR_BITMASK_TYPE_LIMIT = 0x04,
IPMI_MONITORING_SENSOR_BITMASK_TYPE_PERFORMANCE = 0x05,
IPMI_MONITORING_SENSOR_BITMASK_TYPE_TRANSITION_SEVERITY = 0x06,
IPMI_MONITORING_SENSOR_BITMASK_TYPE_DEVICE_PRESENT = 0x07,
IPMI_MONITORING_SENSOR_BITMASK_TYPE_DEVICE_ENABLED = 0x08,
IPMI_MONITORING_SENSOR_BITMASK_TYPE_TRANSITION_AVAILABILITY = 0x09,
IPMI_MONITORING_SENSOR_BITMASK_TYPE_REDUNDANCY = 0x0A,
IPMI_MONITORING_SENSOR_BITMASK_TYPE_ACPI_POWER_STATE = 0x0B,
IPMI_MONITORING_SENSOR_BITMASK_TYPE_PHYSICAL_SECURITY = 0x0C,
IPMI_MONITORING_SENSOR_BITMASK_TYPE_PLATFORM_SECURITY_VIOLATION_ATTEMPT = 0x0D,
IPMI_MONITORING_SENSOR_BITMASK_TYPE_PROCESSOR = 0x0E,
IPMI_MONITORING_SENSOR_BITMASK_TYPE_POWER_SUPPLY = 0x0F,
IPMI_MONITORING_SENSOR_BITMASK_TYPE_POWER_UNIT = 0x10,
IPMI_MONITORING_SENSOR_BITMASK_TYPE_MEMORY = 0x11,
IPMI_MONITORING_SENSOR_BITMASK_TYPE_DRIVE_SLOT = 0x12,
IPMI_MONITORING_SENSOR_BITMASK_TYPE_SYSTEM_FIRMWARE_PROGRESS = 0x13,
IPMI_MONITORING_SENSOR_BITMASK_TYPE_EVENT_LOGGING_DISABLED = 0x14,
IPMI_MONITORING_SENSOR_BITMASK_TYPE_SYSTEM_EVENT = 0x15,
IPMI_MONITORING_SENSOR_BITMASK_TYPE_CRITICAL_INTERRUPT = 0x16,
IPMI_MONITORING_SENSOR_BITMASK_TYPE_MODULE_BOARD = 0x17,
IPMI_MONITORING_SENSOR_BITMASK_TYPE_SLOT_CONNECTOR = 0x18,
IPMI_MONITORING_SENSOR_BITMASK_TYPE_WATCHDOG2 = 0x19,
IPMI_MONITORING_SENSOR_BITMASK_TYPE_ENTITY_PRESENCE = 0x1A,
IPMI_MONITORING_SENSOR_BITMASK_TYPE_MANAGEMENT_SUBSYSTEM_HEALTH = 0x1B,
IPMI_MONITORING_SENSOR_BITMASK_TYPE_BATTERY = 0x1C,
IPMI_MONITORING_SENSOR_BITMASK_TYPE_FRU_STATE = 0x1D,
IPMI_MONITORING_SENSOR_BITMASK_TYPE_CABLE_INTERCONNECT = 0x1E,
IPMI_MONITORING_SENSOR_BITMASK_TYPE_BOOT_ERROR = 0x1F,
IPMI_MONITORING_SENSOR_BITMASK_TYPE_BUTTON_SWITCH = 0x20,
IPMI_MONITORING_SENSOR_BITMASK_TYPE_SYSTEM_ACPI_POWER_STATE = 0x21,
IPMI_MONITORING_SENSOR_BITMASK_TYPE_UNKNOWN = 0x22,
};
enum ipmi_monitoring_driver_type
{
IPMI_MONITORING_DRIVER_TYPE_KCS = 0x00,
IPMI_MONITORING_DRIVER_TYPE_SSIF = 0x01,
IPMI_MONITORING_DRIVER_TYPE_OPENIPMI = 0x02,
IPMI_MONITORING_DRIVER_TYPE_SUNBMC = 0x03,
};
enum ipmi_monitoring_protocol_version
{
IPMI_MONITORING_PROTOCOL_VERSION_1_5 = 0x00,
IPMI_MONITORING_PROTOCOL_VERSION_2_0 = 0x01,
};
enum ipmi_monitoring_privilege
{
IPMI_MONITORING_PRIVILEGE_LEVEL_USER = 0x00,
IPMI_MONITORING_PRIVILEGE_LEVEL_OPERATOR = 0x01,
IPMI_MONITORING_PRIVILEGE_LEVEL_ADMIN = 0x02,
};
enum ipmi_monitoring_authentication_type
{
IPMI_MONITORING_AUTHENTICATION_TYPE_NONE = 0x00,
IPMI_MONITORING_AUTHENTICATION_TYPE_STRAIGHT_PASSWORD_KEY = 0x01,
IPMI_MONITORING_AUTHENTICATION_TYPE_MD2 = 0x02,
IPMI_MONITORING_AUTHENTICATION_TYPE_MD5 = 0x03,
};
enum ipmi_monitoring_flags
{
IPMI_MONITORING_FLAGS_NONE = 0x00,
IPMI_MONITORING_FLAGS_DEBUG = 0x01,
IPMI_MONITORING_FLAGS_DEBUG_IPMI_PACKETS = 0x02,
IPMI_MONITORING_FLAGS_LOCK_MEMORY = 0x04,
};
/* Note: Non-logical bitmask order is set for consistency of masks
* with libfreeipmi bitmasks.
*/
enum ipmi_monitoring_workaround_flags
{
IPMI_MONITORING_WORKAROUND_FLAGS_ACCEPT_SESSION_ID_ZERO = 0x00000001,
IPMI_MONITORING_WORKAROUND_FLAGS_FORCE_PERMSG_AUTHENTICATION = 0x00000002,
IPMI_MONITORING_WORKAROUND_FLAGS_CHECK_UNEXPECTED_AUTHCODE = 0x00000004,
IPMI_MONITORING_WORKAROUND_FLAGS_BIG_ENDIAN_SEQUENCE_NUMBER = 0x00000008,
IPMI_MONITORING_WORKAROUND_FLAGS_AUTHENTICATION_CAPABILITIES = 0x00000010,
IPMI_MONITORING_WORKAROUND_FLAGS_INTEL_2_0_SESSION = 0x01000000,
IPMI_MONITORING_WORKAROUND_FLAGS_SUPERMICRO_2_0_SESSION = 0x02000000,
IPMI_MONITORING_WORKAROUND_FLAGS_SUN_2_0_SESSION = 0x04000000,
IPMI_MONITORING_WORKAROUND_FLAGS_OPEN_SESSION_PRIVILEGE = 0x08000000,
IPMI_MONITORING_WORKAROUND_FLAGS_NON_EMPTY_INTEGRITY_CHECK_VALUE = 0x10000000,
IPMI_MONITORING_WORKAROUND_FLAGS_ASSUME_IO_BASE_ADDRESS = 0x00001000,
};
enum ipmi_monitoring_sensor_reading_flags
{
IPMI_MONITORING_SENSOR_READING_FLAGS_REREAD_SDR_CACHE = 0x00000001,
IPMI_MONITORING_SENSOR_READING_FLAGS_IGNORE_NON_INTERPRETABLE_SENSORS = 0x00000002,
IPMI_MONITORING_SENSOR_READING_FLAGS_BRIDGE_SENSORS = 0x00000004,
IPMI_MONITORING_SENSOR_READING_FLAGS_INTERPRET_OEM_DATA = 0x00000008,
IPMI_MONITORING_SENSOR_READING_FLAGS_SHARED_SENSORS = 0x00000010,
IPMI_MONITORING_SENSOR_READING_FLAGS_IGNORE_UNREADABLE_SENSORS = 0x00000002, /* legacy macro */
};
/*
* IPMI Bitmasks
*
* The following are the bitmask masks that can be returned. Use the
* returned bitmask type to determine which set of bitmasks to use.
*/
enum ipmi_monitoring_sensor_bitmask_threshold
{
IPMI_MONITORING_BITMASK_THRESHOLD_AT_OR_BELOW_LOWER_NON_CRITICAL_THRESHOLD = 0x0001,
IPMI_MONITORING_BITMASK_THRESHOLD_AT_OR_BELOW_LOWER_CRITICAL_THRESHOLD = 0x0002,
IPMI_MONITORING_BITMASK_THRESHOLD_AT_OR_BELOW_LOWER_NON_RECOVERABLE_THRESHOLD = 0x0004,
IPMI_MONITORING_BITMASK_THRESHOLD_AT_OR_BELOW_UPPER_NON_CRITICAL_THRESHOLD = 0x0008,
IPMI_MONITORING_BITMASK_THRESHOLD_AT_OR_BELOW_UPPER_CRITICAL_THRESHOLD = 0x0010,
IPMI_MONITORING_BITMASK_THRESHOLD_AT_OR_BELOW_UPPER_NON_RECOVERABLE_THRESHOLD = 0x0020,
};
enum ipmi_monitoring_sensor_bitmask_transition
{
IPMI_MONITORING_BITMASK_TRANSITION_TO_IDLE = 0x0001,
IPMI_MONITORING_BITMASK_TRANSITION_TO_ACTIVE = 0x0002,
IPMI_MONITORING_BITMASK_TRANSITION_TO_BUSY = 0x0004,
};
enum ipmi_monitoring_sensor_bitmask_state
{
IPMI_MONITORING_BITMASK_STATE_DEASSERTED = 0x0001,
IPMI_MONITORING_BITMASK_STATE_ASSERTED = 0x0002,
};
enum ipmi_monitoring_sensor_bitmask_predictive_failure
{
IPMI_MONITORING_BITMASK_PREDICTIVE_FAILURE_DEASSERTED = 0x0001,
IPMI_MONITORING_BITMASK_PREDICTIVE_FAILURE_ASSERTED = 0x0002,
};
enum ipmi_monitoring_sensor_bitmask_limit
{
IPMI_MONITORING_BITMASK_LIMIT_NOT_EXCEEDED = 0x0001,
IPMI_MONITORING_BITMASK_LIMIT_EXCEEDED = 0x0002,
};
enum ipmi_monitoring_sensor_bitmask_performance
{
IPMI_MONITORING_BITMASK_PERFORMANCE_MET = 0x0001,
IPMI_MONITORING_BITMASK_PERFORMANCE_LAGS = 0x0002,
};
enum ipmi_monitoring_sensor_bitmask_transition_severity
{
IPMI_MONITORING_BITMASK_TRANSITION_TO_OK = 0x0001,
IPMI_MONITORING_BITMASK_TRANSITION_TO_NON_CRITICAL_FROM_OK = 0x0002,
IPMI_MONITORING_BITMASK_TRANSITION_TO_CRITICAL_FROM_LESS_SEVERE = 0x0004,
IPMI_MONITORING_BITMASK_TRANSITION_TO_NON_RECOVERABLE_FROM_LESS_SEVERE = 0x0008,
IPMI_MONITORING_BITMASK_TRANSITION_TO_NON_CRITICAL_FROM_MORE_SEVERE = 0x0010,
IPMI_MONITORING_BITMASK_TRANSITION_TO_CRITICAL_FROM_NON_RECOVERABLE = 0x0020,
IPMI_MONITORING_BITMASK_TRANSITION_TO_NON_RECOVERABLE = 0x0040,
IPMI_MONITORING_BITMASK_TRANSITION_MONITOR = 0x0080,
IPMI_MONITORING_BITMASK_TRANSITION_INFORMATIONAL = 0x0100,
};
enum ipmi_monitoring_sensor_bitmask_device_present
{
IPMI_MONITORING_BITMASK_DEVICE_REMOVED_DEVICE_ABSENT = 0x0001,
IPMI_MONITORING_BITMASK_DEVICE_INSERTED_DEVICE_PRESENT = 0x0002,
};
enum ipmi_monitoring_sensor_bitmask_device_enabled
{
IPMI_MONITORING_BITMASK_DEVICE_DISABLED = 0x0001,
IPMI_MONITORING_BITMASK_DEVICE_ENABLED = 0x0002,
};
enum ipmi_monitoring_sensor_bitmask_transition_availability
{
IPMI_MONITORING_BITMASK_TRANSITION_TO_RUNNING = 0x0001,
IPMI_MONITORING_BITMASK_TRANSITION_TO_IN_TEST = 0x0002,
IPMI_MONITORING_BITMASK_TRANSITION_TO_POWER_OFF = 0x0004,
IPMI_MONITORING_BITMASK_TRANSITION_TO_ON_LINE = 0x0008,
IPMI_MONITORING_BITMASK_TRANSITION_TO_OFF_LINE = 0x0010,
IPMI_MONITORING_BITMASK_TRANSITION_TO_OFF_DUTY = 0x0020,
IPMI_MONITORING_BITMASK_TRANSITION_TO_DEGRADED = 0x0040,
IPMI_MONITORING_BITMASK_TRANSITION_TO_POWER_SAVE = 0x0080,
IPMI_MONITORING_BITMASK_TRANSITION_INSTALL_ERROR = 0x0100,
};
enum ipmi_monitoring_sensor_bitmask_redundancy
{
IPMI_MONITORING_BITMASK_FULLY_REDUNDANT = 0x0001,
IPMI_MONITORING_BITMASK_REDUNDANCY_LOST = 0x0002,
IPMI_MONITORING_BITMASK_REDUNDANCY_DEGRADED = 0x0004,
IPMI_MONITORING_BITMASK_NON_REDUNDANT_SUFFICIENT_RESOURCES_FROM_REDUNDANT = 0x0008,
IPMI_MONITORING_BITMASK_NON_REDUNDANT_SUFFICIENT_RESOURCES_FROM_INSUFFICIENT_RESOURCES = 0x0010,
IPMI_MONITORING_BITMASK_NON_REDUNDANT_INSUFFICIENT_RESOURCES = 0x0020,
IPMI_MONITORING_BITMASK_REDUNDANCY_DEGRADED_FROM_FULLY_REDUNDANT = 0x0040,
IPMI_MONITORING_BITMASK_REDUNDANCY_DEGRADED_FROM_NON_REDUNDANT = 0x0080,
};
enum ipmi_monitoring_sensor_bitmask_acpi_power_state
{
IPMI_MONITORING_BITMASK_D0_POWER_STATE = 0x0001,
IPMI_MONITORING_BITMASK_D1_POWER_STATE = 0x0002,
IPMI_MONITORING_BITMASK_D2_POWER_STATE = 0x0004,
IPMI_MONITORING_BITMASK_D3_POWER_STATE = 0x0008,
};
enum ipmi_monitoring_sensor_bitmask_physical_security
{
IPMI_MONITORING_BITMASK_PHYSICAL_SECURITY_GENERAL_CHASSIS_INTRUSION = 0x0001,
IPMI_MONITORING_BITMASK_PHYSICAL_SECURITY_DRIVE_BAY_INTRUSION = 0x0002,
IPMI_MONITORING_BITMASK_PHYSICAL_SECURITY_IO_CARD_INTRUSION = 0x0004,
IPMI_MONITORING_BITMASK_PHYSICAL_SECURITY_PROCESSOR_AREA_INTRUSION = 0x0008,
IPMI_MONITORING_BITMASK_PHYSICAL_SECURITY_LAN_LEASH_LOST = 0x0010,
IPMI_MONITORING_BITMASK_PHYSICAL_SECURITY_UNAUTHORIZED_DOCK_UNDOCK = 0x0020,
IPMI_MONITORING_BITMASK_PHYSICAL_SECURITY_FAN_AREA_INTRUSION = 0x0040,
};
enum ipmi_monitoring_sensor_bitmask_platform_security_violation_attempt
{
IPMI_MONITORING_BITMASK_PLATFORM_SECURITY_VIOLATION_ATTEMPT_SECURE_MODE_VIOLATION_ATTEMPT = 0x0001,
IPMI_MONITORING_BITMASK_PLATFORM_SECURITY_VIOLATION_ATTEMPT_PRE_BOOT_PASSWORD_VIOLATION_USER_PASSWORD = 0x0002,
IPMI_MONITORING_BITMASK_PLATFORM_SECURITY_VIOLATION_ATTEMPT_PRE_BOOT_PASSWORD_VIOLATION_ATTEMPT_SETUP_PASSWORD = 0x0004,
IPMI_MONITORING_BITMASK_PLATFORM_SECURITY_VIOLATION_ATTEMPT_PRE_BOOT_PASSWORD_VIOLATION_NETWORK_BOOT_PASSWORD = 0x0008,
IPMI_MONITORING_BITMASK_PLATFORM_SECURITY_VIOLATION_ATTEMPT_OTHER_PRE_BOOT_PASSWORD_VIOLATION = 0x0010,
IPMI_MONITORING_BITMASK_PLATFORM_SECURITY_VIOLATION_ATTEMPT_OUT_OF_BAND_ACCESS_PASSWORD_VIOLATION = 0x0020,
};
enum ipmi_monitoring_sensor_bitmask_processor
{
IPMI_MONITORING_BITMASK_PROCESSOR_IERR = 0x0001,
IPMI_MONITORING_BITMASK_PROCESSOR_THERMAL_TRIP = 0x0002,
IPMI_MONITORING_BITMASK_PROCESSOR_FRB1_BIST_FAILURE = 0x0004,
IPMI_MONITORING_BITMASK_PROCESSOR_FRB2_HANG_IN_POST_FAILURE = 0x0008,
IPMI_MONITORING_BITMASK_PROCESSOR_FRB3_PROCESSOR_STARTUP_INITIALIZATION_FAILURE = 0x0010,
IPMI_MONITORING_BITMASK_PROCESSOR_CONFIGURATION_ERROR = 0x0020,
IPMI_MONITORING_BITMASK_PROCESSOR_SMBIOS_UNCORRECTABLE_CPU_COMPLEX_ERROR = 0x0040,
IPMI_MONITORING_BITMASK_PROCESSOR_PROCESSOR_PRESENCE_DETECTED = 0x0080,
IPMI_MONITORING_BITMASK_PROCESSOR_PROCESSOR_DISABLED = 0x0100,
IPMI_MONITORING_BITMASK_PROCESSOR_TERMINATOR_PRESENCE_DETECTED = 0x0200,
IPMI_MONITORING_BITMASK_PROCESSOR_PROCESSOR_AUTOMATICALLY_THROTTLED = 0x0400,
IPMI_MONITORING_BITMASK_PROCESSOR_MACHINE_CHECK_EXCEPTION = 0x0800,
IPMI_MONITORING_BITMASK_PROCESSOR_CORRECTABLE_MACHINE_CHECK_ERROR = 0x1000,
};
enum ipmi_monitoring_sensor_bitmask_power_supply
{
IPMI_MONITORING_BITMASK_POWER_SUPPLY_PRESENCE_DETECTED = 0x0001,
IPMI_MONITORING_BITMASK_POWER_SUPPLY_POWER_SUPPLY_FAILURE_DETECTED = 0x0002,
IPMI_MONITORING_BITMASK_POWER_SUPPLY_PREDICTIVE_FAILURE = 0x0004,
IPMI_MONITORING_BITMASK_POWER_SUPPLY_POWER_SUPPLY_INPUT_LOST_AC_DC = 0x0008,
IPMI_MONITORING_BITMASK_POWER_SUPPLY_POWER_SUPPLY_INPUT_LOST_OR_OUT_OF_RANGE = 0x0010,
IPMI_MONITORING_BITMASK_POWER_SUPPLY_POWER_SUPPLY_INPUT_OUT_OF_RANGE_BUT_PRESENT = 0x0020,
IPMI_MONITORING_BITMASK_POWER_SUPPLY_CONFIGURATION_ERROR = 0x0040,
};
enum ipmi_monitoring_sensor_bitmask_power_unit
{
IPMI_MONITORING_BITMASK_POWER_UNIT_POWER_OFF_POWER_DOWN = 0x0001,
IPMI_MONITORING_BITMASK_POWER_UNIT_POWER_CYCLE = 0x0002,
IPMI_MONITORING_BITMASK_POWER_UNIT_240VA_POWER_DOWN = 0x0004,
IPMI_MONITORING_BITMASK_POWER_UNIT_INTERLOCK_POWER_DOWN = 0x0008,
IPMI_MONITORING_BITMASK_POWER_UNIT_AC_LOST = 0x0010,
IPMI_MONITORING_BITMASK_POWER_UNIT_SOFT_POWER_CONTROL_FAILURE = 0x0020,
IPMI_MONITORING_BITMASK_POWER_UNIT_POWER_UNIT_FAILURE_DETECTED = 0x0040,
IPMI_MONITORING_BITMASK_POWER_UNIT_PREDICTIVE_FAILURE = 0x0080,
};
enum ipmi_monitoring_sensor_bitmask_memory
{
IPMI_MONITORING_BITMASK_MEMORY_CORRECTABLE_MEMORY_ERROR = 0x0001,
IPMI_MONITORING_BITMASK_MEMORY_UNCORRECTABLE_MEMORY_ERROR = 0x0002,
IPMI_MONITORING_BITMASK_MEMORY_PARITY = 0x0004,
IPMI_MONITORING_BITMASK_MEMORY_MEMORY_SCRUB_FAILED = 0x0008,
IPMI_MONITORING_BITMASK_MEMORY_MEMORY_DEVICE_DISABLED = 0x0010,
IPMI_MONITORING_BITMASK_MEMORY_CORRECTABLE_MEMORY_ERROR_LOGGING_LIMIT_REACHED = 0x0020,
IPMI_MONITORING_BITMASK_MEMORY_PRESENCE_DETECTED = 0x0040,
IPMI_MONITORING_BITMASK_MEMORY_CONFIGURATION_ERROR = 0x0080,
IPMI_MONITORING_BITMASK_MEMORY_SPARE = 0x0100,
IPMI_MONITORING_BITMASK_MEMORY_MEMORY_AUTOMATICALLY_THROTTLED = 0x0200,
IPMI_MONITORING_BITMASK_MEMORY_CRITICAL_OVERTEMPERATURE = 0x0400,
};
enum ipmi_monitoring_sensor_bitmask_drive_slot
{
IPMI_MONITORING_BITMASK_DRIVE_SLOT_DRIVE_PRESENCE = 0x0001,
IPMI_MONITORING_BITMASK_DRIVE_SLOT_DRIVE_FAULT = 0x0002,
IPMI_MONITORING_BITMASK_DRIVE_SLOT_PREDICTIVE_FAILURE = 0x0004,
IPMI_MONITORING_BITMASK_DRIVE_SLOT_HOT_SPARE = 0x0008,
IPMI_MONITORING_BITMASK_DRIVE_SLOT_CONSISTENCY_CHECK_PARITY_CHECK_IN_PROGRESS = 0x0010,
IPMI_MONITORING_BITMASK_DRIVE_SLOT_IN_CRITICAL_ARRAY = 0x0020,
IPMI_MONITORING_BITMASK_DRIVE_SLOT_IN_FAILED_ARRAY = 0x0040,
IPMI_MONITORING_BITMASK_DRIVE_SLOT_REBUILD_REMAP_IN_PROGRESS = 0x0080,
IPMI_MONITORING_BITMASK_DRIVE_SLOT_REBUILD_REMAP_ABORTED = 0x0100,
};
enum ipmi_monitoring_sensor_bitmask_system_firmware_progress
{
IPMI_MONITORING_BITMASK_SYSTEM_FIRMWARE_PROGRESS_SYSTEM_FIRMWARE_ERROR = 0x0001,
IPMI_MONITORING_BITMASK_SYSTEM_FIRMWARE_PROGRESS_SYSTEM_FIRMWARE_HANG = 0x0002,
IPMI_MONITORING_BITMASK_SYSTEM_FIRMWARE_PROGRESS_SYSTEM_FIRMWARE_PROGRESS = 0x0004,
};
enum ipmi_monitoring_sensor_bitmask_event_logging_disabled
{
IPMI_MONITORING_BITMASK_EVENT_LOGGING_DISABLED_CORRECTABLE_MEMORY_ERROR_LOGGING_DISABLED = 0x0001,
IPMI_MONITORING_BITMASK_EVENT_LOGGING_DISABLED_EVENT_TYPE_LOGGING_DISABLED = 0x0002,
IPMI_MONITORING_BITMASK_EVENT_LOGGING_DISABLED_LOG_AREA_RESET_CLEARED = 0x0004,
IPMI_MONITORING_BITMASK_EVENT_LOGGING_DISABLED_ALL_EVENT_LOGGING_DISABLED = 0x0008,
IPMI_MONITORING_BITMASK_EVENT_LOGGING_DISABLED_SEL_FULL = 0x0010,
IPMI_MONITORING_BITMASK_EVENT_LOGGING_DISABLED_SEL_ALMOST_FULL = 0x0020,
IPMI_MONITORING_BITMASK_EVENT_LOGGING_DISABLED_CORRECTABLE_MACHINE_CHECK_ERROR_LOGGING_DISABLED = 0x0040,
};
enum ipmi_monitoring_sensor_bitmask_system_event
{
IPMI_MONITORING_BITMASK_SYSTEM_EVENT_SYSTEM_RECONFIGURED = 0x0001,
IPMI_MONITORING_BITMASK_SYSTEM_EVENT_OEM_SYSTEM_BOOT_EVENT = 0x0002,
IPMI_MONITORING_BITMASK_SYSTEM_EVENT_UNDETERMINED_SYSTEM_HARDWARE_FAILURE = 0x0004,
IPMI_MONITORING_BITMASK_SYSTEM_EVENT_ENTRY_ADDED_TO_AUXILIARY_LOG = 0x0008,
IPMI_MONITORING_BITMASK_SYSTEM_EVENT_PEF_ACTION = 0x0010,
IPMI_MONITORING_BITMASK_SYSTEM_EVENT_TIMESTAMP_CLOCK_SYNC = 0x0020,
};
enum ipmi_monitoring_sensor_bitmask_critical_interrupt
{
IPMI_MONITORING_BITMASK_CRITICAL_INTERRUPT_FRONT_PANEL_NMI_DIAGNOSTIC_INTERRUPT = 0x0001,
IPMI_MONITORING_BITMASK_CRITICAL_INTERRUPT_BUS_TIMEOUT = 0x0002,
IPMI_MONITORING_BITMASK_CRITICAL_INTERRUPT_IO_CHANNEL_CHECK_NMI = 0x0004,
IPMI_MONITORING_BITMASK_CRITICAL_INTERRUPT_SOFTWARE_NMI = 0x0008,
IPMI_MONITORING_BITMASK_CRITICAL_INTERRUPT_PCI_PERR = 0x0010,
IPMI_MONITORING_BITMASK_CRITICAL_INTERRUPT_PCI_SERR = 0x0020,
IPMI_MONITORING_BITMASK_CRITICAL_INTERRUPT_EISA_FAIL_SAFE_TIMEOUT = 0x0040,
IPMI_MONITORING_BITMASK_CRITICAL_INTERRUPT_BUS_CORRECTABLE_ERROR = 0x0080,
IPMI_MONITORING_BITMASK_CRITICAL_INTERRUPT_BUS_UNCORRECTABLE_ERROR = 0x0100,
IPMI_MONITORING_BITMASK_CRITICAL_INTERRUPT_FATAL_NMI = 0x0200,
IPMI_MONITORING_BITMASK_CRITICAL_INTERRUPT_BUS_FATAL_ERROR = 0x0400,
IPMI_MONITORING_BITMASK_CRITICAL_INTERRUPT_BUS_DEGRADED = 0x0800,
};
enum ipmi_monitoring_sensor_bitmask_slot_connector
{
IPMI_MONITORING_BITMASK_SLOT_CONNECTOR_FAULT_STATUS_ASSERTED = 0x0001,
IPMI_MONITORING_BITMASK_SLOT_CONNECTOR_IDENTIFY_STATUS_ASSERTED = 0x0002,
IPMI_MONITORING_BITMASK_SLOT_CONNECTOR_SLOT_CONNECTOR_DEVICE_INSTALLED_ATTACHED = 0x0004,
IPMI_MONITORING_BITMASK_SLOT_CONNECTOR_SLOT_CONNECTOR_READY_FOR_DEVICE_INSTALLATION = 0x0008,
IPMI_MONITORING_BITMASK_SLOT_CONNECTOR_SLOT_CONNECTOR_READY_FOR_DEVICE_REMOVAL = 0x0010,
IPMI_MONITORING_BITMASK_SLOT_CONNECTOR_SLOT_POWER_IS_OFF = 0x0020,
IPMI_MONITORING_BITMASK_SLOT_CONNECTOR_SLOT_CONNECTOR_DEVICE_REMOVAL_REQUEST = 0x0040,
IPMI_MONITORING_BITMASK_SLOT_CONNECTOR_INTERLOCK_ASSERTED = 0x0080,
IPMI_MONITORING_BITMASK_SLOT_CONNECTOR_SLOT_IS_DISABLED = 0x0100,
IPMI_MONITORING_BITMASK_SLOT_CONNECTOR_SLOT_HOLDS_SPARE_DEVICE = 0x0200,
};
enum ipmi_monitoring_sensor_bitmask_watchdog2
{
IPMI_MONITORING_BITMASK_WATCHDOG2_TIMER_EXPIRED = 0x0001,
IPMI_MONITORING_BITMASK_WATCHDOG2_HARD_RESET = 0x0002,
IPMI_MONITORING_BITMASK_WATCHDOG2_POWER_DOWN = 0x0004,
IPMI_MONITORING_BITMASK_WATCHDOG2_POWER_CYCLE = 0x0008,
IPMI_MONITORING_BITMASK_WATCHDOG2_RESERVED1 = 0x0010,
IPMI_MONITORING_BITMASK_WATCHDOG2_RESERVED2 = 0x0020,
IPMI_MONITORING_BITMASK_WATCHDOG2_RESERVED3 = 0x0040,
IPMI_MONITORING_BITMASK_WATCHDOG2_RESERVED4 = 0x0080,
IPMI_MONITORING_BITMASK_WATCHDOG2_TIMER_INTERRUPT = 0x0100,
};
enum ipmi_monitoring_sensor_bitmask_entity_presence
{
IPMI_MONITORING_BITMASK_ENTITY_PRESENCE_ENTITY_PRESENT = 0x0001,
IPMI_MONITORING_BITMASK_ENTITY_PRESENCE_ENTITY_ABSENT = 0x0002,
IPMI_MONITORING_BITMASK_ENTITY_PRESENCE_ENTITY_DISABLED = 0x0004,
};
enum ipmi_monitoring_sensor_bitmask_management_subsystem_health
{
IPMI_MONITORING_BITMASK_MANAGEMENT_SUBSYSTEM_HEALTH_SENSOR_ACCESS_DEGRADED_OR_UNAVAILABLE = 0x0001,
IPMI_MONITORING_BITMASK_MANAGEMENT_SUBSYSTEM_HEALTH_CONTROLLER_ACCESS_DEGRADED_OR_UNAVAILABLE = 0x0002,
IPMI_MONITORING_BITMASK_MANAGEMENT_SUBSYSTEM_HEALTH_MANAGEMENT_CONTROLLER_OFF_LINE = 0x0004,
IPMI_MONITORING_BITMASK_MANAGEMENT_SUBSYSTEM_HEALTH_MANAGEMENT_CONTROLLER_UNAVAILABLE = 0x0008,
IPMI_MONITORING_BITMASK_MANAGEMENT_SUBSYSTEM_HEALTH_SENSOR_FAILURE = 0x0010,
IPMI_MONITORING_BITMASK_MANAGEMENT_SUBSYSTEM_HEALTH_FRU_FAILURE = 0x0020,
};
enum ipmi_monitoring_sensor_bitmask_battery
{
IPMI_MONITORING_BITMASK_BATTERY_BATTERY_LOW = 0x0001,
IPMI_MONITORING_BITMASK_BATTERY_BATTERY_FAILED = 0x0002,
IPMI_MONITORING_BITMASK_BATTERY_BATTERY_PRESENCE_DETECTED = 0x0004,
};
enum ipmi_monitoring_sensor_bitmask_fru_state
{
IPMI_MONITORING_BITMASK_FRU_STATE_FRU_NOT_INSTALLED = 0x0001,
IPMI_MONITORING_BITMASK_FRU_STATE_FRU_INACTIVE = 0x0002,
IPMI_MONITORING_BITMASK_FRU_STATE_FRU_ACTIVATION_REQUESTED = 0x0004,
IPMI_MONITORING_BITMASK_FRU_STATE_FRU_ACTIVATION_IN_PROGRESS = 0x0008,
IPMI_MONITORING_BITMASK_FRU_STATE_FRU_ACTIVE = 0x0010,
IPMI_MONITORING_BITMASK_FRU_STATE_FRU_DEACTIVATION_REQUESTED = 0x0020,
IPMI_MONITORING_BITMASK_FRU_STATE_FRU_DEACTIVATION_IN_PROGRESS = 0x0040,
IPMI_MONITORING_BITMASK_FRU_STATE_FRU_COMMUNICATION_LOST = 0x0080,
};
enum ipmi_monitoring_sensor_bitmask_cable_interconnect
{
IPMI_MONITORING_BITMASK_CABLE_INTERCONNECT_IS_CONNECTED = 0x0001,
IPMI_MONITORING_BITMASK_CABLE_INTERCONNECT_CONFIGURATION_ERROR = 0x0002,
};
enum ipmi_monitoring_sensor_bitmask_boot_error
{
IPMI_MONITORING_BITMASK_BOOT_ERROR_NO_BOOTABLE_MEDIA = 0x0001,
IPMI_MONITORING_BITMASK_BOOT_ERROR_NON_BOOTABLE_DISKETTE_LEFT_IN_DRIVE = 0x0002,
IPMI_MONITORING_BITMASK_BOOT_ERROR_PXE_SERVER_NOT_FOUND = 0x0004,
IPMI_MONITORING_BITMASK_BOOT_ERROR_INVALID_BOOT_SECTOR = 0x0008,
IPMI_MONITORING_BITMASK_BOOT_ERROR_TIMEOUT_WAITING_FOR_USER_SELECTION_OF_BOOT_SOURCE = 0x0010,
};
enum ipmi_monitoring_sensor_bitmask_button_switch
{
IPMI_MONITORING_BITMASK_BUTTON_SWITCH_POWER_BUTTON_PRESSED = 0x0001,
IPMI_MONITORING_BITMASK_BUTTON_SWITCH_SLEEP_BUTTON_PRESSED = 0x0002,
IPMI_MONITORING_BITMASK_BUTTON_SWITCH_RESET_BUTTON_PRESSED = 0x0004,
IPMI_MONITORING_BITMASK_BUTTON_SWITCH_FRU_LATCH_OPEN = 0x0008,
IPMI_MONITORING_BITMASK_BUTTON_SWITCH_FRU_SERVICE_REQUEST_BUTTON = 0x0010,
};
enum ipmi_monitoring_sensor_bitmask_system_acpi_power_state
{
IPMI_MONITORING_BITMASK_SYSTEM_ACPI_POWER_STATE_S0_G0 = 0x0001,
IPMI_MONITORING_BITMASK_SYSTEM_ACPI_POWER_STATE_S1 = 0x0002,
IPMI_MONITORING_BITMASK_SYSTEM_ACPI_POWER_STATE_S2 = 0x0004,
IPMI_MONITORING_BITMASK_SYSTEM_ACPI_POWER_STATE_S3 = 0x0008,
IPMI_MONITORING_BITMASK_SYSTEM_ACPI_POWER_STATE_S4 = 0x0010,
IPMI_MONITORING_BITMASK_SYSTEM_ACPI_POWER_STATE_S5_G2 = 0x0020,
IPMI_MONITORING_BITMASK_SYSTEM_ACPI_POWER_STATE_S4_S5_SOFT_OFF = 0x0040,
IPMI_MONITORING_BITMASK_SYSTEM_ACPI_POWER_STATE_G3_MECHANICAL_OFF = 0x0080,
IPMI_MONITORING_BITMASK_SYSTEM_ACPI_POWER_STATE_SLEEPING_IN_AN_S1_S2_OR_S3_STATES = 0x0100,
IPMI_MONITORING_BITMASK_SYSTEM_ACPI_POWER_STATE_G1_SLEEPING = 0x0200,
IPMI_MONITORING_BITMASK_SYSTEM_ACPI_POWER_STATE_S5_ENTERED_BY_OVERRIDE = 0x0400,
IPMI_MONITORING_BITMASK_SYSTEM_ACPI_POWER_STATE_LEGACY_ON_STATE = 0x0800,
IPMI_MONITORING_BITMASK_SYSTEM_ACPI_POWER_STATE_LEGACY_OFF_STATE = 0x1000,
IPMI_MONITORING_BITMASK_SYSTEM_ACPI_POWER_STATE_UNSPECIFIED = 0x2000,
IPMI_MONITORING_BITMASK_SYSTEM_ACPI_POWER_STATE_UNKNOWN = 0x4000,
};
/*
* ipmi_monitoring_ipmi_config
*
* Configuration information for IPMI Inband monitoring
*
* driver_type
*
* Use a specific in-band driver.
*
* IPMI_MONITORING_DRIVER_TYPE_KCS
* IPMI_MONITORING_DRIVER_TYPE_SSIF
* IPMI_MONITORING_DRIVER_TYPE_OPENIPMI
* IPMI_MONITORING_DRIVER_TYPE_SUNBMC
*
* Pass < 0 for default of IPMI_MONITORING_DRIVER_TYPE_KCS.
*
* disable_auto_probe
*
* Flag informs the library if in-band driver information should be
* probed or not.
*
* driver_address
*
* Use this specified driver address instead of a probed one.
*
* register_spacing
*
* Use this register space instead of the probed one.
*
* driver_device
*
* Use this driver device for the IPMI driver.
*
* Configuration information for IPMI Out-of-Band monitoring
*
* protocol_version
*
* Indicate the IPMI protocol version to use
*
* IPMI_MONITORING_PROTOCOL_VERSION_1_5
* IPMI_MONITORING_PROTOCOL_VERSION_2_0
*
* Pass < 0 for default of IPMI_MONITORING_VERSION_1_5.
*
* username
*
* BMC username. Pass NULL ptr for NULL username. Maximum length of
* 16 bytes.
*
* password
*
* BMC password. Pass NULL ptr for NULL password. Maximum length of
* 16 bytes for IPMI 1.5, 20 bytes for IPMI 2.0
*
* k_g
*
* BMC Key for 2-key authentication. Pass NULL ptr to use password
* as BMC key. The k_g key need not be an ascii string.
*
* k_g_len
*
* Length of k_g. Necessary b/c k_g may contain null values or in its
* hex key. Maximum length of 20 bytes.
*
* privilege_level
*
* privilege level to authenticate with.
*
* Supported privilege levels:
*
* IPMI_MONITORING_PRIVILEGE_LEVEL_USER
* IPMI_MONITORING_PRIVILEGE_LEVEL_OPERATOR
* IPMI_MONITORING_PRIVILEGE_LEVEL_ADMIN
*
* Pass < 0 for default of IPMI_MONITORING_PRIVILEGE_LEVEL_USER.
*
* authentication_type
*
* authentication type to use
*
* IPMI_MONITORING_AUTHENTICATION_TYPE_NONE
* IPMI_MONITORING_AUTHENTICATION_TYPE_STRAIGHT_PASSWORD_KEY
* IPMI_MONITORING_AUTHENTICATION_TYPE_MD2
* IPMI_MONITORING_AUTHENTICATION_TYPE_MD5
*
* Pass < 0 for default of IPMI_MONITORING_AUTHENTICATION_TYPE_MD5.
*
* cipher_suite_id
*
* Cipher suite identifier to determine authentication, integrity,
* and confidentiality algorithms to use.
*
* Supported Cipher Suite IDs
* (Key: A - Authentication Algorithm
* I - Integrity Algorithm
* C - Confidentiality Algorithm)
*
* 0 - A = None; I = None; C = None
* 1 - A = HMAC-SHA1; I = None; C = None
* 2 - A = HMAC-SHA1; I = HMAC-SHA1-96; C = None
* 3 - A = HMAC-SHA1; I = HMAC-SHA1-96; C = AES-CBC-128
* 6 - A = HMAC-MD5; I = None; C = None
* 7 - A = HMAC-MD5; I = HMAC-MD5-128; C = None
* 8 - A = HMAC-MD5; I = HMAC-MD5-128; C = AES-CBC-128
* 11 - A = HMAC-MD5; I = MD5-128; C = None
* 12 - A = HMAC-MD5; I = MD5-128; C = AES-CBC-128
*
* Pass < 0 for default of 3.
*
* session_timeout_len
*
* Specifies the session timeout length in milliseconds. Pass <= 0
* to default to 60000 (60 seconds).
*
* retransmission_timeout_len
*
* Specifies the packet retransmission timeout length in
* milliseconds. Pass <= 0 to default to 500 (0.5 seconds).
*
* Configuration information for both Inband and Outofband
*
* workaround_flags
*
* Bitwise OR of flags indicating any behavior which should be
* changed from the default to handle IPMI non-compliance problems.
* Some BMCs which are non-compliant may require a workaround flag
* for correct operation. Pass 0 for default of no modifications to
* behavior.
*/
struct ipmi_monitoring_ipmi_config
{
int driver_type;
int disable_auto_probe;
unsigned int driver_address;
unsigned int register_spacing;
char *driver_device;
int protocol_version;
char *username;
char *password;
unsigned char *k_g;
unsigned int k_g_len;
int privilege_level;
int authentication_type;
int cipher_suite_id;
int session_timeout_len;
int retransmission_timeout_len;
unsigned int workaround_flags;
};
typedef struct ipmi_monitoring_ctx *ipmi_monitoring_ctx_t;
/*
* Ipmi_Monitoring_Sensor_Readings_Callback
*
* If callback returns < 0, libipmimonitoring will stop reading
* remaining sensors.
*/
typedef int (*Ipmi_Monitoring_Sensor_Readings_Callback)(ipmi_monitoring_ctx_t c, void *callback_data);
/*
* ipmi_monitoring_sensor_config_file
*
* Initialize the ipmi monitoring library with a different default
* sensor configuration file. Threaded applications are responsible
* for calling this function before any thread may call another
* function in the library. Should be called before
* ipmi_monitoring_init().
*
* Returns 0 on success, -1 on error
*/
int ipmi_monitoring_sensor_config_file (const char *file, int *errnum);
/*
* ipmi_monitoring_sdr_cache_directory
*
* Initialize the ipmi monitoring library with a different SDR cache
* directory. Threaded applications are responsible for calling this
* function before any thread may call another function in the
* library. Should be called before ipmi_monitoring_init().
*
* Returns 0 on success, -1 on error
*/
int ipmi_monitoring_sdr_cache_directory (const char *dir, int *errnum);
/*
* ipmi_monitoring_sdr_cache_filenames
*
* Initialize how sdr cache filenames will be formatted when
* written/read. Threaded applications are responsible for calling
* this function before any thread may call another function in the
* library. Should be called before ipmi_monitoring_init().
*
* The following may be included in the format.
*
* %L - the hostname of the local machine
* %H - the remote host being monitored
*
* Atleast %H must be specified.
*
* Returns 0 on success, -1 on error
*/
int ipmi_monitoring_sdr_cache_filenames (const char *format, int *errnum);
/*
* ipmi_monitoring_init
*
* Initialize the ipmi monitoring library. Needs to be called only
* once before any ipmi monitoring functions are called. Threaded
* applications are responsible for calling this function before any
* thread may call another function in the library.
*
* Returns 0 on success, -1 on error
*/
int ipmi_monitoring_init (unsigned int flags, int *errnum);
/*
* ipmi_monitoring_ctx_create
*
* Create an ipmi monitoring context
*
* Returns context on success, NULL on error
*/
ipmi_monitoring_ctx_t ipmi_monitoring_ctx_create (void);
/*
* ipmi_monitoring_ctx_destroy
*
* Destroy an ipmi monitoring context
*/
void ipmi_monitoring_ctx_destroy (ipmi_monitoring_ctx_t c);
/*
* ipmi_monitoring_ctx_errnum
*
* Returns the error code of the most recently caused error
*/
int ipmi_monitoring_ctx_errnum (ipmi_monitoring_ctx_t c);
/*
* ipmi_monitoring_ctx_strerror
*
* Returns a pointer to statically allocated string describing the
* error code in errnum.
*/
char *ipmi_monitoring_ctx_strerror (int errnum);
/*
* ipmi_monitoring_ctx_errormsg
*
* Returns a pointer to statically allocated string describing the
* most recently caused error.
*/
char *ipmi_monitoring_ctx_errormsg (ipmi_monitoring_ctx_t c);
/*
* ipmi_monitoring_sensor_readings_by_record_id
*
* Retrieve sensor readings by sensor numbers and store them in the monitoring context.
*
* If 'hostname' is NULL, sensors for the current node will be retrieved in-band.
* If 'record_ids' is NULL, default sensors will be retrieved
* (default == all sensors unless configured otherwise).
* Callback function will be called after each sensor is read and parsed.
*
* Returns number of sensors values retrieved on success, -1 on error
*/
int ipmi_monitoring_sensor_readings_by_record_id (ipmi_monitoring_ctx_t c,
const char *hostname,
struct ipmi_monitoring_ipmi_config *config,
unsigned int sensor_reading_flags,
unsigned int *record_ids,
unsigned int record_ids_len,
Ipmi_Monitoring_Sensor_Readings_Callback callback,
void *callback_data);
/*
* ipmi_monitoring_sensor_readings_by_sensor_type
*
* Retrieve sensor readings by sensor type and store them in the monitoring context.
*
* If 'hostname' is NULL, sensors for the current node will be retrieved in-band.
* If 'sensor_types' is NULL, default sensors will be retrieved.
* (default == all sensors unless configured otherwise).
* Callback function will be called after each sensor is read and parsed.
*
* Returns number of sensors values retrieved on success, -1 on error
*/
int ipmi_monitoring_sensor_readings_by_sensor_type (ipmi_monitoring_ctx_t c,
const char *hostname,
struct ipmi_monitoring_ipmi_config *config,
unsigned int sensor_reading_flags,
unsigned int *sensor_types,
unsigned int sensor_types_len,
Ipmi_Monitoring_Sensor_Readings_Callback callback,
void *callback_data);
/*
* ipmi_monitoring_iterator_first
*
* Reset iterator to the first sensor reading
*
* Returns 0 on success, -1 on error
*/
int ipmi_monitoring_iterator_first (ipmi_monitoring_ctx_t c);
/*
* ipmi_monitoring_iterator_next
*
* Advance iterator to the next set of sensors information
*
* Returns 0 on success, -1 on error
*/
int ipmi_monitoring_iterator_next (ipmi_monitoring_ctx_t c);
/*
* ipmi_monitoring_iterator_destroy
*
* Destroy all internally stored sensors readings.
*/
void ipmi_monitoring_iterator_destroy (ipmi_monitoring_ctx_t c);
/*
* ipmi_monitoring_read_record_id
*
* Returns the record id of the current sensor reading in a callback
* or the iterator.
*/
int ipmi_monitoring_read_record_id (ipmi_monitoring_ctx_t c);
/*
* ipmi_monitoring_read_sensor_number
*
* Returns the sensor number of the current sensor reading in a
* callback or the iterator. May be useful if
* IPMI_MONITORING_SENSOR_READING_FLAGS_SHARED_SENSORS has been set.
*/
int ipmi_monitoring_read_sensor_number (ipmi_monitoring_ctx_t c);
/*
* ipmi_monitoring_read_sensor_type
*
* Returns the sensor type of the current sensor reading in a
* callback or the iterator.
*/
int ipmi_monitoring_read_sensor_type (ipmi_monitoring_ctx_t c);
/*
* ipmi_monitoring_read_sensor_name
*
* Returns a pointer to the sensor name of the current sensor reading
* in a callback or the iterator.
*/
char *ipmi_monitoring_read_sensor_name (ipmi_monitoring_ctx_t c);
/*
* ipmi_monitoring_read_sensor_state
*
* Returns the current sensor state of the current sensor reading in a
* callback or the iterator.
*/
int ipmi_monitoring_read_sensor_state (ipmi_monitoring_ctx_t c);
/*
* ipmi_monitoring_read_sensor_units
*
* Returns the sensor units type of the current sensor reading in a
* callback or the iterator.
*/
int ipmi_monitoring_read_sensor_units (ipmi_monitoring_ctx_t c);
/*
* ipmi_monitoring_read_sensor_reading_type
*
* Returns the sensor reading type of the current sensor reading in a
* callback or the iterator.
*/
int ipmi_monitoring_read_sensor_reading_type (ipmi_monitoring_ctx_t c);
/*
* ipmi_monitoring_read_sensor_bitmask_type
*
* Returns the bitmask type of the current sensor reading in a
* callback or the iterator.
*/
int ipmi_monitoring_read_sensor_bitmask_type (ipmi_monitoring_ctx_t c);
/*
* ipmi_monitoring_read_sensor_bitmask
*
* Returns the bitmask of the current sensor reading in a callback or
* the iterator.
*/
int ipmi_monitoring_read_sensor_bitmask (ipmi_monitoring_ctx_t c);
/*
* ipmi_monitoring_read_sensor_reading
*
* Returns a pointer to the sensor reading of the current sensor
* reading in a callback or the iterator. It is the responsibility of
* the user to cast it to the correct type based on the reading type.
* Returns NULL if no reading available.
*/
void *ipmi_monitoring_read_sensor_reading (ipmi_monitoring_ctx_t c);
/*
* ipmi_monitoring_bitmask_string
*
* Retrieve a string for the given bitmask.
*
* Returns 0 on success, -1 on error
*/
int ipmi_monitoring_bitmask_string (ipmi_monitoring_ctx_t c,
unsigned int bitmask_type,
unsigned int bitmask,
char *buffer,
unsigned int buflen);
#ifdef __cplusplus
}
#endif
#endif /* _IPMI_MONITORING_H */
|