Emerson 4620 manual Log Control State, Using HPI-BHPI Logging Support

Page 38

Using HPI-BHPI Logging Support

Table 4-17 Log Control State

SaHpiCtrlStateT

Value

 

 

Type

SAHPI_CTRL_TYPE_OEM

 

 

StateUnion.Oem.MId

MOTHPI_MANUFACTURER_ID_MOTOROLA

 

 

StateUnion.Oem.BodyLength

40 + length of log file name

 

 

StateUnion.Oem.Body

MOTHPI_LOG_ERROR_FACILITIES_OFFSET - facilities for that error

 

logging is enabled

 

MOTHPI_LOG_WARNING_FACILITIES_OFFSET - facilities for that

 

warning logging is enabled

 

MOTHPI_LOG_INFO_FACILITIES_OFFSET - facilities for that info

 

logging is enabled

 

MOTHPI_LOG_DEBUG_FACILITIES_OFFSET - facilities for that

 

debug logging is enabled

 

The logging facilities are defined in the file log_utils.h, enum

 

oh_log_fac.

 

MOTHPI_LOG_CURRENT_IDX_OFFSET - index of currently used log

 

file

 

[MOTHPI_LOG_OFFSET_PROPERTIES] - output locationdLogStdout

 

- stdoutdLogStderr - stderrdLogFile - log file

 

[MOTHPI_LOG_NUM_FILES_OFFSET] - number of logfile created

 

[MOTHPI_LOG_MAX_FILE_SIZE_OFFSET] - maximum logfile size

 

before creating a new one. This is a 32 bit field in MSB byte order. Use

 

GetUInt32 in byte_utils.h to get host byte order.

 

[MOTHPI_LOG_FILENAME_OFFSET] - log file name.

38

System Management Interface Based on HPI-B (Centellis 4620) User’s Guide (6806800D85A)

Image 38
Contents System Management Interface Based on HPI-B Centellis Contact Address Contents Contents Related DocumentationList of Tables Definition of Domain Management ResourcePage List of Figures Page Abbreviations Overview of ContentsAbout this Manual Notation Description ConventionsAbout this Manual Abbreviation Description BoldAbout this Manual Notation Description Summary of ChangesComments and Suggestions Page Standard Compliances System Management Interfaces OverviewIntroduction ArchitectureHPI Library System Management Interfaces Overview HPI LibraryHPI Daemon High AvailabilityHPI Daemon Page Overview Software Installation and ConfigurationInstalling and Configuring the HPI-B Daemon RPM Files for HPI-B Clients and DaemonsOverview of HPI-B Directories and Files on ATCA-F120 Installing an HPI-B DaemonConfiguring an HPI Daemon Directory DescriptionOverview of HPI-B Directories and Files on Node Blades Setting Up HPI ClientsInstalling HPI Clients IP Addresses/Ports of HPI Daemons in a Centellis 4620 Shelf Configuring HPI ClientsMultishelf Library Configuration File HPI Daemon Entries Entry DescriptionBuilding the Application Directory ContentDeveloping Applications Development RPMs Directory StructurePage Limitations Using HPI-BLimitations with Respect to HPI-B Base Specification Working with the Multishelf Library OverviewAccessing HPI Domains Accessing HPI Domains Using HPI-BUsing HPI-B How Domains and Shelves are Represented How Domains and Shelves are RepresentedHow Domains and Shelves are Represented Using HPI-B SaHpiRptEntryT Value Definition of Domain Management ResourceDomain Management Control RDR SaHpiRdrT ValueShelf Management Resource Domain Management ControlDomain Management Control State Using HPI-BHow Domains and Shelves are Represented Connection State RDRDomain Connection Sensor Reading Discovering Shelves and DomainsDomain Connection Sensor Domain Connection Sensor EventsParameter Value Using HPI-B Adding and Removing Shelves and DomainsAdding and Removing Shelves and Domains Emerson Extensions Using HPI-B Emerson Extensions11 Boot Option Control Ipmi System Boot Options Support10 Boot Option RDR Using HPI-B HPI Controls for Domain and Shelf ManagementGet operations 12 Boot Option StateIpmi System Boot Options SupportUsing HPI-B Set operations13 Post Type HPI Control RDR Post Type ControlHPI Logging Support 14 Post Type HPI Control Sate Values16 Log Control HPI Logging Support Using HPI-B15 Log RDR Using HPI-BHPI Logging Support 17 Log Control StateList of Supported Example Applications Example ApplicationsExample Application Source Files Example Applications List of Supported Example Applications List of Supported Example ApplicationsExample Applications Display everything #------------------------------hpifumi #------------------------------ hpihotswap String Example Applications List of Supported Example Applications Option #------------------------------ hpishelf Value Display sensors Table B-2 Related Specifications Emerson Network Power Embedded Computing DocumentsRelated Specifications Related Documentation