Documentation
¶
Index ¶
- Constants
- Variables
- func AllCC(response Response) map[uint8]string
- func AnalogValue(raw uint8, format SensorAnalogUnitFormat) int32
- func CheckDCMIGroupExenstionMatch(grpExt uint8) error
- func ConvertReading(raw uint8, analogDataFormat SensorAnalogUnitFormat, factors ReadingFactors, ...) float64
- func ConvertSensorHysteresis(raw uint8, analogDataFormat SensorAnalogUnitFormat, factors ReadingFactors, ...) float64
- func ConvertSensorTolerance(raw uint8, analogDataFormat SensorAnalogUnitFormat, factors ReadingFactors, ...) float64
- func ErrDCMIGroupExtensionIDMismatchWith(expected uint8, actual uint8) error
- func ErrNotEnoughDataWith(msg string, actual int, expected int) error
- func ErrUnpackedDataTooShortWith(actual int, expected int) error
- func FormatDCMITemperatureReadings(readings []DCMITemperatureReading) string
- func FormatEventFilters(eventFilters []*PEFEventFilter) string
- func FormatGUIDDetails(guid [16]byte) string
- func FormatPEFAlertPolicyTable(alertPolicies []*PEFAlertPolicy) string
- func FormatSDRs(records []*SDR) string
- func FormatSDRs_FRU(records []*SDR) string
- func FormatSELs(records []*SEL, sdrMap SDRMapBySensorNumber) string
- func FormatSensors(extended bool, sensors ...*Sensor) string
- func FormatUsers(users []*User) string
- func IPMILegacyGUIDTime(u *uuid.UUID) time.Time
- func ParseGUID(data []byte, guidMode GUIDMode) (*uuid.UUID, error)
- func SensorFilterOptionIsReadingValid(sensor *Sensor) bool
- func SensorFilterOptionIsSensorType(sensorTypes ...SensorType) func(sensor *Sensor) bool
- func SensorFilterOptionIsThreshold(sensor *Sensor) bool
- func StrCC(response Response, ccode uint8) string
- func UUIDVersionString(u *uuid.UUID) string
- type ASF
- type ActivateDCMIPowerLimitRequest
- type ActivateDCMIPowerLimitResponse
- type ActivatePayloadRequest
- type ActivatePayloadResponse
- type ActivateSessionRequest
- type ActivateSessionResponse
- type AddSELEntryRequest
- type AddSELEntryResponse
- type AdditionalDeviceSupport
- type AlertImmediateOperation
- type AlertImmediateRequest
- type AlertImmediateResponse
- type AlertImmediateStatus
- type ArmPEFPostponeTimerRequest
- type ArmPEFPostponeTimerResponse
- type AuthAlg
- type AuthCodeMultiSessionInput
- type AuthCodeSingleSessionInput
- type AuthType
- type AuthTypesEnabled
- type AuthenticationPayload
- type BIOSBootType
- type BIOSMuxControl
- type BIOSVerbosity
- type BoardType
- type BootDeviceSelector
- type BootInfoAcknowledgeBy
- type BootOptionParamSelector
- type BootOptionParam_BMCBootFlagValidBitClear
- func (p *BootOptionParam_BMCBootFlagValidBitClear) BootOptionParameter() (paramSelector BootOptionParamSelector, setSelector uint8, blockSelector uint8)
- func (p *BootOptionParam_BMCBootFlagValidBitClear) Format() string
- func (p *BootOptionParam_BMCBootFlagValidBitClear) Pack() []byte
- func (p *BootOptionParam_BMCBootFlagValidBitClear) Unpack(parameterData []byte) error
- type BootOptionParam_BootFlags
- func (p *BootOptionParam_BootFlags) BootOptionParameter() (paramSelector BootOptionParamSelector, setSelector uint8, blockSelector uint8)
- func (p *BootOptionParam_BootFlags) Format() string
- func (bootFlags *BootOptionParam_BootFlags) OptionsHelp() string
- func (p *BootOptionParam_BootFlags) Pack() []byte
- func (bootFlags *BootOptionParam_BootFlags) ParseFromOptions(options []string) error
- func (bootFlags *BootOptionParam_BootFlags) ParseFromOptionsStr(optionsStr string) error
- func (p *BootOptionParam_BootFlags) Unpack(parameterData []byte) error
- type BootOptionParam_BootInfoAcknowledge
- func (p *BootOptionParam_BootInfoAcknowledge) BootOptionParameter() (paramSelector BootOptionParamSelector, setSelector uint8, blockSelector uint8)
- func (p *BootOptionParam_BootInfoAcknowledge) Format() string
- func (p *BootOptionParam_BootInfoAcknowledge) Pack() []byte
- func (p *BootOptionParam_BootInfoAcknowledge) Unpack(parameterData []byte) error
- type BootOptionParam_BootInitiatorInfo
- func (p *BootOptionParam_BootInitiatorInfo) BootOptionParameter() (paramSelector BootOptionParamSelector, setSelector uint8, blockSelector uint8)
- func (p *BootOptionParam_BootInitiatorInfo) Format() string
- func (p *BootOptionParam_BootInitiatorInfo) Pack() []byte
- func (p *BootOptionParam_BootInitiatorInfo) Unpack(parameterData []byte) error
- type BootOptionParam_BootInitiatorMailbox
- func (p *BootOptionParam_BootInitiatorMailbox) BootOptionParameter() (paramSelector BootOptionParamSelector, setSelector uint8, blockSelector uint8)
- func (p *BootOptionParam_BootInitiatorMailbox) Format() string
- func (p *BootOptionParam_BootInitiatorMailbox) Pack() []byte
- func (p *BootOptionParam_BootInitiatorMailbox) Unpack(parameterData []byte) error
- type BootOptionParam_ServicePartitionScan
- func (p *BootOptionParam_ServicePartitionScan) BootOptionParameter() (paramSelector BootOptionParamSelector, setSelector uint8, blockSelector uint8)
- func (p BootOptionParam_ServicePartitionScan) Format() string
- func (p *BootOptionParam_ServicePartitionScan) Pack() []byte
- func (p *BootOptionParam_ServicePartitionScan) Unpack(paramData []byte) error
- type BootOptionParam_ServicePartitionSelector
- func (p *BootOptionParam_ServicePartitionSelector) BootOptionParameter() (paramSelector BootOptionParamSelector, setSelector uint8, blockSelector uint8)
- func (p *BootOptionParam_ServicePartitionSelector) Format() string
- func (p *BootOptionParam_ServicePartitionSelector) Pack() []byte
- func (p *BootOptionParam_ServicePartitionSelector) Unpack(paramData []byte) error
- type BootOptionParam_SetInProgress
- func (p *BootOptionParam_SetInProgress) BootOptionParameter() (paramSelector BootOptionParamSelector, setSelector uint8, blockSelector uint8)
- func (p *BootOptionParam_SetInProgress) Format() string
- func (p *BootOptionParam_SetInProgress) Pack() []byte
- func (p *BootOptionParam_SetInProgress) Unpack(paramData []byte) error
- type BootOptionParameter
- type BootOptionsParams
- type Channel
- type ChannelAccessMode
- type ChannelAccessOption
- type ChannelInfo
- type ChannelMedium
- type ChannelPrivilegeOption
- type ChannelProtocol
- type ChannelSecurityKeysLockStatus
- type ChannelSecurityKeysOperation
- type ChassisControl
- type ChassisControlRequest
- type ChassisControlResponse
- type ChassisIdentifyRequest
- type ChassisIdentifyResponse
- type ChassisIdentifyState
- type ChassisResetRequest
- type ChassisResetResponse
- type ChassisSecurityStatus
- type ChassisState
- type ChassisType
- type CipherSuiteID
- type CipherSuiteRecord
- type ClearMessageFlagsRequest
- type ClearMessageFlagsResponse
- type ClearSELRequest
- type ClearSELResponse
- type Client
- func (c *Client) ActivateDCMIPowerLimit(ctx context.Context, activate bool) (response *ActivateDCMIPowerLimitResponse, err error)
- func (c *Client) ActivatePayload(ctx context.Context, request *ActivatePayloadRequest) (response *ActivatePayloadResponse, err error)
- func (c *Client) ActivateSession(ctx context.Context) (response *ActivateSessionResponse, err error)
- func (c *Client) AddSELEntry(ctx context.Context, sel *SEL) (response *AddSELEntryResponse, err error)
- func (c *Client) AlertImmediate(ctx context.Context, request *AlertImmediateRequest) (response *AlertImmediateResponse, err error)
- func (c *Client) ArmPEFPostponeTimer(ctx context.Context, timeout uint8) (response *ArmPEFPostponeTimerResponse, err error)
- func (c *Client) BuildIPMIRequest(ctx context.Context, reqCmd Request) (*IPMIRequest, error)
- func (c *Client) BuildRmcpRequest(ctx context.Context, reqCmd Request) (*Rmcp, error)
- func (c *Client) ChassisControl(ctx context.Context, control ChassisControl) (response *ChassisControlResponse, err error)
- func (c *Client) ChassisIdentify(ctx context.Context, interval uint8, force bool) (response *ChassisIdentifyResponse, err error)
- func (c *Client) ChassisReset(ctx context.Context) (response *ChassisResetResponse, err error)
- func (c *Client) ClearMessageFlags(ctx context.Context, request *ClearMessageFlagsRequest) (response *ClearMessageFlagsResponse, err error)
- func (c *Client) ClearSEL(ctx context.Context, reservationID uint16) (response *ClearSELResponse, err error)
- func (c *Client) Close(ctx context.Context) error
- func (c *Client) CloseSession(ctx context.Context, request *CloseSessionRequest) (response *CloseSessionResponse, err error)
- func (c *Client) ColdReset(ctx context.Context) (err error)
- func (c *Client) Connect(ctx context.Context) error
- func (c *Client) Connect15(ctx context.Context) error
- func (c *Client) Connect20(ctx context.Context) error
- func (c *Client) ConnectAuto(ctx context.Context) error
- func (c *Client) ConnectOpen(ctx context.Context, devnum int32) error
- func (c *Client) ConnectTool(ctx context.Context, devnum int32) error
- func (c *Client) DeactivatePayload(ctx context.Context, request *DeactivatePayloadRequest) (response *DeactivatePayloadResponse, err error)
- func (c *Client) Debug(header string, object interface{})
- func (c *Client) DebugBytes(header string, data []byte, width int)
- func (c *Client) Debugf(format string, object ...interface{})
- func (c *Client) DebugfGreen(format string, object ...interface{})
- func (c *Client) DebugfRed(format string, object ...interface{})
- func (c *Client) DebugfYellow(format string, object ...interface{})
- func (c *Client) DeleteSELEntry(ctx context.Context, recordID uint16, reservationID uint16) (response *DeleteSELEntryResponse, err error)
- func (c *Client) DisableUser(ctx context.Context, userID uint8) (err error)
- func (c *Client) EnableMessageChannelReceive(ctx context.Context, channelNumber uint8, channelState uint8) (response *EnableMessageChannelReceiveResponse, err error)
- func (c *Client) EnableUser(ctx context.Context, userID uint8) (err error)
- func (c *Client) Exchange(ctx context.Context, request Request, response Response) error
- func (c *Client) GetACPIPowerState(ctx context.Context) (response *GetACPIPowerStateResponse, err error)
- func (c *Client) GetAllChannelCipherSuites(ctx context.Context, channelNumber uint8) ([]CipherSuiteRecord, error)
- func (c *Client) GetBMCGlobalEnables(ctx context.Context) (response *GetBMCGlobalEnablesResponse, err error)
- func (c *Client) GetBTInterfaceCapabilities(ctx context.Context) (response *GetBTInterfaceCapabilitiesResponse, err error)
- func (c *Client) GetChannelAccess(ctx context.Context, channelNumber uint8, accessOption ChannelAccessOption) (response *GetChannelAccessResponse, err error)
- func (c *Client) GetChannelAuthenticationCapabilities(ctx context.Context, channelNumber uint8, privilegeLevel PrivilegeLevel) (response *GetChannelAuthenticationCapabilitiesResponse, err error)
- func (c *Client) GetChannelCipherSuites(ctx context.Context, channelNumber uint8, index uint8) (response *GetChannelCipherSuitesResponse, err error)
- func (c *Client) GetChannelInfo(ctx context.Context, channelNumber uint8) (response *GetChannelInfoResponse, err error)
- func (c *Client) GetChannelOEMPayloadInfo(ctx context.Context, request *GetChannelOEMPayloadInfoRequest) (response *GetChannelOEMPayloadInfoResponse, err error)
- func (c *Client) GetChannelPayloadSupport(ctx context.Context, channelNumber uint8) (response *GetChannelPayloadSupportResponse, err error)
- func (c *Client) GetChannelPayloadVersion(ctx context.Context, channelNumber uint8, payloadType PayloadType) (response *GetChannelPayloadVersionResponse, err error)
- func (c *Client) GetChassisCapabilities(ctx context.Context) (response *GetChassisCapabilitiesResponse, err error)
- func (c *Client) GetChassisStatus(ctx context.Context) (response *GetChassisStatusResponse, err error)
- func (c *Client) GetCommandEnables(ctx context.Context, channelNumber uint8, commandRangeMask CommandRangeMask, ...) (response *GetCommandEnablesResponse, err error)
- func (c *Client) GetCommandSubfunctionEnables(ctx context.Context, request *GetCommandSubfunctionEnablesRequest) (response *GetCommandSubfunctionEnablesResponse, err error)
- func (c *Client) GetCommandSubfunctionSupport(ctx context.Context, channelNumber uint8, netFn NetFn, lun uint8, code uint8, ...) (response *GetCommandSubfunctionSupportResponse, err error)
- func (c *Client) GetCommandSupport(ctx context.Context, channelNumber uint8, commandRangeMask CommandRangeMask, ...) (response *GetCommandSupportResponse, err error)
- func (c *Client) GetConfigurableCommandSubfunctions(ctx context.Context, request *GetConfigurableCommandSubfunctionsRequest) (response *GetConfigurableCommandSubfunctionsResponse, err error)
- func (c *Client) GetConfigurableCommands(ctx context.Context, channelNumber uint8, commandRangeMask CommandRangeMask, ...) (response *GetConfigurableCommandsResponse, err error)
- func (c *Client) GetCurrentSessionInfo(ctx context.Context) (response *GetSessionInfoResponse, err error)
- func (c *Client) GetDCMIAssetTag(ctx context.Context, offset uint8) (response *GetDCMIAssetTagResponse, err error)
- func (c *Client) GetDCMIAssetTagFull(ctx context.Context) (assetTagRaw []byte, typeLength TypeLength, err error)
- func (c *Client) GetDCMICapParam(ctx context.Context, paramSelector DCMICapParamSelector) (response *GetDCMICapParamResponse, err error)
- func (c *Client) GetDCMICapParamFor(ctx context.Context, param DCMICapParameter) error
- func (c *Client) GetDCMICapParams(ctx context.Context) (*DCMICapParams, error)
- func (c *Client) GetDCMICapParamsFor(ctx context.Context, dcmiCapParams *DCMICapParams) error
- func (c *Client) GetDCMIConfigParam(ctx context.Context, paramSelector DCMIConfigParamSelector, setSelector uint8) (response *GetDCMIConfigParamResponse, err error)
- func (c *Client) GetDCMIConfigParamFor(ctx context.Context, param DCMIConfigParameter) error
- func (c *Client) GetDCMIConfigParams(ctx context.Context) (*DCMIConfigParams, error)
- func (c *Client) GetDCMIConfigParamsFor(ctx context.Context, dcmiConfigParams *DCMIConfigParams) error
- func (c *Client) GetDCMIMgmtControllerIdentifier(ctx context.Context, offset uint8) (response *GetDCMIMgmtControllerIdentifierResponse, err error)
- func (c *Client) GetDCMIMgmtControllerIdentifierFull(ctx context.Context) ([]byte, error)
- func (c *Client) GetDCMIPowerLimit(ctx context.Context) (response *GetDCMIPowerLimitResponse, err error)
- func (c *Client) GetDCMIPowerReading(ctx context.Context) (response *GetDCMIPowerReadingResponse, err error)
- func (c *Client) GetDCMISensorInfo(ctx context.Context, request *GetDCMISensorInfoRequest) (response *GetDCMISensorInfoResponse, err error)
- func (c *Client) GetDCMISensors(ctx context.Context, entityIDs ...EntityID) ([]*SDR, error)
- func (c *Client) GetDCMITemperatureReadings(ctx context.Context, request *GetDCMITemperatureReadingsRequest) (response *GetDCMITemperatureReadingsResponse, err error)
- func (c *Client) GetDCMITemperatureReadingsForEntities(ctx context.Context, entityIDs ...EntityID) ([]DCMITemperatureReading, error)
- func (c *Client) GetDCMIThermalLimit(ctx context.Context, entityID EntityID, entityInstance EntityInstance) (response *GetDCMIThermalLimitResponse, err error)
- func (c *Client) GetDeviceGUID(ctx context.Context) (response *GetDeviceGUIDResponse, err error)
- func (c *Client) GetDeviceID(ctx context.Context) (response *GetDeviceIDResponse, err error)
- func (c *Client) GetDeviceSDR(ctx context.Context, recordID uint16) (response *GetDeviceSDRResponse, err error)
- func (c *Client) GetDeviceSDRBySensorID(ctx context.Context, sensorNumber uint8) (*SDR, error)
- func (c *Client) GetDeviceSDRInfo(ctx context.Context, getSDRCount bool) (response *GetDeviceSDRInfoResponse, err error)
- func (c *Client) GetDeviceSDRs(ctx context.Context, recordTypes ...SDRRecordType) ([]*SDR, error)
- func (c *Client) GetEventReceiver(ctx context.Context) (response *GetEventReceiverResponse, err error)
- func (c *Client) GetFRU(ctx context.Context, deviceID uint8, deviceName string) (*FRU, error)
- func (c *Client) GetFRUAreaBoard(ctx context.Context, deviceID uint8, offset uint16) (*FRUBoardInfoArea, error)
- func (c *Client) GetFRUAreaChassis(ctx context.Context, deviceID uint8, offset uint16) (*FRUChassisInfoArea, error)
- func (c *Client) GetFRUAreaMultiRecords(ctx context.Context, deviceID uint8, offset uint16) ([]*FRUMultiRecord, error)
- func (c *Client) GetFRUAreaProduct(ctx context.Context, deviceID uint8, offset uint16) (*FRUProductInfoArea, error)
- func (c *Client) GetFRUData(ctx context.Context, deviceID uint8) ([]byte, error)
- func (c *Client) GetFRUInventoryAreaInfo(ctx context.Context, fruDeviceID uint8) (response *GetFRUInventoryAreaInfoResponse, err error)
- func (c *Client) GetFRUs(ctx context.Context) ([]*FRU, error)
- func (c *Client) GetIPStatistics(ctx context.Context, channelNumber uint8, clearAllStatistics bool) (response *GetIPStatisticsResponse, err error)
- func (c *Client) GetLanConfig(ctx context.Context, channelNumber uint8) (*LanConfig, error)
- func (c *Client) GetLanConfigParam(ctx context.Context, channelNumber uint8, paramSelector LanConfigParamSelector, ...) (response *GetLanConfigParamResponse, err error)
- func (c *Client) GetLanConfigParamFor(ctx context.Context, channelNumber uint8, param LanConfigParameter) error
- func (c *Client) GetLanConfigParams(ctx context.Context, channelNumber uint8) (*LanConfigParams, error)
- func (c *Client) GetLanConfigParamsFor(ctx context.Context, channelNumber uint8, lanConfigParams *LanConfigParams) error
- func (c *Client) GetLanConfigParamsFull(ctx context.Context, channelNumber uint8) (*LanConfigParams, error)
- func (c *Client) GetLastProcessedEventId(ctx context.Context) (response *GetLastProcessedEventIdResponse, err error)
- func (c *Client) GetMessage(ctx context.Context) (response *GetMessageResponse, err error)
- func (c *Client) GetMessageFlags(ctx context.Context) (response *GetMessageFlagsResponse, err error)
- func (c *Client) GetNetFnSupport(ctx context.Context, channelNumber uint8) (response *GetNetFnSupportResponse, err error)
- func (c *Client) GetPEFCapabilities(ctx context.Context) (response *GetPEFCapabilitiesResponse, err error)
- func (c *Client) GetPEFConfigParam(ctx context.Context, getRevisionOnly bool, ...) (response *GetPEFConfigParamResponse, err error)
- func (c *Client) GetPEFConfigParamFor(ctx context.Context, param PEFConfigParameter) error
- func (c *Client) GetPEFConfigParams(ctx context.Context) (pefConfigParams *PEFConfigParams, err error)
- func (c *Client) GetPEFConfigParamsFor(ctx context.Context, pefConfigParams *PEFConfigParams) error
- func (c *Client) GetPOHCounter(ctx context.Context) (response *GetPOHCounterResponse, err error)
- func (c *Client) GetPayloadActivationStatus(ctx context.Context, payloadType PayloadType) (response *GetPayloadActivationStatusResponse, err error)
- func (c *Client) GetPayloadInstanceInfo(ctx context.Context, payloadType PayloadType, payloadInstance uint8) (response *GetPayloadInstanceInfoResponse, err error)
- func (c *Client) GetSDR(ctx context.Context, recordID uint16) (response *GetSDRResponse, err error)
- func (c *Client) GetSDRBySensorID(ctx context.Context, sensorNumber uint8) (*SDR, error)
- func (c *Client) GetSDRBySensorName(ctx context.Context, sensorName string) (*SDR, error)
- func (c *Client) GetSDREnhanced(ctx context.Context, recordID uint16) (*SDR, error)
- func (c *Client) GetSDRRepoAllocInfo(ctx context.Context) (response *GetSDRRepoAllocInfoResponse, err error)
- func (c *Client) GetSDRRepoInfo(ctx context.Context) (response *GetSDRRepoInfoResponse, err error)
- func (c *Client) GetSDRs(ctx context.Context, recordTypes ...SDRRecordType) ([]*SDR, error)
- func (c *Client) GetSDRsMap(ctx context.Context) (SDRMapBySensorNumber, error)
- func (c *Client) GetSELAllocInfo(ctx context.Context) (response *GetSELAllocInfoResponse, err error)
- func (c *Client) GetSELEntries(ctx context.Context, startRecordID uint16) ([]*SEL, error)
- func (c *Client) GetSELEntry(ctx context.Context, reservationID uint16, recordID uint16) (response *GetSELEntryResponse, err error)
- func (c *Client) GetSELInfo(ctx context.Context) (response *GetSELInfoResponse, err error)
- func (c *Client) GetSELTime(ctx context.Context) (response *GetSELTimeResponse, err error)
- func (c *Client) GetSELTimeUTCOffset(ctx context.Context) (response *GetSELTimeUTCOffsetResponse, err error)
- func (c *Client) GetSOLConfigParam(ctx context.Context, channelNumber uint8, paramSelector SOLConfigParamSelector, ...) (response *GetSOLConfigParamResponse, err error)
- func (c *Client) GetSOLConfigParamFor(ctx context.Context, channelNumber uint8, param SOLConfigParameter) error
- func (c *Client) GetSOLConfigParams(ctx context.Context, channelNumber uint8) (*SOLConfigParams, error)
- func (c *Client) GetSOLConfigParamsFor(ctx context.Context, channelNumber uint8, solConfigParams *SOLConfigParams) error
- func (c *Client) GetSelfTestResults(ctx context.Context) (response *GetSelfTestResultsResponse, err error)
- func (c *Client) GetSensorByID(ctx context.Context, sensorNumber uint8) (*Sensor, error)
- func (c *Client) GetSensorByName(ctx context.Context, sensorName string) (*Sensor, error)
- func (c *Client) GetSensorEventEnable(ctx context.Context, sensorNumber uint8) (response *GetSensorEventEnableResponse, err error)
- func (c *Client) GetSensorEventStatus(ctx context.Context, sensorNumber uint8) (response *GetSensorEventStatusResponse, err error)
- func (c *Client) GetSensorHysteresis(ctx context.Context, sensorNumber uint8) (response *GetSensorHysteresisResponse, err error)
- func (c *Client) GetSensorReading(ctx context.Context, sensorNumber uint8) (response *GetSensorReadingResponse, err error)
- func (c *Client) GetSensorReadingFactors(ctx context.Context, sensorNumber uint8, reading uint8) (response *GetSensorReadingFactorsResponse, err error)
- func (c *Client) GetSensorThresholds(ctx context.Context, sensorNumber uint8) (response *GetSensorThresholdsResponse, err error)
- func (c *Client) GetSensorType(ctx context.Context, sensorNumber uint8) (response *GetSensorTypeResponse, err error)
- func (c *Client) GetSensors(ctx context.Context, filterOptions ...SensorFilterOption) ([]*Sensor, error)
- func (c *Client) GetSensorsAny(ctx context.Context, filterOptions ...SensorFilterOption) ([]*Sensor, error)
- func (c *Client) GetSessionChallenge(ctx context.Context) (response *GetSessionChallengeResponse, err error)
- func (c *Client) GetSessionInfo(ctx context.Context, request *GetSessionInfoRequest) (response *GetSessionInfoResponse, err error)
- func (c *Client) GetSupermicroBiosVersion(ctx context.Context) (response *CommandGetSupermicroBiosVersionResponse, err error)
- func (c *Client) GetSystemBootOptionsParam(ctx context.Context, paramSelector BootOptionParamSelector, setSelector uint8, ...) (response *GetSystemBootOptionsParamResponse, err error)
- func (c *Client) GetSystemBootOptionsParamFor(ctx context.Context, param BootOptionParameter) error
- func (c *Client) GetSystemBootOptionsParams(ctx context.Context) (*BootOptionsParams, error)
- func (c *Client) GetSystemBootOptionsParamsFor(ctx context.Context, bootOptionsParams *BootOptionsParams) error
- func (c *Client) GetSystemGUID(ctx context.Context) (response *GetSystemGUIDResponse, err error)
- func (c *Client) GetSystemInfo(ctx context.Context) (*SystemInfo, error)
- func (c *Client) GetSystemInfoParam(ctx context.Context, paramSelector SystemInfoParamSelector, setSelector uint8, ...) (response *GetSystemInfoParamResponse, err error)
- func (c *Client) GetSystemInfoParamFor(ctx context.Context, param SystemInfoParameter) error
- func (c *Client) GetSystemInfoParams(ctx context.Context) (*SystemInfoParams, error)
- func (c *Client) GetSystemInfoParamsFor(ctx context.Context, params *SystemInfoParams) error
- func (c *Client) GetSystemInterfaceCapabilities(ctx context.Context, interfaceType SystemInterfaceType) (response *GetSystemInterfaceCapabilitiesResponse, err error)
- func (c *Client) GetSystemRestartCause(ctx context.Context) (response *GetSystemRestartCauseResponse, err error)
- func (c *Client) GetUserAccess(ctx context.Context, channelNumber uint8, userID uint8) (response *GetUserAccessResponse, err error)
- func (c *Client) GetUserPayloadAccess(ctx context.Context, channelNumber uint8, userID uint8) (response *GetUserPayloadAccessResponse, err error)
- func (c *Client) GetUsername(ctx context.Context, userID uint8) (response *GetUsernameResponse, err error)
- func (c *Client) GetWatchdogTimer(ctx context.Context) (response *GetWatchdogTimerResponse, err error)
- func (c *Client) ListUser(ctx context.Context, channelNumber uint8) ([]*User, error)
- func (c *Client) ManufacturingTestOn(ctx context.Context) (response *ManufacturingTestOnResponse, err error)
- func (c *Client) MasterWriteRead(ctx context.Context, request *MasterWriteReadRequest) (*MasterWriteReadResponse, error)
- func (c *Client) OpenSession(ctx context.Context) (response *OpenSessionResponse, err error)
- func (c *Client) PETAcknowledge(ctx context.Context, request *PETAcknowledgeRequest) (response *PETAcknowledgeResponse, err error)
- func (c *Client) ParseRmcpResponse(ctx context.Context, msg []byte, response Response) error
- func (c *Client) PlatformEventMessage(ctx context.Context, request *PlatformEventMessageRequest) (response *PlatformEventMessageResponse, err error)
- func (c *Client) RAKPMessage1(ctx context.Context) (response *RAKPMessage2, err error)
- func (c *Client) RAKPMessage3(ctx context.Context) (response *RAKPMessage4, err error)
- func (c *Client) RawCommand(ctx context.Context, netFn NetFn, cmd uint8, data []byte, name string) (response *CommandRawResponse, err error)
- func (c *Client) ReadEventMessageBuffer(ctx context.Context) (response *ReadEventMessageBufferResponse, err error)
- func (c *Client) ReadFRUData(ctx context.Context, fruDeviceID uint8, readOffset uint16, readCount uint8) (response *ReadFRUDataResponse, err error)
- func (c *Client) RearmSensorEvents(ctx context.Context, request *RearmSensorEventsRequest) (response *RearmSensorEventsResponse, err error)
- func (c *Client) ReserveDeviceSDRRepo(ctx context.Context) (response *ReserveDeviceSDRRepoResponse, err error)
- func (c *Client) ReserveSDRRepo(ctx context.Context) (response *ReserveSDRRepoResponse, err error)
- func (c *Client) ReserveSEL(ctx context.Context) (response *ReserveSELResponse, err error)
- func (c *Client) ResetWatchdogTimer(ctx context.Context) (response *ResetWatchdogTimerResponse, err error)
- func (c *Client) RmcpPing(ctx context.Context) (response *RmcpPingResponse, err error)
- func (c *Client) SOLActivating(ctx context.Context, request *SOLActivatingRequest) (response *SOLActivatingResponse, err error)
- func (c *Client) SendMessage(ctx context.Context, channelNumber uint8, authenticated bool, encrypted bool, ...) (response *SendMessageResponse, err error)
- func (c *Client) SessionPrivilegeLevel() PrivilegeLevel
- func (c *Client) SetACPIPowerState(ctx context.Context, request *SetACPIPowerStateRequest) (err error)
- func (c *Client) SetBMCGlobalEnables(ctx context.Context, enableSystemEventLogging bool, ...) (response *SetBMCGlobalEnablesResponse, err error)
- func (c *Client) SetBootDevice(ctx context.Context, bootDeviceSelector BootDeviceSelector, ...) error
- func (c *Client) SetBootParamBootFlags(ctx context.Context, bootFlags *BootOptionParam_BootFlags) error
- func (c *Client) SetBootParamClearAck(ctx context.Context, by BootInfoAcknowledgeBy) error
- func (c *Client) SetBootParamSetInProgress(ctx context.Context, setInProgress SetInProgressState) error
- func (c *Client) SetChannelAccess(ctx context.Context, request *SetChannelAccessRequest) (response *SetChannelAccessResponse, err error)
- func (c *Client) SetChannelSecurityKeys(ctx context.Context, request *SetChannelSecurityKeysRequest) (response *SetChannelSecurityKeysResponse, err error)
- func (c *Client) SetChassisCapabilities(ctx context.Context, request *SetChassisCapabilitiesRequest) (response *SetChassisCapabilitiesResponse, err error)
- func (c *Client) SetCommandEnables(ctx context.Context, request *SetCommandEnablesRequest) (response *SetCommandEnablesResponse, err error)
- func (c *Client) SetCommandSubfunctionEnables(ctx context.Context, request *SetCommandSubfunctionEnablesRequest) (response *SetCommandSubfunctionEnablesResponse, err error)
- func (c *Client) SetDCMIAssetTag(ctx context.Context, offset uint8, writeBytes uint8, assetTag []byte) (response *SetDCMIAssetTagResponse, err error)
- func (c *Client) SetDCMIAssetTagFull(ctx context.Context, assetTag []byte) (err error)
- func (c *Client) SetDCMIConfigParam(ctx context.Context, paramSelector DCMIConfigParamSelector, setSelector uint8, ...) (response *SetDCMIConfigParamResponse, err error)
- func (c *Client) SetDCMIConfigParamFor(ctx context.Context, param DCMIConfigParameter) (response *SetDCMIConfigParamResponse, err error)
- func (c *Client) SetDCMIMgmtControllerIdentifier(ctx context.Context, offset uint8, writeBytes uint8, idStr []byte) (response *SetDCMIMgmtControllerIdentifierResponse, err error)
- func (c *Client) SetDCMIMgmtControllerIdentifierFull(ctx context.Context, idStr []byte) (err error)
- func (c *Client) SetDCMIPowerLimit(ctx context.Context, request *SetDCMIPowerLimitRequest) (response *SetDCMIPowerLimitResponse, err error)
- func (c *Client) SetDCMIThermalLimit(ctx context.Context, request *SetDCMIThermalLimitRequest) (response *SetDCMIThermalLimitResponse, err error)
- func (c *Client) SetEventReceiver(ctx context.Context, slaveAddress uint8, lun uint8) (response *SetEventReceiverResponse, err error)
- func (c *Client) SetEventReceiverDisable(ctx context.Context, lun uint8) (response *SetEventReceiverResponse, err error)
- func (c *Client) SetFrontPanelEnables(ctx context.Context, disableSleepButton bool, disableDiagnosticButton bool, ...) (response *SetFrontPanelEnablesResponse, err error)
- func (c *Client) SetLanConfigParam(ctx context.Context, channelNumber uint8, paramSelector LanConfigParamSelector, ...) (response *SetLanConfigParamResponse, err error)
- func (c *Client) SetLanConfigParamFor(ctx context.Context, channelNumber uint8, param LanConfigParameter) error
- func (c *Client) SetLastProcessedEventId(ctx context.Context, recordID uint16, byBMC bool) (response *SetLastProcessedEventIdResponse, err error)
- func (c *Client) SetPEFConfigParam(ctx context.Context, paramSelector PEFConfigParamSelector, paramData []byte) (response *SetPEFConfigParamResponse, err error)
- func (c *Client) SetPowerCycleInterval(ctx context.Context, intervalInSec uint8) (response *SetPowerCycleIntervalResponse, err error)
- func (c *Client) SetPowerRestorePolicy(ctx context.Context, policy PowerRestorePolicy) (response *SetPowerRestorePolicyResponse, err error)
- func (c *Client) SetSELTime(ctx context.Context, t time.Time) (response *SetSELTimeResponse, err error)
- func (c *Client) SetSELTimeUTCOffset(ctx context.Context, minutesOffset int16) (response *SetSELTimeUTCOffsetResponse, err error)
- func (c *Client) SetSOLConfigParam(ctx context.Context, channelNumber uint8, paramSelector SOLConfigParamSelector, ...) (response *SetSOLConfigParamResponse, err error)
- func (c *Client) SetSOLConfigParamFor(ctx context.Context, channelNumber uint8, param SOLConfigParameter) error
- func (c *Client) SetSensorEventEnable(ctx context.Context, request *SetSensorEventEnableRequest) (response *SetSensorEventEnableResponse, err error)
- func (c *Client) SetSensorHysteresis(ctx context.Context, sensorNumber uint8, positiveHysteresis uint8, ...) (response *SetSensorHysteresisResponse, err error)
- func (c *Client) SetSensorReadingAndEventStatus(ctx context.Context, request *SetSensorReadingAndEventStatusRequest) (response *SetSensorReadingAndEventStatusResponse, err error)
- func (c *Client) SetSensorThresholds(ctx context.Context, request *SetSensorThresholdsRequest) (response *SetSensorThresholdsResponse, err error)
- func (c *Client) SetSensorType(ctx context.Context, sensorNumber uint8, sensorType SensorType, ...) (response *SetSensorTypeResponse, err error)
- func (c *Client) SetSessionPrivilegeLevel(ctx context.Context, privilegeLevel PrivilegeLevel) (response *SetSessionPrivilegeLevelResponse, err error)
- func (c *Client) SetSystemBootOptionsParam(ctx context.Context, request *SetSystemBootOptionsParamRequest) (response *SetSystemBootOptionsParamResponse, err error)
- func (c *Client) SetSystemBootOptionsParamFor(ctx context.Context, param BootOptionParameter) error
- func (c *Client) SetSystemInfoParam(ctx context.Context, paramSelector SystemInfoParamSelector, paramData []byte) (response *SetSystemInfoParamResponse, err error)
- func (c *Client) SetSystemInfoParamFor(ctx context.Context, param SystemInfoParameter) error
- func (c *Client) SetUserAccess(ctx context.Context, request *SetUserAccessRequest) (response *SetUserAccessResponse, err error)
- func (c *Client) SetUserPassword(ctx context.Context, userID uint8, password string, stored20 bool) (response *SetUserPasswordResponse, err error)
- func (c *Client) SetUserPayloadAccess(ctx context.Context, payloadType PayloadType, payloadInstance uint8) (response *SetUserPayloadAccessResponse, err error)
- func (c *Client) SetUsername(ctx context.Context, userID uint8, username string) (response *SetUsernameResponse, err error)
- func (c *Client) SetWatchdogTimer(ctx context.Context) (response *SetWatchdogTimerResponse, err error)
- func (c *Client) SuspendARPs(ctx context.Context, channelNumber uint8, suspendARP bool, ...) (response *SuspendARPsResponse, err error)
- func (c *Client) SuspendResumePayloadEncryption(ctx context.Context, payloadType PayloadType, payloadInstance uint8, ...) (response *SuspendResumePayloadEncryptionResponse, err error)
- func (c *Client) TestUserPassword(ctx context.Context, userID uint8, password string, stored20 bool) (response *SetUserPasswordResponse, err error)
- func (c *Client) ValidateRAKP2(ctx context.Context, rakp2 *RAKPMessage2) (bool, error)
- func (c *Client) ValidateRAKP4(ctx context.Context, response *RAKPMessage4) (bool, error)
- func (c *Client) WarmReset(ctx context.Context) (err error)
- func (c *Client) WithBufferSize(bufferSize int) *Client
- func (c *Client) WithCipherSuiteID(cipherSuiteID CipherSuiteID) *Client
- func (c *Client) WithDebug(debug bool) *Client
- func (c *Client) WithInterface(intf Interface) *Client
- func (c *Client) WithMaxPrivilegeLevel(privilegeLevel PrivilegeLevel) *Client
- func (c *Client) WithRequesterAddr(requesterAddr, requesterLUN uint8)
- func (c *Client) WithResponderAddr(responderAddr, responderLUN uint8)
- func (c *Client) WithRetry(retryCount int, retryInterval time.Duration) *Client
- func (c *Client) WithTimeout(timeout time.Duration) *Client
- func (c *Client) WithUDPProxy(proxy proxy.Dialer) *Client
- func (c *Client) WriteFRUData(ctx context.Context, fruDeviceID uint8, writeOffset uint16, writeData []byte) (response *WriteFRUDataResponse, err error)
- type CloseSessionRequest
- type CloseSessionResponse
- type ColdResetRequest
- type ColdResetResponse
- type Command
- type CommandGetSupermicroBiosVersionRequest
- type CommandGetSupermicroBiosVersionResponse
- type CommandRangeMask
- type CommandRawRequest
- type CommandRawResponse
- type CommunityString
- type CompletionCode
- type ConfidentialityPayload
- type ConsoleRedirectionControl
- type CryptAlg
- type DCMICapParamSelector
- type DCMICapParam_EnhancedSystemPowerStatisticsAttributes
- func (param *DCMICapParam_EnhancedSystemPowerStatisticsAttributes) DCMICapParameter() DCMICapParamSelector
- func (param *DCMICapParam_EnhancedSystemPowerStatisticsAttributes) Format() string
- func (param *DCMICapParam_EnhancedSystemPowerStatisticsAttributes) Pack() []byte
- func (param *DCMICapParam_EnhancedSystemPowerStatisticsAttributes) Unpack(paramData []byte) error
- type DCMICapParam_ManageabilityAccessAttributes
- func (param *DCMICapParam_ManageabilityAccessAttributes) DCMICapParameter() DCMICapParamSelector
- func (param *DCMICapParam_ManageabilityAccessAttributes) Format() string
- func (param *DCMICapParam_ManageabilityAccessAttributes) Pack() []byte
- func (param *DCMICapParam_ManageabilityAccessAttributes) Unpack(paramData []byte) error
- type DCMICapParam_MandatoryPlatformAttributes
- func (param *DCMICapParam_MandatoryPlatformAttributes) DCMICapParameter() DCMICapParamSelector
- func (param *DCMICapParam_MandatoryPlatformAttributes) Format() string
- func (param *DCMICapParam_MandatoryPlatformAttributes) Pack() []byte
- func (param *DCMICapParam_MandatoryPlatformAttributes) Unpack(paramData []byte) error
- type DCMICapParam_OptionalPlatformAttributes
- func (param *DCMICapParam_OptionalPlatformAttributes) DCMICapParameter() DCMICapParamSelector
- func (param *DCMICapParam_OptionalPlatformAttributes) Format() string
- func (param *DCMICapParam_OptionalPlatformAttributes) Pack() []byte
- func (param *DCMICapParam_OptionalPlatformAttributes) Unpack(paramData []byte) error
- type DCMICapParam_SupportedDCMICapabilities
- func (param *DCMICapParam_SupportedDCMICapabilities) DCMICapParameter() DCMICapParamSelector
- func (param *DCMICapParam_SupportedDCMICapabilities) Format() string
- func (param *DCMICapParam_SupportedDCMICapabilities) Pack() []byte
- func (param *DCMICapParam_SupportedDCMICapabilities) Unpack(paramData []byte) error
- type DCMICapParameter
- type DCMICapParams
- type DCMIConfigParamSelector
- type DCMIConfigParam_ActivateDHCP
- func (param *DCMIConfigParam_ActivateDHCP) DCMIConfigParameter() (paramSelector DCMIConfigParamSelector, setSelector uint8)
- func (param *DCMIConfigParam_ActivateDHCP) Format() string
- func (param *DCMIConfigParam_ActivateDHCP) Pack() []byte
- func (param *DCMIConfigParam_ActivateDHCP) Unpack(paramData []byte) error
- type DCMIConfigParam_DHCPTiming1
- func (param *DCMIConfigParam_DHCPTiming1) DCMIConfigParameter() (paramSelector DCMIConfigParamSelector, setSelector uint8)
- func (param *DCMIConfigParam_DHCPTiming1) Format() string
- func (param *DCMIConfigParam_DHCPTiming1) Pack() []byte
- func (param *DCMIConfigParam_DHCPTiming1) Unpack(paramData []byte) error
- type DCMIConfigParam_DHCPTiming2
- func (param *DCMIConfigParam_DHCPTiming2) DCMIConfigParameter() (paramSelector DCMIConfigParamSelector, setSelector uint8)
- func (param *DCMIConfigParam_DHCPTiming2) Format() string
- func (param *DCMIConfigParam_DHCPTiming2) Pack() []byte
- func (param *DCMIConfigParam_DHCPTiming2) Unpack(paramData []byte) error
- type DCMIConfigParam_DHCPTiming3
- func (param *DCMIConfigParam_DHCPTiming3) DCMIConfigParameter() (paramSelector DCMIConfigParamSelector, setSelector uint8)
- func (param *DCMIConfigParam_DHCPTiming3) Format() string
- func (param *DCMIConfigParam_DHCPTiming3) Pack() []byte
- func (param *DCMIConfigParam_DHCPTiming3) Unpack(paramData []byte) error
- type DCMIConfigParam_DiscoveryConfiguration
- func (param *DCMIConfigParam_DiscoveryConfiguration) DCMIConfigParameter() (paramSelector DCMIConfigParamSelector, setSelector uint8)
- func (param *DCMIConfigParam_DiscoveryConfiguration) Format() string
- func (param *DCMIConfigParam_DiscoveryConfiguration) Pack() []byte
- func (param *DCMIConfigParam_DiscoveryConfiguration) Unpack(paramData []byte) error
- type DCMIConfigParameter
- type DCMIConfigParams
- type DCMIExceptionAction
- type DCMITemperatureReading
- type DeactivatePayloadRequest
- type DeactivatePayloadResponse
- type DeleteSELEntryRequest
- type DeleteSELEntryResponse
- type DevicePowerState
- type DeviceType
- type EnableMessageChannelReceiveRequest
- type EnableMessageChannelReceiveResponse
- type EntityID
- type EntityInstance
- type Event
- type EventData
- type EventDir
- type EventReadingType
- func (typ EventReadingType) Event(sensorType SensorType, eventData EventData) *Event
- func (typ EventReadingType) EventForOffset(sensorType SensorType, eventOffset uint8) *Event
- func (typ EventReadingType) EventSeverity(sensorType SensorType, eventData EventData, eventDir EventDir) EventSeverity
- func (typ EventReadingType) EventString(sensorType SensorType, eventData EventData) string
- func (typ EventReadingType) IsThreshold() bool
- func (typ EventReadingType) SensorClass() SensorClass
- func (typ EventReadingType) String() string
- type EventSeverity
- type FRU
- type FRUBoardInfoArea
- type FRUChassisInfoArea
- type FRUCommonHeader
- type FRUInternalUseArea
- type FRULocation
- type FRUMultiRecord
- type FRUProductInfoArea
- type FRURecordType
- type FRURecordTypeBaseCompatibility
- type FRURecordTypeDCLoad
- type FRURecordTypeDCOutput
- type FRURecordTypeExtendedCompatibilityRecord
- type FRURecordTypeExtendedDCLoad
- type FRURecordTypeExtendedDCOutput
- type FRURecordTypeManagementAccess
- type FRURecordTypeOEM
- type FRURecordTypePowerSupply
- type GUIDMode
- type GeneratorID
- type GetACPIPowerStateRequest
- type GetACPIPowerStateResponse
- type GetAuthCodeRequest
- type GetAuthCodeResponse
- type GetBMCGlobalEnablesRequest
- type GetBMCGlobalEnablesResponse
- type GetBTInterfaceCapabilitiesRequest
- type GetBTInterfaceCapabilitiesResponse
- type GetChannelAccessRequest
- type GetChannelAccessResponse
- type GetChannelAuthenticationCapabilitiesRequest
- type GetChannelAuthenticationCapabilitiesResponse
- type GetChannelCipherSuitesRequest
- type GetChannelCipherSuitesResponse
- type GetChannelInfoRequest
- type GetChannelInfoResponse
- type GetChannelOEMPayloadInfoRequest
- type GetChannelOEMPayloadInfoResponse
- type GetChannelPayloadSupportRequest
- type GetChannelPayloadSupportResponse
- type GetChannelPayloadVersionRequest
- type GetChannelPayloadVersionResponse
- type GetChassisCapabilitiesRequest
- type GetChassisCapabilitiesResponse
- type GetChassisStatusRequest
- type GetChassisStatusResponse
- type GetCommandEnablesRequest
- type GetCommandEnablesResponse
- type GetCommandSubfunctionEnablesRequest
- type GetCommandSubfunctionEnablesResponse
- type GetCommandSubfunctionSupportRequest
- type GetCommandSubfunctionSupportResponse
- type GetCommandSupportRequest
- type GetCommandSupportResponse
- type GetConfigurableCommandSubfunctionsRequest
- type GetConfigurableCommandSubfunctionsResponse
- type GetConfigurableCommandsRequest
- type GetConfigurableCommandsResponse
- type GetDCMIAssetTagRequest
- type GetDCMIAssetTagResponse
- type GetDCMICapParamRequest
- type GetDCMICapParamResponse
- type GetDCMIConfigParamRequest
- type GetDCMIConfigParamResponse
- type GetDCMIMgmtControllerIdentifierRequest
- type GetDCMIMgmtControllerIdentifierResponse
- type GetDCMIPowerLimitRequest
- type GetDCMIPowerLimitResponse
- type GetDCMIPowerReadingRequest
- type GetDCMIPowerReadingResponse
- type GetDCMISensorInfoRequest
- type GetDCMISensorInfoResponse
- type GetDCMITemperatureReadingsRequest
- type GetDCMITemperatureReadingsResponse
- type GetDCMIThermalLimitRequest
- type GetDCMIThermalLimitResponse
- type GetDeviceGUIDRequest
- type GetDeviceGUIDResponse
- type GetDeviceIDRequest
- type GetDeviceIDResponse
- type GetDeviceSDRInfoRequest
- type GetDeviceSDRInfoResponse
- type GetDeviceSDRRequest
- type GetDeviceSDRResponse
- type GetEventReceiverRequest
- type GetEventReceiverResponse
- type GetFRUInventoryAreaInfoRequest
- type GetFRUInventoryAreaInfoResponse
- type GetIPStatisticsRequest
- type GetIPStatisticsResponse
- type GetLanConfigParamRequest
- type GetLanConfigParamResponse
- type GetLastProcessedEventIdRequest
- type GetLastProcessedEventIdResponse
- type GetMessageFlagsRequest
- type GetMessageFlagsResponse
- type GetMessageRequest
- type GetMessageResponse
- type GetNetFnSupportRequest
- type GetNetFnSupportResponse
- type GetPEFCapabilitiesRequest
- type GetPEFCapabilitiesResponse
- type GetPEFConfigParamRequest
- type GetPEFConfigParamResponse
- type GetPOHCounterRequest
- type GetPOHCounterResponse
- type GetPayloadActivationStatusRequest
- type GetPayloadActivationStatusResponse
- type GetPayloadInstanceInfoRequest
- type GetPayloadInstanceInfoResponse
- type GetSDRRepoAllocInfoRequest
- type GetSDRRepoAllocInfoResponse
- type GetSDRRepoInfoRequest
- type GetSDRRepoInfoResponse
- type GetSDRRequest
- type GetSDRResponse
- type GetSELAllocInfoRequest
- type GetSELAllocInfoResponse
- type GetSELEntryRequest
- type GetSELEntryResponse
- type GetSELInfoRequest
- type GetSELInfoResponse
- type GetSELTimeRequest
- type GetSELTimeResponse
- type GetSELTimeUTCOffsetRequest
- type GetSELTimeUTCOffsetResponse
- type GetSOLConfigParamRequest
- type GetSOLConfigParamResponse
- type GetSelfTestResultsRequest
- type GetSelfTestResultsResponse
- type GetSensorEventEnableRequest
- type GetSensorEventEnableResponse
- type GetSensorEventStatusRequest
- type GetSensorEventStatusResponse
- type GetSensorHysteresisRequest
- type GetSensorHysteresisResponse
- type GetSensorReadingFactorsRequest
- type GetSensorReadingFactorsResponse
- type GetSensorReadingRequest
- type GetSensorReadingResponse
- type GetSensorThresholdsRequest
- type GetSensorThresholdsResponse
- type GetSensorTypeRequest
- type GetSensorTypeResponse
- type GetSessionChallengeRequest
- type GetSessionChallengeResponse
- type GetSessionInfoRequest
- type GetSessionInfoResponse
- type GetSystemBootOptionsParamRequest
- type GetSystemBootOptionsParamResponse
- type GetSystemGUIDRequest
- type GetSystemGUIDResponse
- type GetSystemInfoParamRequest
- type GetSystemInfoParamResponse
- type GetSystemInterfaceCapabilitiesRequest
- type GetSystemInterfaceCapabilitiesResponse
- type GetSystemRestartCauseRequest
- type GetSystemRestartCauseResponse
- type GetUserAccessRequest
- type GetUserAccessResponse
- type GetUserPayloadAccessRequest
- type GetUserPayloadAccessResponse
- type GetUsernameRequest
- type GetUsernameResponse
- type GetWatchdogTimerRequest
- type GetWatchdogTimerResponse
- type I2CAddress7Bit
- type I2CAddress8Bit
- type IPMIRequest
- type IPMIResponse
- type IntegrityAlg
- type IntegrityPayload
- type Interface
- type InterruptType
- type LUN
- type LUNSupport
- type LanConfig
- type LanConfigParamSelector
- type LanConfigParam_ARPControl
- func (param *LanConfigParam_ARPControl) Format() string
- func (param *LanConfigParam_ARPControl) LanConfigParameter() (paramSelector LanConfigParamSelector, setSelector uint8, blockSelector uint8)
- func (param *LanConfigParam_ARPControl) Pack() []byte
- func (param *LanConfigParam_ARPControl) Unpack(data []byte) error
- type LanConfigParam_AlertDestinationAddress
- func (param *LanConfigParam_AlertDestinationAddress) Format() string
- func (param *LanConfigParam_AlertDestinationAddress) LanConfigParameter() (paramSelector LanConfigParamSelector, setSelector uint8, blockSelector uint8)
- func (param *LanConfigParam_AlertDestinationAddress) Pack() []byte
- func (param *LanConfigParam_AlertDestinationAddress) Unpack(data []byte) error
- type LanConfigParam_AlertDestinationType
- func (param *LanConfigParam_AlertDestinationType) Format() string
- func (param *LanConfigParam_AlertDestinationType) LanConfigParameter() (paramSelector LanConfigParamSelector, setSelector uint8, blockSelector uint8)
- func (param *LanConfigParam_AlertDestinationType) Pack() []byte
- func (param *LanConfigParam_AlertDestinationType) Unpack(data []byte) error
- type LanConfigParam_AlertDestinationVLAN
- func (param *LanConfigParam_AlertDestinationVLAN) Format() string
- func (param *LanConfigParam_AlertDestinationVLAN) LanConfigParameter() (paramSelector LanConfigParamSelector, setSelector uint8, blockSelector uint8)
- func (param *LanConfigParam_AlertDestinationVLAN) Pack() []byte
- func (param *LanConfigParam_AlertDestinationVLAN) Unpack(data []byte) error
- type LanConfigParam_AlertDestinationsCount
- func (param *LanConfigParam_AlertDestinationsCount) Format() string
- func (param *LanConfigParam_AlertDestinationsCount) LanConfigParameter() (paramSelector LanConfigParamSelector, setSelector uint8, blockSelector uint8)
- func (param *LanConfigParam_AlertDestinationsCount) Pack() []byte
- func (param *LanConfigParam_AlertDestinationsCount) Unpack(data []byte) error
- type LanConfigParam_AuthTypeEnables
- func (param *LanConfigParam_AuthTypeEnables) Format() string
- func (param *LanConfigParam_AuthTypeEnables) LanConfigParameter() (paramSelector LanConfigParamSelector, setSelector uint8, blockSelector uint8)
- func (param *LanConfigParam_AuthTypeEnables) Pack() []byte
- func (param *LanConfigParam_AuthTypeEnables) Unpack(data []byte) error
- type LanConfigParam_AuthTypeSupport
- func (param *LanConfigParam_AuthTypeSupport) Format() string
- func (param *LanConfigParam_AuthTypeSupport) LanConfigParameter() (paramSelector LanConfigParamSelector, setSelector uint8, blockSelector uint8)
- func (param *LanConfigParam_AuthTypeSupport) Pack() []byte
- func (param *LanConfigParam_AuthTypeSupport) Unpack(data []byte) error
- type LanConfigParam_BackupGatewayIP
- func (param *LanConfigParam_BackupGatewayIP) Format() string
- func (param *LanConfigParam_BackupGatewayIP) LanConfigParameter() (paramSelector LanConfigParamSelector, setSelector uint8, blockSelector uint8)
- func (param *LanConfigParam_BackupGatewayIP) Pack() []byte
- func (param *LanConfigParam_BackupGatewayIP) Unpack(data []byte) error
- type LanConfigParam_BackupGatewayMAC
- func (param *LanConfigParam_BackupGatewayMAC) Format() string
- func (param *LanConfigParam_BackupGatewayMAC) LanConfigParameter() (paramSelector LanConfigParamSelector, setSelector uint8, blockSelector uint8)
- func (param *LanConfigParam_BackupGatewayMAC) Pack() []byte
- func (param *LanConfigParam_BackupGatewayMAC) Unpack(data []byte) error
- type LanConfigParam_BadPasswordThreshold
- func (param *LanConfigParam_BadPasswordThreshold) Format() string
- func (param *LanConfigParam_BadPasswordThreshold) LanConfigParameter() (paramSelector LanConfigParamSelector, setSelector uint8, blockSelector uint8)
- func (param *LanConfigParam_BadPasswordThreshold) Pack() []byte
- func (param *LanConfigParam_BadPasswordThreshold) Unpack(data []byte) error
- type LanConfigParam_CipherSuitesID
- func (param *LanConfigParam_CipherSuitesID) Format() string
- func (param *LanConfigParam_CipherSuitesID) LanConfigParameter() (paramSelector LanConfigParamSelector, setSelector uint8, blockSelector uint8)
- func (param *LanConfigParam_CipherSuitesID) Pack() []byte
- func (param *LanConfigParam_CipherSuitesID) Unpack(data []byte) error
- type LanConfigParam_CipherSuitesPrivLevel
- func (param *LanConfigParam_CipherSuitesPrivLevel) Format() string
- func (param *LanConfigParam_CipherSuitesPrivLevel) LanConfigParameter() (paramSelector LanConfigParamSelector, setSelector uint8, blockSelector uint8)
- func (param *LanConfigParam_CipherSuitesPrivLevel) Pack() []byte
- func (param *LanConfigParam_CipherSuitesPrivLevel) Unpack(data []byte) error
- type LanConfigParam_CipherSuitesSupport
- func (param *LanConfigParam_CipherSuitesSupport) Format() string
- func (param *LanConfigParam_CipherSuitesSupport) LanConfigParameter() (paramSelector LanConfigParamSelector, setSelector uint8, blockSelector uint8)
- func (param *LanConfigParam_CipherSuitesSupport) Pack() []byte
- func (param *LanConfigParam_CipherSuitesSupport) Unpack(data []byte) error
- type LanConfigParam_CommunityString
- func (param *LanConfigParam_CommunityString) Format() string
- func (param *LanConfigParam_CommunityString) LanConfigParameter() (paramSelector LanConfigParamSelector, setSelector uint8, blockSelector uint8)
- func (param *LanConfigParam_CommunityString) Pack() []byte
- func (param *LanConfigParam_CommunityString) Unpack(data []byte) error
- type LanConfigParam_DefaultGatewayIP
- func (param *LanConfigParam_DefaultGatewayIP) Format() string
- func (param *LanConfigParam_DefaultGatewayIP) LanConfigParameter() (paramSelector LanConfigParamSelector, setSelector uint8, blockSelector uint8)
- func (param *LanConfigParam_DefaultGatewayIP) Pack() []byte
- func (param *LanConfigParam_DefaultGatewayIP) Unpack(data []byte) error
- type LanConfigParam_DefaultGatewayMAC
- func (param *LanConfigParam_DefaultGatewayMAC) Format() string
- func (param *LanConfigParam_DefaultGatewayMAC) LanConfigParameter() (paramSelector LanConfigParamSelector, setSelector uint8, blockSelector uint8)
- func (param *LanConfigParam_DefaultGatewayMAC) Pack() []byte
- func (param *LanConfigParam_DefaultGatewayMAC) Unpack(data []byte) error
- type LanConfigParam_GratuitousARPInterval
- func (param *LanConfigParam_GratuitousARPInterval) Format() string
- func (param *LanConfigParam_GratuitousARPInterval) LanConfigParameter() (paramSelector LanConfigParamSelector, setSelector uint8, blockSelector uint8)
- func (param *LanConfigParam_GratuitousARPInterval) Pack() []byte
- func (param *LanConfigParam_GratuitousARPInterval) Unpack(data []byte) error
- type LanConfigParam_IP
- type LanConfigParam_IPSource
- func (param *LanConfigParam_IPSource) Format() string
- func (param *LanConfigParam_IPSource) LanConfigParameter() (paramSelector LanConfigParamSelector, setSelector uint8, blockSelector uint8)
- func (param *LanConfigParam_IPSource) Pack() []byte
- func (param *LanConfigParam_IPSource) Unpack(data []byte) error
- type LanConfigParam_IPv4HeaderParams
- func (param *LanConfigParam_IPv4HeaderParams) Format() string
- func (param *LanConfigParam_IPv4HeaderParams) LanConfigParameter() (paramSelector LanConfigParamSelector, setSelector uint8, blockSelector uint8)
- func (param *LanConfigParam_IPv4HeaderParams) Pack() []byte
- func (param *LanConfigParam_IPv4HeaderParams) Unpack(data []byte) error
- type LanConfigParam_IPv6DHCPv6DynamicDUID
- func (param *LanConfigParam_IPv6DHCPv6DynamicDUID) Format() string
- func (param *LanConfigParam_IPv6DHCPv6DynamicDUID) LanConfigParameter() (paramSelector LanConfigParamSelector, setSelector uint8, blockSelector uint8)
- func (param *LanConfigParam_IPv6DHCPv6DynamicDUID) Pack() []byte
- func (param *LanConfigParam_IPv6DHCPv6DynamicDUID) Unpack(data []byte) error
- type LanConfigParam_IPv6DHCPv6DynamicDUIDCount
- func (param *LanConfigParam_IPv6DHCPv6DynamicDUIDCount) Format() string
- func (param *LanConfigParam_IPv6DHCPv6DynamicDUIDCount) LanConfigParameter() (paramSelector LanConfigParamSelector, setSelector uint8, blockSelector uint8)
- func (param *LanConfigParam_IPv6DHCPv6DynamicDUIDCount) Pack() []byte
- func (param *LanConfigParam_IPv6DHCPv6DynamicDUIDCount) Unpack(data []byte) error
- type LanConfigParam_IPv6DHCPv6StaticDUID
- func (param *LanConfigParam_IPv6DHCPv6StaticDUID) Format() string
- func (param *LanConfigParam_IPv6DHCPv6StaticDUID) LanConfigParameter() (paramSelector LanConfigParamSelector, setSelector uint8, blockSelector uint8)
- func (param *LanConfigParam_IPv6DHCPv6StaticDUID) Pack() []byte
- func (param *LanConfigParam_IPv6DHCPv6StaticDUID) Unpack(data []byte) error
- type LanConfigParam_IPv6DHCPv6StaticDUIDCount
- func (param *LanConfigParam_IPv6DHCPv6StaticDUIDCount) Format() string
- func (param *LanConfigParam_IPv6DHCPv6StaticDUIDCount) LanConfigParameter() (paramSelector LanConfigParamSelector, setSelector uint8, blockSelector uint8)
- func (param *LanConfigParam_IPv6DHCPv6StaticDUIDCount) Pack() []byte
- func (param *LanConfigParam_IPv6DHCPv6StaticDUIDCount) Unpack(data []byte) error
- type LanConfigParam_IPv6DHCPv6TimingConfig
- func (param *LanConfigParam_IPv6DHCPv6TimingConfig) Format() string
- func (param *LanConfigParam_IPv6DHCPv6TimingConfig) LanConfigParameter() (paramSelector LanConfigParamSelector, setSelector uint8, blockSelector uint8)
- func (param *LanConfigParam_IPv6DHCPv6TimingConfig) Pack() []byte
- func (param *LanConfigParam_IPv6DHCPv6TimingConfig) Unpack(data []byte) error
- type LanConfigParam_IPv6DHCPv6TimingConfigSupport
- func (param *LanConfigParam_IPv6DHCPv6TimingConfigSupport) Format() string
- func (param *LanConfigParam_IPv6DHCPv6TimingConfigSupport) LanConfigParameter() (paramSelector LanConfigParamSelector, setSelector uint8, blockSelector uint8)
- func (param *LanConfigParam_IPv6DHCPv6TimingConfigSupport) Pack() []byte
- func (param *LanConfigParam_IPv6DHCPv6TimingConfigSupport) Unpack(data []byte) error
- type LanConfigParam_IPv6DynamicAddress
- func (param *LanConfigParam_IPv6DynamicAddress) Format() string
- func (param *LanConfigParam_IPv6DynamicAddress) LanConfigParameter() (paramSelector LanConfigParamSelector, setSelector uint8, blockSelector uint8)
- func (param *LanConfigParam_IPv6DynamicAddress) Pack() []byte
- func (param *LanConfigParam_IPv6DynamicAddress) Unpack(data []byte) error
- type LanConfigParam_IPv6DynamicRouterInfoIP
- func (param *LanConfigParam_IPv6DynamicRouterInfoIP) Format() string
- func (param *LanConfigParam_IPv6DynamicRouterInfoIP) LanConfigParameter() (paramSelector LanConfigParamSelector, setSelector uint8, blockSelector uint8)
- func (param *LanConfigParam_IPv6DynamicRouterInfoIP) Pack() []byte
- func (param *LanConfigParam_IPv6DynamicRouterInfoIP) Unpack(data []byte) error
- type LanConfigParam_IPv6DynamicRouterInfoMAC
- func (param *LanConfigParam_IPv6DynamicRouterInfoMAC) Format() string
- func (param *LanConfigParam_IPv6DynamicRouterInfoMAC) LanConfigParameter() (paramSelector LanConfigParamSelector, setSelector uint8, blockSelector uint8)
- func (param *LanConfigParam_IPv6DynamicRouterInfoMAC) Pack() []byte
- func (param *LanConfigParam_IPv6DynamicRouterInfoMAC) Unpack(data []byte) error
- type LanConfigParam_IPv6DynamicRouterInfoPrefixLength
- func (param *LanConfigParam_IPv6DynamicRouterInfoPrefixLength) Format() string
- func (param *LanConfigParam_IPv6DynamicRouterInfoPrefixLength) LanConfigParameter() (paramSelector LanConfigParamSelector, setSelector uint8, blockSelector uint8)
- func (param *LanConfigParam_IPv6DynamicRouterInfoPrefixLength) Pack() []byte
- func (param *LanConfigParam_IPv6DynamicRouterInfoPrefixLength) Unpack(data []byte) error
- type LanConfigParam_IPv6DynamicRouterInfoPrefixValue
- func (param *LanConfigParam_IPv6DynamicRouterInfoPrefixValue) Format() string
- func (param *LanConfigParam_IPv6DynamicRouterInfoPrefixValue) LanConfigParameter() (paramSelector LanConfigParamSelector, setSelector uint8, blockSelector uint8)
- func (param *LanConfigParam_IPv6DynamicRouterInfoPrefixValue) Pack() []byte
- func (param *LanConfigParam_IPv6DynamicRouterInfoPrefixValue) Unpack(data []byte) error
- type LanConfigParam_IPv6DynamicRouterInfoSets
- func (param *LanConfigParam_IPv6DynamicRouterInfoSets) Format() string
- func (param *LanConfigParam_IPv6DynamicRouterInfoSets) LanConfigParameter() (paramSelector LanConfigParamSelector, setSelector uint8, blockSelector uint8)
- func (param *LanConfigParam_IPv6DynamicRouterInfoSets) Pack() []byte
- func (param *LanConfigParam_IPv6DynamicRouterInfoSets) Unpack(data []byte) error
- type LanConfigParam_IPv6DynamicRouterReceivedHopLimit
- func (param *LanConfigParam_IPv6DynamicRouterReceivedHopLimit) Format() string
- func (param *LanConfigParam_IPv6DynamicRouterReceivedHopLimit) LanConfigParameter() (paramSelector LanConfigParamSelector, setSelector uint8, blockSelector uint8)
- func (param *LanConfigParam_IPv6DynamicRouterReceivedHopLimit) Pack() []byte
- func (param *LanConfigParam_IPv6DynamicRouterReceivedHopLimit) Unpack(data []byte) error
- type LanConfigParam_IPv6Enables
- func (param *LanConfigParam_IPv6Enables) Format() string
- func (param *LanConfigParam_IPv6Enables) LanConfigParameter() (paramSelector LanConfigParamSelector, setSelector uint8, blockSelector uint8)
- func (param *LanConfigParam_IPv6Enables) Pack() []byte
- func (param *LanConfigParam_IPv6Enables) Unpack(data []byte) error
- type LanConfigParam_IPv6FlowLabel
- func (param *LanConfigParam_IPv6FlowLabel) Format() string
- func (param *LanConfigParam_IPv6FlowLabel) LanConfigParameter() (paramSelector LanConfigParamSelector, setSelector uint8, blockSelector uint8)
- func (param *LanConfigParam_IPv6FlowLabel) Pack() []byte
- func (param *LanConfigParam_IPv6FlowLabel) Unpack(data []byte) error
- type LanConfigParam_IPv6NDSLAACTimingConfig
- func (param *LanConfigParam_IPv6NDSLAACTimingConfig) Format() string
- func (param *LanConfigParam_IPv6NDSLAACTimingConfig) LanConfigParameter() (paramSelector LanConfigParamSelector, setSelector uint8, blockSelector uint8)
- func (param *LanConfigParam_IPv6NDSLAACTimingConfig) Pack() []byte
- func (param *LanConfigParam_IPv6NDSLAACTimingConfig) Unpack(data []byte) error
- type LanConfigParam_IPv6NDSLAACTimingConfigSupport
- func (param *LanConfigParam_IPv6NDSLAACTimingConfigSupport) Format() string
- func (param *LanConfigParam_IPv6NDSLAACTimingConfigSupport) LanConfigParameter() (paramSelector LanConfigParamSelector, setSelector uint8, blockSelector uint8)
- func (param *LanConfigParam_IPv6NDSLAACTimingConfigSupport) Pack() []byte
- func (param *LanConfigParam_IPv6NDSLAACTimingConfigSupport) Unpack(data []byte) error
- type LanConfigParam_IPv6RouterAddressConfigControl
- func (param *LanConfigParam_IPv6RouterAddressConfigControl) Format() string
- func (param *LanConfigParam_IPv6RouterAddressConfigControl) LanConfigParameter() (paramSelector LanConfigParamSelector, setSelector uint8, blockSelector uint8)
- func (param *LanConfigParam_IPv6RouterAddressConfigControl) Pack() []byte
- func (param *LanConfigParam_IPv6RouterAddressConfigControl) Unpack(data []byte) error
- type LanConfigParam_IPv6StaticAddress
- func (param *LanConfigParam_IPv6StaticAddress) Format() string
- func (param *LanConfigParam_IPv6StaticAddress) LanConfigParameter() (paramSelector LanConfigParamSelector, setSelector uint8, blockSelector uint8)
- func (param *LanConfigParam_IPv6StaticAddress) Pack() []byte
- func (param *LanConfigParam_IPv6StaticAddress) Unpack(data []byte) error
- type LanConfigParam_IPv6StaticHopLimit
- func (param *LanConfigParam_IPv6StaticHopLimit) Format() string
- func (param *LanConfigParam_IPv6StaticHopLimit) LanConfigParameter() (paramSelector LanConfigParamSelector, setSelector uint8, blockSelector uint8)
- func (param *LanConfigParam_IPv6StaticHopLimit) Pack() []byte
- func (param *LanConfigParam_IPv6StaticHopLimit) Unpack(data []byte) error
- type LanConfigParam_IPv6StaticRouter1IP
- func (param *LanConfigParam_IPv6StaticRouter1IP) Format() string
- func (param *LanConfigParam_IPv6StaticRouter1IP) LanConfigParameter() (paramSelector LanConfigParamSelector, setSelector uint8, blockSelector uint8)
- func (param *LanConfigParam_IPv6StaticRouter1IP) Pack() []byte
- func (param *LanConfigParam_IPv6StaticRouter1IP) Unpack(data []byte) error
- type LanConfigParam_IPv6StaticRouter1MAC
- func (param *LanConfigParam_IPv6StaticRouter1MAC) Format() string
- func (param *LanConfigParam_IPv6StaticRouter1MAC) LanConfigParameter() (paramSelector LanConfigParamSelector, setSelector uint8, blockSelector uint8)
- func (param *LanConfigParam_IPv6StaticRouter1MAC) Pack() []byte
- func (param *LanConfigParam_IPv6StaticRouter1MAC) Unpack(data []byte) error
- type LanConfigParam_IPv6StaticRouter1PrefixLength
- func (param *LanConfigParam_IPv6StaticRouter1PrefixLength) Format() string
- func (param *LanConfigParam_IPv6StaticRouter1PrefixLength) LanConfigParameter() (paramSelector LanConfigParamSelector, setSelector uint8, blockSelector uint8)
- func (param *LanConfigParam_IPv6StaticRouter1PrefixLength) Pack() []byte
- func (param *LanConfigParam_IPv6StaticRouter1PrefixLength) Unpack(data []byte) error
- type LanConfigParam_IPv6StaticRouter1PrefixValue
- func (param *LanConfigParam_IPv6StaticRouter1PrefixValue) Format() string
- func (param *LanConfigParam_IPv6StaticRouter1PrefixValue) LanConfigParameter() (paramSelector LanConfigParamSelector, setSelector uint8, blockSelector uint8)
- func (param *LanConfigParam_IPv6StaticRouter1PrefixValue) Pack() []byte
- func (param *LanConfigParam_IPv6StaticRouter1PrefixValue) Unpack(data []byte) error
- type LanConfigParam_IPv6StaticRouter2IP
- func (param *LanConfigParam_IPv6StaticRouter2IP) Format() string
- func (param *LanConfigParam_IPv6StaticRouter2IP) LanConfigParameter() (paramSelector LanConfigParamSelector, setSelector uint8, blockSelector uint8)
- func (param *LanConfigParam_IPv6StaticRouter2IP) Pack() []byte
- func (param *LanConfigParam_IPv6StaticRouter2IP) Unpack(data []byte) error
- type LanConfigParam_IPv6StaticRouter2MAC
- func (param *LanConfigParam_IPv6StaticRouter2MAC) Format() string
- func (param *LanConfigParam_IPv6StaticRouter2MAC) LanConfigParameter() (paramSelector LanConfigParamSelector, setSelector uint8, blockSelector uint8)
- func (param *LanConfigParam_IPv6StaticRouter2MAC) Pack() []byte
- func (param *LanConfigParam_IPv6StaticRouter2MAC) Unpack(data []byte) error
- type LanConfigParam_IPv6StaticRouter2PrefixLength
- func (param *LanConfigParam_IPv6StaticRouter2PrefixLength) Format() string
- func (param *LanConfigParam_IPv6StaticRouter2PrefixLength) LanConfigParameter() (paramSelector LanConfigParamSelector, setSelector uint8, blockSelector uint8)
- func (param *LanConfigParam_IPv6StaticRouter2PrefixLength) Pack() []byte
- func (param *LanConfigParam_IPv6StaticRouter2PrefixLength) Unpack(data []byte) error
- type LanConfigParam_IPv6StaticRouter2PrefixValue
- func (param *LanConfigParam_IPv6StaticRouter2PrefixValue) Format() string
- func (param *LanConfigParam_IPv6StaticRouter2PrefixValue) LanConfigParameter() (paramSelector LanConfigParamSelector, setSelector uint8, blockSelector uint8)
- func (param *LanConfigParam_IPv6StaticRouter2PrefixValue) Pack() []byte
- func (param *LanConfigParam_IPv6StaticRouter2PrefixValue) Unpack(data []byte) error
- type LanConfigParam_IPv6StaticTrafficClass
- func (param *LanConfigParam_IPv6StaticTrafficClass) Format() string
- func (param *LanConfigParam_IPv6StaticTrafficClass) LanConfigParameter() (paramSelector LanConfigParamSelector, setSelector uint8, blockSelector uint8)
- func (param *LanConfigParam_IPv6StaticTrafficClass) Pack() []byte
- func (param *LanConfigParam_IPv6StaticTrafficClass) Unpack(data []byte) error
- type LanConfigParam_IPv6Status
- func (param *LanConfigParam_IPv6Status) Format() string
- func (param *LanConfigParam_IPv6Status) LanConfigParameter() (paramSelector LanConfigParamSelector, setSelector uint8, blockSelector uint8)
- func (param *LanConfigParam_IPv6Status) Pack() []byte
- func (param *LanConfigParam_IPv6Status) Unpack(data []byte) error
- type LanConfigParam_IPv6Support
- func (param *LanConfigParam_IPv6Support) Format() string
- func (param *LanConfigParam_IPv6Support) LanConfigParameter() (paramSelector LanConfigParamSelector, setSelector uint8, blockSelector uint8)
- func (param *LanConfigParam_IPv6Support) Pack() []byte
- func (param *LanConfigParam_IPv6Support) Unpack(data []byte) error
- type LanConfigParam_MAC
- type LanConfigParam_PrimaryRMCPPort
- func (param *LanConfigParam_PrimaryRMCPPort) Format() string
- func (param *LanConfigParam_PrimaryRMCPPort) LanConfigParameter() (paramSelector LanConfigParamSelector, setSelector uint8, blockSelector uint8)
- func (param *LanConfigParam_PrimaryRMCPPort) Pack() []byte
- func (param *LanConfigParam_PrimaryRMCPPort) Unpack(data []byte) error
- type LanConfigParam_SecondaryRMCPPort
- func (param *LanConfigParam_SecondaryRMCPPort) Format() string
- func (param *LanConfigParam_SecondaryRMCPPort) LanConfigParameter() (paramSelector LanConfigParamSelector, setSelector uint8, blockSelector uint8)
- func (param *LanConfigParam_SecondaryRMCPPort) Pack() []byte
- func (param *LanConfigParam_SecondaryRMCPPort) Unpack(data []byte) error
- type LanConfigParam_SetInProgress
- func (param *LanConfigParam_SetInProgress) Format() string
- func (param *LanConfigParam_SetInProgress) LanConfigParameter() (paramSelector LanConfigParamSelector, setSelector uint8, blockSelector uint8)
- func (param *LanConfigParam_SetInProgress) Pack() []byte
- func (param *LanConfigParam_SetInProgress) Unpack(data []byte) error
- type LanConfigParam_SubnetMask
- func (param *LanConfigParam_SubnetMask) Format() string
- func (param *LanConfigParam_SubnetMask) LanConfigParameter() (paramSelector LanConfigParamSelector, setSelector uint8, blockSelector uint8)
- func (param *LanConfigParam_SubnetMask) Pack() []byte
- func (param *LanConfigParam_SubnetMask) Unpack(data []byte) error
- type LanConfigParam_VLANID
- type LanConfigParam_VLANPriority
- func (param *LanConfigParam_VLANPriority) Format() string
- func (param *LanConfigParam_VLANPriority) LanConfigParameter() (paramSelector LanConfigParamSelector, setSelector uint8, blockSelector uint8)
- func (param *LanConfigParam_VLANPriority) Pack() []byte
- func (param *LanConfigParam_VLANPriority) Unpack(data []byte) error
- type LanConfigParameter
- type LanConfigParams
- type LanIPAddressSource
- type LanIPv6AddressStatus
- type LanIPv6DHCPv6TimingConfigMode
- type LanIPv6DynamicAddressSource
- type LanIPv6EnableMode
- type LanIPv6NDSLAACTimingConfigMode
- type LanIPv6StaticAddressSource
- type LinearizationFunc
- type ManagementAccessSubRecordType
- type ManufacturingTestOnRequest
- type ManufacturingTestOnResponse
- type Mask
- func (mask *Mask) ParseAssertLower(b uint16)
- func (mask *Mask) ParseDeassertUpper(b uint16)
- func (mask *Mask) ParseReading(b uint16)
- func (mask *Mask) ReadableThresholds() SensorThresholdTypes
- func (mask *Mask) SettableThresholds() SensorThresholdTypes
- func (mask *Mask) StatusReturnedThresholds() SensorThresholdTypes
- func (mask *Mask) SupportedThresholdEvents() SensorEvents
- type Mask_Discrete
- type Mask_DiscreteEvent
- type Mask_Threshold
- type Mask_Thresholds
- type MasterWriteReadRequest
- type MasterWriteReadResponse
- type MessageClass
- type MessageType
- type NetFn
- type OEM
- type OpenSessionRequest
- type OpenSessionResponse
- type PEFAlertPolicy
- type PEFAlertPolicyAction
- type PEFConfigParamSelector
- type PEFConfigParam_ActionGlobalControl
- func (param *PEFConfigParam_ActionGlobalControl) Format() string
- func (param *PEFConfigParam_ActionGlobalControl) PEFConfigParameter() (paramSelector PEFConfigParamSelector, setSelector uint8, blockSelector uint8)
- func (param *PEFConfigParam_ActionGlobalControl) Pack() []byte
- func (param *PEFConfigParam_ActionGlobalControl) Unpack(data []byte) error
- type PEFConfigParam_AlertPoliciesCount
- func (param *PEFConfigParam_AlertPoliciesCount) Format() string
- func (param *PEFConfigParam_AlertPoliciesCount) PEFConfigParameter() (paramSelector PEFConfigParamSelector, setSelector uint8, blockSelector uint8)
- func (param *PEFConfigParam_AlertPoliciesCount) Pack() []byte
- func (param *PEFConfigParam_AlertPoliciesCount) Unpack(data []byte) error
- type PEFConfigParam_AlertPolicy
- func (param *PEFConfigParam_AlertPolicy) Format() string
- func (param *PEFConfigParam_AlertPolicy) PEFConfigParameter() (paramSelector PEFConfigParamSelector, setSelector uint8, blockSelector uint8)
- func (param *PEFConfigParam_AlertPolicy) Pack() []byte
- func (param *PEFConfigParam_AlertPolicy) Unpack(data []byte) error
- type PEFConfigParam_AlertStartupDelay
- func (param *PEFConfigParam_AlertStartupDelay) Format() string
- func (param *PEFConfigParam_AlertStartupDelay) PEFConfigParameter() (paramSelector PEFConfigParamSelector, setSelector uint8, blockSelector uint8)
- func (param *PEFConfigParam_AlertStartupDelay) Pack() []byte
- func (param *PEFConfigParam_AlertStartupDelay) Unpack(data []byte) error
- type PEFConfigParam_AlertString
- func (param *PEFConfigParam_AlertString) Format() string
- func (param *PEFConfigParam_AlertString) PEFConfigParameter() (paramSelector PEFConfigParamSelector, setSelector uint8, blockSelector uint8)
- func (param *PEFConfigParam_AlertString) Pack() []byte
- func (param *PEFConfigParam_AlertString) Unpack(data []byte) error
- type PEFConfigParam_AlertStringKey
- func (param *PEFConfigParam_AlertStringKey) Format() string
- func (param *PEFConfigParam_AlertStringKey) PEFConfigParameter() (paramSelector PEFConfigParamSelector, setSelector uint8, blockSelector uint8)
- func (param *PEFConfigParam_AlertStringKey) Pack() []byte
- func (param *PEFConfigParam_AlertStringKey) Unpack(data []byte) error
- type PEFConfigParam_AlertStringsCount
- func (param *PEFConfigParam_AlertStringsCount) Format() string
- func (param *PEFConfigParam_AlertStringsCount) PEFConfigParameter() (paramSelector PEFConfigParamSelector, setSelector uint8, blockSelector uint8)
- func (param *PEFConfigParam_AlertStringsCount) Pack() []byte
- func (param *PEFConfigParam_AlertStringsCount) Unpack(data []byte) error
- type PEFConfigParam_Control
- func (param *PEFConfigParam_Control) Format() string
- func (param *PEFConfigParam_Control) PEFConfigParameter() (paramSelector PEFConfigParamSelector, setSelector uint8, blockSelector uint8)
- func (param *PEFConfigParam_Control) Pack() []byte
- func (param *PEFConfigParam_Control) Unpack(data []byte) error
- type PEFConfigParam_EventFilter
- func (param *PEFConfigParam_EventFilter) Format() string
- func (param *PEFConfigParam_EventFilter) PEFConfigParameter() (paramSelector PEFConfigParamSelector, setSelector uint8, blockSelector uint8)
- func (param *PEFConfigParam_EventFilter) Pack() []byte
- func (param *PEFConfigParam_EventFilter) Unpack(data []byte) error
- type PEFConfigParam_EventFilterData1
- func (param *PEFConfigParam_EventFilterData1) Format() string
- func (param *PEFConfigParam_EventFilterData1) PEFConfigParameter() (paramSelector PEFConfigParamSelector, setSelector uint8, blockSelector uint8)
- func (param *PEFConfigParam_EventFilterData1) Pack() []byte
- func (param *PEFConfigParam_EventFilterData1) Unpack(data []byte) error
- type PEFConfigParam_EventFiltersCount
- func (param *PEFConfigParam_EventFiltersCount) Format() string
- func (param *PEFConfigParam_EventFiltersCount) PEFConfigParameter() (paramSelector PEFConfigParamSelector, setSelector uint8, blockSelector uint8)
- func (param *PEFConfigParam_EventFiltersCount) Pack() []byte
- func (param *PEFConfigParam_EventFiltersCount) Unpack(data []byte) error
- type PEFConfigParam_GroupControl
- func (param *PEFConfigParam_GroupControl) Format() string
- func (param *PEFConfigParam_GroupControl) PEFConfigParameter() (paramSelector PEFConfigParamSelector, setSelector uint8, blockSelector uint8)
- func (param *PEFConfigParam_GroupControl) Pack() []byte
- func (param *PEFConfigParam_GroupControl) Unpack(data []byte) error
- type PEFConfigParam_GroupControlsCount
- func (param *PEFConfigParam_GroupControlsCount) Format() string
- func (param *PEFConfigParam_GroupControlsCount) PEFConfigParameter() (paramSelector PEFConfigParamSelector, setSelector uint8, blockSelector uint8)
- func (param *PEFConfigParam_GroupControlsCount) Pack() []byte
- func (param *PEFConfigParam_GroupControlsCount) Unpack(data []byte) error
- type PEFConfigParam_SetInProgress
- func (param *PEFConfigParam_SetInProgress) Format() string
- func (param *PEFConfigParam_SetInProgress) PEFConfigParameter() (paramSelector PEFConfigParamSelector, setSelector uint8, blockSelector uint8)
- func (param *PEFConfigParam_SetInProgress) Pack() []byte
- func (param *PEFConfigParam_SetInProgress) Unpack(data []byte) error
- type PEFConfigParam_StartupDelay
- func (param *PEFConfigParam_StartupDelay) Format() string
- func (param *PEFConfigParam_StartupDelay) PEFConfigParameter() (paramSelector PEFConfigParamSelector, setSelector uint8, blockSelector uint8)
- func (param *PEFConfigParam_StartupDelay) Pack() []byte
- func (param *PEFConfigParam_StartupDelay) Unpack(data []byte) error
- type PEFConfigParam_SystemGUID
- func (param *PEFConfigParam_SystemGUID) Format() string
- func (param *PEFConfigParam_SystemGUID) PEFConfigParameter() (paramSelector PEFConfigParamSelector, setSelector uint8, blockSelector uint8)
- func (param *PEFConfigParam_SystemGUID) Pack() []byte
- func (param *PEFConfigParam_SystemGUID) Unpack(configData []byte) error
- type PEFConfigParameter
- type PEFConfigParams
- type PEFEventFilter
- type PEFEventFilterType
- type PEFEventSeverity
- type PETAcknowledgeRequest
- type PETAcknowledgeResponse
- type Parameter
- type PasswordOperation
- type PayloadEncryptionOperation
- type PayloadType
- type PlatformEventMessageRequest
- type PlatformEventMessageResponse
- type PowerRestorePolicy
- type PreTimeoutInterrupt
- type PrivilegeLevel
- type RAKPMessage1
- type RAKPMessage2
- type RAKPMessage3
- type RAKPMessage4
- type ReadEventMessageBufferRequest
- type ReadEventMessageBufferResponse
- type ReadFRUDataRequest
- type ReadFRUDataResponse
- type ReadingFactors
- type RearmSensorEventsRequest
- type RearmSensorEventsResponse
- type Request
- type ReserveDeviceSDRRepoRequest
- type ReserveDeviceSDRRepoResponse
- type ReserveSDRRepoRequest
- type ReserveSDRRepoResponse
- type ReserveSELRequest
- type ReserveSELResponse
- type ResetWatchdogTimerRequest
- type ResetWatchdogTimerResponse
- type Response
- type ResponseError
- type Rmcp
- type RmcpAckMessage
- type RmcpHeader
- type RmcpPingRequest
- type RmcpPingResponse
- type RmcpStatusCode
- type SDR
- type SDRBMCChannelInfo
- type SDRCompact
- type SDRDeviceRelative
- type SDREntityAssociation
- type SDREventOnly
- type SDRFRUDeviceLocator
- type SDRFull
- func (full *SDRFull) ConvertReading(raw uint8) float64
- func (full *SDRFull) ConvertSensorHysteresis(raw uint8) float64
- func (full *SDRFull) ConvertSensorTolerance(raw uint8) float64
- func (full *SDRFull) HasAnalogReading() bool
- func (full *SDRFull) HysteresisStr(raw uint8) string
- func (full *SDRFull) ReadingMaxStr() string
- func (full *SDRFull) ReadingMinStr() string
- func (full *SDRFull) ReadingStr(raw uint8, valid bool) string
- func (full *SDRFull) SensorThreshold(thresholdType SensorThresholdType) SensorThreshold
- func (full *SDRFull) String() string
- func (full *SDRFull) ThresholdValueStr(thresholdType SensorThresholdType) string
- type SDRGenericDeviceLocator
- type SDRHeader
- type SDRMapBySensorNumber
- type SDRMgmtControllerConfirmation
- type SDRMgmtControllerDeviceLocator
- type SDROEM
- type SDROperationSupport
- type SDRRecordType
- type SDRReserved
- type SEL
- type SELOEMNonTimestamped
- type SELOEMTimestamped
- type SELOperationSupport
- type SELRecordType
- type SELRecordTypeRange
- type SELStandard
- type SOLActivatingRequest
- type SOLActivatingResponse
- type SOLConfigParamSelector
- type SOLConfigParam_Character
- func (p *SOLConfigParam_Character) Format() string
- func (p *SOLConfigParam_Character) Pack() []byte
- func (p *SOLConfigParam_Character) SOLConfigParameter() (paramSelector SOLConfigParamSelector, setSelector uint8, blockSelector uint8)
- func (p *SOLConfigParam_Character) Unpack(paramData []byte) error
- type SOLConfigParam_NonVolatileBitRate
- func (p *SOLConfigParam_NonVolatileBitRate) Format() string
- func (p *SOLConfigParam_NonVolatileBitRate) Pack() []byte
- func (p *SOLConfigParam_NonVolatileBitRate) SOLConfigParameter() (paramSelector SOLConfigParamSelector, setSelector uint8, blockSelector uint8)
- func (p *SOLConfigParam_NonVolatileBitRate) Unpack(paramData []byte) error
- type SOLConfigParam_PayloadChannel
- func (p *SOLConfigParam_PayloadChannel) Format() string
- func (p *SOLConfigParam_PayloadChannel) Pack() []byte
- func (p *SOLConfigParam_PayloadChannel) SOLConfigParameter() (paramSelector SOLConfigParamSelector, setSelector uint8, blockSelector uint8)
- func (p *SOLConfigParam_PayloadChannel) Unpack(paramData []byte) error
- type SOLConfigParam_PayloadPort
- func (p *SOLConfigParam_PayloadPort) Format() string
- func (p *SOLConfigParam_PayloadPort) Pack() []byte
- func (p *SOLConfigParam_PayloadPort) SOLConfigParameter() (paramSelector SOLConfigParamSelector, setSelector uint8, blockSelector uint8)
- func (p *SOLConfigParam_PayloadPort) Unpack(paramData []byte) error
- type SOLConfigParam_SOLAuthentication
- func (p *SOLConfigParam_SOLAuthentication) Format() string
- func (p *SOLConfigParam_SOLAuthentication) Pack() []byte
- func (p *SOLConfigParam_SOLAuthentication) SOLConfigParameter() (paramSelector SOLConfigParamSelector, setSelector uint8, blockSelector uint8)
- func (p *SOLConfigParam_SOLAuthentication) Unpack(paramData []byte) error
- type SOLConfigParam_SOLEnable
- func (p *SOLConfigParam_SOLEnable) Format() string
- func (p *SOLConfigParam_SOLEnable) Pack() []byte
- func (p *SOLConfigParam_SOLEnable) SOLConfigParameter() (paramSelector SOLConfigParamSelector, setSelector uint8, blockSelector uint8)
- func (p *SOLConfigParam_SOLEnable) Unpack(paramData []byte) error
- type SOLConfigParam_SOLRetry
- type SOLConfigParam_SetInProgress
- func (p *SOLConfigParam_SetInProgress) Format() string
- func (p *SOLConfigParam_SetInProgress) Pack() []byte
- func (p *SOLConfigParam_SetInProgress) SOLConfigParameter() (paramSelector SOLConfigParamSelector, setSelector uint8, blockSelector uint8)
- func (p *SOLConfigParam_SetInProgress) Unpack(paramData []byte) error
- type SOLConfigParam_VolatileBitRate
- func (p *SOLConfigParam_VolatileBitRate) Format() string
- func (p *SOLConfigParam_VolatileBitRate) Pack() []byte
- func (p *SOLConfigParam_VolatileBitRate) SOLConfigParameter() (paramSelector SOLConfigParamSelector, setSelector uint8, blockSelector uint8)
- func (p *SOLConfigParam_VolatileBitRate) Unpack(paramData []byte) error
- type SOLConfigParameter
- type SOLConfigParams
- type SendMessageRequest
- type SendMessageResponse
- type Sensor
- func (sensor *Sensor) ConvertReading(raw uint8) float64
- func (sensor *Sensor) ConvertSensorHysteresis(raw uint8) float64
- func (sensor *Sensor) ConvertSensorTolerance(raw uint8) float64
- func (sensor *Sensor) DiscreteActiveEvents() []uint8
- func (sensor *Sensor) DiscreteActiveEventsString() []string
- func (sensor *Sensor) EventString(eventOffset uint8) string
- func (sensor *Sensor) HumanStr() string
- func (sensor *Sensor) HysteresisStr(raw uint8) string
- func (sensor *Sensor) IsReadingValid() bool
- func (sensor *Sensor) IsThreshold() bool
- func (sensor *Sensor) IsThresholdAndReadingValid() bool
- func (sensor *Sensor) IsThresholdReadable(thresholdType SensorThresholdType) bool
- func (sensor *Sensor) ReadingStr() string
- func (sensor *Sensor) SensorThreshold(thresholdType SensorThresholdType) SensorThreshold
- func (sensor *Sensor) Status() string
- func (s *Sensor) String() string
- func (sensor *Sensor) ThresholdStr(thresholdType SensorThresholdType) string
- type SensorAnalogUnitFormat
- type SensorCapabilities
- type SensorClass
- type SensorEvent
- type SensorEventFlag
- type SensorEventMessageControl
- type SensorEvents
- type SensorFilterOption
- type SensorHysteresisAccess
- type SensorInitialization
- type SensorModifierRelation
- type SensorNumber
- type SensorRateUnit
- type SensorStatus
- type SensorThreshold
- type SensorThresholdAccess
- type SensorThresholdStatus
- type SensorThresholdType
- type SensorThresholdTypes
- type SensorType
- type SensorUnit
- type SensorUnitType
- type Session15
- type Session20
- type SessionHeader15
- type SessionHeader20
- type SessionState
- type SessionTrailer
- type SetACPIPowerStateRequest
- type SetACPIPowerStateResponse
- type SetBMCGlobalEnablesRequest
- type SetBMCGlobalEnablesResponse
- type SetChannelAccessRequest
- type SetChannelAccessResponse
- type SetChannelSecurityKeysRequest
- type SetChannelSecurityKeysResponse
- type SetChassisCapabilitiesRequest
- type SetChassisCapabilitiesResponse
- type SetCommandEnablesRequest
- type SetCommandEnablesResponse
- type SetCommandSubfunctionEnablesRequest
- type SetCommandSubfunctionEnablesResponse
- type SetDCMIAssetTagRequest
- type SetDCMIAssetTagResponse
- type SetDCMIConfigParamRequest
- type SetDCMIConfigParamResponse
- type SetDCMIMgmtControllerIdentifierRequest
- type SetDCMIMgmtControllerIdentifierResponse
- type SetDCMIPowerLimitRequest
- type SetDCMIPowerLimitResponse
- type SetDCMIThermalLimitRequest
- type SetDCMIThermalLimitResponse
- type SetEventReceiverRequest
- type SetEventReceiverResponse
- type SetFrontPanelEnablesRequest
- type SetFrontPanelEnablesResponse
- type SetInProgressState
- type SetLanConfigParamRequest
- type SetLanConfigParamResponse
- type SetLastProcessedEventIdRequest
- type SetLastProcessedEventIdResponse
- type SetPEFConfigParamRequest
- type SetPEFConfigParamResponse
- type SetPowerCycleIntervalRequest
- type SetPowerCycleIntervalResponse
- type SetPowerRestorePolicyRequest
- type SetPowerRestorePolicyResponse
- type SetSELTimeRequest
- type SetSELTimeResponse
- type SetSELTimeUTCOffsetRequest
- type SetSELTimeUTCOffsetResponse
- type SetSOLConfigParamRequest
- type SetSOLConfigParamResponse
- type SetSensorEventEnableMode
- type SetSensorEventEnableRequest
- type SetSensorEventEnableResponse
- type SetSensorHysteresisRequest
- type SetSensorHysteresisResponse
- type SetSensorReadingAndEventStatusRequest
- type SetSensorReadingAndEventStatusResponse
- type SetSensorThresholdsRequest
- type SetSensorThresholdsResponse
- type SetSensorTypeRequest
- type SetSensorTypeResponse
- type SetSessionPrivilegeLevelRequest
- type SetSessionPrivilegeLevelResponse
- type SetSystemBootOptionsParamRequest
- type SetSystemBootOptionsParamResponse
- type SetSystemInfoParamRequest
- type SetSystemInfoParamResponse
- type SetUserAccessRequest
- type SetUserAccessResponse
- type SetUserPasswordRequest
- type SetUserPasswordResponse
- type SetUserPayloadAccessOperation
- type SetUserPayloadAccessRequest
- type SetUserPayloadAccessResponse
- type SetUsernameRequest
- type SetUsernameResponse
- type SetWatchdogTimerRequest
- type SetWatchdogTimerResponse
- type SharedSerialAlertBehavior
- type SoftwareID
- type SoftwareType
- type SuspendARPsRequest
- type SuspendARPsResponse
- type SuspendResumePayloadEncryptionRequest
- type SuspendResumePayloadEncryptionResponse
- type SystemInfo
- type SystemInfoParamSelector
- type SystemInfoParam_BMCURL
- type SystemInfoParam_ManagementURL
- func (p *SystemInfoParam_ManagementURL) Format() string
- func (p *SystemInfoParam_ManagementURL) Pack() []byte
- func (p *SystemInfoParam_ManagementURL) SystemInfoParameter() (paramSelector SystemInfoParamSelector, setSelector uint8, blockSelector uint8)
- func (p *SystemInfoParam_ManagementURL) Unpack(data []byte) error
- type SystemInfoParam_OSName
- type SystemInfoParam_OSVersion
- func (p *SystemInfoParam_OSVersion) Format() string
- func (p *SystemInfoParam_OSVersion) Pack() []byte
- func (p *SystemInfoParam_OSVersion) SystemInfoParameter() (paramSelector SystemInfoParamSelector, setSelector uint8, blockSelector uint8)
- func (p *SystemInfoParam_OSVersion) Unpack(data []byte) error
- type SystemInfoParam_PrimaryOSName
- func (p *SystemInfoParam_PrimaryOSName) Format() string
- func (p *SystemInfoParam_PrimaryOSName) Pack() []byte
- func (p *SystemInfoParam_PrimaryOSName) SystemInfoParameter() (paramSelector SystemInfoParamSelector, setSelector uint8, blockSelector uint8)
- func (p *SystemInfoParam_PrimaryOSName) Unpack(data []byte) error
- type SystemInfoParam_SetInProgress
- func (p *SystemInfoParam_SetInProgress) Format() string
- func (p *SystemInfoParam_SetInProgress) Pack() []byte
- func (p *SystemInfoParam_SetInProgress) SystemInfoParameter() (paramSelector SystemInfoParamSelector, setSelector uint8, blockSelector uint8)
- func (p *SystemInfoParam_SetInProgress) Unpack(data []byte) error
- type SystemInfoParam_SystemFirmwareVersion
- func (p *SystemInfoParam_SystemFirmwareVersion) Format() string
- func (p *SystemInfoParam_SystemFirmwareVersion) Pack() []byte
- func (p *SystemInfoParam_SystemFirmwareVersion) SystemInfoParameter() (paramSelector SystemInfoParamSelector, setSelector uint8, blockSelector uint8)
- func (p *SystemInfoParam_SystemFirmwareVersion) Unpack(data []byte) error
- type SystemInfoParam_SystemName
- func (p *SystemInfoParam_SystemName) Format() string
- func (p *SystemInfoParam_SystemName) Pack() []byte
- func (p *SystemInfoParam_SystemName) SystemInfoParameter() (paramSelector SystemInfoParamSelector, setSelector uint8, blockSelector uint8)
- func (p *SystemInfoParam_SystemName) Unpack(data []byte) error
- type SystemInfoParameter
- type SystemInfoParams
- type SystemInterfaceType
- type SystemPowerState
- type SystemRestartCause
- type TimeoutAction
- type TimerUse
- type TypeLength
- type UDPClient
- func (c *UDPClient) Close() error
- func (c *UDPClient) Exchange(ctx context.Context, reader io.Reader) ([]byte, error)
- func (c *UDPClient) LocalIPPort() (string, int)
- func (c *UDPClient) RemoteIP() string
- func (c *UDPClient) SetBufferSize(bufferSize int) *UDPClient
- func (c *UDPClient) SetProxy(proxy proxy.Dialer) *UDPClient
- func (c *UDPClient) SetTimeout(timeout time.Duration) *UDPClient
- type User
- type WarmResetRequest
- type WarmResetResponse
- type WriteFRUDataRequest
- type WriteFRUDataResponse
Constants ¶
const ( InterfaceLan Interface = "lan" InterfaceLanplus Interface = "lanplus" InterfaceOpen Interface = "open" InterfaceTool Interface = "tool" DefaultExchangeTimeoutSec int = 20 DefaultKeepAliveIntervalSec int = 30 DefaultBufferSize int = 1024 )
const ( CommandRangeMask007F uint8 = 0x00 CommandRangeMask80FF uint8 = 0x01 )
const ( RmcpOpenSessionRequestSize int = 32 RmcpOpenSessionResponseSize int = 36 RmcpOpenSessionResponseMinSize int = 8 )
const ( SystemPowerStateS0G0 uint8 = 0x00 SystemPowerStateS1 uint8 = 0x01 SystemPowerStateS2 uint8 = 0x02 SystemPowerStateS3 uint8 = 0x03 SystemPowerStateS4 uint8 = 0x04 SystemPowerStateS5G2 uint8 = 0x05 SystemPowerStateS4S5 uint8 = 0x06 SystemPowerStateG3 uint8 = 0x07 SystemPowerStateSleeping uint8 = 0x08 SystemPowerStateG1Sleeping uint8 = 0x09 SystemPowerStateOverride uint8 = 0x0a SystemPowerStateLegacyOn uint8 = 0x20 SystemPowerStateLegacyOff uint8 = 0x21 SystemPowerStateUnknown uint8 = 0x2a SystemPowerStateNoChange uint8 = 0x7f )
const ( DevicePowerStateD0 uint8 = 0x00 DevicePowerStateD1 uint8 = 0x01 DevicePowerStateD2 uint8 = 0x02 DevicePowerStateD3 uint8 = 0x03 DevicePowerStateUnknown uint8 = 0x2a DevicePowerStateNoChange uint8 = 0x7f )
const ( IPMIVersion15 = 0x15 IPMIVersion20 = 0x20 )
const ( IPMB_LUN_BMC LUN = 0x00 // BMC commands and Event Request Messages IPMB_LUN_OEM_1 LUN = 0x01 // OEM LUN 1 IPMB_LUN_SMS LUN = 0x10 // SMS Message LUN (Intended for messages to System Management Software) IPMB_LUN_OEM_2 LUN = 0x11 // OEM LUN 2 // the least significant bit // 0b (ID is a slave address) // 1b (ID is a Software ID) BMC_SA uint8 = 0x20 // BMC's responder address RemoteConsole_SWID uint8 = 0x81 // Remote Console Software ID )
7.2 BMC IPMB LUNs
const ( StandardCipherSuite uint8 = 0xc0 OEMCipherSuite uint8 = 0xc1 CipherAlgMask uint8 = 0x3f // [5:0]=111111b CipherAlgTagBitMask uint8 = 0xc0 // [7:6]=11b CipherAlgTagBitAuthMask uint8 = 0x00 // [7:6]=00b CipherAlgTagBitIntegrityMask uint8 = 0x40 // [7:6]=01b CipherAlgTagBitEncryptionMask uint8 = 0x80 // [7:6]=10b LIST_ALGORITHMS_BY_CIPHER_SUITE uint8 = 0x80 )
const ( DCMICapParamSelector_SupportedDCMICapabilities = DCMICapParamSelector(0x01) DCMICapParamSelector_MandatoryPlatformAttributes = DCMICapParamSelector(0x02) DCMICapParamSelector_OptionalPlatformAttributes = DCMICapParamSelector(0x03) DCMICapParamSelector_ManageabilityAccessAttributes = DCMICapParamSelector(0x04) DCMICapParamSelector_EnhancedSystemPowerStatisticsAttributes = DCMICapParamSelector(0x05) )
const ( FRUFormatVersion uint8 = 0x01 FRUAreaFieldsEndMark uint8 = 0xc1 FRUCommonHeaderSize uint8 = 8 )
const ( LanIPv6NDSLAACTimingConfigMode_NotSupported LanIPv6DHCPv6TimingConfigMode = 0 LanIPv6NDSLAACTimingConfigMode_Global LanIPv6NDSLAACTimingConfigMode = 1 LanIPv6NDSLAACTimingConfigMode_PerInterface LanIPv6NDSLAACTimingConfigMode = 2 )
const ( OEM_UNKNOWN = 0 OEM_DEBUG = 0xFFFFFE /* Hoping IANA won't hit this soon */ OEM_RESERVED = 0x0FFFFF /* As per IPMI 2.0 specification */ OEM_IBM_2 = 2 /* 2 for [IBM] */ OEM_HP = 11 OEM_SUN = 42 OEM_NOKIA = 94 OEM_BULL = 107 OEM_HITACHI_116 = 116 OEM_NEC = 119 OEM_TOSHIBA = 186 OEM_ERICSSON = 193 OEM_INTEL = 343 OEM_TATUNG = 373 OEM_HITACHI_399 = 399 OEM_DELL = 674 OEM_HUAWEI = 2011 OEM_LMC = 2168 OEM_RADISYS = 4337 OEM_BROADCOM = 4413 OEM_IBM_4769 = 4769 /* 4769 for [IBM Corporation] */ OEM_MAGNUM = 5593 OEM_TYAN = 6653 OEM_QUANTA = 7244 OEM_VIKING = 9237 OEM_ADVANTECH = 10297 OEM_FUJITSU_SIEMENS = 10368 OEM_AVOCENT = 10418 OEM_PEPPERCON = 10437 OEM_SUPERMICRO = 10876 OEM_OSA = 11102 OEM_GOOGLE = 11129 OEM_PICMG = 12634 OEM_RARITAN = 13742 OEM_KONTRON = 15000 OEM_PPS = 16394 OEM_IBM_20301 = 20301 /* 20301 for [IBM eServer X] */ OEM_AMI = 20974 OEM_FOXCONN = 22238 OEM_ADLINK_24339 = 24339 /* 24339 for [ADLINK TECHNOLOGY INC.] */ OEM_H3C = 25506 OEM_NOKIA_SOLUTIONS_AND_NETWORKS = 28458 OEM_VITA = 33196 OEM_INSPUR = 37945 OEM_TENCENT = 41475 OEM_BYTEDANCE = 46045 OEM_SUPERMICRO_47488 = 47488 OEM_YADRO = 49769 )
cSpell: disable
const ( CryptAlg_None CryptAlg = 0x00 // Mandatory CryptAlg_AES_CBC_128 CryptAlg = 0x01 // Mandatory CryptAlg_xRC4_128 CryptAlg = 0x02 // Optional CryptAlg_xRC4_40 CryptAlg = 0x03 // Optional Encryption_AES_CBS_128_BlockSize uint8 = 0x10 )
const ( RmcpVersion uint8 = 0x06 RMCP_TYPE_MASK = 0x80 RMCP_TYPE_NORM = 0x00 RMCP_TYPE_ACK = 0x01 )
const ( MessageACKBit uint8 = 0x80 MessageNormalBit uint8 = 0x00 )
const ( MessageClassASF = 6 MessageClassIPMI = 7 MessageClassOEM = 8 )
const ( SensorThresholdStatus_OK = "ok" SensorThresholdStatus_LNC = "lnc" SensorThresholdStatus_LCR = "lcr" SensorThresholdStatus_LNR = "lnr" SensorThresholdStatus_UNC = "unc" SensorThresholdStatus_UCR = "ucr" SensorThresholdStatus_UNR = "unr" )
const ( // SensorStatusOK means okay (the sensor is present and operating correctly) SensorStatusOK = "OK" // SensorStatusNoSensor means no sensor (corresponding reading will say disabled or Not Readable) SensorStatusNoSensor = "N/A" // SensorStatusNonCritical means non-critical error (lower or upper) SensorStatusNonCritical = "NC" // SensorStatusCritical means critical error (lower or upper) SensorStatusCritical = "CR" // SensorStatusNonRecoverable means non-recoverable error (lower or upper) SensorStatusNonRecoverable = "NR" )
const ( SessionHeader20SizeMax int = 18 SessionHeader20SizeMin int = 12 SessionHeader15SizeMax int = 26 SessionHeader15SizeMin int = 10 )
const ( // Eh = retrieve information for channel this request was issued on ChannelNumberSelf uint8 = 0x0e )
const ( // Intel DCMI extensions (https://www.intel.com/content/dam/www/public/us/en/documents/technical-specifications/dcmi-v1-5-rev-spec.pdf) GroupExtensionDCMI uint8 = 0xDC )
Group Extensions
const (
IPMIRequesterSequenceMax uint8 = 0x3f // RequesterSequence only occupy 6 bits
)
const IPMI_MAX_USER_NAME_LENGTH = 16
const IPMI_RAKP1_MESSAGE_SIZE = 44
const (
MaxCipherSuiteListIndex uint8 = 0x3f
)
const SDRRecordHeaderSize int = 5
const SensorNumberReserved = 0xff
Variables ¶
var ( ErrUnpackedDataTooShort = errors.New("unpacked data is too short") ErrDCMIGroupExtensionIDMismatch = errors.New("DCMI group extension ID mismatch") )
var ( // a faked command for RAKP messages CommandNone = Command{} // IPM Device Global Commands CommandGetDeviceID = Command{ID: 0x01, NetFn: NetFnAppRequest, Name: "Get Device ID"} CommandColdReset = Command{ID: 0x02, NetFn: NetFnAppRequest, Name: "Cold Reset"} CommandWarmReset = Command{ID: 0x03, NetFn: NetFnAppRequest, Name: "Warm Reset"} CommandGetSelfTestResults = Command{ID: 0x04, NetFn: NetFnAppRequest, Name: "Get Self Test Results"} CommandManufacturingTestOn = Command{ID: 0x05, NetFn: NetFnAppRequest, Name: "Manufacturing Test On"} CommandSetACPIPowerState = Command{ID: 0x06, NetFn: NetFnAppRequest, Name: "Set ACPI Power State"} CommandGetACPIPowerState = Command{ID: 0x07, NetFn: NetFnAppRequest, Name: "Get ACPI Power State"} CommandGetDeviceGUID = Command{ID: 0x08, NetFn: NetFnAppRequest, Name: "Get Device GUID"} CommandGetNetFnSupport = Command{ID: 0x09, NetFn: NetFnAppRequest, Name: "Get NetFn Support"} CommandGetCommandSupport = Command{ID: 0x0a, NetFn: NetFnAppRequest, Name: "Get Command Support"} CommandGetCommandSubfunctionSupport = Command{ID: 0x0b, NetFn: NetFnAppRequest, Name: "Get Command Sub-function Support"} CommandGetConfigurableCommands = Command{ID: 0x0c, NetFn: NetFnAppRequest, Name: "Get Configurable Commands"} CommandGetConfigurableCommandSubfunctions = Command{ID: 0x0d, NetFn: NetFnAppRequest, Name: "Get Configurable Command Sub-functions"} // 0Eh - 0Fh reserved CommandSetCommandEnables = Command{ID: 0x60, NetFn: NetFnAppRequest, Name: "Set Command Enables"} CommandGetCommandEnables = Command{ID: 0x61, NetFn: NetFnAppRequest, Name: "Get Command Enables"} CommandSetCommandSubfunctionEnables = Command{ID: 0x62, NetFn: NetFnAppRequest, Name: "Set Command Sub-function Enables"} CommandGetCommandSubfunctionEnables = Command{ID: 0x63, NetFn: NetFnAppRequest, Name: "Get Command Sub-function Enables"} CommandGetOEMNetFnIanaSupport = Command{ID: 0x64, NetFn: NetFnAppRequest, Name: "Get OEM NetFn IANA Support"} // BMC Watchdog Timer Commands CommandResetWatchdogTimer = Command{ID: 0x22, NetFn: NetFnAppRequest, Name: "Reset Watchdog Timer"} CommandSetWatchdogTimer = Command{ID: 0x24, NetFn: NetFnAppRequest, Name: "Set Watchdog Timer"} CommandGetWatchdogTimer = Command{ID: 0x25, NetFn: NetFnAppRequest, Name: "Get Watchdog Timer"} // BMC Device and Messaging Commands CommandSetBMCGlobalEnables = Command{ID: 0x2e, NetFn: NetFnAppRequest, Name: "Set BMC Global Enables"} CommandGetBMCGlobalEnables = Command{ID: 0x2f, NetFn: NetFnAppRequest, Name: "Get BMC Global Enables"} CommandClearMessageFlags = Command{ID: 0x30, NetFn: NetFnAppRequest, Name: "Clear Message Flags"} CommandGetMessageFlags = Command{ID: 0x31, NetFn: NetFnAppRequest, Name: "Get Message Flags"} CommandEnableMessageChannelReceive = Command{ID: 0x32, NetFn: NetFnAppRequest, Name: "Enable Message Channel Receive"} CommandGetMessage = Command{ID: 0x33, NetFn: NetFnAppRequest, Name: "Get Message"} CommandSendMessage = Command{ID: 0x34, NetFn: NetFnAppRequest, Name: "Send Message"} CommandReadEventMessageBuffer = Command{ID: 0x35, NetFn: NetFnAppRequest, Name: "Read Event Message Buffer"} CommandGetBTInterfaceCapabilities = Command{ID: 0x36, NetFn: NetFnAppRequest, Name: "Get BT Interface Capabilities"} CommandGetSystemGUID = Command{ID: 0x37, NetFn: NetFnAppRequest, Name: "Get System GUID"} CommandSetSystemInfoParam = Command{ID: 0x58, NetFn: NetFnAppRequest, Name: "Set System Info Param"} CommandGetSystemInfoParam = Command{ID: 0x59, NetFn: NetFnAppRequest, Name: "Get System Info Param"} CommandGetChannelAuthCapabilities = Command{ID: 0x38, NetFn: NetFnAppRequest, Name: "Get Channel Authentication Capabilities"} CommandGetSessionChallenge = Command{ID: 0x39, NetFn: NetFnAppRequest, Name: "Get Session Challenge"} CommandActivateSession = Command{ID: 0x3a, NetFn: NetFnAppRequest, Name: "Activate Session"} CommandSetSessionPrivilegeLevel = Command{ID: 0x3b, NetFn: NetFnAppRequest, Name: "Set Session Privilege Level"} CommandCloseSession = Command{ID: 0x3c, NetFn: NetFnAppRequest, Name: "Close Session"} CommandGetSessionInfo = Command{ID: 0x3d, NetFn: NetFnAppRequest, Name: "Get Session Info"} // 3e unassigned CommandGetAuthCode = Command{ID: 0x3f, NetFn: NetFnAppRequest, Name: "Get AuthCode"} CommandSetChannelAccess = Command{ID: 0x40, NetFn: NetFnAppRequest, Name: "Set Channel Access"} CommandGetChannelAccess = Command{ID: 0x41, NetFn: NetFnAppRequest, Name: "Get Channel Access"} CommandGetChannelInfo = Command{ID: 0x42, NetFn: NetFnAppRequest, Name: "Get Channel Info Command"} CommandSetUserAccess = Command{ID: 0x43, NetFn: NetFnAppRequest, Name: "Set User Access Command"} CommandGetUserAccess = Command{ID: 0x44, NetFn: NetFnAppRequest, Name: "Get User Access Command"} CommandSetUsername = Command{ID: 0x45, NetFn: NetFnAppRequest, Name: "Set User Name"} CommandGetUsername = Command{ID: 0x46, NetFn: NetFnAppRequest, Name: "Get User Name Command"} CommandSetUserPassword = Command{ID: 0x47, NetFn: NetFnAppRequest, Name: "Set User Password Command"} CommandActivatePayload = Command{ID: 0x48, NetFn: NetFnAppRequest, Name: "Activate Payload"} CommandDeactivatePayload = Command{ID: 0x49, NetFn: NetFnAppRequest, Name: "Deactivate Payload"} CommandGetPayloadActivationStatus = Command{ID: 0x4a, NetFn: NetFnAppRequest, Name: "Get Payload Activation Status"} CommandGetPayloadInstanceInfo = Command{ID: 0x4b, NetFn: NetFnAppRequest, Name: "Get Payload Instance Info"} CommandSetUserPayloadAccess = Command{ID: 0x4c, NetFn: NetFnAppRequest, Name: "Set User Payload Access"} CommandGetUserPayloadAccess = Command{ID: 0x4d, NetFn: NetFnAppRequest, Name: "Get User Payload Access"} CommandGetChannelPayloadSupport = Command{ID: 0x4e, NetFn: NetFnAppRequest, Name: "Get Channel Payload Support"} CommandGetChannelPayloadVersion = Command{ID: 0x4f, NetFn: NetFnAppRequest, Name: "Get Channel Payload Version"} CommandGetChannelOEMPayloadInfo = Command{ID: 0x50, NetFn: NetFnAppRequest, Name: "Get Channel OEM Payload Info"} // 51 unassigned CommandMasterWriteRead = Command{ID: 0x52, NetFn: NetFnAppRequest, Name: "Master Write-Read"} // 53 unassigned CommandGetChannelCipherSuites = Command{ID: 0x54, NetFn: NetFnAppRequest, Name: "Get Channel Cipher Suites"} CommandSuspendResumePayloadEncryption = Command{ID: 0x55, NetFn: NetFnAppRequest, Name: "Suspend/Resume Payload Encryption"} CommandSetChannelSecurityKeys = Command{ID: 0x56, NetFn: NetFnAppRequest, Name: "Set Channel Security Keys"} CommandGetSystemInterfaceCapabilities = Command{ID: 0x57, NetFn: NetFnAppRequest, Name: "Get System Interface Capabilities"} // Chassis Device Commands CommandGetChassisCapabilities = Command{ID: 0x00, NetFn: NetFnChassisRequest, Name: "Get Chassis Capabilities"} CommandGetChassisStatus = Command{ID: 0x01, NetFn: NetFnChassisRequest, Name: "Get Chassis Status"} CommandChassisControl = Command{ID: 0x02, NetFn: NetFnChassisRequest, Name: "Chassis Control"} CommandChassisReset = Command{ID: 0x03, NetFn: NetFnChassisRequest, Name: "Chassis Reset"} CommandChassisIdentify = Command{ID: 0x04, NetFn: NetFnChassisRequest, Name: "Chassis Identify"} CommandSetChassisCapabilities = Command{ID: 0x05, NetFn: NetFnChassisRequest, Name: "Set Chassis Capabilities"} CommandSetPowerRestorePolicy = Command{ID: 0x06, NetFn: NetFnChassisRequest, Name: "Set Power Restore Policy"} CommandGetSystemRestartCause = Command{ID: 0x07, NetFn: NetFnChassisRequest, Name: "Get System Restart Cause"} CommandSetSystemBootOptions = Command{ID: 0x08, NetFn: NetFnChassisRequest, Name: "Set System Boot Options"} CommandGetSystemBootOptions = Command{ID: 0x09, NetFn: NetFnChassisRequest, Name: "Get System Boot Options"} CommandSetFrontPanelEnables = Command{ID: 0x0a, NetFn: NetFnChassisRequest, Name: "Set Front Panel Button Enables"} CommandSetPowerCycleInterval = Command{ID: 0x0b, NetFn: NetFnChassisRequest, Name: "Set Power Cycle Interval"} // 0ch -0eh unassigned CommandGetPOHCounter = Command{ID: 0x0f, NetFn: NetFnChassisRequest, Name: "Get POH Counter"} // Event Commands CommandSetEventReceiver = Command{ID: 0x00, NetFn: NetFnSensorEventRequest, Name: "Set Event Receiver"} CommandGetEventReceiver = Command{ID: 0x01, NetFn: NetFnSensorEventRequest, Name: "Get Event Receiver"} CommandPlatformEventMessage = Command{ID: 0x02, NetFn: NetFnSensorEventRequest, Name: "Platform Event (Event Message)"} // 03h -0fh unassigned // PEF and Alerting Commands CommandGetPEFCapabilities = Command{ID: 0x10, NetFn: NetFnSensorEventRequest, Name: "Get PEF Capabilities"} CommandArmPEFPostponeTimer = Command{ID: 0x11, NetFn: NetFnSensorEventRequest, Name: "Arm PEF Postpone Timer"} CommandSetPEFConfigParam = Command{ID: 0x12, NetFn: NetFnSensorEventRequest, Name: "Set PEF Configuration Param"} CommandGetPEFConfigParam = Command{ID: 0x13, NetFn: NetFnSensorEventRequest, Name: "Get PEF Configuration Param"} CommandSetLastProcessedEventId = Command{ID: 0x14, NetFn: NetFnSensorEventRequest, Name: "Set Last Processed Event ID"} CommandGetLastProcessedEventId = Command{ID: 0x15, NetFn: NetFnSensorEventRequest, Name: "Get Last Processed Event ID"} CommandAlertImmediate = Command{ID: 0x16, NetFn: NetFnSensorEventRequest, Name: "Alert Immediate"} CommandPETAcknowledge = Command{ID: 0x17, NetFn: NetFnSensorEventRequest, Name: "PET Acknowledge"} // Sensor Device Commands CommandGetDeviceSDRInfo = Command{ID: 0x20, NetFn: NetFnSensorEventRequest, Name: "Get Device SDR Info"} CommandGetDeviceSDR = Command{ID: 0x21, NetFn: NetFnSensorEventRequest, Name: "Get Device SDR"} CommandReserveDeviceSDRRepo = Command{ID: 0x22, NetFn: NetFnSensorEventRequest, Name: "Reserve Device SDR Repository"} CommandGetSensorReadingFactors = Command{ID: 0x23, NetFn: NetFnSensorEventRequest, Name: "Get Sensor Reading Factors"} CommandSetSensorHysteresis = Command{ID: 0x24, NetFn: NetFnSensorEventRequest, Name: "Set Sensor Hysteresis"} CommandGetSensorHysteresis = Command{ID: 0x25, NetFn: NetFnSensorEventRequest, Name: "Get Sensor Hysteresis"} CommandSetSensorThresholds = Command{ID: 0x26, NetFn: NetFnSensorEventRequest, Name: "Set Sensor Threshold"} CommandGetSensorThresholds = Command{ID: 0x27, NetFn: NetFnSensorEventRequest, Name: "Get Sensor Threshold"} CommandSetSensorEventEnable = Command{ID: 0x28, NetFn: NetFnSensorEventRequest, Name: "Set Sensor Event Enable"} CommandGetSensorEventEnable = Command{ID: 0x29, NetFn: NetFnSensorEventRequest, Name: "Get Sensor Event Enable"} CommandRearmSensorEvents = Command{ID: 0x2a, NetFn: NetFnSensorEventRequest, Name: "Re-arm Sensor Events"} CommandGetSensorEventStatus = Command{ID: 0x2b, NetFn: NetFnSensorEventRequest, Name: "Get Sensor Event Status"} // no 2c CommandGetSensorReading = Command{ID: 0x2d, NetFn: NetFnSensorEventRequest, Name: "Get Sensor Reading"} CommandSetSensorType = Command{ID: 0x2e, NetFn: NetFnSensorEventRequest, Name: "Set Sensor Type"} CommandGetSensorType = Command{ID: 0x2f, NetFn: NetFnSensorEventRequest, Name: "Get Sensor Type"} CommandSetSensorReadingAndEventStatus = Command{ID: 0x30, NetFn: NetFnSensorEventRequest, Name: "Set Sensor Reading And Event Status"} // FRU Device Commands CommandGetFRUInventoryAreaInfo = Command{ID: 0x10, NetFn: NetFnStorageRequest, Name: "Get FRU Inventory Area Info"} CommandReadFRUData = Command{ID: 0x11, NetFn: NetFnStorageRequest, Name: "Read FRU Data"} CommandWriteFRUData = Command{ID: 0x12, NetFn: NetFnStorageRequest, Name: "Write FRU Data"} // SDR Device Commands CommandGetSDRRepoInfo = Command{ID: 0x20, NetFn: NetFnStorageRequest, Name: "Get SDR Repository Info"} CommandGetSDRRepoAllocInfo = Command{ID: 0x21, NetFn: NetFnStorageRequest, Name: "Get SDR Repository Allocation Info"} CommandReserveSDRRepo = Command{ID: 0x22, NetFn: NetFnStorageRequest, Name: "Reserve SDR Repository"} CommandGetSDR = Command{ID: 0x23, NetFn: NetFnStorageRequest, Name: "Get SDR"} CommandAddSDR = Command{ID: 0x24, NetFn: NetFnStorageRequest, Name: "Add SDR"} CommandPartialAddSDR = Command{ID: 0x25, NetFn: NetFnStorageRequest, Name: "Partial Add SDR"} CommandDeleteSDR = Command{ID: 0x26, NetFn: NetFnStorageRequest, Name: "Delete SDR"} CommandClearSDRRepo = Command{ID: 0x27, NetFn: NetFnStorageRequest, Name: "Clear SDR Repository"} CommandGetSDRRepoTime = Command{ID: 0x28, NetFn: NetFnStorageRequest, Name: "Get SDR Repository Time"} CommandSetSDRRepoTime = Command{ID: 0x29, NetFn: NetFnStorageRequest, Name: "Set SDR Repository Time"} CommandEnterSDRRepoUpdateMode = Command{ID: 0x2a, NetFn: NetFnStorageRequest, Name: "Enter SDR Repository Update Mode"} CommandExitSDRRepoUpdateMode = Command{ID: 0x2b, NetFn: NetFnStorageRequest, Name: "Exit SDR Repository Update Mode"} CommandRunInitializationAgent = Command{ID: 0x2c, NetFn: NetFnStorageRequest, Name: "Run Initialization Agent"} // SEL Device Commands CommandGetSELInfo = Command{ID: 0x40, NetFn: NetFnStorageRequest, Name: "Get SEL Info"} CommandGetSELAllocInfo = Command{ID: 0x41, NetFn: NetFnStorageRequest, Name: "Get SEL Allocation Info"} CommandReserveSEL = Command{ID: 0x42, NetFn: NetFnStorageRequest, Name: "Reserve SEL"} CommandGetSELEntry = Command{ID: 0x43, NetFn: NetFnStorageRequest, Name: "Get SEL Entry"} CommandAddSELEntry = Command{ID: 0x44, NetFn: NetFnStorageRequest, Name: "Add SEL Entry"} CommandPartialAddSELEntry = Command{ID: 0x45, NetFn: NetFnStorageRequest, Name: "Partial Add SEL Entry"} CommandDeleteSELEntry = Command{ID: 0x46, NetFn: NetFnStorageRequest, Name: "Delete SEL Entry"} CommandClearSEL = Command{ID: 0x47, NetFn: NetFnStorageRequest, Name: "Clear SEL"} CommandGetSELTime = Command{ID: 0x48, NetFn: NetFnStorageRequest, Name: "Get SEL Time"} CommandSetSELTime = Command{ID: 0x49, NetFn: NetFnStorageRequest, Name: "Set SEL Time"} CommandGetAuxLogStatus = Command{ID: 0x5a, NetFn: NetFnStorageRequest, Name: "Get Auxiliary Log Status"} CommandSetAuxLogStatus = Command{ID: 0x5b, NetFn: NetFnStorageRequest, Name: "Set Auxiliary Log Status"} CommandGetSELTimeUTCOffset = Command{ID: 0x5c, NetFn: NetFnStorageRequest, Name: "Get SEL Time UTC Offset"} CommandSetSELTimeUTCOffset = Command{ID: 0x5d, NetFn: NetFnStorageRequest, Name: "Set SEL Time UTC Offset"} // LAN Device Commands CommandSetLanConfigParam = Command{ID: 0x01, NetFn: NetFnTransportRequest, Name: "Set LAN Configuration Param"} CommandGetLanConfigParam = Command{ID: 0x02, NetFn: NetFnTransportRequest, Name: "Get LAN Configuration Param"} CommandSuspendARPs = Command{ID: 0x03, NetFn: NetFnTransportRequest, Name: "Suspend BMC ARPs"} CommandGetIPStatistics = Command{ID: 0x04, NetFn: NetFnTransportRequest, Name: "Get IP/UDP/RMCP Statistics"} // Serial/Modem Device Commands CommandSetSerialConfig = Command{ID: 0x10, NetFn: NetFnTransportRequest, Name: "Set Serial/Modem Configuration"} CommandGetSerialConfig = Command{ID: 0x11, NetFn: NetFnTransportRequest, Name: "Get Serial/Modem Configuration"} CommandSetSerialMux = Command{ID: 0x12, NetFn: NetFnTransportRequest, Name: "Set Serial/Modem Mux"} CommandGetTapResponseCodes = Command{ID: 0x13, NetFn: NetFnTransportRequest, Name: "Get TAP Response Codes"} CommandSetPPPTransmitData = Command{ID: 0x14, NetFn: NetFnTransportRequest, Name: "Set PPP UDP Proxy Transmit Data"} CommandGetPPPTransmitData = Command{ID: 0x15, NetFn: NetFnTransportRequest, Name: "Get PPP UDP Proxy Transmit Data"} CommandSendPPPPacket = Command{ID: 0x16, NetFn: NetFnTransportRequest, Name: "Send PPP UDP Proxy Packet"} CommandGetPPPReceiveData = Command{ID: 0x17, NetFn: NetFnTransportRequest, Name: "Get PPP UDP Proxy Receive Data"} CommandSerialConnectionActive = Command{ID: 0x18, NetFn: NetFnTransportRequest, Name: "Serial/Modem Connection Active"} CommandCallback = Command{ID: 0x19, NetFn: NetFnTransportRequest, Name: "Callback"} CommandSetUserCallbackOptions = Command{ID: 0x1a, NetFn: NetFnTransportRequest, Name: "Set User Callback Options"} CommandGetUserCallbackOptions = Command{ID: 0x1b, NetFn: NetFnTransportRequest, Name: "Get User Callback Options"} CommandSetSerialRoutingMux = Command{ID: 0x1c, NetFn: NetFnTransportRequest, Name: "Set Serial Routing Mux"} CommandSOLActivating = Command{ID: 0x20, NetFn: NetFnTransportRequest, Name: "SOL Activating"} CommandSetSOLConfigParam = Command{ID: 0x21, NetFn: NetFnTransportRequest, Name: "Set SOL Configuration Param"} CommandGetSOLConfigParam = Command{ID: 0x22, NetFn: NetFnTransportRequest, Name: "Get SOL Configuration Param"} // Command Forwarding Commands CommandForwarded = Command{ID: 0x30, NetFn: NetFnTransportRequest, Name: "Forwarded Command"} CommandSetForwarded = Command{ID: 0x31, NetFn: NetFnTransportRequest, Name: "Set Forwarded Commands"} CommandGetForwarded = Command{ID: 0x32, NetFn: NetFnTransportRequest, Name: "Get Forwarded Commands"} CommandEnableForwarded = Command{ID: 0x33, NetFn: NetFnTransportRequest, Name: "Enable Forwarded Commands"} // Bridge Management Commands (ICMB) CommandGetBridgeState = Command{ID: 0x00, NetFn: NetFnBridgeRequest, Name: "Get Bridge State"} CommandSetBridgeState = Command{ID: 0x01, NetFn: NetFnBridgeRequest, Name: "Set Bridge State"} CommandGetICMBAddress = Command{ID: 0x02, NetFn: NetFnBridgeRequest, Name: "Get ICMB Address"} CommandSetICMBAddress = Command{ID: 0x03, NetFn: NetFnBridgeRequest, Name: "Set ICMB Address"} CommandSetBridgeProxyAddress = Command{ID: 0x04, NetFn: NetFnBridgeRequest, Name: "Set Bridge ProxyAddress"} CommandGetBridgeStatistics = Command{ID: 0x05, NetFn: NetFnBridgeRequest, Name: "Get Bridge Statistics"} CommandGetICMBCapabilities = Command{ID: 0x06, NetFn: NetFnBridgeRequest, Name: "Get ICMB Capabilities"} CommandClearBridgeStatistics = Command{ID: 0x08, NetFn: NetFnBridgeRequest, Name: "Clear Bridge Statistics"} CommandGetBridgeProxyAddress = Command{ID: 0x09, NetFn: NetFnBridgeRequest, Name: "Get Bridge Proxy Address"} CommandGetICMBConnectorInfo = Command{ID: 0x0a, NetFn: NetFnBridgeRequest, Name: "Get ICMB Connector Info"} CommandGetICMBConnectionID = Command{ID: 0x0b, NetFn: NetFnBridgeRequest, Name: "Get ICMB Connection ID"} CommandSendICMBConnectionID = Command{ID: 0x0c, NetFn: NetFnBridgeRequest, Name: "Send ICMB Connection ID"} // Discovery Commands (ICMB) CommandPrepareForDiscovery = Command{ID: 0x10, NetFn: NetFnBridgeRequest, Name: "Prepare For Discovery"} CommandGetAddresses = Command{ID: 0x11, NetFn: NetFnBridgeRequest, Name: "Get Addresses"} CommandSetDiscovered = Command{ID: 0x12, NetFn: NetFnBridgeRequest, Name: "Set Discovered"} CommandGetChassisDeviceId = Command{ID: 0x13, NetFn: NetFnBridgeRequest, Name: "Get Chassis DeviceId"} CommandSetChassisDeviceId = Command{ID: 0x14, NetFn: NetFnBridgeRequest, Name: "Set Chassis DeviceId"} // Bridging Commands (ICMB) CommandBridgeRequest = Command{ID: 0x20, NetFn: NetFnBridgeRequest, Name: "Bridge Request"} CommandBridgeMessage = Command{ID: 0x21, NetFn: NetFnBridgeRequest, Name: "Bridge Message"} // Event Commands (ICMB) CommandGetEventCount = Command{ID: 0x30, NetFn: NetFnBridgeRequest, Name: "Get Event Count"} CommandSetEventDestination = Command{ID: 0x31, NetFn: NetFnBridgeRequest, Name: "Set Event Destination"} CommandSetEventReceptionState = Command{ID: 0x32, NetFn: NetFnBridgeRequest, Name: "Set Event Reception State"} CommandSendICMBEventMessage = Command{ID: 0x33, NetFn: NetFnBridgeRequest, Name: "Send ICMB Event Message"} CommandGetEventDestination = Command{ID: 0x34, NetFn: NetFnBridgeRequest, Name: "Get Event Destination"} CommandGetEventReceptionState = Command{ID: 0x35, NetFn: NetFnBridgeRequest, Name: "Get Event Reception State"} // Other Bridge Commands CommandErrorReport = Command{ID: 0xff, NetFn: NetFnBridgeRequest, Name: "Error Report"} // Intel DCMI extensions (https://www.intel.com/content/dam/www/public/us/en/documents/technical-specifications/dcmi-v1-5-rev-spec.pdf) CommandGetDCMICapParam = Command{ID: 0x01, NetFn: NetFnGroupExtensionRequest, Name: "Get DCMI Cap Param"} CommandGetDCMIPowerReading = Command{ID: 0x02, NetFn: NetFnGroupExtensionRequest, Name: "Get DCMI Power Reading"} CommandGetDCMIPowerLimit = Command{ID: 0x03, NetFn: NetFnGroupExtensionRequest, Name: "Get DCMI Power Limit"} CommandSetDCMIPowerLimit = Command{ID: 0x04, NetFn: NetFnGroupExtensionRequest, Name: "Set DCMI Power Limit"} CommandActivateDCMIPowerLimit = Command{ID: 0x05, NetFn: NetFnGroupExtensionRequest, Name: "Activate/Deactivate DCMI Power Limit"} CommandGetDCMIAssetTag = Command{ID: 0x06, NetFn: NetFnGroupExtensionRequest, Name: "Get DCMI Asset Tag"} CommandGetDCMISensorInfo = Command{ID: 0x07, NetFn: NetFnGroupExtensionRequest, Name: "Get DCMI Sensor Info"} CommandSetDCMIAssetTag = Command{ID: 0x08, NetFn: NetFnGroupExtensionRequest, Name: "Set DCMI Asset Tag"} CommandGetDCMIMgmtControllerIdentifier = Command{ID: 0x09, NetFn: NetFnGroupExtensionRequest, Name: "Get DCMI Management Controller Identifier String"} CommandSetDCMIMgmtControllerIdentifier = Command{ID: 0x0A, NetFn: NetFnGroupExtensionRequest, Name: "Set DCMI Management Controller Identifier String"} CommandSetDCMIThermalLimit = Command{ID: 0x0B, NetFn: NetFnGroupExtensionRequest, Name: "Set DCMI Thermal Limit"} CommandGetDCMIThermalLimit = Command{ID: 0x0C, NetFn: NetFnGroupExtensionRequest, Name: "Get DCMI Thermal Limit"} CommandGetDCMITemperatureReadings = Command{ID: 0x10, NetFn: NetFnGroupExtensionRequest, Name: "Get DCMI Temperature Readings"} CommandSetDCMIConfigParam = Command{ID: 0x12, NetFn: NetFnGroupExtensionRequest, Name: "Set DCMI Configuration Param"} CommandGetDCMIConfigParam = Command{ID: 0x13, NetFn: NetFnGroupExtensionRequest, Name: "Get DCMI Configuration Param"} // Vendor Specific Commands CommandGetSupermicroBiosVersion = Command{ID: 0xAC, NetFn: NetFnOEMSupermicroRequest, Name: "Get Supermicro BIOS Version"} )
Appendix G - Command Assignments Command Number Assignments (Appendix G, table G-1)
var ( SensorEvent_UNC_High_Assert = SensorEvent{ SensorClass: SensorClassThreshold, ThresholdType: SensorThresholdType_UNC, Assert: true, High: true, } SensorEvent_UNC_Low_Assert = SensorEvent{ SensorClass: SensorClassThreshold, ThresholdType: SensorThresholdType_UNC, Assert: true, High: false, } SensorEvent_LNR_High_Assert = SensorEvent{ SensorClass: SensorClassThreshold, ThresholdType: SensorThresholdType_LNR, Assert: true, High: true, } SensorEvent_LNR_Low_Assert = SensorEvent{ SensorClass: SensorClassThreshold, ThresholdType: SensorThresholdType_LNR, Assert: true, High: false, } SensorEvent_LCR_High_Assert = SensorEvent{ SensorClass: SensorClassThreshold, ThresholdType: SensorThresholdType_LCR, Assert: true, High: true, } SensorEvent_LCR_Low_Assert = SensorEvent{ SensorClass: SensorClassThreshold, ThresholdType: SensorThresholdType_LCR, Assert: true, High: false, } SensorEvent_LNC_High_Assert = SensorEvent{ SensorClass: SensorClassThreshold, ThresholdType: SensorThresholdType_LNC, Assert: true, High: true, } SensorEvent_LNC_Low_Assert = SensorEvent{ SensorClass: SensorClassThreshold, ThresholdType: SensorThresholdType_LNC, Assert: true, High: false, } SensorEvent_UNR_High_Assert = SensorEvent{ SensorClass: SensorClassThreshold, ThresholdType: SensorThresholdType_UNR, Assert: true, High: true, } SensorEvent_UNR_Low_Assert = SensorEvent{ SensorClass: SensorClassThreshold, ThresholdType: SensorThresholdType_UNR, Assert: true, High: false, } SensorEvent_UCR_High_Assert = SensorEvent{ SensorClass: SensorClassThreshold, ThresholdType: SensorThresholdType_UCR, Assert: true, High: true, } SensorEvent_UCR_Low_Assert = SensorEvent{ SensorClass: SensorClassThreshold, ThresholdType: SensorThresholdType_UCR, Assert: true, High: false, } SensorEvent_State_14_Assert = SensorEvent{ SensorClass: SensorClassDiscrete, Assert: true, State: 14, } SensorEvent_State_13_Assert = SensorEvent{ SensorClass: SensorClassDiscrete, Assert: true, State: 13, } SensorEvent_State_12_Assert = SensorEvent{ SensorClass: SensorClassDiscrete, Assert: true, State: 12, } SensorEvent_State_11_Assert = SensorEvent{ SensorClass: SensorClassDiscrete, Assert: true, State: 11, } SensorEvent_State_10_Assert = SensorEvent{ SensorClass: SensorClassDiscrete, Assert: true, State: 10, } SensorEvent_State_9_Assert = SensorEvent{ SensorClass: SensorClassDiscrete, Assert: true, State: 9, } SensorEvent_State_8_Assert = SensorEvent{ SensorClass: SensorClassDiscrete, Assert: true, State: 8, } SensorEvent_State_7_Assert = SensorEvent{ SensorClass: SensorClassDiscrete, Assert: true, State: 7, } SensorEvent_State_6_Assert = SensorEvent{ SensorClass: SensorClassDiscrete, Assert: true, State: 6, } SensorEvent_State_5_Assert = SensorEvent{ SensorClass: SensorClassDiscrete, Assert: true, State: 5, } SensorEvent_State_4_Assert = SensorEvent{ SensorClass: SensorClassDiscrete, Assert: true, State: 4, } SensorEvent_State_3_Assert = SensorEvent{ SensorClass: SensorClassDiscrete, Assert: true, State: 3, } SensorEvent_State_2_Assert = SensorEvent{ SensorClass: SensorClassDiscrete, Assert: true, State: 2, } SensorEvent_State_1_Assert = SensorEvent{ SensorClass: SensorClassDiscrete, Assert: true, State: 1, } SensorEvent_State_0_Assert = SensorEvent{ SensorClass: SensorClassDiscrete, Assert: true, State: 0, } SensorEvent_UNC_High_Deassert = SensorEvent{ SensorClass: SensorClassThreshold, ThresholdType: SensorThresholdType_UNC, Assert: false, High: true, } SensorEvent_UNC_Low_Deassert = SensorEvent{ SensorClass: SensorClassThreshold, ThresholdType: SensorThresholdType_UNC, Assert: false, High: true, } SensorEvent_LNR_High_Deassert = SensorEvent{ SensorClass: SensorClassThreshold, ThresholdType: SensorThresholdType_LNR, Assert: false, High: true, } SensorEvent_LNR_Low_Deassert = SensorEvent{ SensorClass: SensorClassThreshold, ThresholdType: SensorThresholdType_LNR, Assert: false, High: false, } SensorEvent_LCR_High_Deassert = SensorEvent{ SensorClass: SensorClassThreshold, ThresholdType: SensorThresholdType_LCR, Assert: false, High: true, } SensorEvent_LCR_Low_Deassert = SensorEvent{ SensorClass: SensorClassThreshold, ThresholdType: SensorThresholdType_LCR, Assert: false, High: false, } SensorEvent_LNC_High_Deassert = SensorEvent{ SensorClass: SensorClassThreshold, ThresholdType: SensorThresholdType_LNC, Assert: false, High: true, } SensorEvent_LNC_Low_Deassert = SensorEvent{ SensorClass: SensorClassThreshold, ThresholdType: SensorThresholdType_LNC, Assert: false, High: false, } SensorEvent_UNR_High_Deassert = SensorEvent{ SensorClass: SensorClassThreshold, ThresholdType: SensorThresholdType_UNR, Assert: false, High: true, } SensorEvent_UNR_Low_Deassert = SensorEvent{ SensorClass: SensorClassThreshold, ThresholdType: SensorThresholdType_UNR, Assert: false, High: false, } SensorEvent_UCR_High_Deassert = SensorEvent{ SensorClass: SensorClassThreshold, ThresholdType: SensorThresholdType_UCR, Assert: false, High: true, } SensorEvent_UCR_Low_Deassert = SensorEvent{ SensorClass: SensorClassThreshold, ThresholdType: SensorThresholdType_UCR, Assert: false, High: false, } SensorEvent_State_14_Deassert = SensorEvent{ SensorClass: SensorClassDiscrete, Assert: false, State: 14, } SensorEvent_State_13_Deassert = SensorEvent{ SensorClass: SensorClassDiscrete, Assert: false, State: 13, } SensorEvent_State_12_Deassert = SensorEvent{ SensorClass: SensorClassDiscrete, Assert: false, State: 12, } SensorEvent_State_11_Deassert = SensorEvent{ SensorClass: SensorClassDiscrete, Assert: false, State: 11, } SensorEvent_State_10_Deassert = SensorEvent{ SensorClass: SensorClassDiscrete, Assert: false, State: 10, } SensorEvent_State_9_Deassert = SensorEvent{ SensorClass: SensorClassDiscrete, Assert: false, State: 9, } SensorEvent_State_8_Deassert = SensorEvent{ SensorClass: SensorClassDiscrete, Assert: false, State: 8, } SensorEvent_State_7_Deassert = SensorEvent{ SensorClass: SensorClassDiscrete, Assert: false, State: 7, } SensorEvent_State_6_Deassert = SensorEvent{ SensorClass: SensorClassDiscrete, Assert: false, State: 6, } SensorEvent_State_5_Deassert = SensorEvent{ SensorClass: SensorClassDiscrete, Assert: false, State: 5, } SensorEvent_State_4_Deassert = SensorEvent{ SensorClass: SensorClassDiscrete, Assert: false, State: 4, } SensorEvent_State_3_Deassert = SensorEvent{ SensorClass: SensorClassDiscrete, Assert: false, State: 3, } SensorEvent_State_2_Deassert = SensorEvent{ SensorClass: SensorClassDiscrete, Assert: false, State: 2, } SensorEvent_State_1_Deassert = SensorEvent{ SensorClass: SensorClassDiscrete, Assert: false, State: 1, } SensorEvent_State_0_Deassert = SensorEvent{ SensorClass: SensorClassDiscrete, Assert: false, State: 0, } )
var CC = map[uint8]string{
0x00: "Command completed normally",
0xc0: "Node busy",
0xc1: "Invalid command",
0xc2: "Invalid command on LUN",
0xc3: "Timeout",
0xc4: "Out of space",
0xc5: "Reservation cancelled or invalid",
0xc6: "Request data truncated",
0xc7: "Request data length invalid",
0xc8: "Request data field length limit exceeded",
0xc9: "Parameter out of range",
0xca: "Cannot return number of requested data bytes",
0xcb: "Requested sensor, data, or record not found",
0xcc: "Invalid data field in request",
0xcd: "Command illegal for specified sensor or record type",
0xce: "Command response could not be provided",
0xcf: "Cannot execute duplicated request",
0xd0: "SDR Repository in update mode",
0xd1: "Device firmware in update mode",
0xd2: "BMC initialization in progress",
0xd3: "Destination unavailable",
0xd4: "Cannot execute command, insufficient privilege level or other security-based restriction",
0xd5: "Cannot execute command, command or request parameters not supported in present state",
0xd6: "Cannot execute command, command disabled or is unavailable",
0xff: "Unspecified error",
}
var GenericEvents = map[EventReadingType]map[uint8]Event{ EventReadingTypeThreshold: { 0x00: { EventName: "Lower Non-critical - going low", AssertionSeverityMap: map[SensorType]EventSeverity{ SensorTypeReserved: EventSeverityWarning, }, DeassertionSeverityMap: map[SensorType]EventSeverity{ SensorTypeReserved: EventSeverityInfo, }, }, 0x01: { EventName: "Lower Non-critical - going high", AssertionSeverityMap: map[SensorType]EventSeverity{ SensorTypeReserved: EventSeverityInfo, }, DeassertionSeverityMap: map[SensorType]EventSeverity{ SensorTypeReserved: EventSeverityInfo, }, }, 0x02: { EventName: "Lower Critical - going low", AssertionSeverityMap: map[SensorType]EventSeverity{ SensorTypeReserved: EventSeverityCritical, }, DeassertionSeverityMap: map[SensorType]EventSeverity{ SensorTypeReserved: EventSeverityWarning, }, }, 0x03: { EventName: "Lower Critical - going high", AssertionSeverityMap: map[SensorType]EventSeverity{ SensorTypeReserved: EventSeverityWarning, }, DeassertionSeverityMap: map[SensorType]EventSeverity{ SensorTypeReserved: EventSeverityWarning, }, }, 0x04: { EventName: "Lower Non-recoverable - going low", AssertionSeverityMap: map[SensorType]EventSeverity{ SensorTypeReserved: EventSeverityCritical, }, DeassertionSeverityMap: map[SensorType]EventSeverity{ SensorTypeReserved: EventSeverityCritical, }, }, 0x5: { EventName: "Lower Non-recoverable - going high", AssertionSeverityMap: map[SensorType]EventSeverity{ SensorTypeReserved: EventSeverityCritical, }, DeassertionSeverityMap: map[SensorType]EventSeverity{ SensorTypeReserved: EventSeverityCritical, }, }, 0x06: { EventName: "Upper Non-critical - going low", AssertionSeverityMap: map[SensorType]EventSeverity{ SensorTypeReserved: EventSeverityInfo, }, DeassertionSeverityMap: map[SensorType]EventSeverity{ SensorTypeReserved: EventSeverityInfo, }, }, 0x07: { EventName: "Upper Non-critical - going high", AssertionSeverityMap: map[SensorType]EventSeverity{ SensorTypeReserved: EventSeverityWarning, }, DeassertionSeverityMap: map[SensorType]EventSeverity{ SensorTypeReserved: EventSeverityInfo, }, }, 0x08: { EventName: "Upper Critical - going low", AssertionSeverityMap: map[SensorType]EventSeverity{ SensorTypeReserved: EventSeverityWarning, }, DeassertionSeverityMap: map[SensorType]EventSeverity{ SensorTypeReserved: EventSeverityWarning, }, }, 0x09: { EventName: "Upper Critical - going high", AssertionSeverityMap: map[SensorType]EventSeverity{ SensorTypeReserved: EventSeverityCritical, }, DeassertionSeverityMap: map[SensorType]EventSeverity{ SensorTypeReserved: EventSeverityWarning, }, }, 0x0a: { EventName: "Upper Non-recoverable - going low", AssertionSeverityMap: map[SensorType]EventSeverity{ SensorTypeReserved: EventSeverityCritical, }, DeassertionSeverityMap: map[SensorType]EventSeverity{ SensorTypeReserved: EventSeverityCritical, }, }, 0x0b: { EventName: "Upper Non-recoverable - going high", AssertionSeverityMap: map[SensorType]EventSeverity{ SensorTypeReserved: EventSeverityCritical, }, DeassertionSeverityMap: map[SensorType]EventSeverity{ SensorTypeReserved: EventSeverityCritical, }, }, }, EventReadingTypeTransitionState: { 0x00: { EventName: "Transition to Idle", AssertionSeverityMap: map[SensorType]EventSeverity{ SensorTypeReserved: EventSeverityInfo, SensorTypeSystemEvent: EventSeverityInfo, }, DeassertionSeverityMap: map[SensorType]EventSeverity{ SensorTypeReserved: EventSeverityInfo, SensorTypeSystemEvent: EventSeverityInfo, }, }, 0x01: { EventName: "Transition to Active", AssertionSeverityMap: map[SensorType]EventSeverity{ SensorTypeReserved: EventSeverityInfo, SensorTypeSystemEvent: EventSeverityInfo, }, DeassertionSeverityMap: map[SensorType]EventSeverity{ SensorTypeReserved: EventSeverityInfo, SensorTypeSystemEvent: EventSeverityInfo, }, }, 0x02: { EventName: "Transition to Busy", AssertionSeverityMap: map[SensorType]EventSeverity{ SensorTypeReserved: EventSeverityInfo, SensorTypeSystemEvent: EventSeverityInfo, }, DeassertionSeverityMap: map[SensorType]EventSeverity{ SensorTypeReserved: EventSeverityInfo, SensorTypeSystemEvent: EventSeverityInfo, }, }, }, EventReadingTypeState: { 0x00: { EventName: "State Deasserted", AssertionSeverityMap: map[SensorType]EventSeverity{ SensorTypeReserved: EventSeverityInfo, SensorTypeSystemEvent: EventSeverityInfo, SensorTypeButtonSwitch: EventSeverityInfo, SensorTypeModuleBoard: EventSeverityInfo, SensorTypeBootError: EventSeverityInfo, SensorTypeOSStopShutdown: EventSeverityInfo, SensorTypePlatformAlert: EventSeverityInfo, SensorTypeTemperature: EventSeverityInfo, SensorTypeVoltage: EventSeverityInfo, SensorTypeFan: EventSeverityInfo, SensorTypeProcessor: EventSeverityInfo, SensorTypePowerSupply: EventSeverityInfo, SensorTypePowerUnit: EventSeverityInfo, SensorTypeMemory: EventSeverityInfo, SensorTypeDriveSlot: EventSeverityWarning, SensorTypePostMemoryResize: EventSeverityInfo, SensorTypeSystemFirmwareProgress: EventSeverityInfo, }, DeassertionSeverityMap: map[SensorType]EventSeverity{ SensorTypeReserved: EventSeverityInfo, SensorTypeSystemEvent: EventSeverityInfo, SensorTypeButtonSwitch: EventSeverityInfo, SensorTypeModuleBoard: EventSeverityInfo, SensorTypeBootError: EventSeverityInfo, SensorTypeOSStopShutdown: EventSeverityInfo, SensorTypePlatformAlert: EventSeverityInfo, SensorTypeTemperature: EventSeverityInfo, SensorTypeVoltage: EventSeverityInfo, SensorTypeFan: EventSeverityInfo, SensorTypeProcessor: EventSeverityInfo, SensorTypePowerSupply: EventSeverityInfo, SensorTypePowerUnit: EventSeverityInfo, SensorTypeMemory: EventSeverityInfo, SensorTypeDriveSlot: EventSeverityWarning, SensorTypePostMemoryResize: EventSeverityInfo, SensorTypeSystemFirmwareProgress: EventSeverityInfo, }, }, 0x01: { EventName: "State Asserted", AssertionSeverityMap: map[SensorType]EventSeverity{ SensorTypeReserved: EventSeverityInfo, SensorTypeSystemEvent: EventSeverityWarning, SensorTypeButtonSwitch: EventSeverityInfo, SensorTypeModuleBoard: EventSeverityCritical, SensorTypeBootError: EventSeverityCritical, SensorTypeOSStopShutdown: EventSeverityCritical, SensorTypePlatformAlert: EventSeverityCritical, SensorTypeTemperature: EventSeverityWarning, SensorTypeVoltage: EventSeverityWarning, SensorTypeFan: EventSeverityWarning, SensorTypeProcessor: EventSeverityCritical, SensorTypePowerSupply: EventSeverityWarning, SensorTypePowerUnit: EventSeverityWarning, SensorTypeMemory: EventSeverityCritical, SensorTypeDriveSlot: EventSeverityInfo, SensorTypePostMemoryResize: EventSeverityWarning, SensorTypeSystemFirmwareProgress: EventSeverityWarning, }, DeassertionSeverityMap: map[SensorType]EventSeverity{ SensorTypeReserved: EventSeverityInfo, SensorTypeSystemEvent: EventSeverityWarning, SensorTypeButtonSwitch: EventSeverityInfo, SensorTypeModuleBoard: EventSeverityCritical, SensorTypeBootError: EventSeverityCritical, SensorTypeOSStopShutdown: EventSeverityCritical, SensorTypePlatformAlert: EventSeverityCritical, SensorTypeTemperature: EventSeverityWarning, SensorTypeVoltage: EventSeverityWarning, SensorTypeFan: EventSeverityWarning, SensorTypeProcessor: EventSeverityCritical, SensorTypePowerSupply: EventSeverityWarning, SensorTypePowerUnit: EventSeverityWarning, SensorTypeMemory: EventSeverityCritical, SensorTypeDriveSlot: EventSeverityInfo, SensorTypePostMemoryResize: EventSeverityWarning, SensorTypeSystemFirmwareProgress: EventSeverityWarning, }, }, }, EventReadingTypePredictiveFailure: { 0x00: { EventName: "Predictive Failure de-asserted", AssertionSeverityMap: map[SensorType]EventSeverity{ SensorTypeReserved: EventSeverityInfo, SensorTypeDriveSlot: EventSeverityInfo, }, DeassertionSeverityMap: map[SensorType]EventSeverity{ SensorTypeReserved: EventSeverityInfo, SensorTypeDriveSlot: EventSeverityInfo, }, }, 0x01: { EventName: "Predictive Failure asserted", AssertionSeverityMap: map[SensorType]EventSeverity{ SensorTypeReserved: EventSeverityCritical, SensorTypeDriveSlot: EventSeverityCritical, }, DeassertionSeverityMap: map[SensorType]EventSeverity{ SensorTypeReserved: EventSeverityCritical, SensorTypeDriveSlot: EventSeverityCritical, }, }, }, EventReadingTypeLimit: { 0x00: { EventName: "Limit Not Exceeded", AssertionSeverityMap: map[SensorType]EventSeverity{ SensorTypeReserved: EventSeverityInfo, SensorTypeTemperature: EventSeverityInfo, SensorTypeVoltage: EventSeverityInfo, }, DeassertionSeverityMap: map[SensorType]EventSeverity{ SensorTypeReserved: EventSeverityInfo, SensorTypeTemperature: EventSeverityInfo, SensorTypeVoltage: EventSeverityInfo, }, }, 0x01: { EventName: "Limit Exceeded", AssertionSeverityMap: map[SensorType]EventSeverity{ SensorTypeReserved: EventSeverityCritical, SensorTypeTemperature: EventSeverityCritical, SensorTypeVoltage: EventSeverityCritical, }, DeassertionSeverityMap: map[SensorType]EventSeverity{ SensorTypeReserved: EventSeverityCritical, SensorTypeTemperature: EventSeverityCritical, SensorTypeVoltage: EventSeverityCritical, }, }, }, EventReadingTypePerformance: { 0x00: { EventName: "Performance Met", AssertionSeverityMap: map[SensorType]EventSeverity{ SensorTypeReserved: EventSeverityInfo, SensorTypeVoltage: EventSeverityInfo, }, DeassertionSeverityMap: map[SensorType]EventSeverity{ SensorTypeReserved: EventSeverityInfo, SensorTypeVoltage: EventSeverityInfo, }, }, 0x01: { EventName: "Performance Lags", AssertionSeverityMap: map[SensorType]EventSeverity{ SensorTypeReserved: EventSeverityCritical, SensorTypeVoltage: EventSeverityCritical, }, DeassertionSeverityMap: map[SensorType]EventSeverity{ SensorTypeReserved: EventSeverityCritical, SensorTypeVoltage: EventSeverityCritical, }, }, }, EventReadingTypeTransitionSeverity: { 0x00: { EventName: "transition to OK", AssertionSeverityMap: map[SensorType]EventSeverity{ SensorTypeReserved: EventSeverityInfo, }, DeassertionSeverityMap: map[SensorType]EventSeverity{ SensorTypeReserved: EventSeverityInfo, }, }, 0x01: { EventName: "transition to Non-Critical from OK", AssertionSeverityMap: map[SensorType]EventSeverity{ SensorTypeReserved: EventSeverityWarning, }, DeassertionSeverityMap: map[SensorType]EventSeverity{ SensorTypeReserved: EventSeverityWarning, }, }, 0x02: { EventName: "transition to Critical from less severe", AssertionSeverityMap: map[SensorType]EventSeverity{ SensorTypeReserved: EventSeverityCritical, }, DeassertionSeverityMap: map[SensorType]EventSeverity{ SensorTypeReserved: EventSeverityCritical, }, }, 0x03: { EventName: "transition to Non-recoverable from less severe", AssertionSeverityMap: map[SensorType]EventSeverity{ SensorTypeReserved: EventSeverityCritical, }, DeassertionSeverityMap: map[SensorType]EventSeverity{ SensorTypeReserved: EventSeverityCritical, }, }, 0x04: { EventName: "transition to Non-Critical from more severe", AssertionSeverityMap: map[SensorType]EventSeverity{ SensorTypeReserved: EventSeverityWarning, }, DeassertionSeverityMap: map[SensorType]EventSeverity{ SensorTypeReserved: EventSeverityWarning, }, }, 0x05: { EventName: "transition to Critical from Non-recoverable", AssertionSeverityMap: map[SensorType]EventSeverity{ SensorTypeReserved: EventSeverityCritical, }, DeassertionSeverityMap: map[SensorType]EventSeverity{ SensorTypeReserved: EventSeverityCritical, }, }, 0x06: { EventName: "transition to Non-recoverable", AssertionSeverityMap: map[SensorType]EventSeverity{ SensorTypeReserved: EventSeverityCritical, }, DeassertionSeverityMap: map[SensorType]EventSeverity{ SensorTypeReserved: EventSeverityCritical, }, }, 0x07: { EventName: "Monitor", AssertionSeverityMap: map[SensorType]EventSeverity{ SensorTypeReserved: EventSeverityWarning, }, DeassertionSeverityMap: map[SensorType]EventSeverity{ SensorTypeReserved: EventSeverityWarning, }, }, 0x08: { EventName: "Informational", AssertionSeverityMap: map[SensorType]EventSeverity{ SensorTypeReserved: EventSeverityInfo, }, DeassertionSeverityMap: map[SensorType]EventSeverity{ SensorTypeReserved: EventSeverityInfo, }, }, }, EventReadingTypeDevicePresent: { 0x00: { EventName: "Device Removed / Device Absent", AssertionSeverityMap: map[SensorType]EventSeverity{ SensorTypeReserved: EventSeverityCritical, }, DeassertionSeverityMap: map[SensorType]EventSeverity{ SensorTypeReserved: EventSeverityCritical, }, }, 0x01: { EventName: "Device Inserted / Device Present", AssertionSeverityMap: map[SensorType]EventSeverity{ SensorTypeReserved: EventSeverityInfo, }, DeassertionSeverityMap: map[SensorType]EventSeverity{ SensorTypeReserved: EventSeverityInfo, }, }, }, EventReadingTypeDeviceEnabled: { 0x00: { EventName: "Device Disabled", AssertionSeverityMap: map[SensorType]EventSeverity{ SensorTypeReserved: EventSeverityCritical, }, DeassertionSeverityMap: map[SensorType]EventSeverity{ SensorTypeReserved: EventSeverityCritical, }, }, 0x01: { EventName: "Device Enabled", AssertionSeverityMap: map[SensorType]EventSeverity{ SensorTypeReserved: EventSeverityInfo, }, DeassertionSeverityMap: map[SensorType]EventSeverity{ SensorTypeReserved: EventSeverityInfo, }, }, }, EventReadingTypeTransitionAvailability: { 0x00: { EventName: "transition to Running", AssertionSeverityMap: map[SensorType]EventSeverity{ SensorTypeReserved: EventSeverityInfo, }, DeassertionSeverityMap: map[SensorType]EventSeverity{ SensorTypeReserved: EventSeverityInfo, }, }, 0x01: { EventName: "transition to In Test", AssertionSeverityMap: map[SensorType]EventSeverity{ SensorTypeReserved: EventSeverityWarning, }, DeassertionSeverityMap: map[SensorType]EventSeverity{ SensorTypeReserved: EventSeverityWarning, }, }, 0x02: { EventName: "transition to Power Off", AssertionSeverityMap: map[SensorType]EventSeverity{ SensorTypeReserved: EventSeverityWarning, }, DeassertionSeverityMap: map[SensorType]EventSeverity{ SensorTypeReserved: EventSeverityWarning, }, }, 0x03: { EventName: "transition to On Line", AssertionSeverityMap: map[SensorType]EventSeverity{ SensorTypeReserved: EventSeverityWarning, }, DeassertionSeverityMap: map[SensorType]EventSeverity{ SensorTypeReserved: EventSeverityWarning, }, }, 0x04: { EventName: "transition to Off Line", AssertionSeverityMap: map[SensorType]EventSeverity{ SensorTypeReserved: EventSeverityWarning, }, DeassertionSeverityMap: map[SensorType]EventSeverity{ SensorTypeReserved: EventSeverityWarning, }, }, 0x05: { EventName: "transition to Off Duty", AssertionSeverityMap: map[SensorType]EventSeverity{ SensorTypeReserved: EventSeverityWarning, }, DeassertionSeverityMap: map[SensorType]EventSeverity{ SensorTypeReserved: EventSeverityWarning, }, }, 0x06: { EventName: "transition to Degraded", AssertionSeverityMap: map[SensorType]EventSeverity{ SensorTypeReserved: EventSeverityCritical, }, DeassertionSeverityMap: map[SensorType]EventSeverity{ SensorTypeReserved: EventSeverityCritical, }, }, 0x07: { EventName: "transition to Power Save", AssertionSeverityMap: map[SensorType]EventSeverity{ SensorTypeReserved: EventSeverityWarning, }, DeassertionSeverityMap: map[SensorType]EventSeverity{ SensorTypeReserved: EventSeverityWarning, }, }, 0x08: { EventName: "Install Error", AssertionSeverityMap: map[SensorType]EventSeverity{ SensorTypeReserved: EventSeverityCritical, }, DeassertionSeverityMap: map[SensorType]EventSeverity{ SensorTypeReserved: EventSeverityCritical, }, }, }, EventReadingTypeRedundancy: { 0x00: { EventName: "Fully Redundant", AssertionSeverityMap: map[SensorType]EventSeverity{ SensorTypeReserved: EventSeverityInfo, }, DeassertionSeverityMap: map[SensorType]EventSeverity{ SensorTypeReserved: EventSeverityInfo, }, }, 0x01: { EventName: "Redundancy Lost", AssertionSeverityMap: map[SensorType]EventSeverity{ SensorTypeReserved: EventSeverityCritical, }, DeassertionSeverityMap: map[SensorType]EventSeverity{ SensorTypeReserved: EventSeverityWarning, }, }, 0x02: { EventName: "Redundancy Degraded", AssertionSeverityMap: map[SensorType]EventSeverity{ SensorTypeReserved: EventSeverityWarning, }, DeassertionSeverityMap: map[SensorType]EventSeverity{ SensorTypeReserved: EventSeverityWarning, }, }, 0x03: { EventName: "Non-redundant (Sufficient Resources from Redundant)", AssertionSeverityMap: map[SensorType]EventSeverity{ SensorTypeReserved: EventSeverityCritical, }, DeassertionSeverityMap: map[SensorType]EventSeverity{ SensorTypeReserved: EventSeverityWarning, }, }, 0x04: { EventName: "Non-redundant (Sufficient Resources from Insufficient Resources)", AssertionSeverityMap: map[SensorType]EventSeverity{ SensorTypeReserved: EventSeverityCritical, }, DeassertionSeverityMap: map[SensorType]EventSeverity{ SensorTypeReserved: EventSeverityWarning, }, }, 0x05: { EventName: "Non-redundant (Insufficient Resources)", AssertionSeverityMap: map[SensorType]EventSeverity{ SensorTypeReserved: EventSeverityCritical, }, DeassertionSeverityMap: map[SensorType]EventSeverity{ SensorTypeReserved: EventSeverityWarning, }, }, 0x06: { EventName: "Redundancy Degraded from Fully Redundant", AssertionSeverityMap: map[SensorType]EventSeverity{ SensorTypeReserved: EventSeverityWarning, }, DeassertionSeverityMap: map[SensorType]EventSeverity{ SensorTypeReserved: EventSeverityWarning, }, }, 0x07: { EventName: "Redundancy Degraded from Non-redundant", AssertionSeverityMap: map[SensorType]EventSeverity{ SensorTypeReserved: EventSeverityWarning, }, DeassertionSeverityMap: map[SensorType]EventSeverity{ SensorTypeReserved: EventSeverityWarning, }, }, }, EventReadingTypeACPIPowerState: { 0x00: { EventName: "D0 Power State", AssertionSeverityMap: map[SensorType]EventSeverity{ SensorTypeReserved: EventSeverityInfo, }, DeassertionSeverityMap: map[SensorType]EventSeverity{ SensorTypeReserved: EventSeverityInfo, }, }, 0x01: { EventName: "D1 Power State", AssertionSeverityMap: map[SensorType]EventSeverity{ SensorTypeReserved: EventSeverityInfo, }, DeassertionSeverityMap: map[SensorType]EventSeverity{ SensorTypeReserved: EventSeverityInfo, }, }, 0x02: { EventName: "D2 Power State", AssertionSeverityMap: map[SensorType]EventSeverity{ SensorTypeReserved: EventSeverityInfo, }, DeassertionSeverityMap: map[SensorType]EventSeverity{ SensorTypeReserved: EventSeverityInfo, }, }, 0x03: { EventName: "D3 Power State", AssertionSeverityMap: map[SensorType]EventSeverity{ SensorTypeReserved: EventSeverityInfo, }, DeassertionSeverityMap: map[SensorType]EventSeverity{ SensorTypeReserved: EventSeverityInfo, }, }, }, }
Table 42-2, Generic Event/Reading Type Codes Including Generic threshold-based events (0x01) and Generic discrete-based events (0x02 - 0x0c)
map[EventReadingType]: map[Offset]Event
The severity is copied from freeipmi/libfreeipmi/interpret/ipmi-interpret-config-sel.c
var SensorSpecificEvents = map[SensorType]map[uint8]Event{ SensorTypeReserved: {}, SensorTypeTemperature: {}, SensorTypeVoltage: {}, SensorTypeCurrent: {}, SensorTypeFan: {}, SensorTypePhysicalSecurity: { 0x00: { EventName: "General Chassis Intrusion", AssertionSeverity: EventSeverityCritical, DeassertionSeverity: EventSeverityCritical, }, 0x01: { EventName: "Drive Bay intrusion", AssertionSeverity: EventSeverityCritical, DeassertionSeverity: EventSeverityCritical, }, 0x02: { EventName: "I/O Card area intrusion", AssertionSeverity: EventSeverityCritical, DeassertionSeverity: EventSeverityCritical, }, 0x03: { EventName: "Processor area intrusion", AssertionSeverity: EventSeverityCritical, DeassertionSeverity: EventSeverityCritical, }, 0x04: { EventName: "LAN Leash Lost (system is unplugged from LAN)", AssertionSeverity: EventSeverityCritical, DeassertionSeverity: EventSeverityCritical, }, 0x05: { EventName: "Unauthorized dock", AssertionSeverity: EventSeverityCritical, DeassertionSeverity: EventSeverityCritical, }, 0x06: { EventName: "FAN area intrusion", AssertionSeverity: EventSeverityCritical, DeassertionSeverity: EventSeverityCritical, }, }, SensorTypePlatformSecurity: { 0x00: { EventName: "Secure Mode (Front Panel Lockout) Violation attempt", AssertionSeverity: EventSeverityCritical, DeassertionSeverity: EventSeverityCritical, }, 0x01: { EventName: "Pre-boot Password Violation - user password", AssertionSeverity: EventSeverityCritical, DeassertionSeverity: EventSeverityCritical, }, 0x02: { EventName: "Pre-boot Password Violation attempt - setup password", AssertionSeverity: EventSeverityCritical, DeassertionSeverity: EventSeverityCritical, }, 0x03: { EventName: "Pre-boot Password Violation - network boot password", AssertionSeverity: EventSeverityCritical, DeassertionSeverity: EventSeverityCritical, }, 0x04: { EventName: "Other pre-boot Password Violation", AssertionSeverity: EventSeverityCritical, DeassertionSeverity: EventSeverityCritical, }, 0x05: { EventName: "Out-of-band Access Password Violation", AssertionSeverity: EventSeverityCritical, DeassertionSeverity: EventSeverityCritical, }, }, SensorTypeProcessor: { 0x00: { EventName: "IERR", AssertionSeverity: EventSeverityCritical, DeassertionSeverity: EventSeverityCritical, }, 0x01: { EventName: "Thermal Trip", AssertionSeverity: EventSeverityCritical, DeassertionSeverity: EventSeverityCritical, }, 0x02: { EventName: "FRB1/BIST failure", AssertionSeverity: EventSeverityCritical, DeassertionSeverity: EventSeverityCritical, }, 0x03: { EventName: "FRB2/Hang in POST failure", AssertionSeverity: EventSeverityCritical, DeassertionSeverity: EventSeverityCritical, }, 0x04: { EventName: "FRB3/Processor Startup/Initialization failure (CPU didn't start)", AssertionSeverity: EventSeverityCritical, DeassertionSeverity: EventSeverityCritical, }, 0x05: { EventName: "Configuration Error", AssertionSeverity: EventSeverityCritical, DeassertionSeverity: EventSeverityCritical, }, 0x06: { EventName: "SM BIOS 'Uncorrectable CPU-complex Error'", AssertionSeverity: EventSeverityCritical, DeassertionSeverity: EventSeverityCritical, }, 0x07: { EventName: "Processor Presence detected", AssertionSeverity: EventSeverityInfo, DeassertionSeverity: EventSeverityInfo, }, 0x08: { EventName: "Processor disabled", AssertionSeverity: EventSeverityCritical, DeassertionSeverity: EventSeverityCritical, }, 0x09: { EventName: "Terminator Presence Detected", AssertionSeverity: EventSeverityCritical, DeassertionSeverity: EventSeverityCritical, }, 0x0a: { EventName: "Processor Automatically Throttled", AssertionSeverity: EventSeverityWarning, DeassertionSeverity: EventSeverityWarning, }, 0x0b: { EventName: "Machine Check Exception (Uncorrectable)", AssertionSeverity: EventSeverityCritical, DeassertionSeverity: EventSeverityCritical, }, 0x0c: { EventName: "Correctable Machine Check Error", AssertionSeverity: EventSeverityWarning, DeassertionSeverity: EventSeverityWarning, }, }, SensorTypePowerSupply: { 0x00: { EventName: "Presence detected", AssertionSeverity: EventSeverityInfo, DeassertionSeverity: EventSeverityInfo, }, 0x01: { EventName: "Power Supply Failure detected", AssertionSeverity: EventSeverityCritical, DeassertionSeverity: EventSeverityCritical, }, 0x02: { EventName: "Predictive Failure", AssertionSeverity: EventSeverityCritical, DeassertionSeverity: EventSeverityCritical, }, 0x03: { EventName: "Power Supply input lost (AC/DC)", AssertionSeverity: EventSeverityCritical, DeassertionSeverity: EventSeverityWarning, }, 0x04: { EventName: "Power Supply input lost or out-of-range", AssertionSeverity: EventSeverityCritical, DeassertionSeverity: EventSeverityWarning, }, 0x05: { EventName: "Power Supply input out-of-range, but present", AssertionSeverity: EventSeverityCritical, DeassertionSeverity: EventSeverityWarning, }, 0x06: { EventName: "Configuration error", AssertionSeverity: EventSeverityCritical, DeassertionSeverity: EventSeverityCritical, }, 0x07: { EventName: "Power Supply Inactive (in standby state)", AssertionSeverity: EventSeverityWarning, DeassertionSeverity: EventSeverityWarning, }, }, SensorTypePowerUnit: { 0x00: { EventName: "Power Off / Power Dow", AssertionSeverity: EventSeverityInfo, DeassertionSeverity: EventSeverityInfo, }, 0x01: { EventName: "Power Cycle", AssertionSeverity: EventSeverityInfo, DeassertionSeverity: EventSeverityInfo, }, 0x02: { EventName: "240VA Power Down", AssertionSeverity: EventSeverityWarning, DeassertionSeverity: EventSeverityInfo, }, 0x03: { EventName: "Interlock Power Down", AssertionSeverity: EventSeverityWarning, DeassertionSeverity: EventSeverityWarning, }, 0x04: { EventName: "AC lost / Power input lost ", AssertionSeverity: EventSeverityCritical, DeassertionSeverity: EventSeverityWarning, }, 0x05: { EventName: "Soft Power Control Failure", AssertionSeverity: EventSeverityCritical, DeassertionSeverity: EventSeverityCritical, }, 0x06: { EventName: "Power Unit Failure detected", AssertionSeverity: EventSeverityCritical, DeassertionSeverity: EventSeverityCritical, }, 0x07: { EventName: "Predictive Failure", AssertionSeverity: EventSeverityCritical, DeassertionSeverity: EventSeverityCritical, }, }, SensorTypeCollingDevice: {}, SensorTypeOtherUnitsbased: {}, SensorTypeMemory: { 0x00: { EventName: "Correctable ECC / other correctable memory error", AssertionSeverity: EventSeverityWarning, DeassertionSeverity: EventSeverityWarning, }, 0x01: { EventName: "Uncorrectable ECC / other uncorrectable memory error", AssertionSeverity: EventSeverityCritical, DeassertionSeverity: EventSeverityCritical, }, 0x02: { EventName: "Parity", AssertionSeverity: EventSeverityCritical, DeassertionSeverity: EventSeverityCritical, }, 0x03: { EventName: "Memory Scrub Failed (stuck bit)", AssertionSeverity: EventSeverityCritical, DeassertionSeverity: EventSeverityCritical, }, 0x04: { EventName: "Memory Device Disabled", AssertionSeverity: EventSeverityCritical, DeassertionSeverity: EventSeverityCritical, }, 0x05: { EventName: "Correctable ECC / other correctable memory error logging limit reached", AssertionSeverity: EventSeverityWarning, DeassertionSeverity: EventSeverityWarning, }, 0x06: { EventName: "Presence detected", AssertionSeverity: EventSeverityInfo, DeassertionSeverity: EventSeverityInfo, }, 0x07: { EventName: "Configuration error", AssertionSeverity: EventSeverityCritical, DeassertionSeverity: EventSeverityCritical, }, 0x08: { EventName: "Spare", AssertionSeverity: EventSeverityInfo, DeassertionSeverity: EventSeverityInfo, }, 0x09: { EventName: "Memory Automatically Throttled", AssertionSeverity: EventSeverityWarning, DeassertionSeverity: EventSeverityWarning, }, 0x0a: { EventName: "Critical Overtemperature", AssertionSeverity: EventSeverityCritical, DeassertionSeverity: EventSeverityCritical, }, }, SensorTypeDriveSlot: { 0x00: { EventName: "Drive Presence", AssertionSeverity: EventSeverityInfo, DeassertionSeverity: EventSeverityInfo, }, 0x01: { EventName: "Drive Fault", AssertionSeverity: EventSeverityCritical, DeassertionSeverity: EventSeverityCritical, }, 0x02: { EventName: "Predictive Failure", AssertionSeverity: EventSeverityCritical, DeassertionSeverity: EventSeverityCritical, }, 0x03: { EventName: "Hot Spare", AssertionSeverity: EventSeverityInfo, DeassertionSeverity: EventSeverityInfo, }, 0x04: { EventName: "Consistency Check / Parity Check in progress", AssertionSeverity: EventSeverityInfo, DeassertionSeverity: EventSeverityInfo, }, 0x05: { EventName: "In Critical Array", AssertionSeverity: EventSeverityCritical, DeassertionSeverity: EventSeverityCritical, }, 0x06: { EventName: "In Failed Array", AssertionSeverity: EventSeverityCritical, DeassertionSeverity: EventSeverityCritical, }, 0x07: { EventName: "Rebuild/Remap in progress", AssertionSeverity: EventSeverityInfo, DeassertionSeverity: EventSeverityInfo, }, 0x08: { EventName: "Rebuild/Remap Aborted (was not completed normally)", AssertionSeverity: EventSeverityCritical, DeassertionSeverity: EventSeverityCritical, }, }, SensorTypePostMemoryResize: {}, SensorTypeSystemFirmwareProgress: { 0x00: { EventName: "System Firmware Error (POST Error)", AssertionSeverity: EventSeverityCritical, DeassertionSeverity: EventSeverityCritical, }, 0x01: { EventName: "System Firmware Hang", AssertionSeverity: EventSeverityCritical, DeassertionSeverity: EventSeverityCritical, }, 0x02: { EventName: "System Firmware Progress", AssertionSeverity: EventSeverityInfo, DeassertionSeverity: EventSeverityInfo, }, }, SensorTypeEventLoggingDisabled: { 0x00: { EventName: "Correctable Memory Error Logging Disabled", AssertionSeverity: EventSeverityCritical, DeassertionSeverity: EventSeverityCritical, }, 0x01: { EventName: "Event 'Type' Logging Disabled", AssertionSeverity: EventSeverityCritical, DeassertionSeverity: EventSeverityCritical, }, 0x02: { EventName: "Log Area Reset/Cleared", AssertionSeverity: EventSeverityInfo, DeassertionSeverity: EventSeverityInfo, }, 0x03: { EventName: "All Event Logging Disabled", AssertionSeverity: EventSeverityCritical, DeassertionSeverity: EventSeverityCritical, }, 0x04: { EventName: "SEL Full", AssertionSeverity: EventSeverityCritical, DeassertionSeverity: EventSeverityCritical, }, 0x05: { EventName: "SEL Almost Full", AssertionSeverity: EventSeverityWarning, DeassertionSeverity: EventSeverityWarning, }, 0x06: { EventName: "Correctable Machine Check Error Logging Disabled", AssertionSeverity: EventSeverityCritical, DeassertionSeverity: EventSeverityCritical, }, }, SensorTypeWatchdog1: { 0x00: { EventName: "BIOS Watchdog Reset", }, 0x01: { EventName: "OS Watchdog Reset", }, 0x02: { EventName: "OS Watchdog Shut Down", }, 0x03: { EventName: "OS Watchdog Power Down", }, 0x04: { EventName: "OS Watchdog Power Cycle", }, 0x05: { EventName: "OS Watchdog NMI / Diagnostic Interrupt", }, 0x06: { EventName: "OS Watchdog Expired, status only", }, 0x07: { EventName: "OS Watchdog pre-timeout Interrupt, non-NMI", }, }, SensorTypeSystemEvent: { 0x00: { EventName: "System Reconfigured", AssertionSeverity: EventSeverityWarning, DeassertionSeverity: EventSeverityWarning, }, 0x01: { EventName: "OEM System Boot Event", AssertionSeverity: EventSeverityInfo, DeassertionSeverity: EventSeverityInfo, }, 0x02: { EventName: "Undetermined system hardware failure", AssertionSeverity: EventSeverityCritical, DeassertionSeverity: EventSeverityCritical, }, 0x03: { EventName: "Entry added to Auxiliary Log", AssertionSeverity: EventSeverityInfo, DeassertionSeverity: EventSeverityInfo, }, 0x04: { EventName: "PEF Action", AssertionSeverity: EventSeverityInfo, DeassertionSeverity: EventSeverityInfo, }, 0x05: { EventName: "Timestamp Clock Synch", AssertionSeverity: EventSeverityWarning, DeassertionSeverity: EventSeverityWarning, }, }, SensorTypeCriticalInterrupt: { 0x00: { EventName: "Front Panel NMI / Diagnostic Interrupt", AssertionSeverity: EventSeverityCritical, DeassertionSeverity: EventSeverityCritical, }, 0x01: { EventName: "Bus Timeout", AssertionSeverity: EventSeverityCritical, DeassertionSeverity: EventSeverityCritical, }, 0x02: { EventName: "I/O channel check NMI", AssertionSeverity: EventSeverityCritical, DeassertionSeverity: EventSeverityCritical, }, 0x03: { EventName: "Software NMI", AssertionSeverity: EventSeverityWarning, DeassertionSeverity: EventSeverityWarning, }, 0x04: { EventName: "PCI PERR", AssertionSeverity: EventSeverityCritical, DeassertionSeverity: EventSeverityCritical, }, 0x05: { EventName: "PCI SERR", AssertionSeverity: EventSeverityCritical, DeassertionSeverity: EventSeverityCritical, }, 0x06: { EventName: "EISA Fail Safe Timeout", AssertionSeverity: EventSeverityCritical, DeassertionSeverity: EventSeverityCritical, }, 0x07: { EventName: "Bus Correctable Error", AssertionSeverity: EventSeverityWarning, DeassertionSeverity: EventSeverityWarning, }, 0x08: { EventName: "Bus Uncorrectable Error", AssertionSeverity: EventSeverityCritical, DeassertionSeverity: EventSeverityCritical, }, 0x09: { EventName: "Fatal NMI", AssertionSeverity: EventSeverityCritical, DeassertionSeverity: EventSeverityCritical, }, 0x0a: { EventName: "Bus Fatal Error", AssertionSeverity: EventSeverityCritical, DeassertionSeverity: EventSeverityCritical, }, 0x0b: { EventName: "Bus Degraded", AssertionSeverity: EventSeverityWarning, DeassertionSeverity: EventSeverityWarning, }, }, SensorTypeButtonSwitch: { 0x00: { EventName: "Power Button pressed", AssertionSeverity: EventSeverityInfo, DeassertionSeverity: EventSeverityInfo, }, 0x01: { EventName: "Sleep Button pressed", AssertionSeverity: EventSeverityInfo, DeassertionSeverity: EventSeverityInfo, }, 0x02: { EventName: "Reset Button pressed", AssertionSeverity: EventSeverityInfo, DeassertionSeverity: EventSeverityInfo, }, 0x03: { EventName: "FRU latch open", AssertionSeverity: EventSeverityWarning, DeassertionSeverity: EventSeverityWarning, }, 0x04: { EventName: "FRU service request button", AssertionSeverity: EventSeverityWarning, DeassertionSeverity: EventSeverityWarning, }, }, SensorTypeModuleBoard: {}, SensorTypeMicrocontrollerCoprocessor: {}, SensorTypeAddinCard: {}, SensorTypeChassis: {}, SensorTypeChipSet: { 0x00: { EventName: "Soft Power Control Failure", AssertionSeverity: EventSeverityCritical, DeassertionSeverity: EventSeverityCritical, }, 0x01: { EventName: "Thermal Trip", AssertionSeverity: EventSeverityCritical, DeassertionSeverity: EventSeverityCritical, }, }, SensorTypeOtherFRU: {}, SensorTypeCableInterconnect: { 0x00: { EventName: "Cable/Interconnect is connected", AssertionSeverity: EventSeverityInfo, DeassertionSeverity: EventSeverityInfo, }, 0x01: { EventName: "Configuration Error - Incorrect cable connected / Incorrect interconnection", AssertionSeverity: EventSeverityCritical, DeassertionSeverity: EventSeverityCritical, }, }, SensorTypeTerminator: {}, SensorTypeSystemBootRestartInitiated: { 0x00: { EventName: "Initiated by power up", AssertionSeverity: EventSeverityInfo, DeassertionSeverity: EventSeverityInfo, }, 0x01: { EventName: "Initiated by hard reset", AssertionSeverity: EventSeverityInfo, DeassertionSeverity: EventSeverityInfo, }, 0x02: { EventName: "Initiated by warm reset", AssertionSeverity: EventSeverityInfo, DeassertionSeverity: EventSeverityInfo, }, 0x03: { EventName: "User requested PXE boot", AssertionSeverity: EventSeverityInfo, DeassertionSeverity: EventSeverityInfo, }, 0x04: { EventName: "Automatic boot to diagnostic", AssertionSeverity: EventSeverityInfo, DeassertionSeverity: EventSeverityInfo, }, 0x05: { EventName: "OS / run-time software initiated hard reset", AssertionSeverity: EventSeverityWarning, DeassertionSeverity: EventSeverityWarning, }, 0x06: { EventName: "OS / run-time software initiated warm reset", AssertionSeverity: EventSeverityWarning, DeassertionSeverity: EventSeverityWarning, }, 0x07: { EventName: "System Restart", AssertionSeverity: EventSeverityInfo, DeassertionSeverity: EventSeverityInfo, }, }, SensorTypeBootError: { 0x00: { EventName: "No bootable media", AssertionSeverity: EventSeverityCritical, DeassertionSeverity: EventSeverityCritical, }, 0x01: { EventName: "Non-bootable diskette left in drive", AssertionSeverity: EventSeverityCritical, DeassertionSeverity: EventSeverityCritical, }, 0x02: { EventName: "PXE Server not found", AssertionSeverity: EventSeverityCritical, DeassertionSeverity: EventSeverityCritical, }, 0x03: { EventName: "Invalid boot sector", AssertionSeverity: EventSeverityCritical, DeassertionSeverity: EventSeverityCritical, }, 0x04: { EventName: "Timeout waiting for user selection of boot source", AssertionSeverity: EventSeverityWarning, DeassertionSeverity: EventSeverityWarning, }, }, SensorTypeBaseOSBootInstallationStatus: { 0x00: { EventName: "A: boot completed", AssertionSeverity: EventSeverityInfo, DeassertionSeverity: EventSeverityInfo, }, 0x01: { EventName: "C: boot completed", AssertionSeverity: EventSeverityInfo, DeassertionSeverity: EventSeverityInfo, }, 0x02: { EventName: "PXE boot completed", AssertionSeverity: EventSeverityInfo, DeassertionSeverity: EventSeverityInfo, }, 0x03: { EventName: "Diagnostic boot completed", AssertionSeverity: EventSeverityInfo, DeassertionSeverity: EventSeverityInfo, }, 0x04: { EventName: "CD-ROM boot completed", AssertionSeverity: EventSeverityInfo, DeassertionSeverity: EventSeverityInfo, }, 0x05: { EventName: "ROM boot completed", AssertionSeverity: EventSeverityInfo, DeassertionSeverity: EventSeverityInfo, }, 0x06: { EventName: "boot completed - boot device not specified", AssertionSeverity: EventSeverityInfo, DeassertionSeverity: EventSeverityInfo, }, 0x07: { EventName: "Base OS/Hypervisor Installation started", AssertionSeverity: EventSeverityInfo, DeassertionSeverity: EventSeverityInfo, }, 0x08: { EventName: "Base OS/Hypervisor Installation completed", AssertionSeverity: EventSeverityInfo, DeassertionSeverity: EventSeverityInfo, }, 0x09: { EventName: "Base OS/Hypervisor Installation aborted", AssertionSeverity: EventSeverityWarning, DeassertionSeverity: EventSeverityWarning, }, 0x0a: { EventName: "Base OS/Hypervisor Installation failed", AssertionSeverity: EventSeverityCritical, DeassertionSeverity: EventSeverityCritical, }, }, SensorTypeOSStopShutdown: { 0x00: { EventName: "Critical stop during OS load / initialization", AssertionSeverity: EventSeverityCritical, DeassertionSeverity: EventSeverityCritical, }, 0x01: { EventName: "Run-time Critical Stop", AssertionSeverity: EventSeverityCritical, DeassertionSeverity: EventSeverityCritical, }, 0x02: { EventName: "OS Graceful Stop", AssertionSeverity: EventSeverityWarning, DeassertionSeverity: EventSeverityWarning, }, 0x03: { EventName: "OS Graceful Shutdown", AssertionSeverity: EventSeverityWarning, DeassertionSeverity: EventSeverityWarning, }, 0x04: { EventName: "Soft Shutdown initiated by PEF", AssertionSeverity: EventSeverityWarning, DeassertionSeverity: EventSeverityWarning, }, 0x05: { EventName: "Agent Not Responding", AssertionSeverity: EventSeverityCritical, DeassertionSeverity: EventSeverityCritical, }, }, SensorTypeSlotConnector: { 0x00: { EventName: "Fault Status asserted", AssertionSeverity: EventSeverityCritical, DeassertionSeverity: EventSeverityCritical, }, 0x01: { EventName: "Identify Status asserted", AssertionSeverity: EventSeverityWarning, DeassertionSeverity: EventSeverityWarning, }, 0x02: { EventName: "Slot / Connector Device installed/attached", AssertionSeverity: EventSeverityInfo, DeassertionSeverity: EventSeverityInfo, }, 0x03: { EventName: "Slot / Connector Ready for Device Installation", AssertionSeverity: EventSeverityInfo, DeassertionSeverity: EventSeverityInfo, }, 0x04: { EventName: "Slot/Connector Ready for Device Removal", AssertionSeverity: EventSeverityInfo, DeassertionSeverity: EventSeverityInfo, }, 0x05: { EventName: "Slot Power is Off", AssertionSeverity: EventSeverityInfo, DeassertionSeverity: EventSeverityInfo, }, 0x06: { EventName: "Slot / Connector Device Removal Request", AssertionSeverity: EventSeverityWarning, DeassertionSeverity: EventSeverityWarning, }, 0x07: { EventName: "Interlock asserted", AssertionSeverity: EventSeverityWarning, DeassertionSeverity: EventSeverityWarning, }, 0x08: { EventName: "Slot is Disabled", AssertionSeverity: EventSeverityWarning, DeassertionSeverity: EventSeverityWarning, }, 0x09: { EventName: "Slot holds spare device", AssertionSeverity: EventSeverityInfo, DeassertionSeverity: EventSeverityInfo, }, }, SensorTypeSystemACPIPowerState: { 0x00: { EventName: "S0 / G0 (working)", AssertionSeverity: EventSeverityInfo, DeassertionSeverity: EventSeverityInfo, }, 0x01: { EventName: "S1 (sleeping with system h/w & processor context maintained)", AssertionSeverity: EventSeverityInfo, DeassertionSeverity: EventSeverityInfo, }, 0x02: { EventName: "S2 (sleeping, processor context lost)", AssertionSeverity: EventSeverityInfo, DeassertionSeverity: EventSeverityInfo, }, 0x03: { EventName: "S3 (sleeping, processor & h/w context lost, memory retained)", AssertionSeverity: EventSeverityInfo, DeassertionSeverity: EventSeverityInfo, }, 0x04: { EventName: "S4 (non-volatile sleep / suspend-to disk)", AssertionSeverity: EventSeverityInfo, DeassertionSeverity: EventSeverityInfo, }, 0x05: { EventName: "S5 / G2 (soft-off)", AssertionSeverity: EventSeverityInfo, DeassertionSeverity: EventSeverityInfo, }, 0x06: { EventName: "S4 / S5 soft-off, particular S4 / S5 state cannot be determined", AssertionSeverity: EventSeverityInfo, DeassertionSeverity: EventSeverityInfo, }, 0x07: { EventName: "G3 / Mechanical Off", AssertionSeverity: EventSeverityInfo, DeassertionSeverity: EventSeverityInfo, }, 0x08: { EventName: "Sleeping in an S1, S2, or S3 states", AssertionSeverity: EventSeverityInfo, DeassertionSeverity: EventSeverityInfo, }, 0x09: { EventName: "G1 sleeping", AssertionSeverity: EventSeverityInfo, DeassertionSeverity: EventSeverityInfo, }, 0x0a: { EventName: "S5 entered by override", AssertionSeverity: EventSeverityInfo, DeassertionSeverity: EventSeverityInfo, }, 0x0b: { EventName: "Legacy ON state", AssertionSeverity: EventSeverityInfo, DeassertionSeverity: EventSeverityInfo, }, 0x0c: { EventName: "Legacy OFF state", AssertionSeverity: EventSeverityInfo, DeassertionSeverity: EventSeverityInfo, }, 0x0e: { EventName: "Unknown", AssertionSeverity: EventSeverityCritical, DeassertionSeverity: EventSeverityCritical, }, }, SensorTypeWatchdog2: { 0x00: { EventName: "Timer expired, status only (no action, no interrupt)", AssertionSeverity: EventSeverityWarning, DeassertionSeverity: EventSeverityWarning, }, 0x01: { EventName: "Hard Reset", AssertionSeverity: EventSeverityCritical, DeassertionSeverity: EventSeverityCritical, }, 0x02: { EventName: "Power Down", AssertionSeverity: EventSeverityCritical, DeassertionSeverity: EventSeverityCritical, }, 0x03: { EventName: "Power Cycle", AssertionSeverity: EventSeverityCritical, DeassertionSeverity: EventSeverityCritical, }, 0x08: { EventName: "Timer interrupt", AssertionSeverity: EventSeverityWarning, DeassertionSeverity: EventSeverityWarning, }, }, SensorTypePlatformAlert: { 0x00: { EventName: "platform generated page", AssertionSeverity: EventSeverityInfo, DeassertionSeverity: EventSeverityInfo, }, 0x01: { EventName: "platform generated LAN alert", AssertionSeverity: EventSeverityInfo, DeassertionSeverity: EventSeverityInfo, }, 0x02: { EventName: "Platform Event Trap generated", AssertionSeverity: EventSeverityInfo, DeassertionSeverity: EventSeverityInfo, }, 0x03: { EventName: "platform generated SNMP trap", AssertionSeverity: EventSeverityInfo, DeassertionSeverity: EventSeverityInfo, }, }, SensorTypeEntityPresence: { 0x00: { EventName: "Entity Present", AssertionSeverity: EventSeverityInfo, DeassertionSeverity: EventSeverityInfo, }, 0x01: { EventName: "Entity Absent", AssertionSeverity: EventSeverityCritical, DeassertionSeverity: EventSeverityCritical, }, 0x02: { EventName: "Entity Disable", AssertionSeverity: EventSeverityCritical, DeassertionSeverity: EventSeverityCritical, }, }, SensorTypeMonitorASIC: {}, SensorTypeLAN: { 0x00: { EventName: "LAN Heartbeat Lost", AssertionSeverity: EventSeverityWarning, DeassertionSeverity: EventSeverityWarning, }, 0x01: { EventName: "LAN Heartbeat", AssertionSeverity: EventSeverityInfo, DeassertionSeverity: EventSeverityInfo, }, }, SensorTypeManagementSubsystemHealth: { 0x00: { EventName: "sensor access degraded or unavailable", AssertionSeverity: EventSeverityCritical, DeassertionSeverity: EventSeverityCritical, }, 0x01: { EventName: "controller access degraded or unavailable", AssertionSeverity: EventSeverityCritical, DeassertionSeverity: EventSeverityCritical, }, 0x02: { EventName: "management controller off-line", AssertionSeverity: EventSeverityCritical, DeassertionSeverity: EventSeverityCritical, }, 0x03: { EventName: "management controller unavailable", AssertionSeverity: EventSeverityCritical, DeassertionSeverity: EventSeverityCritical, }, 0x04: { EventName: "Sensor failure", AssertionSeverity: EventSeverityCritical, DeassertionSeverity: EventSeverityCritical, }, 0x05: { EventName: "FRU failure", AssertionSeverity: EventSeverityCritical, DeassertionSeverity: EventSeverityCritical, }, }, SensorTypeBattery: { 0x00: { EventName: "battery low (predictive failure)", AssertionSeverity: EventSeverityWarning, DeassertionSeverity: EventSeverityWarning, }, 0x01: { EventName: "battery failed", AssertionSeverity: EventSeverityCritical, DeassertionSeverity: EventSeverityCritical, }, 0x02: { EventName: "battery presence detected", AssertionSeverity: EventSeverityInfo, DeassertionSeverity: EventSeverityInfo, }, }, SensorTypeSessionAudit: { 0x00: { EventName: "Session Activated", AssertionSeverity: EventSeverityInfo, DeassertionSeverity: EventSeverityInfo, }, 0x01: { EventName: "Session Deactivated", AssertionSeverity: EventSeverityInfo, DeassertionSeverity: EventSeverityInfo, }, 0x02: { EventName: "Invalid Username or Password", AssertionSeverity: EventSeverityWarning, DeassertionSeverity: EventSeverityWarning, }, 0x03: { EventName: "Invalid password disable", AssertionSeverity: EventSeverityCritical, DeassertionSeverity: EventSeverityCritical, }, }, SensorTypeVersionChange: { 0x00: { EventName: "Hardware change detected with associated Entity", AssertionSeverity: EventSeverityWarning, DeassertionSeverity: EventSeverityWarning, }, 0x01: { EventName: "Firmware or software change detected with associated Entity", AssertionSeverity: EventSeverityWarning, DeassertionSeverity: EventSeverityWarning, }, 0x02: { EventName: "Hardware incompatibility detected with associated Entity", AssertionSeverity: EventSeverityCritical, DeassertionSeverity: EventSeverityCritical, }, 0x03: { EventName: "Firmware or software incompatibility detected with associated Entity", AssertionSeverity: EventSeverityCritical, DeassertionSeverity: EventSeverityCritical, }, 0x04: { EventName: "Entity is of an invalid or unsupported hardware version", AssertionSeverity: EventSeverityCritical, DeassertionSeverity: EventSeverityCritical, }, 0x05: { EventName: "Entity contains an invalid or unsupported firmware or software version", AssertionSeverity: EventSeverityCritical, DeassertionSeverity: EventSeverityCritical, }, 0x06: { EventName: "Hardware Change detected with associated Entity was successful", AssertionSeverity: EventSeverityInfo, DeassertionSeverity: EventSeverityInfo, }, 0x07: { EventName: "Software or F/W Change detected with associated Entity was successful", AssertionSeverity: EventSeverityInfo, DeassertionSeverity: EventSeverityInfo, }, }, SensorTypeFRUState: { 0x00: { EventName: "FRU Not Installed", AssertionSeverity: EventSeverityCritical, DeassertionSeverity: EventSeverityCritical, }, 0x01: { EventName: "FRU Inactive (in standby or 'hot spare' state)", AssertionSeverity: EventSeverityCritical, DeassertionSeverity: EventSeverityCritical, }, 0x02: { EventName: "FRU Activation Requested", AssertionSeverity: EventSeverityWarning, DeassertionSeverity: EventSeverityWarning, }, 0x03: { EventName: "FRU Activation In Progress", AssertionSeverity: EventSeverityWarning, DeassertionSeverity: EventSeverityWarning, }, 0x04: { EventName: "FRU Active", AssertionSeverity: EventSeverityInfo, DeassertionSeverity: EventSeverityInfo, }, 0x05: { EventName: "FRU Deactivation Requested", AssertionSeverity: EventSeverityWarning, DeassertionSeverity: EventSeverityWarning, }, 0x06: { EventName: "FRU Deactivation In Progress", AssertionSeverity: EventSeverityWarning, DeassertionSeverity: EventSeverityWarning, }, 0x07: { EventName: "FRU Communication Lost", AssertionSeverity: EventSeverityCritical, DeassertionSeverity: EventSeverityCritical, }, }, }
42.2 Sensor Type Codes and Data Sensor Specific Events SensorType, Offset
var SupportedPowerRestorePolicies = []string{
"always-off", "always-on", "previous",
}
Functions ¶
func AllCC ¶
AllCC returns all possible completion codes for the specified response. i.e.:
the generic completion codes for all ipmi cmd response + the specific completion codes for specified cmd response.
func AnalogValue ¶ added in v0.2.0
func AnalogValue(raw uint8, format SensorAnalogUnitFormat) int32
The raw analog data is unpacked as an unsigned integer. But whether it is a positive number (>0) or negative number (<0) is determined by the "analog data format" field (SensorUnit.AnalogDataFormat)
func CheckDCMIGroupExenstionMatch ¶ added in v0.7.0
func ConvertReading ¶ added in v0.2.0
func ConvertReading(raw uint8, analogDataFormat SensorAnalogUnitFormat, factors ReadingFactors, linearizationFunc LinearizationFunc) float64
ConvertReading converts raw sensor reading or raw sensor threshold value to real value in the desired units for the sensor.
see: 36.3 Sensor Reading Conversion Formula
INPUT: raw (unsigned) -- APPLY: analogDataFormat --> GOT: analog (signed) -- APPLY: factors/linearization --> GOT: converted (float64)
func ConvertSensorHysteresis ¶ added in v0.2.0
func ConvertSensorHysteresis(raw uint8, analogDataFormat SensorAnalogUnitFormat, factors ReadingFactors, linearizationFunc LinearizationFunc) float64
ConvertSensorHysteresis converts raw sensor hysteresis value to real value in the desired units for the sensor.
see: 36.3 Sensor Reading Conversion Formula
func ConvertSensorTolerance ¶ added in v0.2.0
func ConvertSensorTolerance(raw uint8, analogDataFormat SensorAnalogUnitFormat, factors ReadingFactors, linearizationFunc LinearizationFunc) float64
ConvertSensorTolerance converts raw sensor tolerance value to real value in the desired units for the sensor.
see: 36.4.1 Tolerance
func ErrDCMIGroupExtensionIDMismatchWith ¶ added in v0.7.0
func ErrNotEnoughDataWith ¶ added in v0.5.1
func ErrUnpackedDataTooShortWith ¶ added in v0.5.1
func FormatDCMITemperatureReadings ¶ added in v0.7.0
func FormatDCMITemperatureReadings(readings []DCMITemperatureReading) string
func FormatEventFilters ¶ added in v0.7.0
func FormatEventFilters(eventFilters []*PEFEventFilter) string
func FormatGUIDDetails ¶ added in v0.5.8
func FormatPEFAlertPolicyTable ¶ added in v0.7.0
func FormatPEFAlertPolicyTable(alertPolicies []*PEFAlertPolicy) string
func FormatSDRs ¶
FormatSDRs returns a table formatted string for print.
func FormatSDRs_FRU ¶ added in v0.2.0
Format SDRs of FRU record type
func FormatSELs ¶
func FormatSELs(records []*SEL, sdrMap SDRMapBySensorNumber) string
FormatSELs print sel records in table format. The second sdrMap is optional. If the sdrMap is not nil, it will also print sensor number, entity id and instance, and asserted discrete states. The sdrMap can be fetched by GetSDRsMap method.
func FormatSensors ¶ added in v0.2.0
FormatSensors return a string of table printed for sensors
func FormatUsers ¶
func IPMILegacyGUIDTime ¶ added in v0.5.5
see https://github.com/ipmitool/ipmitool/issues/25#issuecomment-409703163
func ParseGUID ¶ added in v0.5.5
ParseGUID parses the raw guid data with the specified encoding mode. Different GUIDMode would interpret the [16]byte data into different layout of uuid.
func SensorFilterOptionIsReadingValid ¶ added in v0.2.0
func SensorFilterOptionIsSensorType ¶ added in v0.5.6
func SensorFilterOptionIsSensorType(sensorTypes ...SensorType) func(sensor *Sensor) bool
Sensor is matched if the sensor type of the sensor is one of the given sensor types.
func SensorFilterOptionIsThreshold ¶ added in v0.2.0
func StrCC ¶
StrCC return the description of ccode for the specified response. The available completion codes set consists of general completion codes (CC) for all commands response and specific completion codes for this response.
func UUIDVersionString ¶ added in v0.5.5
Types ¶
type ASF ¶
type ASF struct { IANA uint32 // 4542 MessageType uint8 // 0-FEh, generated by remote console. This is an RMCP version of a sequence number. // Values 0-254 (0-FEh) are used for RMCP request/response messages. // 255 indicates the message is unidirectional and not part of a request/response pair. MessageTag uint8 DataLength uint8 // 00h Data []byte }
type ActivateDCMIPowerLimitRequest ¶ added in v0.7.0
type ActivateDCMIPowerLimitRequest struct {
Activate bool
}
[DCMI specification v1.5]: 6.6.4 Activate/Deactivate Power Limit
func (*ActivateDCMIPowerLimitRequest) Command ¶ added in v0.7.0
func (req *ActivateDCMIPowerLimitRequest) Command() Command
func (*ActivateDCMIPowerLimitRequest) Pack ¶ added in v0.7.0
func (req *ActivateDCMIPowerLimitRequest) Pack() []byte
type ActivateDCMIPowerLimitResponse ¶ added in v0.7.0
type ActivateDCMIPowerLimitResponse struct { }
func (*ActivateDCMIPowerLimitResponse) CompletionCodes ¶ added in v0.7.0
func (res *ActivateDCMIPowerLimitResponse) CompletionCodes() map[uint8]string
func (*ActivateDCMIPowerLimitResponse) Format ¶ added in v0.7.0
func (res *ActivateDCMIPowerLimitResponse) Format() string
func (*ActivateDCMIPowerLimitResponse) Unpack ¶ added in v0.7.0
func (res *ActivateDCMIPowerLimitResponse) Unpack(msg []byte) error
type ActivatePayloadRequest ¶ added in v0.7.4
type ActivatePayloadRequest struct { PayloadType PayloadType PayloadInstance uint8 EnableEncryption bool EnableAuthentication bool EnableTestMode bool // The following settings are determine what happens to serial alerts // if IPMI over Serial and SOL are sharing the same baseboard serial controller. // - 11b: Reserved // - 10b: Serial/modem alerts succeed while SOL active. // - 01b: Serial/modem alerts deferred while SOL active. // - 00b: Serial/modem alerts fail while SOL active. SharedSerialAlertBehavior SharedSerialAlertBehavior // [1] - SOL startup handshake // - 0b: BMC asserts CTS and DCD/DSR to baseboard upon activation. // - 1b: CTS and DCD/DSR remain deasserted after activation. // Remote console must send an SOL Payload packet with control field settings to assert CTS and DCD/DSR. // (This enables the remote console to first alter volatile configuration settings before hardware handshake is released). SOLStartupHandshake bool }
24.1 Activate Payload Command
func (ActivatePayloadRequest) Command ¶ added in v0.7.4
func (req ActivatePayloadRequest) Command() Command
func (*ActivatePayloadRequest) Pack ¶ added in v0.7.4
func (req *ActivatePayloadRequest) Pack() []byte
type ActivatePayloadResponse ¶ added in v0.7.4
type ActivatePayloadResponse struct { TestModeEnabled bool InboundPayloadSize uint16 OutboundPayloadSize uint16 PayloadUDPPort uint16 PayloadVLANID uint16 }
func (*ActivatePayloadResponse) CompletionCodes ¶ added in v0.7.4
func (*ActivatePayloadResponse) CompletionCodes() map[uint8]string
func (*ActivatePayloadResponse) Format ¶ added in v0.7.4
func (res *ActivatePayloadResponse) Format() string
func (*ActivatePayloadResponse) Unpack ¶ added in v0.7.4
func (res *ActivatePayloadResponse) Unpack(msg []byte) error
type ActivateSessionRequest ¶
type ActivateSessionRequest struct { // Authentication Type for session. // The selected type will be used for session activation and for all subsequent authenticated packets under the session, unless "Per-message Authentication" or "User Level Authentication" are disabled. // (See 6.12.4, Per-Message and User Level Authentication Disables, for more information.) // // This value must match with the Authentication Type used in the Get Session Challenge request for the session. In addition, for multi-session channels this value must also match the authentication type used in the Session Header. AuthTypeForSession AuthType // Maximum privilege level requested. Indicates the highest privilege level that // may be requested for this session. This privilege level must be less than // or equal to the privilege limit for the channel and the privilege limit for the // user in order for the Activate Session command to be successful // (completion code = 00h). Once the Activate Session command has been // successful, the requested privilege level becomes a 'session limit' that // cannot be raised beyond the requested level, even if the user and/or // channel privilege level limits would allow it. I.e. it takes precedence over // the channel and user privilege level limits. // // [7:4] - reserved // [3:0] - Requested Maximum Privilege Level // 0h = reserved // 1h = Callback level // 2h = User level // 3h = Operator level // 4h = Administrator level // 5h = OEM Proprietary level // all other = reserved MaxPrivilegeLevel PrivilegeLevel // For multi-session channels: (e.g. LAN channel): // Challenge String data from corresponding Get Session Challenge response. // // For single-session channels that lack session header (e.g. serial/modem in Basic Mode): // Clear text password or AuthCode. See 22.17.1, AuthCode Algorithms. Challenge [16]byte // uint16 // Initial Outbound Sequence Number = Starting sequence number that remote console wants used for messages from the BMC. (LS byte first). Must be non-null in order to establish a session. 0000_0000h = reserved. Can be any random value. // // The BMC must increment the outbound session sequence number by one (1) for // each subsequent outbound message from the BMC (include ActivateSessionResponse) // // The BMC sets the incremented number to Sequence field of SessionHeader. InitialOutboundSequenceNumber uint32 }
22.17
func (*ActivateSessionRequest) Command ¶
func (req *ActivateSessionRequest) Command() Command
func (*ActivateSessionRequest) Pack ¶
func (req *ActivateSessionRequest) Pack() []byte
type ActivateSessionResponse ¶
type ActivateSessionResponse struct { // Authentication Type for remainder of session AuthType AuthType // use this for remainder of session. // While atypical, the BMC is allowed to change the Session ID from the one that passed in the request. SessionID uint32 // Initial inbound seq# = Sequence number that BMC wants remote console to use for subsequent messages in the session. The BMC returns a non-null value for multi-session connections and returns null (all 0s) for single-session connections. // // The remote console must increment the inbound session sequence number by one (1) for each subsequent message it sends to the BMC. InitialInboundSequenceNumber uint32 // Maximum privilege level allowed for this session // [7:4] - reserved // [3:0] - Maximum Privilege Level allowed // 0h = reserved // 1h = Callback level // 2h = User level // 3h = Operator level // 4h = Administrator level // 5h = OEM Proprietary level // all other = reserved MaxPrivilegeLevel uint8 }
func (*ActivateSessionResponse) CompletionCodes ¶
func (*ActivateSessionResponse) CompletionCodes() map[uint8]string
func (*ActivateSessionResponse) Format ¶
func (res *ActivateSessionResponse) Format() string
func (*ActivateSessionResponse) Unpack ¶
func (res *ActivateSessionResponse) Unpack(data []byte) error
type AddSELEntryRequest ¶
type AddSELEntryRequest struct {
SEL *SEL
}
31.6 Add SEL Entry Command
func (*AddSELEntryRequest) Command ¶
func (req *AddSELEntryRequest) Command() Command
func (*AddSELEntryRequest) Pack ¶
func (req *AddSELEntryRequest) Pack() []byte
type AddSELEntryResponse ¶
type AddSELEntryResponse struct {
RecordID uint16 // Record ID for added record, LS Byte first
}
func (*AddSELEntryResponse) CompletionCodes ¶
func (res *AddSELEntryResponse) CompletionCodes() map[uint8]string
func (*AddSELEntryResponse) Format ¶
func (res *AddSELEntryResponse) Format() string
func (*AddSELEntryResponse) Unpack ¶
func (res *AddSELEntryResponse) Unpack(msg []byte) error
type AdditionalDeviceSupport ¶ added in v0.2.0
type AdditionalDeviceSupport struct { SupportChassis bool SupportBridge bool SupportIPMBEventGenerator bool SupportIPMBEventReceiver bool SupportFRUInventory bool SupportSEL bool SupportSDRRepo bool SupportSensor bool }
Additional Device Support (formerly called IPM Device Support). Lists the IPMI 'logical device' commands and functions that the controller supports that are in addition to the mandatory IPM and Application commands. [7] Chassis Device (device functions as chassis device per ICMB spec.) [6] Bridge (device responds to Bridge NetFn commands) [5] IPMB Event Generator (device generates event messages [platform event request messages] onto the IPMB) [4] IPMB Event Receiver (device accepts event messages [platform event request messages] from the IPMB) [3] FRU Inventory Device [2] SEL Device [1] SDR Repository Device [0] Sensor Device
type AlertImmediateOperation ¶ added in v0.7.0
type AlertImmediateOperation uint8
const ( AlertImmediateOperationInitiateAlert AlertImmediateOperation = 0b00 AlertImmediateOperationGetStatus AlertImmediateOperation = 0b01 AlertImmediateOperationClearStatus AlertImmediateOperation = 0b10 AlertImmediateOperationReserved AlertImmediateOperation = 0b11 )
type AlertImmediateRequest ¶ added in v0.7.0
type AlertImmediateRequest struct { ChannelNumber uint8 DestinationSelector uint8 Operation uint8 SendAlertString bool AlertStringSelector uint8 GeneratorID uint8 EvMRev uint8 SensorType SensorType SensorNumber SensorNumber EventDir EventDir EventReadingType EventReadingType EventData EventData }
30.7 Alert Immediate Command
func (*AlertImmediateRequest) Command ¶ added in v0.7.0
func (req *AlertImmediateRequest) Command() Command
func (*AlertImmediateRequest) Pack ¶ added in v0.7.0
func (req *AlertImmediateRequest) Pack() []byte
type AlertImmediateResponse ¶ added in v0.7.0
type AlertImmediateResponse struct {
AlertImmediateStatus uint8
}
func (*AlertImmediateResponse) CompletionCodes ¶ added in v0.7.0
func (res *AlertImmediateResponse) CompletionCodes() map[uint8]string
func (*AlertImmediateResponse) Format ¶ added in v0.7.0
func (res *AlertImmediateResponse) Format() string
func (*AlertImmediateResponse) Unpack ¶ added in v0.7.0
func (res *AlertImmediateResponse) Unpack(msg []byte) error
type AlertImmediateStatus ¶ added in v0.7.0
type AlertImmediateStatus uint8
const ( AlertImmediateStatusNoStatus AlertImmediateStatus = 0x00 AlertImmediateStatusNormalEnd AlertImmediateStatus = 0x01 AlertImmediateStatusFailedRetry AlertImmediateStatus = 0x02 AlertImmediateStatusFailedWaitACK AlertImmediateStatus = 0x03 AlertImmediateStatusInProgress AlertImmediateStatus = 0xff )
type ArmPEFPostponeTimerRequest ¶ added in v0.5.5
type ArmPEFPostponeTimerRequest struct { // PEF Postpone Timeout, in seconds. 01h -> 1 second. // // 00h = disable Postpone Timer (PEF will immediately handle events, if enabled). // The BMC automatically disables the timer whenever the system // enters a sleep state, is powered down, or reset. // 01h - FDh = arm timer. // Timer will automatically start counting down from given value // when the last-processed event Record ID is not equal to the last // received event's Record ID. // FEh = Temporary PEF disable. // The PEF Postpone timer does not countdown from the value. // The BMC automatically re-enables PEF (if enabled in the PEF configuration parameters) // and sets the PEF Postpone timeout to 00h whenever the system // enters a sleep state, is powered down, or reset. Software can // cancel this disable by setting this parameter to 00h or 01h-FDh. // FFh = get present countdown value Timeout uint8 }
30.2 Arm PEF Postpone Timer Command
func (*ArmPEFPostponeTimerRequest) Command ¶ added in v0.5.5
func (req *ArmPEFPostponeTimerRequest) Command() Command
func (*ArmPEFPostponeTimerRequest) Pack ¶ added in v0.5.5
func (req *ArmPEFPostponeTimerRequest) Pack() []byte
type ArmPEFPostponeTimerResponse ¶ added in v0.5.5
type ArmPEFPostponeTimerResponse struct { // Present timer countdown value PresentValue uint8 }
func (*ArmPEFPostponeTimerResponse) CompletionCodes ¶ added in v0.5.5
func (r *ArmPEFPostponeTimerResponse) CompletionCodes() map[uint8]string
func (*ArmPEFPostponeTimerResponse) Format ¶ added in v0.5.5
func (res *ArmPEFPostponeTimerResponse) Format() string
func (*ArmPEFPostponeTimerResponse) Unpack ¶ added in v0.5.5
func (res *ArmPEFPostponeTimerResponse) Unpack(msg []byte) error
type AuthCodeMultiSessionInput ¶
type AuthCodeMultiSessionInput struct { Password string SessionID uint32 SessionSeq uint32 IPMIData []byte }
22.17.1 AuthCode Algorithms Multi-Session AuthCode carried in session header for all authenticated packets
func (*AuthCodeMultiSessionInput) AuthCode ¶
func (i *AuthCodeMultiSessionInput) AuthCode(authType AuthType) []byte
type AuthCodeSingleSessionInput ¶
22.17.1 AuthCode Algorithms Single Session AuthCode carried in IPMI message data for Activate Session Command to fill ActiveSessionRequest.Challenge
func (AuthCodeSingleSessionInput) AuthCode ¶
func (a AuthCodeSingleSessionInput) AuthCode(authType AuthType) []byte
type AuthTypesEnabled ¶ added in v0.7.0
func (AuthTypesEnabled) String ¶ added in v0.7.0
func (authTypeEnabled AuthTypesEnabled) String() string
type AuthenticationPayload ¶
type AuthenticationPayload struct { // 00h = authentication algorithm PayloadType uint8 PayloadLength uint8 // Payload Length in bytes (1-based). The total length in bytes of the payload including the header (= 08h for this specification). AuthAlg uint8 }
func (*AuthenticationPayload) Pack ¶
func (p *AuthenticationPayload) Pack() []byte
func (*AuthenticationPayload) Unpack ¶
func (p *AuthenticationPayload) Unpack(msg []byte) error
type BIOSBootType ¶
type BIOSBootType bool
const ( BIOSBootTypeLegacy BIOSBootType = false // PC compatible boot (legacy) BIOSBootTypeEFI BIOSBootType = true // Extensible Firmware Interface Boot (EFI) )
func (BIOSBootType) String ¶
func (t BIOSBootType) String() string
type BIOSMuxControl ¶
type BIOSMuxControl uint8
func (BIOSMuxControl) String ¶
func (b BIOSMuxControl) String() string
type BIOSVerbosity ¶
type BIOSVerbosity uint8 // only 2 bits, occupied 0-3
const ( BIOSVerbosityDefault BIOSVerbosity = 0 BIOSVerbosityQuiet BIOSVerbosity = 1 BIOSVerbosityVerbose BIOSVerbosity = 2 )
func (BIOSVerbosity) String ¶
func (v BIOSVerbosity) String() string
type BootDeviceSelector ¶
type BootDeviceSelector uint8 // only 4 bits occupied
const ( BootDeviceSelectorNoOverride BootDeviceSelector = 0x00 BootDeviceSelectorForcePXE BootDeviceSelector = 0x01 BootDeviceSelectorForceHardDrive BootDeviceSelector = 0x02 BootDeviceSelectorForceHardDriveSafe BootDeviceSelector = 0x03 BootDeviceSelectorForceDiagnosticPartition BootDeviceSelector = 0x04 BootDeviceSelectorForceCDROM BootDeviceSelector = 0x05 BootDeviceSelectorForceBIOSSetup BootDeviceSelector = 0x06 BootDeviceSelectorForceRemoteFloppy BootDeviceSelector = 0x07 BootDeviceSelectorForceRemoteCDROM BootDeviceSelector = 0x08 BootDeviceSelectorForceRemoteMedia BootDeviceSelector = 0x09 BootDeviceSelectorForceRemoteHardDrive BootDeviceSelector = 0x0b BootDeviceSelectorForceFloppy BootDeviceSelector = 0x0f )
func (BootDeviceSelector) String ¶
func (s BootDeviceSelector) String() string
type BootInfoAcknowledgeBy ¶ added in v0.3.0
type BootInfoAcknowledgeBy uint8
const ( BootInfoAcknowledgeByBIOSPOST BootInfoAcknowledgeBy = 1 << 0 BootInfoAcknowledgeByOSLoader BootInfoAcknowledgeBy = 1 << 1 BootInfoAcknowledgeByOSServicePartition BootInfoAcknowledgeBy = 1 << 2 BootInfoAcknowledgeBySMS BootInfoAcknowledgeBy = 1 << 3 BootInfoAcknowledgeByOEM BootInfoAcknowledgeBy = 1 << 4 )
type BootOptionParamSelector ¶ added in v0.7.0
type BootOptionParamSelector uint8 // only 7 bits occupied, 0-127
const ( BootOptionParamSelector_SetInProgress BootOptionParamSelector = 0x00 BootOptionParamSelector_ServicePartitionSelector BootOptionParamSelector = 0x01 BootOptionParamSelector_ServicePartitionScan BootOptionParamSelector = 0x02 BootOptionParamSelector_BMCBootFlagValidBitClear BootOptionParamSelector = 0x03 BootOptionParamSelector_BootInfoAcknowledge BootOptionParamSelector = 0x04 BootOptionParamSelector_BootFlags BootOptionParamSelector = 0x05 BootOptionParamSelector_BootInitiatorInfo BootOptionParamSelector = 0x06 BootOptionParamSelector_BootInitiatorMailbox BootOptionParamSelector = 0x07 )
func (BootOptionParamSelector) String ¶ added in v0.7.0
func (bop BootOptionParamSelector) String() string
type BootOptionParam_BMCBootFlagValidBitClear ¶ added in v0.7.0
type BootOptionParam_BMCBootFlagValidBitClear struct { DontClearOnResetPEFOrPowerCyclePEF bool // corresponding to restart cause: 0x08, 0x09 DontClearOnCommandReceivedTimeout bool // corresponding to restart cause: 0x01 DontClearOnWatchdogTimeout bool // corresponding to restart cause: 0x04 DontClearOnResetPushButtonOrSoftReset bool // corresponding to restart cause: 0x02, 0x0a DontClearOnPowerUpPushButtonOrWakeEvent bool // corresponding to restart cause: 0x03, 0x0b }
func (*BootOptionParam_BMCBootFlagValidBitClear) BootOptionParameter ¶ added in v0.7.0
func (p *BootOptionParam_BMCBootFlagValidBitClear) BootOptionParameter() (paramSelector BootOptionParamSelector, setSelector uint8, blockSelector uint8)
func (*BootOptionParam_BMCBootFlagValidBitClear) Format ¶ added in v0.7.0
func (p *BootOptionParam_BMCBootFlagValidBitClear) Format() string
func (*BootOptionParam_BMCBootFlagValidBitClear) Pack ¶ added in v0.7.0
func (p *BootOptionParam_BMCBootFlagValidBitClear) Pack() []byte
func (*BootOptionParam_BMCBootFlagValidBitClear) Unpack ¶ added in v0.7.0
func (p *BootOptionParam_BMCBootFlagValidBitClear) Unpack(parameterData []byte) error
type BootOptionParam_BootFlags ¶ added in v0.7.0
type BootOptionParam_BootFlags struct { // 1b = boot flags valid. // The bit should be set to indicate that valid flag data is present. // This bit may be automatically cleared based on the boot flag valid bit clearing parameter, above. BootFlagsValid bool // 0b = options apply to next boot only. // 1b = options requested to be persistent for all future boots (i.e. requests BIOS to change its boot settings) Persist bool // 0b = "PC compatible" boot (legacy) // 1b = Extensible Firmware Interface Boot (EFI) BIOSBootType BIOSBootType CMOSClear bool LockKeyboard bool BootDeviceSelector BootDeviceSelector // 4 bits ScreenBlank bool LockoutResetButton bool LockoutPowerOff bool BIOSVerbosity BIOSVerbosity ForceProgressEventTraps bool BypassUserPassword bool LockoutSleepButton bool ConsoleRedirectionControl ConsoleRedirectionControl // only 2 bits BIOSMuxControl BIOSMuxControl // only 3 bits DeviceInstanceSelector uint8 // only 5 bits }
func (*BootOptionParam_BootFlags) BootOptionParameter ¶ added in v0.7.0
func (p *BootOptionParam_BootFlags) BootOptionParameter() (paramSelector BootOptionParamSelector, setSelector uint8, blockSelector uint8)
func (*BootOptionParam_BootFlags) Format ¶ added in v0.7.0
func (p *BootOptionParam_BootFlags) Format() string
func (*BootOptionParam_BootFlags) OptionsHelp ¶ added in v0.7.0
func (bootFlags *BootOptionParam_BootFlags) OptionsHelp() string
func (*BootOptionParam_BootFlags) Pack ¶ added in v0.7.0
func (p *BootOptionParam_BootFlags) Pack() []byte
func (*BootOptionParam_BootFlags) ParseFromOptions ¶ added in v0.7.0
func (bootFlags *BootOptionParam_BootFlags) ParseFromOptions(options []string) error
func (*BootOptionParam_BootFlags) ParseFromOptionsStr ¶ added in v0.7.0
func (bootFlags *BootOptionParam_BootFlags) ParseFromOptionsStr(optionsStr string) error
func (*BootOptionParam_BootFlags) Unpack ¶ added in v0.7.0
func (p *BootOptionParam_BootFlags) Unpack(parameterData []byte) error
type BootOptionParam_BootInfoAcknowledge ¶ added in v0.7.0
type BootOptionParam_BootInfoAcknowledge struct { // The boot initiator should typically write FFh to this parameter prior to initiating the boot. // The boot initiator may write 0 s if it wants to intentionally direct a given party to ignore the // boot info. // This field is automatically initialized to 00h when the management controller if first powered up or reset. ByOEM bool BySMS bool ByOSServicePartition bool ByOSLoader bool ByBIOSPOST bool }
func (*BootOptionParam_BootInfoAcknowledge) BootOptionParameter ¶ added in v0.7.0
func (p *BootOptionParam_BootInfoAcknowledge) BootOptionParameter() (paramSelector BootOptionParamSelector, setSelector uint8, blockSelector uint8)
func (*BootOptionParam_BootInfoAcknowledge) Format ¶ added in v0.7.0
func (p *BootOptionParam_BootInfoAcknowledge) Format() string
func (*BootOptionParam_BootInfoAcknowledge) Pack ¶ added in v0.7.0
func (p *BootOptionParam_BootInfoAcknowledge) Pack() []byte
func (*BootOptionParam_BootInfoAcknowledge) Unpack ¶ added in v0.7.0
func (p *BootOptionParam_BootInfoAcknowledge) Unpack(parameterData []byte) error
type BootOptionParam_BootInitiatorInfo ¶ added in v0.7.0
type BootOptionParam_BootInitiatorInfo struct { ChannelNumber uint8 SessionID uint32 BootInfoTimestamp time.Time }
func (*BootOptionParam_BootInitiatorInfo) BootOptionParameter ¶ added in v0.7.0
func (p *BootOptionParam_BootInitiatorInfo) BootOptionParameter() (paramSelector BootOptionParamSelector, setSelector uint8, blockSelector uint8)
func (*BootOptionParam_BootInitiatorInfo) Format ¶ added in v0.7.0
func (p *BootOptionParam_BootInitiatorInfo) Format() string
func (*BootOptionParam_BootInitiatorInfo) Pack ¶ added in v0.7.0
func (p *BootOptionParam_BootInitiatorInfo) Pack() []byte
func (*BootOptionParam_BootInitiatorInfo) Unpack ¶ added in v0.7.0
func (p *BootOptionParam_BootInitiatorInfo) Unpack(parameterData []byte) error
type BootOptionParam_BootInitiatorMailbox ¶ added in v0.7.0
func (*BootOptionParam_BootInitiatorMailbox) BootOptionParameter ¶ added in v0.7.0
func (p *BootOptionParam_BootInitiatorMailbox) BootOptionParameter() (paramSelector BootOptionParamSelector, setSelector uint8, blockSelector uint8)
func (*BootOptionParam_BootInitiatorMailbox) Format ¶ added in v0.7.0
func (p *BootOptionParam_BootInitiatorMailbox) Format() string
func (*BootOptionParam_BootInitiatorMailbox) Pack ¶ added in v0.7.0
func (p *BootOptionParam_BootInitiatorMailbox) Pack() []byte
func (*BootOptionParam_BootInitiatorMailbox) Unpack ¶ added in v0.7.0
func (p *BootOptionParam_BootInitiatorMailbox) Unpack(parameterData []byte) error
type BootOptionParam_ServicePartitionScan ¶ added in v0.7.0
type BootOptionParam_ServicePartitionScan struct { // data 1 [7:2] - reserved // - [1] - 1b = Request BIOS to scan for specified service partition. // BIOS clears this bit after the requested scan has been performed. // - [0] - 1b = Service Partition discovered. // BIOS sets this bit to indicate it has discovered the specified service partition. // The bit retains the value from the last scan. // Therefore, to get up-to-date status of the discovery state, a scan may need to be requested. RequestBIOSScan bool ServicePartitionDiscovered bool }
func (*BootOptionParam_ServicePartitionScan) BootOptionParameter ¶ added in v0.7.0
func (p *BootOptionParam_ServicePartitionScan) BootOptionParameter() (paramSelector BootOptionParamSelector, setSelector uint8, blockSelector uint8)
func (BootOptionParam_ServicePartitionScan) Format ¶ added in v0.7.0
func (p BootOptionParam_ServicePartitionScan) Format() string
func (*BootOptionParam_ServicePartitionScan) Pack ¶ added in v0.7.0
func (p *BootOptionParam_ServicePartitionScan) Pack() []byte
func (*BootOptionParam_ServicePartitionScan) Unpack ¶ added in v0.7.0
func (p *BootOptionParam_ServicePartitionScan) Unpack(paramData []byte) error
type BootOptionParam_ServicePartitionSelector ¶ added in v0.7.0
type BootOptionParam_ServicePartitionSelector struct {
Selector uint8
}
This value is used to select which service partition BIOS should boot using.
func (*BootOptionParam_ServicePartitionSelector) BootOptionParameter ¶ added in v0.7.0
func (p *BootOptionParam_ServicePartitionSelector) BootOptionParameter() (paramSelector BootOptionParamSelector, setSelector uint8, blockSelector uint8)
func (*BootOptionParam_ServicePartitionSelector) Format ¶ added in v0.7.0
func (p *BootOptionParam_ServicePartitionSelector) Format() string
func (*BootOptionParam_ServicePartitionSelector) Pack ¶ added in v0.7.0
func (p *BootOptionParam_ServicePartitionSelector) Pack() []byte
func (*BootOptionParam_ServicePartitionSelector) Unpack ¶ added in v0.7.0
func (p *BootOptionParam_ServicePartitionSelector) Unpack(paramData []byte) error
type BootOptionParam_SetInProgress ¶ added in v0.7.0
type BootOptionParam_SetInProgress struct {
Value SetInProgressState
}
func (*BootOptionParam_SetInProgress) BootOptionParameter ¶ added in v0.7.0
func (p *BootOptionParam_SetInProgress) BootOptionParameter() (paramSelector BootOptionParamSelector, setSelector uint8, blockSelector uint8)
func (*BootOptionParam_SetInProgress) Format ¶ added in v0.7.0
func (p *BootOptionParam_SetInProgress) Format() string
func (*BootOptionParam_SetInProgress) Pack ¶ added in v0.7.0
func (p *BootOptionParam_SetInProgress) Pack() []byte
func (*BootOptionParam_SetInProgress) Unpack ¶ added in v0.7.0
func (p *BootOptionParam_SetInProgress) Unpack(paramData []byte) error
type BootOptionParameter ¶
type BootOptionParameter interface { BootOptionParameter() (paramSelector BootOptionParamSelector, setSelector uint8, blockSelector uint8) Parameter }
type BootOptionsParams ¶ added in v0.7.1
type BootOptionsParams struct { SetInProgress *BootOptionParam_SetInProgress ServicePartitionSelector *BootOptionParam_ServicePartitionSelector ServicePartitionScan *BootOptionParam_ServicePartitionScan BMCBootFlagValidBitClear *BootOptionParam_BMCBootFlagValidBitClear BootInfoAcknowledge *BootOptionParam_BootInfoAcknowledge BootFlags *BootOptionParam_BootFlags BootInitiatorInfo *BootOptionParam_BootInitiatorInfo BootInitiatorMailbox *BootOptionParam_BootInitiatorMailbox }
Table 28-14, Boot Option Parameters
func (*BootOptionsParams) Format ¶ added in v0.7.1
func (bootOptionsParams *BootOptionsParams) Format() string
type Channel ¶
type Channel uint8
6.3 Channel Numbers Only the channel number assignments for the primary IPMB and the System Interface are fixed, the assignment of other channel numbers can vary on a per-platform basis
type ChannelAccessMode ¶
type ChannelAccessMode uint8
6.6 Channel Access Modes
const ( ChannelAccessMode_Disabled ChannelAccessMode = 0 ChannelAccessMode_PrebootOnly ChannelAccessMode = 1 ChannelAccessMode_AlwaysAvailable ChannelAccessMode = 2 )
func (ChannelAccessMode) String ¶
func (mode ChannelAccessMode) String() string
type ChannelAccessOption ¶
type ChannelAccessOption uint8
see: Table 22-28, Get Channel Access Command
const ( ChannelAccessOption_NoChange ChannelAccessOption = 0 ChannelAccessOption_NonVolatile ChannelAccessOption = 1 // get non-volatile Channel Access ChannelAccessOption_Volatile ChannelAccessOption = 2 // get present volatile (active) setting of Channel Access )
type ChannelInfo ¶
type ChannelMedium ¶
type ChannelMedium uint8
6.5 Channel Medium Type
const ( ChannelMediumIPMB ChannelMedium = 0x01 ChannelMediumICMBv10 ChannelMedium = 0x02 ChannelMediumICMBv09 ChannelMedium = 0x03 ChannelMediumLAN ChannelMedium = 0x04 ChannelMediumSerial ChannelMedium = 0x05 ChannelMediumOtherLAN ChannelMedium = 0x06 ChannelMediumSMBus ChannelMedium = 0x07 ChannelMediumSMBusv10 ChannelMedium = 0x08 ChannelMediumSMBusv20 ChannelMedium = 0x09 ChannelMediumUSBv1 ChannelMedium = 0x0a ChannelMediumUSBv2 ChannelMedium = 0x0b ChannelMediumSystemInterface ChannelMedium = 0x0c )
func (ChannelMedium) String ¶
func (cp ChannelMedium) String() string
type ChannelPrivilegeOption ¶
type ChannelPrivilegeOption uint8
const ( ChannelPrivilegeOption_NoChange ChannelPrivilegeOption = 0 ChannelPrivilegeOption_NonVolatile ChannelPrivilegeOption = 1 ChannelPrivilegeOption_Volatile ChannelPrivilegeOption = 2 )
type ChannelProtocol ¶
type ChannelProtocol uint8
6.4 Channel Protocol Type
const ( ChannelProtocolIPMB ChannelProtocol = 0x01 ChannelProtocolICMB ChannelProtocol = 0x02 // 03 reserved ChannelProtocolSMBus ChannelProtocol = 0x04 ChannelProtocolKCS ChannelProtocol = 0x05 ChannelProtocolSMIC ChannelProtocol = 0x06 ChannelProtocolBTv10 ChannelProtocol = 0x07 ChannelProtocolBTv15 ChannelProtocol = 0x08 ChannelProtocolTMode ChannelProtocol = 0x09 ChannelProtocolOEM1 ChannelProtocol = 0x1c ChannelProtocolOEM2 ChannelProtocol = 0x1d ChannelProtocolOEM3 ChannelProtocol = 0x1e ChannelProtocolOEM4 ChannelProtocol = 0x1f )
func (ChannelProtocol) String ¶
func (cp ChannelProtocol) String() string
type ChannelSecurityKeysLockStatus ¶ added in v0.7.4
type ChannelSecurityKeysLockStatus uint8
const ( ChannelSecurityKeysLockStatus_NotLockable ChannelSecurityKeysLockStatus = 0 ChannelSecurityKeysLockStatus_Locked ChannelSecurityKeysLockStatus = 1 ChannelSecurityKeysLockStatus_Unlocked ChannelSecurityKeysLockStatus = 2 )
func (ChannelSecurityKeysLockStatus) String ¶ added in v0.7.4
func (lockStatus ChannelSecurityKeysLockStatus) String() string
type ChannelSecurityKeysOperation ¶ added in v0.7.4
type ChannelSecurityKeysOperation uint8
const ( ChannelSecurityKeysOperationRead ChannelSecurityKeysOperation = 0 ChannelSecurityKeysOperationSet ChannelSecurityKeysOperation = 1 ChannelSecurityKeysOperationLock ChannelSecurityKeysOperation = 2 )
func (ChannelSecurityKeysOperation) String ¶ added in v0.7.4
func (operation ChannelSecurityKeysOperation) String() string
type ChassisControl ¶
type ChassisControl uint8
const ( ChassisControlPowerDown ChassisControl = 0 // down, off ChassisControlPowerUp ChassisControl = 1 ChassisControlPowerCycle ChassisControl = 2 ChassisControlHardReset ChassisControl = 3 ChassisControlDiagnosticInterrupt ChassisControl = 4 ChassisControlSoftShutdown ChassisControl = 5 )
type ChassisControlRequest ¶
type ChassisControlRequest struct {
ChassisControl ChassisControl
}
28.3 Chassis Control Command
func (*ChassisControlRequest) Command ¶
func (req *ChassisControlRequest) Command() Command
func (*ChassisControlRequest) Pack ¶
func (req *ChassisControlRequest) Pack() []byte
type ChassisControlResponse ¶
type ChassisControlResponse struct { }
func (*ChassisControlResponse) CompletionCodes ¶
func (res *ChassisControlResponse) CompletionCodes() map[uint8]string
func (*ChassisControlResponse) Format ¶
func (res *ChassisControlResponse) Format() string
func (*ChassisControlResponse) Unpack ¶
func (res *ChassisControlResponse) Unpack(msg []byte) error
type ChassisIdentifyRequest ¶
28.5 Chassis Identify Command 用来定位设备,机箱定位 (机箱定位灯默认亮 interval 秒)
func (*ChassisIdentifyRequest) Command ¶
func (req *ChassisIdentifyRequest) Command() Command
func (*ChassisIdentifyRequest) Pack ¶
func (req *ChassisIdentifyRequest) Pack() []byte
type ChassisIdentifyResponse ¶
type ChassisIdentifyResponse struct { }
func (*ChassisIdentifyResponse) CompletionCodes ¶
func (res *ChassisIdentifyResponse) CompletionCodes() map[uint8]string
func (*ChassisIdentifyResponse) Format ¶
func (res *ChassisIdentifyResponse) Format() string
func (*ChassisIdentifyResponse) Unpack ¶
func (res *ChassisIdentifyResponse) Unpack(msg []byte) error
type ChassisIdentifyState ¶ added in v0.2.0
type ChassisIdentifyState uint8
const ( ChassisIdentifyStateOff ChassisIdentifyState = 0 ChassisIdentifyStateTemporaryOn ChassisIdentifyState = 1 ChassisIdentifyStateIndefiniteOn ChassisIdentifyState = 2 )
func (ChassisIdentifyState) String ¶ added in v0.2.0
func (c ChassisIdentifyState) String() string
type ChassisResetRequest ¶
type ChassisResetRequest struct { }
28.4 Chassis Reset Command
func (*ChassisResetRequest) Command ¶
func (req *ChassisResetRequest) Command() Command
func (*ChassisResetRequest) Pack ¶
func (req *ChassisResetRequest) Pack() []byte
type ChassisResetResponse ¶
type ChassisResetResponse struct { }
func (*ChassisResetResponse) CompletionCodes ¶
func (res *ChassisResetResponse) CompletionCodes() map[uint8]string
func (*ChassisResetResponse) Format ¶
func (res *ChassisResetResponse) Format() string
func (*ChassisResetResponse) Unpack ¶
func (res *ChassisResetResponse) Unpack(msg []byte) error
type ChassisSecurityStatus ¶
type ChassisSecurityStatus uint8
func (ChassisSecurityStatus) String ¶ added in v0.2.0
func (chassisSecurityStatus ChassisSecurityStatus) String() string
type ChassisState ¶
type ChassisState uint8
func (ChassisState) String ¶ added in v0.2.0
func (chassisState ChassisState) String() string
type ChassisType ¶
type ChassisType uint8
func (ChassisType) String ¶ added in v0.2.0
func (chassisType ChassisType) String() string
type CipherSuiteID ¶
type CipherSuiteID uint8
22.15.2 Cipher Suite IDs
const ( CipherSuiteID0 CipherSuiteID = 0 CipherSuiteID1 CipherSuiteID = 1 CipherSuiteID2 CipherSuiteID = 2 CipherSuiteID3 CipherSuiteID = 3 CipherSuiteID4 CipherSuiteID = 4 CipherSuiteID5 CipherSuiteID = 5 CipherSuiteID6 CipherSuiteID = 6 CipherSuiteID7 CipherSuiteID = 7 CipherSuiteID8 CipherSuiteID = 8 CipherSuiteID9 CipherSuiteID = 9 CipherSuiteID10 CipherSuiteID = 10 CipherSuiteID11 CipherSuiteID = 11 CipherSuiteID12 CipherSuiteID = 12 CipherSuiteID13 CipherSuiteID = 13 CipherSuiteID14 CipherSuiteID = 14 CipherSuiteID15 CipherSuiteID = 15 CipherSuiteID16 CipherSuiteID = 16 CipherSuiteID17 CipherSuiteID = 17 CipherSuiteID18 CipherSuiteID = 18 CipherSuiteID19 CipherSuiteID = 19 CipherSuiteIDReserved CipherSuiteID = 0xff )
type CipherSuiteRecord ¶
type CipherSuiteRecord struct { // If StartOfRecord is C0h, indicating that the Start Of Record byte is followed by an Cipher Suite ID // If StartOfRecord is C1h, indicating that the Start Of Record byte is followed by a OEM Cipher Suite ID plus OEM IANA StartOfRecord uint8 // a numeric way of identifying the Cipher Suite on the platform CipherSuitID CipherSuiteID OEMIanaID uint32 // Least significant byte first. 3-byte IANA for the OEM or body that defined the Cipher Suite. // an authentication algorithm number is required for all Cipher Suites. // It is possible that a given Cipher Suite may not specify use of an integrity or confidentiality algorithm. AuthAlg uint8 // Tag bits: [7:6]=00b IntegrityAlgs []uint8 // Tag bits: [7:6]=01b CryptAlgs []uint8 // Tag bits: [7:6]=10b }
22.15.1 Cipher Suite Records The size of a CipherSuiteRecord is
type ClearMessageFlagsRequest ¶
type ClearMessageFlagsRequest struct { ClearOEM2 bool ClearOEM1 bool ClearOEM0 bool ClearWatchdogPreTimeoutInterruptFlag bool ClearEventMessageBuffer bool ClearReceiveMessageQueue bool }
22.3 Clear Message Flags Command
func (*ClearMessageFlagsRequest) Command ¶
func (req *ClearMessageFlagsRequest) Command() Command
func (*ClearMessageFlagsRequest) Pack ¶
func (req *ClearMessageFlagsRequest) Pack() []byte
type ClearMessageFlagsResponse ¶
type ClearMessageFlagsResponse struct { }
func (*ClearMessageFlagsResponse) CompletionCodes ¶
func (*ClearMessageFlagsResponse) CompletionCodes() map[uint8]string
func (*ClearMessageFlagsResponse) Format ¶
func (res *ClearMessageFlagsResponse) Format() string
func (*ClearMessageFlagsResponse) Unpack ¶
func (res *ClearMessageFlagsResponse) Unpack(msg []byte) error
type ClearSELRequest ¶
31.9 Clear SEL Command
func (*ClearSELRequest) Command ¶
func (req *ClearSELRequest) Command() Command
func (*ClearSELRequest) Pack ¶
func (req *ClearSELRequest) Pack() []byte
type ClearSELResponse ¶
type ClearSELResponse struct {
ErasureProgressStatus uint8
}
func (*ClearSELResponse) CompletionCodes ¶
func (res *ClearSELResponse) CompletionCodes() map[uint8]string
func (*ClearSELResponse) Format ¶
func (res *ClearSELResponse) Format() string
func (*ClearSELResponse) Unpack ¶
func (res *ClearSELResponse) Unpack(msg []byte) error
type Client ¶
type Client struct { Host string Port int Username string // length must <= 16 Password string Interface Interface // contains filtered or unexported fields }
func NewOpenClient ¶ added in v0.2.0
func NewToolClient ¶ added in v0.3.2
NewToolClient creates an IPMI client based ipmitool. You should pass the file path of ipmitool binary or path of a wrapper script that would be executed.
func (*Client) ActivateDCMIPowerLimit ¶ added in v0.7.0
func (c *Client) ActivateDCMIPowerLimit(ctx context.Context, activate bool) (response *ActivateDCMIPowerLimitResponse, err error)
ActivateDCMIPowerLimit activate or deactivate the power limit set. Setting the param 'activate' to true means to activate the power limit, false means to deactivate the power limit
func (*Client) ActivatePayload ¶ added in v0.7.4
func (c *Client) ActivatePayload(ctx context.Context, request *ActivatePayloadRequest) (response *ActivatePayloadResponse, err error)
func (*Client) ActivateSession ¶
func (c *Client) ActivateSession(ctx context.Context) (response *ActivateSessionResponse, err error)
ActivateSession is only used for IPMI v1.5
func (*Client) AddSELEntry ¶
func (*Client) AlertImmediate ¶ added in v0.7.0
func (c *Client) AlertImmediate(ctx context.Context, request *AlertImmediateRequest) (response *AlertImmediateResponse, err error)
func (*Client) ArmPEFPostponeTimer ¶ added in v0.5.5
func (*Client) BuildIPMIRequest ¶
BuildIPMIRequest creates IPMIRequest for a Command Request. It also fills the Checksum1 and Checksum2 fields of IPMIRequest.
func (*Client) BuildRmcpRequest ¶
func (*Client) ChassisControl ¶
func (c *Client) ChassisControl(ctx context.Context, control ChassisControl) (response *ChassisControlResponse, err error)
func (*Client) ChassisIdentify ¶
func (c *Client) ChassisIdentify(ctx context.Context, interval uint8, force bool) (response *ChassisIdentifyResponse, err error)
This command causes the chassis to physically identify itself by a mechanism chosen by the system implementation; such as turning on blinking user-visible lights or emitting beeps via a speaker, LCD panel, etc.
func (*Client) ChassisReset ¶
func (c *Client) ChassisReset(ctx context.Context) (response *ChassisResetResponse, err error)
This command was used with early versions of the ICMB. It has been superseded by the Chassis Control command For host systems, this corresponds to a system hard reset.
func (*Client) ClearMessageFlags ¶
func (c *Client) ClearMessageFlags(ctx context.Context, request *ClearMessageFlagsRequest) (response *ClearMessageFlagsResponse, err error)
func (*Client) CloseSession ¶
func (c *Client) CloseSession(ctx context.Context, request *CloseSessionRequest) (response *CloseSessionResponse, err error)
func (*Client) Connect15 ¶
13.14 IPMI v1.5 LAN Session Activation 1. RmcpPresencePing - RmcpPresencePong 2. Get Channel Authentication Capabilities 3. Get Session Challenge 4. Activate Session
func (*Client) ConnectAuto ¶
ConnectAuto detects the IPMI version supported by BMC by using GetChannelAuthenticationCapabilities command, then decide to use v1.5 or v2.0 for subsequent requests.
func (*Client) ConnectOpen ¶ added in v0.2.0
ConnectOpen try to initialize the client by open the device of linux ipmi driver.
func (*Client) ConnectTool ¶ added in v0.3.2
ConnectTool try to initialize the client.
func (*Client) DeactivatePayload ¶ added in v0.7.4
func (c *Client) DeactivatePayload(ctx context.Context, request *DeactivatePayloadRequest) (response *DeactivatePayloadResponse, err error)
func (*Client) DebugBytes ¶
DebugBytes print byte slices with a fixed width of bytes on each line.
func (*Client) DebugfGreen ¶ added in v0.5.9
func (*Client) DebugfYellow ¶ added in v0.5.9
func (*Client) DeleteSELEntry ¶ added in v0.2.0
func (*Client) DisableUser ¶
func (*Client) EnableMessageChannelReceive ¶
func (*Client) EnableUser ¶
func (*Client) GetACPIPowerState ¶
func (c *Client) GetACPIPowerState(ctx context.Context) (response *GetACPIPowerStateResponse, err error)
This command is provided to allow system software to tell a controller the present ACPI power state of the system.
func (*Client) GetAllChannelCipherSuites ¶
func (*Client) GetBMCGlobalEnables ¶
func (c *Client) GetBMCGlobalEnables(ctx context.Context) (response *GetBMCGlobalEnablesResponse, err error)
func (*Client) GetBTInterfaceCapabilities ¶
func (c *Client) GetBTInterfaceCapabilities(ctx context.Context) (response *GetBTInterfaceCapabilitiesResponse, err error)
func (*Client) GetChannelAccess ¶
func (c *Client) GetChannelAccess(ctx context.Context, channelNumber uint8, accessOption ChannelAccessOption) (response *GetChannelAccessResponse, err error)
func (*Client) GetChannelAuthenticationCapabilities ¶
func (c *Client) GetChannelAuthenticationCapabilities(ctx context.Context, channelNumber uint8, privilegeLevel PrivilegeLevel) (response *GetChannelAuthenticationCapabilitiesResponse, err error)
GetChannelAuthenticationCapabilities is used to retrieve capability information about the channel that the message is delivered over, or for a particular channel. The command returns the authentication algorithm support for the given privilege level.
This command is sent in unauthenticated (clear) format.
When activating a session, the privilege level passed in this command will normally be the same Requested Maximum Privilege level that will be used for a subsequent Activate Session command.
func (*Client) GetChannelCipherSuites ¶
func (c *Client) GetChannelCipherSuites(ctx context.Context, channelNumber uint8, index uint8) (response *GetChannelCipherSuitesResponse, err error)
This command can be executed prior to establishing a session with the BMC. The command is used to look up what authentication, integrity, and confidentiality algorithms are supported. The algorithms are used in combination as 'Cipher Suites'. This command only applies to implementations that support IPMI v2.0/RMCP+ sessions.
func (*Client) GetChannelInfo ¶
func (*Client) GetChannelOEMPayloadInfo ¶ added in v0.7.4
func (c *Client) GetChannelOEMPayloadInfo(ctx context.Context, request *GetChannelOEMPayloadInfoRequest) (response *GetChannelOEMPayloadInfoResponse, err error)
func (*Client) GetChannelPayloadSupport ¶ added in v0.7.4
func (*Client) GetChannelPayloadVersion ¶ added in v0.7.4
func (c *Client) GetChannelPayloadVersion(ctx context.Context, channelNumber uint8, payloadType PayloadType) (response *GetChannelPayloadVersionResponse, err error)
func (*Client) GetChassisCapabilities ¶
func (c *Client) GetChassisCapabilities(ctx context.Context) (response *GetChassisCapabilitiesResponse, err error)
func (*Client) GetChassisStatus ¶
func (c *Client) GetChassisStatus(ctx context.Context) (response *GetChassisStatusResponse, err error)
func (*Client) GetCommandEnables ¶
func (*Client) GetCommandSubfunctionEnables ¶ added in v0.7.4
func (c *Client) GetCommandSubfunctionEnables(ctx context.Context, request *GetCommandSubfunctionEnablesRequest) (response *GetCommandSubfunctionEnablesResponse, err error)
func (*Client) GetCommandSubfunctionSupport ¶
func (*Client) GetCommandSupport ¶
func (*Client) GetConfigurableCommandSubfunctions ¶ added in v0.7.4
func (c *Client) GetConfigurableCommandSubfunctions(ctx context.Context, request *GetConfigurableCommandSubfunctionsRequest) (response *GetConfigurableCommandSubfunctionsResponse, err error)
func (*Client) GetConfigurableCommands ¶
func (*Client) GetCurrentSessionInfo ¶ added in v0.3.0
func (c *Client) GetCurrentSessionInfo(ctx context.Context) (response *GetSessionInfoResponse, err error)
func (*Client) GetDCMIAssetTag ¶ added in v0.5.8
func (c *Client) GetDCMIAssetTag(ctx context.Context, offset uint8) (response *GetDCMIAssetTagResponse, err error)
GetDCMIAssetTag sends a DCMI "Get Asset Tag" command. See GetDCMIAssetTagRequest for details.
func (*Client) GetDCMIAssetTagFull ¶ added in v0.7.0
func (*Client) GetDCMICapParam ¶ added in v0.7.2
func (c *Client) GetDCMICapParam(ctx context.Context, paramSelector DCMICapParamSelector) (response *GetDCMICapParamResponse, err error)
func (*Client) GetDCMICapParamFor ¶ added in v0.7.2
func (c *Client) GetDCMICapParamFor(ctx context.Context, param DCMICapParameter) error
func (*Client) GetDCMICapParams ¶ added in v0.7.2
func (c *Client) GetDCMICapParams(ctx context.Context) (*DCMICapParams, error)
func (*Client) GetDCMICapParamsFor ¶ added in v0.7.2
func (c *Client) GetDCMICapParamsFor(ctx context.Context, dcmiCapParams *DCMICapParams) error
func (*Client) GetDCMIConfigParam ¶ added in v0.7.1
func (c *Client) GetDCMIConfigParam(ctx context.Context, paramSelector DCMIConfigParamSelector, setSelector uint8) (response *GetDCMIConfigParamResponse, err error)
func (*Client) GetDCMIConfigParamFor ¶ added in v0.7.1
func (c *Client) GetDCMIConfigParamFor(ctx context.Context, param DCMIConfigParameter) error
func (*Client) GetDCMIConfigParams ¶ added in v0.7.0
func (c *Client) GetDCMIConfigParams(ctx context.Context) (*DCMIConfigParams, error)
func (*Client) GetDCMIConfigParamsFor ¶ added in v0.7.0
func (c *Client) GetDCMIConfigParamsFor(ctx context.Context, dcmiConfigParams *DCMIConfigParams) error
func (*Client) GetDCMIMgmtControllerIdentifier ¶ added in v0.7.0
func (c *Client) GetDCMIMgmtControllerIdentifier(ctx context.Context, offset uint8) (response *GetDCMIMgmtControllerIdentifierResponse, err error)
GetDCMIMgmtControllerIdentifier sends a DCMI "Get Asset Tag" command. See GetDCMIMgmtControllerIdentifierRequest for details.
func (*Client) GetDCMIMgmtControllerIdentifierFull ¶ added in v0.7.0
func (*Client) GetDCMIPowerLimit ¶ added in v0.7.0
func (c *Client) GetDCMIPowerLimit(ctx context.Context) (response *GetDCMIPowerLimitResponse, err error)
GetDCMIPowerLimit sends a DCMI "Get Power Reading" command. See GetDCMIPowerLimitRequest for details.
func (*Client) GetDCMIPowerReading ¶ added in v0.5.8
func (c *Client) GetDCMIPowerReading(ctx context.Context) (response *GetDCMIPowerReadingResponse, err error)
GetDCMIPowerReading sends a DCMI "Get Power Reading" command. See GetDCMIPowerReadingRequest for details.
func (*Client) GetDCMISensorInfo ¶ added in v0.7.0
func (c *Client) GetDCMISensorInfo(ctx context.Context, request *GetDCMISensorInfoRequest) (response *GetDCMISensorInfoResponse, err error)
GetDCMISensorInfo sends a DCMI "Get Power Reading" command. See GetDCMISensorInfoRequest for details.
func (*Client) GetDCMISensors ¶ added in v0.7.0
func (*Client) GetDCMITemperatureReadings ¶ added in v0.7.0
func (c *Client) GetDCMITemperatureReadings(ctx context.Context, request *GetDCMITemperatureReadingsRequest) (response *GetDCMITemperatureReadingsResponse, err error)
func (*Client) GetDCMITemperatureReadingsForEntities ¶ added in v0.7.0
func (*Client) GetDCMIThermalLimit ¶ added in v0.7.0
func (c *Client) GetDCMIThermalLimit(ctx context.Context, entityID EntityID, entityInstance EntityInstance) (response *GetDCMIThermalLimitResponse, err error)
func (*Client) GetDeviceGUID ¶
func (c *Client) GetDeviceGUID(ctx context.Context) (response *GetDeviceGUIDResponse, err error)
func (*Client) GetDeviceID ¶
func (c *Client) GetDeviceID(ctx context.Context) (response *GetDeviceIDResponse, err error)
func (*Client) GetDeviceSDR ¶
func (c *Client) GetDeviceSDR(ctx context.Context, recordID uint16) (response *GetDeviceSDRResponse, err error)
The Get Device SDR command allows SDR information for sensors for a Sensor Device (typically implemented in a satellite management controller) to be returned.
The Get Device SDR Command can return any type of SDR, not just Types 01h and 02h. This is an optional command for Static Sensor Devices, and mandatory for Dynamic Sensor Devices. The format and action of this command is similar to that for the Get SDR command for SDR Repository Devices.
Sensor Devices that support the Get Device SDR command return SDR Records that match the SDR Repository formats.
func (*Client) GetDeviceSDRBySensorID ¶ added in v0.2.0
func (*Client) GetDeviceSDRInfo ¶
func (c *Client) GetDeviceSDRInfo(ctx context.Context, getSDRCount bool) (response *GetDeviceSDRInfoResponse, err error)
This command returns general information about the collection of sensors in a Dynamic Sensor Device.
func (*Client) GetDeviceSDRs ¶ added in v0.2.0
func (*Client) GetEventReceiver ¶ added in v0.3.0
func (c *Client) GetEventReceiver(ctx context.Context) (response *GetEventReceiverResponse, err error)
func (*Client) GetFRU ¶ added in v0.2.0
GetFRU return FRU for the specified deviceID. The deviceName is not a must, pass empty string if not known.
func (*Client) GetFRUAreaBoard ¶ added in v0.2.0
func (*Client) GetFRUAreaChassis ¶ added in v0.2.0
func (*Client) GetFRUAreaMultiRecords ¶ added in v0.2.0
func (*Client) GetFRUAreaProduct ¶ added in v0.2.0
func (*Client) GetFRUData ¶ added in v0.2.0
GetFRUData return all data bytes, the data size is firstly determined by GetFRUInventoryAreaInfoResponse.AreaSizeBytes
func (*Client) GetFRUInventoryAreaInfo ¶
func (c *Client) GetFRUInventoryAreaInfo(ctx context.Context, fruDeviceID uint8) (response *GetFRUInventoryAreaInfoResponse, err error)
This command returns overall the size of the FRU Inventory Area in this device, in bytes.
func (*Client) GetIPStatistics ¶
func (*Client) GetLanConfig ¶
func (*Client) GetLanConfigParam ¶ added in v0.7.1
func (c *Client) GetLanConfigParam(ctx context.Context, channelNumber uint8, paramSelector LanConfigParamSelector, setSelector uint8, blockSelector uint8) (response *GetLanConfigParamResponse, err error)
func (*Client) GetLanConfigParamFor ¶ added in v0.7.1
func (c *Client) GetLanConfigParamFor(ctx context.Context, channelNumber uint8, param LanConfigParameter) error
GetLanConfigParamFor get the lan config for a specific parameter.
The param is a pointer to a struct that implements the LanConfigParameter interface.
func (*Client) GetLanConfigParams ¶
func (*Client) GetLanConfigParamsFor ¶ added in v0.7.0
func (c *Client) GetLanConfigParamsFor(ctx context.Context, channelNumber uint8, lanConfigParams *LanConfigParams) error
GetLanConfigParamsFor get the lan config params. You can initialize specific fields of LanConfigParams struct, which indicates to only get params for those fields.
func (*Client) GetLanConfigParamsFull ¶ added in v0.7.1
func (*Client) GetLastProcessedEventId ¶ added in v0.5.5
func (c *Client) GetLastProcessedEventId(ctx context.Context) (response *GetLastProcessedEventIdResponse, err error)
func (*Client) GetMessage ¶
func (c *Client) GetMessage(ctx context.Context) (response *GetMessageResponse, err error)
func (*Client) GetMessageFlags ¶
func (c *Client) GetMessageFlags(ctx context.Context) (response *GetMessageFlagsResponse, err error)
func (*Client) GetNetFnSupport ¶
func (*Client) GetPEFCapabilities ¶ added in v0.3.0
func (c *Client) GetPEFCapabilities(ctx context.Context) (response *GetPEFCapabilitiesResponse, err error)
func (*Client) GetPEFConfigParam ¶ added in v0.7.1
func (c *Client) GetPEFConfigParam(ctx context.Context, getRevisionOnly bool, paramSelector PEFConfigParamSelector, setSelector uint8, blockSelector uint8) (response *GetPEFConfigParamResponse, err error)
func (*Client) GetPEFConfigParamFor ¶ added in v0.7.1
func (c *Client) GetPEFConfigParamFor(ctx context.Context, param PEFConfigParameter) error
func (*Client) GetPEFConfigParams ¶ added in v0.7.0
func (c *Client) GetPEFConfigParams(ctx context.Context) (pefConfigParams *PEFConfigParams, err error)
func (*Client) GetPEFConfigParamsFor ¶ added in v0.7.0
func (c *Client) GetPEFConfigParamsFor(ctx context.Context, pefConfigParams *PEFConfigParams) error
func (*Client) GetPOHCounter ¶
func (c *Client) GetPOHCounter(ctx context.Context) (response *GetPOHCounterResponse, err error)
This command returns the present reading of the POH (Power-On Hours) counter, plus the number of counts per hour.
func (*Client) GetPayloadActivationStatus ¶ added in v0.5.5
func (c *Client) GetPayloadActivationStatus(ctx context.Context, payloadType PayloadType) (response *GetPayloadActivationStatusResponse, err error)
func (*Client) GetPayloadInstanceInfo ¶ added in v0.7.4
func (c *Client) GetPayloadInstanceInfo(ctx context.Context, payloadType PayloadType, payloadInstance uint8) (response *GetPayloadInstanceInfoResponse, err error)
func (*Client) GetSDRBySensorID ¶
func (*Client) GetSDRBySensorName ¶ added in v0.2.0
func (*Client) GetSDREnhanced ¶ added in v0.7.0
func (*Client) GetSDRRepoAllocInfo ¶
func (c *Client) GetSDRRepoAllocInfo(ctx context.Context) (response *GetSDRRepoAllocInfoResponse, err error)
func (*Client) GetSDRRepoInfo ¶
func (c *Client) GetSDRRepoInfo(ctx context.Context) (response *GetSDRRepoInfoResponse, err error)
func (*Client) GetSDRs ¶
GetSDRs fetches the SDR records with the specified RecordTypes. The parameter is a slice of SDRRecordType used as filter. Empty means to get all SDR records.
func (*Client) GetSDRsMap ¶
func (c *Client) GetSDRsMap(ctx context.Context) (SDRMapBySensorNumber, error)
GetSDRsMap returns all Full/Compact SDRs grouped by GeneratorID and SensorNumber. The sensor name can only be got from SDR record. So use this method to construct a map from which you can get sensor name.
func (*Client) GetSELAllocInfo ¶
func (c *Client) GetSELAllocInfo(ctx context.Context) (response *GetSELAllocInfoResponse, err error)
func (*Client) GetSELEntries ¶
GetSELEntries return all SEL records starting from the specified recordID. Pass 0 means retrieve all SEL entries starting from the first record.
func (*Client) GetSELEntry ¶
func (c *Client) GetSELEntry(ctx context.Context, reservationID uint16, recordID uint16) (response *GetSELEntryResponse, err error)
The reservationID is only required for partial Get, use 0000h otherwise.
func (*Client) GetSELInfo ¶
func (c *Client) GetSELInfo(ctx context.Context) (response *GetSELInfoResponse, err error)
func (*Client) GetSELTime ¶ added in v0.2.0
func (c *Client) GetSELTime(ctx context.Context) (response *GetSELTimeResponse, err error)
func (*Client) GetSELTimeUTCOffset ¶ added in v0.2.0
func (c *Client) GetSELTimeUTCOffset(ctx context.Context) (response *GetSELTimeUTCOffsetResponse, err error)
GetSELTimeUTCOffset is used to retrieve the SEL Time UTC Offset (timezone)
func (*Client) GetSOLConfigParam ¶ added in v0.7.1
func (c *Client) GetSOLConfigParam(ctx context.Context, channelNumber uint8, paramSelector SOLConfigParamSelector, setSelector, blockSelector uint8) (response *GetSOLConfigParamResponse, err error)
func (*Client) GetSOLConfigParamFor ¶ added in v0.7.1
func (*Client) GetSOLConfigParams ¶ added in v0.2.0
func (*Client) GetSOLConfigParamsFor ¶ added in v0.7.0
func (*Client) GetSelfTestResults ¶
func (c *Client) GetSelfTestResults(ctx context.Context) (response *GetSelfTestResultsResponse, err error)
func (*Client) GetSensorByID ¶ added in v0.2.0
GetSensorByID returns the sensor with current reading and status by specified sensor number.
func (*Client) GetSensorByName ¶ added in v0.2.0
GetSensorByName returns the sensor with current reading and status by specified sensor name.
func (*Client) GetSensorEventEnable ¶
func (*Client) GetSensorEventStatus ¶
func (*Client) GetSensorHysteresis ¶
func (c *Client) GetSensorHysteresis(ctx context.Context, sensorNumber uint8) (response *GetSensorHysteresisResponse, err error)
This command retrieves the present hysteresis values for the specified sensor. If the sensor hysteresis values are "fixed", then the hysteresis values can be obtained from the SDR for the sensor.
func (*Client) GetSensorReading ¶
func (*Client) GetSensorReadingFactors ¶
func (c *Client) GetSensorReadingFactors(ctx context.Context, sensorNumber uint8, reading uint8) (response *GetSensorReadingFactorsResponse, err error)
This command returns the Sensor Reading Factors fields for the specified reading value on the specified sensor.
func (*Client) GetSensorThresholds ¶
func (c *Client) GetSensorThresholds(ctx context.Context, sensorNumber uint8) (response *GetSensorThresholdsResponse, err error)
This command retrieves the threshold for the given sensor.
func (*Client) GetSensorType ¶
func (*Client) GetSensors ¶ added in v0.2.0
func (c *Client) GetSensors(ctx context.Context, filterOptions ...SensorFilterOption) ([]*Sensor, error)
GetSensors returns all sensors with their current readings and status.
If there's no filter options, it returns all sensors.
If there exists filter options, it returns the sensors those passed all filter options, that means the filter options are logically ANDed.
If you want the filter options are logically ORed, use `GetSensorsAny`
func (*Client) GetSensorsAny ¶ added in v0.5.8
func (c *Client) GetSensorsAny(ctx context.Context, filterOptions ...SensorFilterOption) ([]*Sensor, error)
GetSensorsAny returns all sensors with their current readings and status.
If there's no filter options, it returns all sensors.
If there exists filter options, it only returns the sensors those passed any one filter option, that means the filter options are logically ORed.
If you want the filter options are logically ANDed, use `GetSensors`.
func (*Client) GetSessionChallenge ¶
func (c *Client) GetSessionChallenge(ctx context.Context) (response *GetSessionChallengeResponse, err error)
The command selects which of the BMC-supported authentication types the Remote Console would like to use, and a username that selects which set of user information should be used for the session
func (*Client) GetSessionInfo ¶
func (c *Client) GetSessionInfo(ctx context.Context, request *GetSessionInfoRequest) (response *GetSessionInfoResponse, err error)
func (*Client) GetSupermicroBiosVersion ¶ added in v0.3.0
func (c *Client) GetSupermicroBiosVersion(ctx context.Context) (response *CommandGetSupermicroBiosVersionResponse, err error)
func (*Client) GetSystemBootOptionsParam ¶ added in v0.7.2
func (c *Client) GetSystemBootOptionsParam(ctx context.Context, paramSelector BootOptionParamSelector, setSelector uint8, blockSelector uint8) (response *GetSystemBootOptionsParamResponse, err error)
func (*Client) GetSystemBootOptionsParamFor ¶ added in v0.7.2
func (c *Client) GetSystemBootOptionsParamFor(ctx context.Context, param BootOptionParameter) error
func (*Client) GetSystemBootOptionsParams ¶ added in v0.7.1
func (c *Client) GetSystemBootOptionsParams(ctx context.Context) (*BootOptionsParams, error)
GetSystemBootOptionsParams get all parameters of boot options.
func (*Client) GetSystemBootOptionsParamsFor ¶ added in v0.7.1
func (c *Client) GetSystemBootOptionsParamsFor(ctx context.Context, bootOptionsParams *BootOptionsParams) error
func (*Client) GetSystemGUID ¶
func (c *Client) GetSystemGUID(ctx context.Context) (response *GetSystemGUIDResponse, err error)
func (*Client) GetSystemInfo ¶ added in v0.7.1
func (c *Client) GetSystemInfo(ctx context.Context) (*SystemInfo, error)
func (*Client) GetSystemInfoParam ¶ added in v0.7.1
func (c *Client) GetSystemInfoParam(ctx context.Context, paramSelector SystemInfoParamSelector, setSelector uint8, blockSelector uint8) (response *GetSystemInfoParamResponse, err error)
func (*Client) GetSystemInfoParamFor ¶ added in v0.7.1
func (c *Client) GetSystemInfoParamFor(ctx context.Context, param SystemInfoParameter) error
func (*Client) GetSystemInfoParams ¶ added in v0.7.1
func (c *Client) GetSystemInfoParams(ctx context.Context) (*SystemInfoParams, error)
func (*Client) GetSystemInfoParamsFor ¶ added in v0.7.1
func (c *Client) GetSystemInfoParamsFor(ctx context.Context, params *SystemInfoParams) error
func (*Client) GetSystemInterfaceCapabilities ¶
func (c *Client) GetSystemInterfaceCapabilities(ctx context.Context, interfaceType SystemInterfaceType) (response *GetSystemInterfaceCapabilitiesResponse, err error)
func (*Client) GetSystemRestartCause ¶
func (c *Client) GetSystemRestartCause(ctx context.Context) (response *GetSystemRestartCauseResponse, err error)
func (*Client) GetUserAccess ¶
func (*Client) GetUserPayloadAccess ¶ added in v0.7.4
func (*Client) GetUsername ¶
func (*Client) GetWatchdogTimer ¶ added in v0.2.0
func (c *Client) GetWatchdogTimer(ctx context.Context) (response *GetWatchdogTimerResponse, err error)
func (*Client) ManufacturingTestOn ¶
func (c *Client) ManufacturingTestOn(ctx context.Context) (response *ManufacturingTestOnResponse, err error)
If the device supports a "manufacturing test mode", this command is reserved to turn that mode on.
func (*Client) MasterWriteRead ¶
func (c *Client) MasterWriteRead(ctx context.Context, request *MasterWriteReadRequest) (*MasterWriteReadResponse, error)
func (*Client) OpenSession ¶
func (c *Client) OpenSession(ctx context.Context) (response *OpenSessionResponse, err error)
func (*Client) PETAcknowledge ¶ added in v0.7.0
func (c *Client) PETAcknowledge(ctx context.Context, request *PETAcknowledgeRequest) (response *PETAcknowledgeResponse, err error)
func (*Client) ParseRmcpResponse ¶
ParseRmcpResponse parses msg bytes. The response param should be passed as a pointer of the struct which implements the Response interface.
func (*Client) PlatformEventMessage ¶ added in v0.3.0
func (c *Client) PlatformEventMessage(ctx context.Context, request *PlatformEventMessageRequest) (response *PlatformEventMessageResponse, err error)
func (*Client) RAKPMessage1 ¶
func (c *Client) RAKPMessage1(ctx context.Context) (response *RAKPMessage2, err error)
func (*Client) RAKPMessage3 ¶
func (c *Client) RAKPMessage3(ctx context.Context) (response *RAKPMessage4, err error)
authAlg is used to parse the returned RAKPMessage4 message
func (*Client) RawCommand ¶ added in v0.4.1
func (*Client) ReadEventMessageBuffer ¶
func (c *Client) ReadEventMessageBuffer(ctx context.Context) (response *ReadEventMessageBufferResponse, err error)
func (*Client) ReadFRUData ¶
func (c *Client) ReadFRUData(ctx context.Context, fruDeviceID uint8, readOffset uint16, readCount uint8) (response *ReadFRUDataResponse, err error)
The command returns the specified data from the FRU Inventory Info area.
func (*Client) RearmSensorEvents ¶ added in v0.7.4
func (c *Client) RearmSensorEvents(ctx context.Context, request *RearmSensorEventsRequest) (response *RearmSensorEventsResponse, err error)
func (*Client) ReserveDeviceSDRRepo ¶
func (c *Client) ReserveDeviceSDRRepo(ctx context.Context) (response *ReserveDeviceSDRRepoResponse, err error)
This command is used to obtain a Reservation ID.
func (*Client) ReserveSDRRepo ¶ added in v0.7.0
func (c *Client) ReserveSDRRepo(ctx context.Context) (response *ReserveSDRRepoResponse, err error)
func (*Client) ReserveSEL ¶
func (c *Client) ReserveSEL(ctx context.Context) (response *ReserveSELResponse, err error)
func (*Client) ResetWatchdogTimer ¶ added in v0.2.0
func (c *Client) ResetWatchdogTimer(ctx context.Context) (response *ResetWatchdogTimerResponse, err error)
func (*Client) RmcpPing ¶
func (c *Client) RmcpPing(ctx context.Context) (response *RmcpPingResponse, err error)
func (*Client) SOLActivating ¶ added in v0.2.0
func (c *Client) SOLActivating(ctx context.Context, request *SOLActivatingRequest) (response *SOLActivatingResponse, err error)
func (*Client) SendMessage ¶
func (*Client) SessionPrivilegeLevel ¶
func (c *Client) SessionPrivilegeLevel() PrivilegeLevel
func (*Client) SetACPIPowerState ¶
func (c *Client) SetACPIPowerState(ctx context.Context, request *SetACPIPowerStateRequest) (err error)
This command is provided to allow system software to tell a controller the present ACPI power state of the system.
func (*Client) SetBMCGlobalEnables ¶
func (*Client) SetBootDevice ¶ added in v0.3.0
func (c *Client) SetBootDevice(ctx context.Context, bootDeviceSelector BootDeviceSelector, bootType BIOSBootType, persist bool) error
SetBootDevice set the boot device for next boot. persist of false means it applies to next boot only. persist of true means this setting is persistent for all future boots.
func (*Client) SetBootParamBootFlags ¶ added in v0.3.0
func (c *Client) SetBootParamBootFlags(ctx context.Context, bootFlags *BootOptionParam_BootFlags) error
func (*Client) SetBootParamClearAck ¶ added in v0.3.0
func (c *Client) SetBootParamClearAck(ctx context.Context, by BootInfoAcknowledgeBy) error
func (*Client) SetBootParamSetInProgress ¶ added in v0.7.0
func (c *Client) SetBootParamSetInProgress(ctx context.Context, setInProgress SetInProgressState) error
func (*Client) SetChannelAccess ¶
func (c *Client) SetChannelAccess(ctx context.Context, request *SetChannelAccessRequest) (response *SetChannelAccessResponse, err error)
func (*Client) SetChannelSecurityKeys ¶ added in v0.7.4
func (c *Client) SetChannelSecurityKeys(ctx context.Context, request *SetChannelSecurityKeysRequest) (response *SetChannelSecurityKeysResponse, err error)
func (*Client) SetChassisCapabilities ¶
func (c *Client) SetChassisCapabilities(ctx context.Context, request *SetChassisCapabilitiesRequest) (response *SetChassisCapabilitiesResponse, err error)
func (*Client) SetCommandEnables ¶ added in v0.7.4
func (c *Client) SetCommandEnables(ctx context.Context, request *SetCommandEnablesRequest) (response *SetCommandEnablesResponse, err error)
func (*Client) SetCommandSubfunctionEnables ¶ added in v0.7.4
func (c *Client) SetCommandSubfunctionEnables(ctx context.Context, request *SetCommandSubfunctionEnablesRequest) (response *SetCommandSubfunctionEnablesResponse, err error)
func (*Client) SetDCMIAssetTag ¶ added in v0.7.0
func (*Client) SetDCMIAssetTagFull ¶ added in v0.7.0
func (*Client) SetDCMIConfigParam ¶ added in v0.7.1
func (c *Client) SetDCMIConfigParam(ctx context.Context, paramSelector DCMIConfigParamSelector, setSelector uint8, paramData []byte) (response *SetDCMIConfigParamResponse, err error)
func (*Client) SetDCMIConfigParamFor ¶ added in v0.7.1
func (c *Client) SetDCMIConfigParamFor(ctx context.Context, param DCMIConfigParameter) (response *SetDCMIConfigParamResponse, err error)
func (*Client) SetDCMIMgmtControllerIdentifier ¶ added in v0.7.0
func (*Client) SetDCMIMgmtControllerIdentifierFull ¶ added in v0.7.0
func (*Client) SetDCMIPowerLimit ¶ added in v0.7.0
func (c *Client) SetDCMIPowerLimit(ctx context.Context, request *SetDCMIPowerLimitRequest) (response *SetDCMIPowerLimitResponse, err error)
SetDCMIPowerLimit sends a DCMI "Get Power Reading" command. See SetDCMIPowerLimitRequest for details.
func (*Client) SetDCMIThermalLimit ¶ added in v0.7.0
func (c *Client) SetDCMIThermalLimit(ctx context.Context, request *SetDCMIThermalLimitRequest) (response *SetDCMIThermalLimitResponse, err error)
func (*Client) SetEventReceiver ¶ added in v0.3.0
func (*Client) SetEventReceiverDisable ¶ added in v0.7.0
func (*Client) SetFrontPanelEnables ¶
func (c *Client) SetFrontPanelEnables(ctx context.Context, disableSleepButton bool, disableDiagnosticButton bool, disableResetButton bool, disablePoweroffButton bool) (response *SetFrontPanelEnablesResponse, err error)
The following command is used to enable or disable the buttons on the front panel of the chassis.
func (*Client) SetLanConfigParam ¶ added in v0.7.1
func (c *Client) SetLanConfigParam(ctx context.Context, channelNumber uint8, paramSelector LanConfigParamSelector, configData []byte) (response *SetLanConfigParamResponse, err error)
func (*Client) SetLanConfigParamFor ¶ added in v0.7.1
func (*Client) SetLastProcessedEventId ¶ added in v0.5.5
func (*Client) SetPEFConfigParam ¶ added in v0.7.1
func (c *Client) SetPEFConfigParam(ctx context.Context, paramSelector PEFConfigParamSelector, paramData []byte) (response *SetPEFConfigParamResponse, err error)
Todo
func (*Client) SetPowerCycleInterval ¶
func (*Client) SetPowerRestorePolicy ¶
func (c *Client) SetPowerRestorePolicy(ctx context.Context, policy PowerRestorePolicy) (response *SetPowerRestorePolicyResponse, err error)
func (*Client) SetSELTime ¶ added in v0.2.0
func (*Client) SetSELTimeUTCOffset ¶ added in v0.2.0
func (c *Client) SetSELTimeUTCOffset(ctx context.Context, minutesOffset int16) (response *SetSELTimeUTCOffsetResponse, err error)
SetSELTimeUTCOffset initializes and retrieve a UTC offset (timezone) that is associated with the SEL Time
func (*Client) SetSOLConfigParam ¶ added in v0.7.1
func (c *Client) SetSOLConfigParam(ctx context.Context, channelNumber uint8, paramSelector SOLConfigParamSelector, paramData []byte) (response *SetSOLConfigParamResponse, err error)
func (*Client) SetSOLConfigParamFor ¶ added in v0.7.1
func (*Client) SetSensorEventEnable ¶ added in v0.7.4
func (c *Client) SetSensorEventEnable(ctx context.Context, request *SetSensorEventEnableRequest) (response *SetSensorEventEnableResponse, err error)
func (*Client) SetSensorHysteresis ¶
func (c *Client) SetSensorHysteresis(ctx context.Context, sensorNumber uint8, positiveHysteresis uint8, negativeHysteresis uint8) (response *SetSensorHysteresisResponse, err error)
This command provides a mechanism for setting the hysteresis values associated with the thresholds of a sensor that has threshold based event generation.
func (*Client) SetSensorReadingAndEventStatus ¶
func (c *Client) SetSensorReadingAndEventStatus(ctx context.Context, request *SetSensorReadingAndEventStatusRequest) (response *SetSensorReadingAndEventStatusResponse, err error)
func (*Client) SetSensorThresholds ¶
func (c *Client) SetSensorThresholds(ctx context.Context, request *SetSensorThresholdsRequest) (response *SetSensorThresholdsResponse, err error)
SetSensorThresholds is to set the specified threshold for the given sensor. Note that the application issuing this command is responsible for ensuring that thresholds for a sensor are set in the proper order (e.g. that the upper critical threshold is set higher than the upper non-critical threshold)
Upper Non Recoverable area -----------------UNR threshold Upper Critical area -----------------UCR threshold Upper Non Critical area -----------------UNC threshold OK area -----------------LNC threshold Lower Non Critical area -----------------LCR threshold Lower Critical area -----------------LNR threshold Lower NonRecoverable area
This command provides a mechanism for setting the hysteresis values associated with the thresholds of a sensor that has threshold based event generation.
func (*Client) SetSensorType ¶
func (c *Client) SetSensorType(ctx context.Context, sensorNumber uint8, sensorType SensorType, eventReadingType EventReadingType) (response *SetSensorTypeResponse, err error)
func (*Client) SetSessionPrivilegeLevel ¶
func (c *Client) SetSessionPrivilegeLevel(ctx context.Context, privilegeLevel PrivilegeLevel) (response *SetSessionPrivilegeLevelResponse, err error)
func (*Client) SetSystemBootOptionsParam ¶ added in v0.7.2
func (c *Client) SetSystemBootOptionsParam(ctx context.Context, request *SetSystemBootOptionsParamRequest) (response *SetSystemBootOptionsParamResponse, err error)
This command is used to set parameters that direct the system boot following a system power up or reset. The boot flags only apply for one system restart. It is the responsibility of the system BIOS to read these settings from the BMC and then clear the boot flags
func (*Client) SetSystemBootOptionsParamFor ¶ added in v0.7.2
func (c *Client) SetSystemBootOptionsParamFor(ctx context.Context, param BootOptionParameter) error
func (*Client) SetSystemInfoParam ¶ added in v0.7.4
func (c *Client) SetSystemInfoParam(ctx context.Context, paramSelector SystemInfoParamSelector, paramData []byte) (response *SetSystemInfoParamResponse, err error)
func (*Client) SetSystemInfoParamFor ¶ added in v0.7.4
func (c *Client) SetSystemInfoParamFor(ctx context.Context, param SystemInfoParameter) error
func (*Client) SetUserAccess ¶
func (c *Client) SetUserAccess(ctx context.Context, request *SetUserAccessRequest) (response *SetUserAccessResponse, err error)
func (*Client) SetUserPassword ¶
func (*Client) SetUserPayloadAccess ¶ added in v0.7.4
func (c *Client) SetUserPayloadAccess(ctx context.Context, payloadType PayloadType, payloadInstance uint8) (response *SetUserPayloadAccessResponse, err error)
func (*Client) SetUsername ¶
func (*Client) SetWatchdogTimer ¶ added in v0.2.0
func (c *Client) SetWatchdogTimer(ctx context.Context) (response *SetWatchdogTimerResponse, err error)
func (*Client) SuspendARPs ¶
func (*Client) SuspendResumePayloadEncryption ¶ added in v0.7.4
func (c *Client) SuspendResumePayloadEncryption(ctx context.Context, payloadType PayloadType, payloadInstance uint8, operation PayloadEncryptionOperation) (response *SuspendResumePayloadEncryptionResponse, err error)
func (*Client) TestUserPassword ¶
func (*Client) ValidateRAKP2 ¶
ValidateRAKP2 validates RAKPMessage2 returned by BMC.
func (*Client) ValidateRAKP4 ¶
func (*Client) WithBufferSize ¶
func (*Client) WithCipherSuiteID ¶ added in v0.4.1
func (c *Client) WithCipherSuiteID(cipherSuiteID CipherSuiteID) *Client
WithCipherSuiteID sets a custom cipher suite which is used during OpenSession command. It is only valid for client with IPMI lanplus interface. For the custom cipherSuiteID to take effect, you must call WithCipherSuiteID before calling Connect method.
func (*Client) WithInterface ¶
func (*Client) WithMaxPrivilegeLevel ¶ added in v0.5.10
func (c *Client) WithMaxPrivilegeLevel(privilegeLevel PrivilegeLevel) *Client
WithMaxPrivilegeLevel sets a specified session privilege level to use.
func (*Client) WithRequesterAddr ¶ added in v0.7.0
func (*Client) WithResponderAddr ¶ added in v0.7.0
func (*Client) WithUDPProxy ¶ added in v0.3.3
func (*Client) WriteFRUData ¶
func (c *Client) WriteFRUData(ctx context.Context, fruDeviceID uint8, writeOffset uint16, writeData []byte) (response *WriteFRUDataResponse, err error)
The command writes the specified byte or word to the FRU Inventory Info area. This is a low level direct interface to a non-volatile storage area. This means that the interface does not interpret or check any semantics or formatting for the data being written.
type CloseSessionRequest ¶
type CloseSessionRequest struct { // For IPMI v2.0/RMCP+ this is the Managed System Session ID value that was generated by the BMC, not the ID from the remote console. If Session ID = 0000_0000h then an implementation can optionally enable this command to take an additional byte of parameter data that allows a session handle to be used to close a session. SessionID uint32 // Session Handle. (only present if Session ID = 0000_0000h) SessionHandle uint8 }
22.19
func (*CloseSessionRequest) Command ¶
func (req *CloseSessionRequest) Command() Command
func (*CloseSessionRequest) Pack ¶
func (req *CloseSessionRequest) Pack() []byte
type CloseSessionResponse ¶
type CloseSessionResponse struct { }
func (*CloseSessionResponse) CompletionCodes ¶
func (res *CloseSessionResponse) CompletionCodes() map[uint8]string
func (*CloseSessionResponse) Format ¶
func (res *CloseSessionResponse) Format() string
func (*CloseSessionResponse) Unpack ¶
func (res *CloseSessionResponse) Unpack(msg []byte) error
type ColdResetRequest ¶
type ColdResetRequest struct { }
20.2 Cold Reset Command
func (*ColdResetRequest) Command ¶
func (req *ColdResetRequest) Command() Command
func (*ColdResetRequest) Pack ¶
func (req *ColdResetRequest) Pack() []byte
type ColdResetResponse ¶
type ColdResetResponse struct { }
func (*ColdResetResponse) CompletionCodes ¶
func (res *ColdResetResponse) CompletionCodes() map[uint8]string
func (*ColdResetResponse) Format ¶
func (res *ColdResetResponse) Format() string
func (*ColdResetResponse) Unpack ¶
func (res *ColdResetResponse) Unpack(msg []byte) error
type CommandGetSupermicroBiosVersionRequest ¶ added in v0.3.0
type CommandGetSupermicroBiosVersionRequest struct { }
func (*CommandGetSupermicroBiosVersionRequest) Command ¶ added in v0.3.0
func (req *CommandGetSupermicroBiosVersionRequest) Command() Command
func (*CommandGetSupermicroBiosVersionRequest) Pack ¶ added in v0.3.0
func (req *CommandGetSupermicroBiosVersionRequest) Pack() []byte
type CommandGetSupermicroBiosVersionResponse ¶ added in v0.3.0
type CommandGetSupermicroBiosVersionResponse struct {
Version string
}
func (*CommandGetSupermicroBiosVersionResponse) CompletionCodes ¶ added in v0.3.0
func (res *CommandGetSupermicroBiosVersionResponse) CompletionCodes() map[uint8]string
func (*CommandGetSupermicroBiosVersionResponse) Format ¶ added in v0.3.0
func (res *CommandGetSupermicroBiosVersionResponse) Format() string
func (*CommandGetSupermicroBiosVersionResponse) Unpack ¶ added in v0.3.0
func (res *CommandGetSupermicroBiosVersionResponse) Unpack(msg []byte) error
type CommandRangeMask ¶
type CommandRangeMask uint8
type CommandRawRequest ¶ added in v0.4.1
func (*CommandRawRequest) Command ¶ added in v0.4.1
func (req *CommandRawRequest) Command() Command
func (*CommandRawRequest) Pack ¶ added in v0.4.1
func (req *CommandRawRequest) Pack() []byte
type CommandRawResponse ¶ added in v0.4.1
type CommandRawResponse struct {
Response []byte
}
func (*CommandRawResponse) CompletionCodes ¶ added in v0.4.1
func (res *CommandRawResponse) CompletionCodes() map[uint8]string
func (*CommandRawResponse) Format ¶ added in v0.4.1
func (res *CommandRawResponse) Format() string
func (*CommandRawResponse) Unpack ¶ added in v0.4.1
func (res *CommandRawResponse) Unpack(msg []byte) error
type CommunityString ¶
type CommunityString [18]byte
func NewCommunityString ¶
func NewCommunityString(s string) CommunityString
func (CommunityString) String ¶
func (c CommunityString) String() string
type CompletionCode ¶
type CompletionCode uint8
const ( // GENERIC COMPLETION CODES 00h, C0h-FFh CompletionCodeNormal CompletionCode = 0x00 CompletionCodeNodeBusy CompletionCode = 0xC0 CompletionCodeInvalidCommand CompletionCode = 0xC1 CompletionCodeInvalidCommandForLUN CompletionCode = 0xC2 CompletionCodeProcessTimeout CompletionCode = 0xC3 CompletionCodeOutOfSpace CompletionCode = 0xC4 CompletionCodeReservationCanceled CompletionCode = 0xC5 CompletionCodeRequestDataTruncated CompletionCode = 0xC6 CompletionCodeRequestDataLengthInvalid CompletionCode = 0xC7 CompletionCodeRequestDataLengthLimitExceeded CompletionCode = 0xC8 CompletionCodeParameterOutOfRange CompletionCode = 0xC9 CompletionCodeCannotReturnRequestedDataBytes CompletionCode = 0xCA CompletionCodeRequestedDataNotPresent CompletionCode = 0xCB CompletionCodeRequestDataFieldInvalid CompletionCode = 0xCC CompletionCodeIllegalCommand CompletionCode = 0xCD CompletionCodeCannotProvideResponse CompletionCode = 0xCE CompletionCodeCannotExecuteDuplicatedRequest CompletionCode = 0xCF CompletionCodeCannotProvideResponseSDRRInUpdate CompletionCode = 0xD0 // SDRR, SDR Repository CompletionCodeCannotProvideResponseFirmwareUpdate CompletionCode = 0xD1 CompletionCodeCannotProvideResponseBMCInitialize CompletionCode = 0xD2 CompletionCodeCannotExecuteCommandSecurityRestrict CompletionCode = 0xD4 CompletionCodeCannotExecuteCommandNotSupported CompletionCode = 0xD5 CompletionCodeCannotExecuteCommandSubFnDisabled CompletionCode = 0xD6 CompletionCodeUnspecifiedError CompletionCode = 0xFF )
5.2 Table 5 for generic completion codes
func (CompletionCode) String ¶
func (cc CompletionCode) String() string
String return description of global completion code. Please use StrCC function to get description for any completion code returned for specific command response.
type ConfidentialityPayload ¶
type ConfidentialityPayload struct { // 02h = confidentiality algorithm PayloadType uint8 PayloadLength uint8 CryptAlg uint8 }
func (*ConfidentialityPayload) Pack ¶
func (p *ConfidentialityPayload) Pack() []byte
func (*ConfidentialityPayload) Unpack ¶
func (p *ConfidentialityPayload) Unpack(msg []byte) error
type ConsoleRedirectionControl ¶
type ConsoleRedirectionControl uint8
const ( ConsoleRedirectionControl_Default ConsoleRedirectionControl = 0 ConsoleRedirectionControl_Skip ConsoleRedirectionControl = 1 ConsoleRedirectionControl_Enable ConsoleRedirectionControl = 2 )
func (ConsoleRedirectionControl) String ¶
func (c ConsoleRedirectionControl) String() string
type CryptAlg ¶
type CryptAlg uint8
13.28.5 Confidentiality (Encryption) Algorithms AES is more secure than RC4 RC4 is cryptographically broken and should not be used for secure applications.
type DCMICapParamSelector ¶ added in v0.7.0
type DCMICapParamSelector uint8
func (DCMICapParamSelector) String ¶ added in v0.7.0
func (dcmiCapParamSelector DCMICapParamSelector) String() string
type DCMICapParam_EnhancedSystemPowerStatisticsAttributes ¶ added in v0.7.0
type DCMICapParam_EnhancedSystemPowerStatisticsAttributes struct { RollingCount uint8 RollingAverageTimePeriodsSec []int }
func (*DCMICapParam_EnhancedSystemPowerStatisticsAttributes) DCMICapParameter ¶ added in v0.7.0
func (param *DCMICapParam_EnhancedSystemPowerStatisticsAttributes) DCMICapParameter() DCMICapParamSelector
func (*DCMICapParam_EnhancedSystemPowerStatisticsAttributes) Format ¶ added in v0.7.0
func (param *DCMICapParam_EnhancedSystemPowerStatisticsAttributes) Format() string
func (*DCMICapParam_EnhancedSystemPowerStatisticsAttributes) Pack ¶ added in v0.7.0
func (param *DCMICapParam_EnhancedSystemPowerStatisticsAttributes) Pack() []byte
func (*DCMICapParam_EnhancedSystemPowerStatisticsAttributes) Unpack ¶ added in v0.7.0
func (param *DCMICapParam_EnhancedSystemPowerStatisticsAttributes) Unpack(paramData []byte) error
type DCMICapParam_ManageabilityAccessAttributes ¶ added in v0.7.0
type DCMICapParam_ManageabilityAccessAttributes struct { PrimaryLANChannelNumber uint8 SecondaryLANChannelNumber uint8 SerialChannelNumber uint8 }
func (*DCMICapParam_ManageabilityAccessAttributes) DCMICapParameter ¶ added in v0.7.0
func (param *DCMICapParam_ManageabilityAccessAttributes) DCMICapParameter() DCMICapParamSelector
func (*DCMICapParam_ManageabilityAccessAttributes) Format ¶ added in v0.7.0
func (param *DCMICapParam_ManageabilityAccessAttributes) Format() string
func (*DCMICapParam_ManageabilityAccessAttributes) Pack ¶ added in v0.7.0
func (param *DCMICapParam_ManageabilityAccessAttributes) Pack() []byte
func (*DCMICapParam_ManageabilityAccessAttributes) Unpack ¶ added in v0.7.0
func (param *DCMICapParam_ManageabilityAccessAttributes) Unpack(paramData []byte) error
type DCMICapParam_MandatoryPlatformAttributes ¶ added in v0.7.0
type DCMICapParam_MandatoryPlatformAttributes struct { SELAutoRolloverEnabled bool EntireSELFlushUponRollOver bool RecordLevelSELFlushUponRollOver bool SELEntriesCount uint16 //only 12 bits, [11-0] Number of SEL entries (Maximum 4096) TemperatrureSamplingFrequencySec uint8 }
func (*DCMICapParam_MandatoryPlatformAttributes) DCMICapParameter ¶ added in v0.7.0
func (param *DCMICapParam_MandatoryPlatformAttributes) DCMICapParameter() DCMICapParamSelector
func (*DCMICapParam_MandatoryPlatformAttributes) Format ¶ added in v0.7.0
func (param *DCMICapParam_MandatoryPlatformAttributes) Format() string
func (*DCMICapParam_MandatoryPlatformAttributes) Pack ¶ added in v0.7.0
func (param *DCMICapParam_MandatoryPlatformAttributes) Pack() []byte
func (*DCMICapParam_MandatoryPlatformAttributes) Unpack ¶ added in v0.7.0
func (param *DCMICapParam_MandatoryPlatformAttributes) Unpack(paramData []byte) error
type DCMICapParam_OptionalPlatformAttributes ¶ added in v0.7.0
type DCMICapParam_OptionalPlatformAttributes struct { PowerMgmtDeviceSlaveAddr uint8 PewerMgmtControllerChannelNumber uint8 DeviceRevision uint8 }
func (*DCMICapParam_OptionalPlatformAttributes) DCMICapParameter ¶ added in v0.7.0
func (param *DCMICapParam_OptionalPlatformAttributes) DCMICapParameter() DCMICapParamSelector
func (*DCMICapParam_OptionalPlatformAttributes) Format ¶ added in v0.7.0
func (param *DCMICapParam_OptionalPlatformAttributes) Format() string
func (*DCMICapParam_OptionalPlatformAttributes) Pack ¶ added in v0.7.0
func (param *DCMICapParam_OptionalPlatformAttributes) Pack() []byte
func (*DCMICapParam_OptionalPlatformAttributes) Unpack ¶ added in v0.7.0
func (param *DCMICapParam_OptionalPlatformAttributes) Unpack(paramData []byte) error
type DCMICapParam_SupportedDCMICapabilities ¶ added in v0.7.0
type DCMICapParam_SupportedDCMICapabilities struct { SupportPowerManagement bool SupportInBandKCS bool SupportOutOfBandSerial bool SupportOutOfBandLAN bool }
func (*DCMICapParam_SupportedDCMICapabilities) DCMICapParameter ¶ added in v0.7.0
func (param *DCMICapParam_SupportedDCMICapabilities) DCMICapParameter() DCMICapParamSelector
func (*DCMICapParam_SupportedDCMICapabilities) Format ¶ added in v0.7.0
func (param *DCMICapParam_SupportedDCMICapabilities) Format() string
func (*DCMICapParam_SupportedDCMICapabilities) Pack ¶ added in v0.7.0
func (param *DCMICapParam_SupportedDCMICapabilities) Pack() []byte
func (*DCMICapParam_SupportedDCMICapabilities) Unpack ¶ added in v0.7.0
func (param *DCMICapParam_SupportedDCMICapabilities) Unpack(paramData []byte) error
type DCMICapParameter ¶ added in v0.7.0
type DCMICapParameter interface { DCMICapParameter() DCMICapParamSelector Parameter }
type DCMICapParams ¶ added in v0.7.1
type DCMICapParams struct { SupportedDCMICapabilities *DCMICapParam_SupportedDCMICapabilities MandatoryPlatformAttributes *DCMICapParam_MandatoryPlatformAttributes OptionalPlatformAttributes *DCMICapParam_OptionalPlatformAttributes ManageabilityAccessAttributes *DCMICapParam_ManageabilityAccessAttributes EnhancedSystemPowerStatisticsAttributes *DCMICapParam_EnhancedSystemPowerStatisticsAttributes }
func (*DCMICapParams) Format ¶ added in v0.7.1
func (dcmiCapParams *DCMICapParams) Format() string
type DCMIConfigParamSelector ¶ added in v0.7.0
type DCMIConfigParamSelector uint8
const ( DCMIConfigParamSelector_ActivateDHCP DCMIConfigParamSelector = 0x01 DCMIConfigParamSelector_DiscoveryConfiguration DCMIConfigParamSelector = 0x02 DCMIConfigParamSelector_DHCPTiming1 DCMIConfigParamSelector = 0x03 DCMIConfigParamSelector_DHCPTiming2 DCMIConfigParamSelector = 0x04 DCMIConfigParamSelector_DHCPTiming3 DCMIConfigParamSelector = 0x05 )
func (DCMIConfigParamSelector) String ¶ added in v0.7.0
func (paramSelector DCMIConfigParamSelector) String() string
type DCMIConfigParam_ActivateDHCP ¶ added in v0.7.0
type DCMIConfigParam_ActivateDHCP struct { // Writing 01h to this parameter will trigger DHCP protocol restart using the latest parameter // settings, if DHCP is enabled. This can be used to ensure that the other DHCP configuration // parameters take effect immediately. Otherwise, the parameters may not take effect until the // next time the protocol restarts or a protocol timeout or lease expiration occurs. This is not a // non-volatile setting. It is only used to trigger a restart of the DHCP protocol. // // This parameter shall always return 0x00 when read. Activate bool }
func (*DCMIConfigParam_ActivateDHCP) DCMIConfigParameter ¶ added in v0.7.0
func (param *DCMIConfigParam_ActivateDHCP) DCMIConfigParameter() (paramSelector DCMIConfigParamSelector, setSelector uint8)
func (*DCMIConfigParam_ActivateDHCP) Format ¶ added in v0.7.0
func (param *DCMIConfigParam_ActivateDHCP) Format() string
func (*DCMIConfigParam_ActivateDHCP) Pack ¶ added in v0.7.0
func (param *DCMIConfigParam_ActivateDHCP) Pack() []byte
func (*DCMIConfigParam_ActivateDHCP) Unpack ¶ added in v0.7.0
func (param *DCMIConfigParam_ActivateDHCP) Unpack(paramData []byte) error
type DCMIConfigParam_DHCPTiming1 ¶ added in v0.7.0
type DCMIConfigParam_DHCPTiming1 struct { // This parameter sets the amount of time between the first attempt to reach a server and the // second attempt to reach a server. // // Each time a message is sent the timeout interval between messages is incremented by // twice the current interval multiplied by a pseudo random number between zero and one // if random back-off is enabled, or multiplied by one if random back-off is disabled. // // The recommended default is four seconds InitialTimeoutIntervalSec uint8 }
func (*DCMIConfigParam_DHCPTiming1) DCMIConfigParameter ¶ added in v0.7.0
func (param *DCMIConfigParam_DHCPTiming1) DCMIConfigParameter() (paramSelector DCMIConfigParamSelector, setSelector uint8)
func (*DCMIConfigParam_DHCPTiming1) Format ¶ added in v0.7.0
func (param *DCMIConfigParam_DHCPTiming1) Format() string
func (*DCMIConfigParam_DHCPTiming1) Pack ¶ added in v0.7.0
func (param *DCMIConfigParam_DHCPTiming1) Pack() []byte
func (*DCMIConfigParam_DHCPTiming1) Unpack ¶ added in v0.7.0
func (param *DCMIConfigParam_DHCPTiming1) Unpack(paramData []byte) error
type DCMIConfigParam_DHCPTiming2 ¶ added in v0.7.0
type DCMIConfigParam_DHCPTiming2 struct { // This parameter determines the amount of time that must pass between the time that the // client initially tries to determine its address and the time that it decides that it cannot contact // a server. If the last lease is expired, the client will restart the protocol after the defined retry // interval. The recommended default timeout is two minutes. After server contact timeout, the // client must wait for Server Contact Retry Interval before attempting to contact the server // again. ServerContactTimeoutIntervalSec uint8 }
func (*DCMIConfigParam_DHCPTiming2) DCMIConfigParameter ¶ added in v0.7.0
func (param *DCMIConfigParam_DHCPTiming2) DCMIConfigParameter() (paramSelector DCMIConfigParamSelector, setSelector uint8)
func (*DCMIConfigParam_DHCPTiming2) Format ¶ added in v0.7.0
func (param *DCMIConfigParam_DHCPTiming2) Format() string
func (*DCMIConfigParam_DHCPTiming2) Pack ¶ added in v0.7.0
func (param *DCMIConfigParam_DHCPTiming2) Pack() []byte
func (*DCMIConfigParam_DHCPTiming2) Unpack ¶ added in v0.7.0
func (param *DCMIConfigParam_DHCPTiming2) Unpack(paramData []byte) error
type DCMIConfigParam_DHCPTiming3 ¶ added in v0.7.0
type DCMIConfigParam_DHCPTiming3 struct { // This is the period between DHCP retries after Server contact timeout interval expires. This // parameter determines the time that must pass after the client has determined that there is no // DHCP server present before it tries again to contact a DHCP server. // // The recommended default timeout is sixty-four seconds ServerContactRetryIntervalSec uint8 }
func (*DCMIConfigParam_DHCPTiming3) DCMIConfigParameter ¶ added in v0.7.0
func (param *DCMIConfigParam_DHCPTiming3) DCMIConfigParameter() (paramSelector DCMIConfigParamSelector, setSelector uint8)
func (*DCMIConfigParam_DHCPTiming3) Format ¶ added in v0.7.0
func (param *DCMIConfigParam_DHCPTiming3) Format() string
func (*DCMIConfigParam_DHCPTiming3) Pack ¶ added in v0.7.0
func (param *DCMIConfigParam_DHCPTiming3) Pack() []byte
func (*DCMIConfigParam_DHCPTiming3) Unpack ¶ added in v0.7.0
func (param *DCMIConfigParam_DHCPTiming3) Unpack(paramData []byte) error
type DCMIConfigParam_DiscoveryConfiguration ¶ added in v0.7.0
type DCMIConfigParam_DiscoveryConfiguration struct { RandomBackoffEnabled bool IncludeDHCPOption60And43 bool IncludeDHCPOption12 bool }
func (*DCMIConfigParam_DiscoveryConfiguration) DCMIConfigParameter ¶ added in v0.7.0
func (param *DCMIConfigParam_DiscoveryConfiguration) DCMIConfigParameter() (paramSelector DCMIConfigParamSelector, setSelector uint8)
func (*DCMIConfigParam_DiscoveryConfiguration) Format ¶ added in v0.7.0
func (param *DCMIConfigParam_DiscoveryConfiguration) Format() string
func (*DCMIConfigParam_DiscoveryConfiguration) Pack ¶ added in v0.7.0
func (param *DCMIConfigParam_DiscoveryConfiguration) Pack() []byte
func (*DCMIConfigParam_DiscoveryConfiguration) Unpack ¶ added in v0.7.0
func (param *DCMIConfigParam_DiscoveryConfiguration) Unpack(paramData []byte) error
type DCMIConfigParameter ¶ added in v0.7.0
type DCMIConfigParameter interface { DCMIConfigParameter() (paramSelector DCMIConfigParamSelector, setSelector uint8) Parameter }
type DCMIConfigParams ¶ added in v0.7.1
type DCMIConfigParams struct { ActivateDHCP *DCMIConfigParam_ActivateDHCP DiscoveryConfiguration *DCMIConfigParam_DiscoveryConfiguration DHCPTiming1 *DCMIConfigParam_DHCPTiming1 DHCPTiming2 *DCMIConfigParam_DHCPTiming2 DHCPTiming3 *DCMIConfigParam_DHCPTiming3 }
func (*DCMIConfigParams) Format ¶ added in v0.7.1
func (dcmiConfigParams *DCMIConfigParams) Format() string
type DCMIExceptionAction ¶ added in v0.7.0
type DCMIExceptionAction uint8
[DCMI specification v1.5]: 6.6.3 Set Power Limit Exception Actions, taken if the Power Limit is exceeded and cannot be controlled within the Correction Time Limit
const ( DCMIExceptionAction_NoAction DCMIExceptionAction = 0x00 DCMIExceptionAction_PowerOffAndLogSEL DCMIExceptionAction = 0x01 DCMIExceptionAction_LogSEL DCMIExceptionAction = 0x11 )
func (DCMIExceptionAction) String ¶ added in v0.7.0
func (a DCMIExceptionAction) String() string
type DCMITemperatureReading ¶ added in v0.7.0
type DCMITemperatureReading struct { TemperatureReading int8 EntityInstance EntityInstance EntityID EntityID }
type DeactivatePayloadRequest ¶ added in v0.7.4
type DeactivatePayloadRequest struct { PayloadType PayloadType PayloadInstance uint8 }
24.2 Deactivate Payload Command
func (DeactivatePayloadRequest) Command ¶ added in v0.7.4
func (req DeactivatePayloadRequest) Command() Command
func (*DeactivatePayloadRequest) Pack ¶ added in v0.7.4
func (req *DeactivatePayloadRequest) Pack() []byte
type DeactivatePayloadResponse ¶ added in v0.7.4
type DeactivatePayloadResponse struct { }
func (*DeactivatePayloadResponse) CompletionCodes ¶ added in v0.7.4
func (*DeactivatePayloadResponse) CompletionCodes() map[uint8]string
func (*DeactivatePayloadResponse) Format ¶ added in v0.7.4
func (res *DeactivatePayloadResponse) Format() string
func (*DeactivatePayloadResponse) Unpack ¶ added in v0.7.4
func (res *DeactivatePayloadResponse) Unpack(msg []byte) error
type DeleteSELEntryRequest ¶ added in v0.2.0
31.8 Delete SEL Entry Command
func (*DeleteSELEntryRequest) Command ¶ added in v0.2.0
func (req *DeleteSELEntryRequest) Command() Command
func (*DeleteSELEntryRequest) Pack ¶ added in v0.2.0
func (req *DeleteSELEntryRequest) Pack() []byte
type DeleteSELEntryResponse ¶ added in v0.2.0
type DeleteSELEntryResponse struct {
RecordID uint16
}
func (*DeleteSELEntryResponse) CompletionCodes ¶ added in v0.2.0
func (res *DeleteSELEntryResponse) CompletionCodes() map[uint8]string
func (*DeleteSELEntryResponse) Format ¶ added in v0.2.0
func (res *DeleteSELEntryResponse) Format() string
func (*DeleteSELEntryResponse) Unpack ¶ added in v0.2.0
func (res *DeleteSELEntryResponse) Unpack(msg []byte) error
type DevicePowerState ¶
type DevicePowerState uint8
func (DevicePowerState) String ¶
func (s DevicePowerState) String() string
type DeviceType ¶ added in v0.2.0
type DeviceType uint16
43.13 Device Type Codes DeviceType codes are used to identify different types of devices on an IPMB, PCI Management Bus, or Private Management Bus connection to an IPMI management controller
func (DeviceType) String ¶ added in v0.2.0
func (d DeviceType) String() string
type EnableMessageChannelReceiveRequest ¶
type EnableMessageChannelReceiveRequest struct { ChannelNumber uint8 // [7:2] - reserved // [1:0] - 00b = disable channel // 01b = enable channel // 10b = get channel enable/disable state // 11b = reserved ChannelState uint8 }
22.5 Enable Message Channel Receive Command
func (*EnableMessageChannelReceiveRequest) Command ¶
func (req *EnableMessageChannelReceiveRequest) Command() Command
func (*EnableMessageChannelReceiveRequest) Pack ¶
func (req *EnableMessageChannelReceiveRequest) Pack() []byte
type EnableMessageChannelReceiveResponse ¶
func (*EnableMessageChannelReceiveResponse) CompletionCodes ¶
func (*EnableMessageChannelReceiveResponse) CompletionCodes() map[uint8]string
func (*EnableMessageChannelReceiveResponse) Format ¶
func (res *EnableMessageChannelReceiveResponse) Format() string
func (*EnableMessageChannelReceiveResponse) Unpack ¶
func (res *EnableMessageChannelReceiveResponse) Unpack(msg []byte) error
type EntityID ¶
type EntityID uint8
43.14 Entity IDs 39. Using Entity IDs EntityID can be seen as Entity Type
1. An Entity ID is a standardized numeric code that is used in SDRs to identify the types of physical entities or FRUs in the system.
2. The Entity ID is associated with an Entity Instance value that is used to indicate the particular instance of an entity
3. The SDR for a sensor includes Entity ID and Entity Instance fields that identify the entity associated with the sensor.
type EntityInstance ¶
type EntityInstance uint8
see: 39.1 System- and Device-relative Entity Instance Values
Entity Instance values in the system-relative range are required to be unique for all entities with the same Entity ID in the system.
Device-relative Entity Instance values are only required to be unique among all entities that have the same Entity ID within a given device (management controller).
For example, management controller A and B could both have FAN entities that have an Entity Instance value of 60h.
EntityInstance only occupy 7 bits, range is 0x00 ~ 0x7f
func (EntityInstance) Type ¶
func (e EntityInstance) Type() string
type Event ¶
type Event struct { EventName string EventDesc string // for generic event, different sensor type may means different severity AssertionSeverityMap map[SensorType]EventSeverity DeassertionSeverityMap map[SensorType]EventSeverity // for sensor specific event, severity is certain. AssertionSeverity EventSeverity DeassertionSeverity EventSeverity ED2 map[uint8]string // EventData2 ED3 map[uint8]string // EventData3 }
type EventData ¶
29.7 Event Data Field Formats
func (*EventData) EventReadingOffset ¶
29.7 Event Data Field Formats Event Data 1 [3:0] - for threshold sensors: Offset from Event/Reading Code for threshold event. for discrete sensors: Offset from Event/Reading Code for discrete event state (corresponding 15 possible discrete events)
type EventDir ¶
type EventDir bool
Event direction, true for deassertion, false for assertion.
see: 32.1 SEL Event Records Table (Byte 13)
type EventReadingType ¶
type EventReadingType uint8
41.2 Event/Reading Type Code 42.1 Event/Reading Type Codes
const ( // Unspecified EventReadingTypeUnspecified EventReadingType = 0x00 // Threshold EventReadingTypeThreshold EventReadingType = 0x01 // Generic EventReadingTypeTransitionState EventReadingType = 0x02 EventReadingTypeState EventReadingType = 0x03 EventReadingTypePredictiveFailure EventReadingType = 0x04 EventReadingTypeLimit EventReadingType = 0x05 EventReadingTypePerformance EventReadingType = 0x06 EventReadingTypeTransitionSeverity EventReadingType = 0x07 EventReadingTypeDevicePresent EventReadingType = 0x08 EventReadingTypeDeviceEnabled EventReadingType = 0x09 EventReadingTypeTransitionAvailability EventReadingType = 0x0a EventReadingTypeRedundancy EventReadingType = 0x0b EventReadingTypeACPIPowerState EventReadingType = 0x0c EventReadingTypeSensorSpecific EventReadingType = 0x6f // OEM EventReadingTypeOEMMin EventReadingType = 0x70 EventReadingTypeOEMMax EventReadingType = 0x7f )
func (EventReadingType) Event ¶ added in v0.2.0
func (typ EventReadingType) Event(sensorType SensorType, eventData EventData) *Event
Event return the predefined Event description struct.
func (EventReadingType) EventForOffset ¶ added in v0.5.6
func (typ EventReadingType) EventForOffset(sensorType SensorType, eventOffset uint8) *Event
func (EventReadingType) EventSeverity ¶ added in v0.2.0
func (typ EventReadingType) EventSeverity(sensorType SensorType, eventData EventData, eventDir EventDir) EventSeverity
EventSeverity return the severity for the event. Todo, refactor
func (EventReadingType) EventString ¶
func (typ EventReadingType) EventString(sensorType SensorType, eventData EventData) string
EventString returns description of the event
func (EventReadingType) IsThreshold ¶ added in v0.2.0
func (typ EventReadingType) IsThreshold() bool
func (EventReadingType) SensorClass ¶ added in v0.2.0
func (typ EventReadingType) SensorClass() SensorClass
func (EventReadingType) String ¶
func (typ EventReadingType) String() string
type EventSeverity ¶
type EventSeverity string
const ( EventSeverityInfo EventSeverity = "Info" EventSeverityOK EventSeverity = "OK" EventSeverityWarning EventSeverity = "Warning" EventSeverityCritical EventSeverity = "Critical" EventSeverityDegraded EventSeverity = "Degraded" EventSeverityNonFatal EventSeverity = "Non-fatal" )
type FRU ¶
type FRU struct { CommonHeader *FRUCommonHeader InternalUseArea *FRUInternalUseArea ChassisInfoArea *FRUChassisInfoArea BoardInfoArea *FRUBoardInfoArea ProductInfoArea *FRUProductInfoArea MultiRecords []*FRUMultiRecord // contains filtered or unexported fields }
func (*FRU) DeviceName ¶ added in v0.2.0
type FRUBoardInfoArea ¶
type FRUBoardInfoArea struct { FormatVersion uint8 Length8B uint8 LanguageCode uint8 MfgDateTime time.Time ManufacturerTypeLength TypeLength Manufacturer []byte ProductNameTypeLength TypeLength ProductName []byte SerialNumberTypeLength TypeLength SerialNumber []byte PartNumberTypeLength TypeLength PartNumber []byte FRUFileIDTypeLength TypeLength FRUFileID []byte Custom [][]byte Unused []byte Checksum uint8 }
FRUBoardInfoArea provides Serial Number, Part Number, and other information about the board that the FRU Information Device is located on. The name 'Board Info Area' is somewhat a misnomer, because the usage is not restricted to just circuit boards. This area is also typically used to provide FRU information for any replaceable entities, boards, or sub-assemblies that are not sold as standalone products separate from other components. For example, individual boards from a board set, or a sub-chassis or backplane that's part of a larger chassis.1
see: FRU/11. Board Info Area Format
func (*FRUBoardInfoArea) Unpack ¶ added in v0.2.0
func (fruBoard *FRUBoardInfoArea) Unpack(msg []byte) error
type FRUChassisInfoArea ¶
type FRUChassisInfoArea struct { FormatVersion uint8 Length8B uint8 ChassisType ChassisType PartNumberTypeLength TypeLength PartNumber []byte SerialNumberTypeLength TypeLength SerialNumber []byte Custom [][]byte Unused []byte Checksum uint8 }
FRUChassisInfoArea is used to hold Serial Number, Part Number, and other information about the system chassis. A system can have multiple FRU Information Devices within a chassis, but only one device should provide the Chassis Info Area.
see: FRU/10. Chassis Info Area Format
func (*FRUChassisInfoArea) Unpack ¶ added in v0.2.0
func (fruChassis *FRUChassisInfoArea) Unpack(msg []byte) error
type FRUCommonHeader ¶
type FRUCommonHeader struct { FormatVersion uint8 InternalOffset8B uint8 ChassisOffset8B uint8 BoardOffset8B uint8 ProductOffset8B uint8 MultiRecordsOffset8B uint8 Checksum uint8 }
FRUCommonHeader is mandatory for all FRU Information Device implementations. It holds version information for the overall information format specification and offsets to the other information areas.
The other areas may or may not be present based on the application of the device. The offset unit in wire is in multiples of 8 bytes, offset value 0x0 indicates that this area is not present.
ref: FRU/8. Common Header Format
func (*FRUCommonHeader) Pack ¶
func (s *FRUCommonHeader) Pack() []byte
func (*FRUCommonHeader) String ¶ added in v0.2.0
func (s *FRUCommonHeader) String() string
func (*FRUCommonHeader) Unpack ¶ added in v0.2.0
func (s *FRUCommonHeader) Unpack(msg []byte) error
func (*FRUCommonHeader) Valid ¶ added in v0.2.0
func (s *FRUCommonHeader) Valid() bool
type FRUInternalUseArea ¶
FRUInternalUseArea provides private, implementation-specific information storage for other devices that exist on the same FRU as the FRU Information Device.
The Internal Use Area is usually used to provide private non-volatile storage for a management controller.
see: FRU/9. Internal Use Area Format
type FRULocation ¶ added in v0.2.0
type FRULocation string
38. Accessing FRU Devices
FRU devices can located in three different types of location.
const ( // FRU Location: FRU Device behind a management controller // // only logical FRU Device can be accessed via FRU commands to mgmt controller // // Access Method: // Read/Write FRU Data commands to management controller providing access to the FRU Device. // // Use Read/WriteFRUData command to access FRU. // DeviceAccessAddress (Slave Address of IPMB) // FRUDeviceID_SlaveAddress FRULocation_MgmtController FRULocation = "on management controller" // FRU Location: SEEPROM On private bus behind a management controller // // Access Method: // Master Write-Read command to management controller that provides access to the private bus. // // Use MasterWriteRead command to access FRU. // DeviceAccessAddress (Slave Address of IPMB) // PrivateBusID // FRUDeviceID_SlaveAddress (Slave Address of SEEPROM on the Private Bus) FRULocation_PrivateBus FRULocation = "on private bus" // FRU Location : SEEPROM Device directly on IPMB // // Access Method: // Master Write-Read command through BMC from system software, or access via other interface // providing low-level I2C access to the IPMB. // // Use MasterWriteRead command to access FRU. // FRUDeviceID_SlaveAddress (slave address Of SEEPROM on the IPMB) FRULocation_IPMB FRULocation = "directly on IPMB" )
type FRUMultiRecord ¶
type FRUMultiRecord struct { RecordType FRURecordType // used to identify the information contained in the record EndOfList bool // indicates if this record is the last record in the MultiRecord area // Record Format version (=2h unless otherwise specified) // This field is used to identify the revision level of information stored in this area. // This number will start at zero for each new area. If changes need to be made to the record, // e.g. fields added/removed, the version number will be increased to reflect the change. FormatVersion uint8 // RecordLength indicates the number of bytes of data in the record. This byte can also be used to find the // next area in the list. If the "End of List" bit is zero, the length can be added the starting offset of the current // Record Data to get the offset of the next Record Header. This field allows for 0 to 255 bytes of data for // each record. RecordLength uint8 RecordChecksum uint8 HeaderChecksum uint8 RecordData []byte }
The MultiRecord Info Area provides a region that holds one or more records where the type and format of the information is specified in the individual headers for the records.
see: FRU/16. MultiRecord Area
func (*FRUMultiRecord) Unpack ¶ added in v0.2.0
func (fruMultiRecord *FRUMultiRecord) Unpack(msg []byte) error
type FRUProductInfoArea ¶
type FRUProductInfoArea struct { FormatVersion uint8 Length8B uint8 LanguageCode uint8 ManufacturerTypeLength TypeLength Manufacturer []byte NameTypeLength TypeLength Name []byte PartModelTypeLength TypeLength PartModel []byte VersionTypeLength TypeLength Version []byte SerialNumberTypeLength TypeLength SerialNumber []byte AssetTagTypeLength TypeLength AssetTag []byte FRUFileIDTypeLength TypeLength FRUFileID []byte Custom [][]byte Unused []byte Checksum uint8 }
The Product Info Area is present if the FRU itself is a separate product. This is typically seen when the FRU is an add-in card, sub-assembly, or a power supply from a separate vendor, etc. When this area is provided in the FRU Information Device that contains the Chassis Info Area, the product info is for the overall system, as initially manufactured.
see: FRU/12. Product Info Area Format
func (*FRUProductInfoArea) Unpack ¶ added in v0.2.0
func (fruProduct *FRUProductInfoArea) Unpack(msg []byte) error
type FRURecordType ¶ added in v0.2.0
type FRURecordType uint8
func (FRURecordType) String ¶ added in v0.2.0
func (t FRURecordType) String() string
type FRURecordTypeBaseCompatibility ¶ added in v0.2.0
type FRURecordTypeBaseCompatibility struct { ManufacturerID uint32 EntityID EntityID CompatibilityBase uint8 CompatibilityCodeStart uint8 CodeRangeMask uint8 }
FRU: 18.5 Base Compatibility Record (Record Type 0x04)
func (*FRURecordTypeBaseCompatibility) Unpack ¶ added in v0.2.0
func (f *FRURecordTypeBaseCompatibility) Unpack(msg []byte) error
type FRURecordTypeDCLoad ¶ added in v0.2.0
type FRURecordTypeDCLoad struct { OutputNumber uint8 NominalVoltage10mV int16 MinTolerableVoltage10mV int16 MaxTolerableVoltage10mV int16 RippleNoise1mV uint16 MinCurrentLoad1mA uint16 MaxCurrentLoad1mA uint16 }
FRU: 18.3 DC Load (Record Type 0x02)
func (*FRURecordTypeDCLoad) Unpack ¶ added in v0.2.0
func (output *FRURecordTypeDCLoad) Unpack(msg []byte) error
type FRURecordTypeDCOutput ¶ added in v0.2.0
type FRURecordTypeDCOutput struct { // if the power supply provides this output even when the power supply is switched off. OutputWhenOff bool OutputNumber uint8 // Expected voltage from the power supply. Value is a signed short given in 10 millivolt increments. // 额定电压 毫-伏特 NominalVoltage10mV int16 MaxNegativeVoltage10mV int16 MaxPositiveVoltage10mV int16 RippleNoise1mV uint16 // 毫-安培 MinCurrentDraw1mA uint16 MaxCurrentDraw1mA uint16 }
FRU: 18.2 DC Output (Record Type 0x01)
func (*FRURecordTypeDCOutput) Unpack ¶ added in v0.2.0
func (output *FRURecordTypeDCOutput) Unpack(msg []byte) error
type FRURecordTypeExtendedCompatibilityRecord ¶ added in v0.5.0
type FRURecordTypeExtendedCompatibilityRecord struct { ManufacturerID uint32 EntityID EntityID CompatibilityBase uint8 CompatibilityCodeStart uint8 CodeRangeMask uint8 }
FRU: 18.6 Extended Compatibility Record (Record Type 0x05)
func (*FRURecordTypeExtendedCompatibilityRecord) Unpack ¶ added in v0.5.0
func (f *FRURecordTypeExtendedCompatibilityRecord) Unpack(msg []byte) error
type FRURecordTypeExtendedDCLoad ¶ added in v0.2.0
type FRURecordTypeExtendedDCLoad struct { IsCurrentUnit100mA bool // current units: true = 100 mA , false = 10 mA OutputNumber uint8 NominalVoltage10mV int16 MinVoltage10mV int16 MaxVoltage10mV int16 RippleNoise1mV int16 MinCurrentLoad uint16 // units is determined by IsCurrentUnit100mA field MaxCurrentLoad uint16 // units is determined by IsCurrentUnit100mA field }
FRU: 18.3a Extended DC Load (Record Type 0x0A)
func (*FRURecordTypeExtendedDCLoad) Unpack ¶ added in v0.2.0
func (f *FRURecordTypeExtendedDCLoad) Unpack(msg []byte) error
type FRURecordTypeExtendedDCOutput ¶ added in v0.5.0
type FRURecordTypeExtendedDCOutput struct { // if the power supply provides this output even when the power supply is switched off. OutputWhenOff bool // This record can be used to support power supplies with outputs that exceed 65.535 Amps. // 0b = 10 mA // 1b = 100 mA CurrentUnits100 bool OutputNumber uint8 // Expected voltage from the power supply. Value is a signed short given in 10 millivolt increments. // 毫-伏特 NominalVoltage10mV int16 MaxNegativeVoltage10mV int16 MaxPositiveVoltage10mV int16 RippleNoise uint16 // The unit is determined by CurrentUnits100 field. MinCurrentDraw uint16 MaxCurrentDraw uint16 }
FRU: 18.2a Extended DC Output (Record Type 0x09)
func (*FRURecordTypeExtendedDCOutput) Unpack ¶ added in v0.5.0
func (output *FRURecordTypeExtendedDCOutput) Unpack(msg []byte) error
type FRURecordTypeManagementAccess ¶ added in v0.2.0
type FRURecordTypeManagementAccess struct { SubRecordType ManagementAccessSubRecordType Data []byte // the size is MultiRecord.TypeLength.Length() - 1 }
FRU: 18.4 Management Access Record (Record Type 0x03)
func (*FRURecordTypeManagementAccess) Unpack ¶ added in v0.2.0
func (f *FRURecordTypeManagementAccess) Unpack(msg []byte) error
type FRURecordTypeOEM ¶ added in v0.2.0
FRU: 18.7 OEM Record (Record Types 0xC0-0xFF)
func (*FRURecordTypeOEM) Unpack ¶ added in v0.2.0
func (f *FRURecordTypeOEM) Unpack(msg []byte) error
type FRURecordTypePowerSupply ¶ added in v0.2.0
type FRURecordTypePowerSupply struct { // This field allows for Power Supplies with capacities from 0 to 4095 watts. OverallCapacity uint16 // The highest instantaneous VA value that this supply draws during operation (other than during Inrush). In integer units. FFFFh if not specified. PeakVA uint16 // Maximum inrush of current, in Amps, into the power supply. FFh if not specified. InrushCurrent uint8 // 涌入电流 // Number of milliseconds before power supply loading enters non-startup operating range. Set to 0 if no inrush current specified. InrushIntervalMilliSecond uint8 // This specifies the low end of acceptable voltage into the power supply. The units are 10mV. LowEndInputVoltageRange1 uint16 // This specifies the high end of acceptable voltage into the power supply. The units are 10mV. HighEndInputVoltageRange1 uint16 // This specifies the low end of acceptable voltage into the power supply. This field would be used if the power supply did not support auto-switch. Range 1 would define the 110V range, while range 2 would be used for 220V. The units are 10mV. LowEndInputVoltageRange2 uint16 // This specifies the high end of acceptable voltage into the power supply. This field would be used if the power supply did not support auto-switch. Range 1 would define the 110V range, while range 2 would be used for 220V. The units are 10mV. HighEndInputVoltageRange2 uint16 // This specifies the low end of acceptable frequency range into the power supply. Use 00h if supply accepts a DC input. LowEndInputFrequencyRange uint8 // This specifies the high end of acceptable frequency range into the power supply. Use 00h for both Low End and High End frequency range if supply only takes a DC input. HighEndInputFrequencyRange uint8 // Minimum number of milliseconds the power supply can hold up POWERGOOD (and maintain valid DC output) after input power is lost. InputDropoutToleranceMilliSecond uint8 HotSwapSupport bool AutoSwitch bool PowerFactorCorrection bool PredictiveFailSupport bool // the number of seconds peak wattage can be sustained (0-15 seconds) PeakWattageHoldupSecond uint8 // the peak wattage the power supply can produce during this time period PeakCapacity uint16 CombinedWattageVoltage1 uint8 // bit 7:4 - Voltage 1 CombinedWattageVoltage2 uint8 // bit 3:0 - Voltage 2 TotalCombinedWattage uint16 // This field serves two purposes. // It clarifies what type of predictive fail the power supply supports // (pass/fail signal or the tachometer output of the power supply fan) // and indicates the predictive failing point for tach outputs. // This field should be written as zero and ignored if the // predictive failure pin of the power supply is not supported. // // 0x00 Predictive fail pin indicates pass/fail // 0x01 - 0xFF Lower threshold to indicate predictive failure (Rotations per second) PredictiveFailTachometerLowerThreshold uint8 // RPS }
fru: 18.1 Power Supply Information (Record Type 0x00)
type GUIDMode ¶ added in v0.5.5
type GUIDMode uint8
GUIDMode is the way how to decode the 16 bytes GUID
type GeneratorID ¶
type GeneratorID uint16
GeneratorID is 2 bytes. the LSB means: Slave Address (for IPMB) or Software ID (for system software); the MSB means: Channel Number / LUN (for IPMB) or always 0 (for system software)
In some scenario, the GeneratorID is used as 1 byte, because for IPMB, the Slave Address and LUN info are carried in IPMI Request/Response Messages; and for system software, the MSB is always 0, so only LSB is need. 32.1 SEL Event Records
Byte 1 [7:1] - 7-bit Slave Address, or 7-bit system software ID [0] 0b = IPMB Slave Address, 1b = system software ID Byte 2 [7:4] - Channel number. Channel that event message was received over. 0h if the event message was received via the system interface, primary IPMB, or internally generated by the BMC. (New for IPMI v1.5. These bits were reserved in IPMI v1.0) [3:2] - reserved. Write as 00b. [1:0] - IPMB device LUN if byte 1 holds Slave Address. 00b otherwise
const ( GeneratorBMC GeneratorID = 0x0020 GeneratorBIOSPOST GeneratorID = 0x0001 GeneratorBIOSSMIHandler GeneratorID = 0x0033 GeneratorIntelNMFirmware GeneratorID = 0x002c // Node Manager GeneratorIntelMEFirmware GeneratorID = 0x602c // Management Engine GeneratorMicrosoftOS GeneratorID = 0x0041 // The **Open IPMI driver** supports the ability to put semi-custom and custom events in the system event log if a panic occurs. GeneratorLinuxKernelPanic GeneratorID = 0x0021 )
type GetACPIPowerStateRequest ¶
type GetACPIPowerStateRequest struct { }
20.7 Get ACPI Power State Command
func (*GetACPIPowerStateRequest) Command ¶
func (req *GetACPIPowerStateRequest) Command() Command
func (*GetACPIPowerStateRequest) Pack ¶
func (req *GetACPIPowerStateRequest) Pack() []byte
type GetACPIPowerStateResponse ¶
type GetACPIPowerStateResponse struct { SystemPowerState SystemPowerState DevicePowerState DevicePowerState }
func (*GetACPIPowerStateResponse) CompletionCodes ¶
func (res *GetACPIPowerStateResponse) CompletionCodes() map[uint8]string
func (*GetACPIPowerStateResponse) Format ¶
func (res *GetACPIPowerStateResponse) Format() string
func (*GetACPIPowerStateResponse) Unpack ¶
func (res *GetACPIPowerStateResponse) Unpack(msg []byte) error
type GetAuthCodeRequest ¶
type GetAuthCodeRequest struct { AuthType AuthType ChannelNumber uint8 UserID uint8 // data to hash (must be 16 bytes) Data [16]byte }
see 22.21
This command is used to send a block of data to the BMC, whereupon the BMC will return a hash of the data together concatenated with the internally stored password for the given channel and user
type GetAuthCodeResponse ¶ added in v0.5.0
type GetAuthCodeResponse struct { CompletionCode // For IPMI v1.5 AuthCode Number: AuthCode [16]byte // ForIPMI v2.0 Integrity Algorithm Number // Resultant hash, per selected Integrity algorithm. Up to 20 bytes. An // implementation can elect to return a variable length field based on the size of // the hash for the given integrity algorithm, or can return a fixed field where the // hash data is followed by 00h bytes as needed to pad the data to 20 bytes. Hash []byte }
type GetBMCGlobalEnablesRequest ¶
type GetBMCGlobalEnablesRequest struct { }
22.2 Get BMC Global Enables Command
func (*GetBMCGlobalEnablesRequest) Command ¶
func (req *GetBMCGlobalEnablesRequest) Command() Command
func (*GetBMCGlobalEnablesRequest) Pack ¶
func (req *GetBMCGlobalEnablesRequest) Pack() []byte
type GetBMCGlobalEnablesResponse ¶
type GetBMCGlobalEnablesResponse struct { OEM2Enabled bool OEM1Enabled bool OEM0Enabled bool SystemEventLoggingEnabled bool EventMessageBufferEnabled bool EventMessageBufferFullInterruptEnabled bool ReceiveMessageQueueInterruptEnabled bool }
func (*GetBMCGlobalEnablesResponse) CompletionCodes ¶
func (*GetBMCGlobalEnablesResponse) CompletionCodes() map[uint8]string
func (*GetBMCGlobalEnablesResponse) Format ¶
func (res *GetBMCGlobalEnablesResponse) Format() string
func (*GetBMCGlobalEnablesResponse) Unpack ¶
func (res *GetBMCGlobalEnablesResponse) Unpack(msg []byte) error
type GetBTInterfaceCapabilitiesRequest ¶
type GetBTInterfaceCapabilitiesRequest struct { }
22.10 Get BT Interface Capabilities Command
func (*GetBTInterfaceCapabilitiesRequest) Command ¶
func (req *GetBTInterfaceCapabilitiesRequest) Command() Command
func (*GetBTInterfaceCapabilitiesRequest) Pack ¶
func (req *GetBTInterfaceCapabilitiesRequest) Pack() []byte
type GetBTInterfaceCapabilitiesResponse ¶
type GetBTInterfaceCapabilitiesResponse struct { OutstandingRequestsCountSupported uint8 InputBufferMessageSizeBytes uint8 OutputBufferMessageSizeBytes uint8 BMCRequestToResponseTimeSec uint8 RecommendedRetries uint8 }
func (*GetBTInterfaceCapabilitiesResponse) CompletionCodes ¶
func (*GetBTInterfaceCapabilitiesResponse) CompletionCodes() map[uint8]string
func (*GetBTInterfaceCapabilitiesResponse) Format ¶
func (res *GetBTInterfaceCapabilitiesResponse) Format() string
func (*GetBTInterfaceCapabilitiesResponse) Unpack ¶
func (res *GetBTInterfaceCapabilitiesResponse) Unpack(msg []byte) error
type GetChannelAccessRequest ¶
type GetChannelAccessRequest struct { ChannelNumber uint8 AccessOption ChannelAccessOption }
22.23 Get Channel Access Command
func (*GetChannelAccessRequest) Command ¶
func (req *GetChannelAccessRequest) Command() Command
func (*GetChannelAccessRequest) Pack ¶
func (req *GetChannelAccessRequest) Pack() []byte
type GetChannelAccessResponse ¶
type GetChannelAccessResponse struct { PEFAlertingDisabled bool PerMsgAuthDisabled bool UserLevelAuthDisabled bool AccessMode ChannelAccessMode MaxPrivilegeLevel PrivilegeLevel }
func (*GetChannelAccessResponse) CompletionCodes ¶
func (res *GetChannelAccessResponse) CompletionCodes() map[uint8]string
func (*GetChannelAccessResponse) Format ¶
func (res *GetChannelAccessResponse) Format() string
func (*GetChannelAccessResponse) Unpack ¶
func (res *GetChannelAccessResponse) Unpack(msg []byte) error
type GetChannelAuthenticationCapabilitiesRequest ¶
type GetChannelAuthenticationCapabilitiesRequest struct { // [7] // - 1b = get IPMI v2.0+ extended data. // If the given channel supports authentication but does not support RMCP+ // (e.g. a serial channel), then the Response data should return with bit [5] of byte 4 = 0b, byte 5 should return 01h, // // - 0b = Backward compatible with IPMI v1.5. Response data only returns // bytes 1:9, bit [7] of byte 3 (Authentication Type Support) and bit [5] of byte 4 returns as 0b, bit [5] of byte byte 5 returns 00h. // [6:4] - reserved IPMIv20Extended bool // [3:0] - channel number. // 0h-Bh, Fh = channel numbers // Eh = retrieve information for channel this request was issued on ChannelNumber uint8 // Requested Maximum Privilege Level MaximumPrivilegeLevel PrivilegeLevel }
13.14 22.13
func (*GetChannelAuthenticationCapabilitiesRequest) Command ¶
func (req *GetChannelAuthenticationCapabilitiesRequest) Command() Command
func (*GetChannelAuthenticationCapabilitiesRequest) Pack ¶
func (req *GetChannelAuthenticationCapabilitiesRequest) Pack() []byte
type GetChannelAuthenticationCapabilitiesResponse ¶
type GetChannelAuthenticationCapabilitiesResponse struct { // Channel number that the Authentication Capabilities is being returned for. // If the channel number in the request was set to Eh, this will return // the channel number for the channel that the request was received on ChannelNumber uint8 // Returns the setting of the Authentication Type Enable field from the // configuration parameters for the given channel that corresponds to // the Requested Maximum Privilege Level. // [7] - // 1b = IPMI v2.0+ extended capabilities available. See Extended Capabilities field, below. // 0b = IPMI v1.5 support only. IPMIv20ExtendedAvailable bool // [5:0] - IPMI v1.5 Authentication type(s) enabled for given Requested Maximum Privilege Level AuthTypeNoneSupported bool // bit 0 AuthTypeMD2Supported bool // bit 1 AuthTypeMD5Supported bool // bit 2 AuthTypePasswordSupported bool // bit 4 AuthTypeOEMProprietarySupported bool // bit 5 // [5] - Kg status (two-key login status). // Applies to v2.0/RMCP+ RAKP Authentication only. Otherwise, ignore as reserved. // 0b = Kg is set to default (all 0s). // 1b = Kg is set to non-zero value. KgStatus bool // [4] - Per-message Authentication status // 0b = Per-message Authentication is enabled. // 1b = Per-message Authentication is disabled. // Authentication Type "none" accepted for packets to the BMC after the session has been activated. PerMessageAuthenticationDisabled bool // [3] - User Level Authentication status // 0b = User Level Authentication is enabled. // 1b = User Level Authentication is disabled. // Authentication Type "none" accepted for User Level commands to the BMC. UserLevelAuthenticationDisabled bool // [2:0] - Anonymous Login status // This parameter returns values that tells the remote console whether // there are users on the system that have "null" usernames. // This can be used to guide the way the remote console presents login options to the user. // (see IPMI v1.5 specification sections 6.9.1, "Anonymous Login" Convention and 6.9.2, Anonymous Login ) // [2] - 1b = Non-null usernames enabled. (One or more users are enabled that have non-null usernames). // [1] - 1b = Null usernames enabled (One or more users that have a null username, but non-null password, are presently enabled) // [0] - 1b = Anonymous Login enabled (A user that has a null username and null password is presently enabled) NonNullUsernamesEnabled bool NullUsernamesEnabled bool AnonymousLoginEnabled bool // For IPMI v1.5: - reserved // For IPMI v2.0+: - Extended Capabilities // [7:2] - reserved // [1] - 1b = channel supports IPMI v2.0 connections. // [0] - 1b = channel supports IPMI v1.5 connections. SupportIPMIv15 bool SupportIPMIv20 bool // IANA Enterprise Number for OEM/Organization that specified the particular // OEM Authentication Type for RMCP. Least significant byte first. // ONLY 3 bytes occupied. Return 00h, 00h, 00h if no OEM authentication type available. OEMID uint32 // Additional OEM-specific information for the OEM Authentication Type for RMCP. // Return 00h if no OEM authentication type available. OEMAuxiliaryData uint8 }
func (*GetChannelAuthenticationCapabilitiesResponse) CompletionCodes ¶
func (*GetChannelAuthenticationCapabilitiesResponse) CompletionCodes() map[uint8]string
func (*GetChannelAuthenticationCapabilitiesResponse) Format ¶
func (res *GetChannelAuthenticationCapabilitiesResponse) Format() string
func (*GetChannelAuthenticationCapabilitiesResponse) Unpack ¶
func (res *GetChannelAuthenticationCapabilitiesResponse) Unpack(msg []byte) error
type GetChannelCipherSuitesRequest ¶
type GetChannelCipherSuitesRequest struct { // 0h-Bh, Fh = channel numbers // Eh = retrieve information for channel this request was issued on ChannelNumber uint8 PayloadType PayloadType ListIndex uint8 }
22.15 Get Channel Cipher Suites Command
func (*GetChannelCipherSuitesRequest) Command ¶
func (req *GetChannelCipherSuitesRequest) Command() Command
func (*GetChannelCipherSuitesRequest) Pack ¶
func (req *GetChannelCipherSuitesRequest) Pack() []byte
type GetChannelCipherSuitesResponse ¶
func (*GetChannelCipherSuitesResponse) CompletionCodes ¶
func (*GetChannelCipherSuitesResponse) CompletionCodes() map[uint8]string
func (*GetChannelCipherSuitesResponse) Format ¶
func (res *GetChannelCipherSuitesResponse) Format() string
func (*GetChannelCipherSuitesResponse) Unpack ¶
func (res *GetChannelCipherSuitesResponse) Unpack(msg []byte) error
type GetChannelInfoRequest ¶
type GetChannelInfoRequest struct {
ChannelNumber uint8
}
22.24 Get Channel Info Command
func (*GetChannelInfoRequest) Command ¶
func (req *GetChannelInfoRequest) Command() Command
func (*GetChannelInfoRequest) Pack ¶
func (req *GetChannelInfoRequest) Pack() []byte
type GetChannelInfoResponse ¶
type GetChannelInfoResponse struct { ActualChannelNumber uint8 ChannelMedium ChannelMedium // Channel Medium Type Numbers ChannelProtocol ChannelProtocol // Channel Protocol Type Numbers SessionSupport uint8 ActiveSessionCount uint8 VendorID uint32 // (IANA Enterprise Number) for OEM/Organization that specified the Channel Protocol. // Auxiliary Channel Info Auxiliary []byte // Auxiliary Channel Info Raw Data, 2 bytes // For Channel = Fh (System Interface) SMSInterruptType InterruptType EventMessageBufferInterruptType InterruptType }
func (*GetChannelInfoResponse) CompletionCodes ¶
func (res *GetChannelInfoResponse) CompletionCodes() map[uint8]string
func (*GetChannelInfoResponse) Format ¶
func (res *GetChannelInfoResponse) Format() string
func (*GetChannelInfoResponse) Unpack ¶
func (res *GetChannelInfoResponse) Unpack(msg []byte) error
type GetChannelOEMPayloadInfoRequest ¶ added in v0.7.4
type GetChannelOEMPayloadInfoRequest struct { ChannelNumber uint8 PayloadType PayloadType // OEM IANA. When Payload Type Number is 02h (OEM Explicit) this field // holds the OEM IANA for the OEM payload type to look up information for. Otherwise, this field is set to 00_00_00h. OEMIANA uint32 OEMPayloadID uint16 }
24.10 Get Channel OEM Payload Info Command
func (*GetChannelOEMPayloadInfoRequest) Command ¶ added in v0.7.4
func (req *GetChannelOEMPayloadInfoRequest) Command() Command
func (*GetChannelOEMPayloadInfoRequest) Pack ¶ added in v0.7.4
func (req *GetChannelOEMPayloadInfoRequest) Pack() []byte
type GetChannelOEMPayloadInfoResponse ¶ added in v0.7.4
type GetChannelOEMPayloadInfoResponse struct { PayloadType PayloadType OEMIANA uint32 OEMPayloadID uint16 MajorVersion uint8 MinorVersion uint8 }
func (*GetChannelOEMPayloadInfoResponse) CompletionCodes ¶ added in v0.7.4
func (res *GetChannelOEMPayloadInfoResponse) CompletionCodes() map[uint8]string
func (*GetChannelOEMPayloadInfoResponse) Format ¶ added in v0.7.4
func (res *GetChannelOEMPayloadInfoResponse) Format() string
func (*GetChannelOEMPayloadInfoResponse) Unpack ¶ added in v0.7.4
func (res *GetChannelOEMPayloadInfoResponse) Unpack(msg []byte) error
type GetChannelPayloadSupportRequest ¶ added in v0.7.4
type GetChannelPayloadSupportRequest struct {
ChannelNumber uint8
}
24.8 Get Channel Payload Support Command
func (*GetChannelPayloadSupportRequest) Command ¶ added in v0.7.4
func (req *GetChannelPayloadSupportRequest) Command() Command
func (*GetChannelPayloadSupportRequest) Pack ¶ added in v0.7.4
func (req *GetChannelPayloadSupportRequest) Pack() []byte
type GetChannelPayloadSupportResponse ¶ added in v0.7.4
type GetChannelPayloadSupportResponse struct { // Standard payload types PayloadTypeIPMI bool PayloadTypeSOL bool PayloadTypeOEM bool // Session setup payload types PayloadTypeRmcpOpenSessionRequest bool PayloadTypeRmcpOpenSessionResponse bool PayloadTypeRAKPMessage1 bool PayloadTypeRAKPMessage2 bool PayloadTypeRAKPMessage3 bool PayloadTypeRAKPMessage4 bool // OEM payload types PayloadTypeOEM0 bool PayloadTypeOEM1 bool PayloadTypeOEM2 bool PayloadTypeOEM3 bool PayloadTypeOEM4 bool PayloadTypeOEM5 bool PayloadTypeOEM6 bool PayloadTypeOEM7 bool }
func (*GetChannelPayloadSupportResponse) CompletionCodes ¶ added in v0.7.4
func (res *GetChannelPayloadSupportResponse) CompletionCodes() map[uint8]string
func (*GetChannelPayloadSupportResponse) Format ¶ added in v0.7.4
func (res *GetChannelPayloadSupportResponse) Format() string
func (*GetChannelPayloadSupportResponse) Unpack ¶ added in v0.7.4
func (res *GetChannelPayloadSupportResponse) Unpack(msg []byte) error
type GetChannelPayloadVersionRequest ¶ added in v0.7.4
type GetChannelPayloadVersionRequest struct { ChannelNumber uint8 PayloadType PayloadType }
24.9 Get Channel Payload Version Command
func (*GetChannelPayloadVersionRequest) Command ¶ added in v0.7.4
func (req *GetChannelPayloadVersionRequest) Command() Command
func (*GetChannelPayloadVersionRequest) Pack ¶ added in v0.7.4
func (req *GetChannelPayloadVersionRequest) Pack() []byte
type GetChannelPayloadVersionResponse ¶ added in v0.7.4
func (*GetChannelPayloadVersionResponse) CompletionCodes ¶ added in v0.7.4
func (res *GetChannelPayloadVersionResponse) CompletionCodes() map[uint8]string
func (*GetChannelPayloadVersionResponse) Format ¶ added in v0.7.4
func (res *GetChannelPayloadVersionResponse) Format() string
func (*GetChannelPayloadVersionResponse) Unpack ¶ added in v0.7.4
func (res *GetChannelPayloadVersionResponse) Unpack(msg []byte) error
type GetChassisCapabilitiesRequest ¶
type GetChassisCapabilitiesRequest struct { }
28.1 Get Chassis Capabilities Command
func (*GetChassisCapabilitiesRequest) Command ¶
func (req *GetChassisCapabilitiesRequest) Command() Command
func (*GetChassisCapabilitiesRequest) Pack ¶
func (req *GetChassisCapabilitiesRequest) Pack() []byte
type GetChassisCapabilitiesResponse ¶
type GetChassisCapabilitiesResponse struct { ProvidePowerInterlock bool ProvideDiagnosticInterrupt bool ProvideFrontPanelLockout bool ProvideIntrusionSensor bool // Chassis FRU Device FRUDeviceAddress uint8 SDRDeviceAddress uint8 SELDeviceAddress uint8 SystemManagementDeviceAddress uint8 // If this field is not provided, the address is assumed to be the BMC address (20h). BridgeDeviceAddress uint8 }
func (*GetChassisCapabilitiesResponse) CompletionCodes ¶
func (res *GetChassisCapabilitiesResponse) CompletionCodes() map[uint8]string
func (*GetChassisCapabilitiesResponse) Format ¶
func (res *GetChassisCapabilitiesResponse) Format() string
func (*GetChassisCapabilitiesResponse) Unpack ¶
func (res *GetChassisCapabilitiesResponse) Unpack(msg []byte) error
type GetChassisStatusRequest ¶
type GetChassisStatusRequest struct { }
28.2 Get Chassis Status Command
func (*GetChassisStatusRequest) Command ¶
func (req *GetChassisStatusRequest) Command() Command
func (*GetChassisStatusRequest) Pack ¶
func (req *GetChassisStatusRequest) Pack() []byte
type GetChassisStatusResponse ¶
type GetChassisStatusResponse struct { // Current Power State PowerRestorePolicy PowerRestorePolicy PowerControlFault bool // Controller attempted to turn system power on or off, but system did not enter desired state. PowerFault bool // fault detected in main power subsystem InterLock bool // chassis is presently shut down because a chassis panel interlock switch is active PowerOverload bool // system shutdown because of power overload condition. PowerIsOn bool // 系统电源:上电 // Last Power Event LastPowerOnByCommand bool LastPowerDownByPowerFault bool LastPowerDownByPowerInterlockActivated bool LastPowerDownByPowerOverload bool ACFailed bool // Misc. Chassis State ChassisIdentifySupported bool ChassisIdentifyState ChassisIdentifyState CollingFanFault bool DriveFault bool FrontPanelLockoutActive bool // (power off and reset via chassis push-buttons disabled. 前面板锁定) ChassisIntrusionActive bool // 机箱入侵:(机箱盖被打开) // Front Panel Button Capabilities and disable/enable status (Optional) SleepButtonDisableAllowed bool DiagnosticButtonDisableAllowed bool ResetButtonDisableAllowed bool PoweroffButtonDisableAllowed bool SleepButtonDisabled bool DiagnosticButtonDisabled bool ResetButtonDisabled bool PoweroffButtonDisabled bool }
func (*GetChassisStatusResponse) CompletionCodes ¶
func (res *GetChassisStatusResponse) CompletionCodes() map[uint8]string
func (*GetChassisStatusResponse) Format ¶
func (res *GetChassisStatusResponse) Format() string
func (*GetChassisStatusResponse) Unpack ¶
func (res *GetChassisStatusResponse) Unpack(msg []byte) error
type GetCommandEnablesRequest ¶
type GetCommandEnablesRequest struct { ChannelNumber uint8 CommandRangeMask CommandRangeMask NetFn NetFn LUN uint8 CodeForNetFn2C uint8 OEMIANA uint32 // 3 bytes only }
21.8 Get Command Enables Command
func (*GetCommandEnablesRequest) Command ¶
func (req *GetCommandEnablesRequest) Command() Command
func (*GetCommandEnablesRequest) Pack ¶
func (req *GetCommandEnablesRequest) Pack() []byte
type GetCommandEnablesResponse ¶
type GetCommandEnablesResponse struct { // Todo CommandEnableMask []byte }
func (*GetCommandEnablesResponse) CompletionCodes ¶
func (*GetCommandEnablesResponse) CompletionCodes() map[uint8]string
func (*GetCommandEnablesResponse) Format ¶
func (res *GetCommandEnablesResponse) Format() string
func (*GetCommandEnablesResponse) Unpack ¶
func (res *GetCommandEnablesResponse) Unpack(msg []byte) error
type GetCommandSubfunctionEnablesRequest ¶ added in v0.7.4
type GetCommandSubfunctionEnablesRequest struct { ChannelNumber uint8 NetFn NetFn LUN uint8 Cmd uint8 CodeForNetFn2C uint8 OEMIANA uint32 // 3 bytes only }
func (*GetCommandSubfunctionEnablesRequest) Command ¶ added in v0.7.4
func (req *GetCommandSubfunctionEnablesRequest) Command() Command
func (*GetCommandSubfunctionEnablesRequest) Pack ¶ added in v0.7.4
func (req *GetCommandSubfunctionEnablesRequest) Pack() []byte
type GetCommandSubfunctionEnablesResponse ¶ added in v0.7.4
type GetCommandSubfunctionEnablesResponse struct {
SubfunctionEnables []bool
}
func (*GetCommandSubfunctionEnablesResponse) CompletionCodes ¶ added in v0.7.4
func (*GetCommandSubfunctionEnablesResponse) CompletionCodes() map[uint8]string
func (*GetCommandSubfunctionEnablesResponse) Format ¶ added in v0.7.4
func (res *GetCommandSubfunctionEnablesResponse) Format() string
func (*GetCommandSubfunctionEnablesResponse) Unpack ¶ added in v0.7.4
func (res *GetCommandSubfunctionEnablesResponse) Unpack(msg []byte) error
type GetCommandSubfunctionSupportRequest ¶
type GetCommandSubfunctionSupportRequest struct { ChannelNumber uint8 NetFn NetFn LUN uint8 Cmd uint8 CodeForNetFn2C uint8 OEMIANA uint32 // 3 bytes only }
21.4 Get Command Sub-function Support Command
func (*GetCommandSubfunctionSupportRequest) Command ¶
func (req *GetCommandSubfunctionSupportRequest) Command() Command
func (*GetCommandSubfunctionSupportRequest) Pack ¶
func (req *GetCommandSubfunctionSupportRequest) Pack() []byte
type GetCommandSubfunctionSupportResponse ¶
type GetCommandSubfunctionSupportResponse struct { SpecificationType uint8 ErrataVersion uint8 OEMGroupBody uint8 SpecificationVersion uint8 SpecificationRevision uint8 // Todo SupportMask []byte }
func (*GetCommandSubfunctionSupportResponse) CompletionCodes ¶
func (*GetCommandSubfunctionSupportResponse) CompletionCodes() map[uint8]string
func (*GetCommandSubfunctionSupportResponse) Format ¶
func (res *GetCommandSubfunctionSupportResponse) Format() string
func (*GetCommandSubfunctionSupportResponse) Unpack ¶
func (res *GetCommandSubfunctionSupportResponse) Unpack(msg []byte) error
type GetCommandSupportRequest ¶
type GetCommandSupportRequest struct { ChannelNumber uint8 CommandRangeMask CommandRangeMask NetFn NetFn LUN uint8 CodeForNetFn2C uint8 OEMIANA uint32 // 3 bytes only }
21.3 Get Command Support Command
func (*GetCommandSupportRequest) Command ¶
func (req *GetCommandSupportRequest) Command() Command
func (*GetCommandSupportRequest) Pack ¶
func (req *GetCommandSupportRequest) Pack() []byte
type GetCommandSupportResponse ¶
type GetCommandSupportResponse struct { // Todo CommandSupportMask []byte }
func (*GetCommandSupportResponse) CompletionCodes ¶
func (*GetCommandSupportResponse) CompletionCodes() map[uint8]string
func (*GetCommandSupportResponse) Format ¶
func (res *GetCommandSupportResponse) Format() string
func (*GetCommandSupportResponse) Unpack ¶
func (res *GetCommandSupportResponse) Unpack(msg []byte) error
type GetConfigurableCommandSubfunctionsRequest ¶ added in v0.7.4
type GetConfigurableCommandSubfunctionsRequest struct { ChannelNumber uint8 NetFn NetFn LUN uint8 Cmd uint8 CodeForNetFn2C uint8 // For Network Function = 2Ch OEMIANA uint32 // For Network Function = 2Eh }
21.6 Get Configurable Command Sub-functions Command
func (*GetConfigurableCommandSubfunctionsRequest) Command ¶ added in v0.7.4
func (req *GetConfigurableCommandSubfunctionsRequest) Command() Command
func (*GetConfigurableCommandSubfunctionsRequest) Pack ¶ added in v0.7.4
func (req *GetConfigurableCommandSubfunctionsRequest) Pack() []byte
type GetConfigurableCommandSubfunctionsResponse ¶ added in v0.7.4
type GetConfigurableCommandSubfunctionsResponse struct { // the index corresponds to sub-function number // index 0 -> sub-function 0 // index 1 -> sub-function 1 SubfunctionsSupport []bool }
func (*GetConfigurableCommandSubfunctionsResponse) CompletionCodes ¶ added in v0.7.4
func (*GetConfigurableCommandSubfunctionsResponse) CompletionCodes() map[uint8]string
func (*GetConfigurableCommandSubfunctionsResponse) Format ¶ added in v0.7.4
func (res *GetConfigurableCommandSubfunctionsResponse) Format() string
func (*GetConfigurableCommandSubfunctionsResponse) Unpack ¶ added in v0.7.4
func (res *GetConfigurableCommandSubfunctionsResponse) Unpack(msg []byte) error
type GetConfigurableCommandsRequest ¶
type GetConfigurableCommandsRequest struct { ChannelNumber uint8 CommandRangeMask CommandRangeMask NetFn NetFn LUN uint8 CodeForNetFn2C uint8 OEMIANA uint32 // 3 bytes only }
21.5 Get Configurable Commands Command
func (*GetConfigurableCommandsRequest) Command ¶
func (req *GetConfigurableCommandsRequest) Command() Command
func (*GetConfigurableCommandsRequest) Pack ¶
func (req *GetConfigurableCommandsRequest) Pack() []byte
type GetConfigurableCommandsResponse ¶
type GetConfigurableCommandsResponse struct { // Todo CommandSupportMask []byte }
func (*GetConfigurableCommandsResponse) CompletionCodes ¶
func (*GetConfigurableCommandsResponse) CompletionCodes() map[uint8]string
func (*GetConfigurableCommandsResponse) Format ¶
func (res *GetConfigurableCommandsResponse) Format() string
func (*GetConfigurableCommandsResponse) Unpack ¶
func (res *GetConfigurableCommandsResponse) Unpack(msg []byte) error
type GetDCMIAssetTagRequest ¶ added in v0.5.8
type GetDCMIAssetTagRequest struct {
Offset uint8
}
GetDCMIAssetTagRequest represents a "Get Asset Tag" request according to section 6.4.2 of the DCMI specification v1.5.
While the asset tag is allowed to be up to 64 bytes, each request will always return at most 16 bytes. The response also indicates the total length of the asset tag. If it is greater than 16 bytes, additional requests have to be performed, setting the offset accordingly.
func (*GetDCMIAssetTagRequest) Command ¶ added in v0.5.8
func (req *GetDCMIAssetTagRequest) Command() Command
func (*GetDCMIAssetTagRequest) Pack ¶ added in v0.5.8
func (req *GetDCMIAssetTagRequest) Pack() []byte
type GetDCMIAssetTagResponse ¶ added in v0.5.8
type GetDCMIAssetTagResponse struct { // At most 16 bytes of the asset tag, starting from the request's offset AssetTag []byte // The total length of the asset tag TotalLength uint8 }
func (*GetDCMIAssetTagResponse) CompletionCodes ¶ added in v0.5.8
func (res *GetDCMIAssetTagResponse) CompletionCodes() map[uint8]string
func (*GetDCMIAssetTagResponse) Format ¶ added in v0.5.8
func (res *GetDCMIAssetTagResponse) Format() string
func (*GetDCMIAssetTagResponse) Unpack ¶ added in v0.5.8
func (res *GetDCMIAssetTagResponse) Unpack(msg []byte) error
type GetDCMICapParamRequest ¶ added in v0.7.2
type GetDCMICapParamRequest struct {
ParamSelector DCMICapParamSelector
}
GetDCMICapParamRequest provides version information for DCMI and information about the mandatory and optional DCMI capabilities that are available on the particular platform.
The command is session-less and can be called similar to the Get Authentication Capability command. This command is a bare-metal provisioning command, and the availability of features does not imply the features are configured.
[DCMI specification v1.5] 6.1.1 Get DCMI Capabilities Info Command
func (*GetDCMICapParamRequest) Command ¶ added in v0.7.2
func (req *GetDCMICapParamRequest) Command() Command
func (*GetDCMICapParamRequest) Pack ¶ added in v0.7.2
func (req *GetDCMICapParamRequest) Pack() []byte
func (*GetDCMICapParamRequest) Unpack ¶ added in v0.7.2
func (req *GetDCMICapParamRequest) Unpack(msg []byte) error
type GetDCMICapParamResponse ¶ added in v0.7.2
type GetDCMICapParamResponse struct { MajorVersion uint8 MinorVersion uint8 ParamRevision uint8 ParamData []byte }
func (*GetDCMICapParamResponse) CompletionCodes ¶ added in v0.7.2
func (res *GetDCMICapParamResponse) CompletionCodes() map[uint8]string
func (*GetDCMICapParamResponse) Format ¶ added in v0.7.2
func (res *GetDCMICapParamResponse) Format() string
func (*GetDCMICapParamResponse) Pack ¶ added in v0.7.2
func (res *GetDCMICapParamResponse) Pack() []byte
func (*GetDCMICapParamResponse) Unpack ¶ added in v0.7.2
func (res *GetDCMICapParamResponse) Unpack(msg []byte) error
type GetDCMIConfigParamRequest ¶ added in v0.7.1
type GetDCMIConfigParamRequest struct { ParamSelector DCMIConfigParamSelector SetSelector uint8 // use 00h for parameters that only have one set }
[DCMI specification v1.5] 6.1.3 Get DCMI Configuration Parameters Command
func (*GetDCMIConfigParamRequest) Command ¶ added in v0.7.1
func (req *GetDCMIConfigParamRequest) Command() Command
func (*GetDCMIConfigParamRequest) Pack ¶ added in v0.7.1
func (req *GetDCMIConfigParamRequest) Pack() []byte
type GetDCMIConfigParamResponse ¶ added in v0.7.1
type GetDCMIConfigParamResponse struct { MajorVersion uint8 MinorVersion uint8 ParamRevision uint8 ParamData []byte }
func (*GetDCMIConfigParamResponse) CompletionCodes ¶ added in v0.7.1
func (res *GetDCMIConfigParamResponse) CompletionCodes() map[uint8]string
func (*GetDCMIConfigParamResponse) Format ¶ added in v0.7.1
func (res *GetDCMIConfigParamResponse) Format() string
func (*GetDCMIConfigParamResponse) Unpack ¶ added in v0.7.1
func (res *GetDCMIConfigParamResponse) Unpack(msg []byte) error
type GetDCMIMgmtControllerIdentifierRequest ¶ added in v0.7.0
type GetDCMIMgmtControllerIdentifierRequest struct {
Offset uint8
}
[DCMI specification v1.5]: 6.4.6.1 Get Management Controller Identifier String Command
func (*GetDCMIMgmtControllerIdentifierRequest) Command ¶ added in v0.7.0
func (req *GetDCMIMgmtControllerIdentifierRequest) Command() Command
func (*GetDCMIMgmtControllerIdentifierRequest) Pack ¶ added in v0.7.0
func (req *GetDCMIMgmtControllerIdentifierRequest) Pack() []byte
type GetDCMIMgmtControllerIdentifierResponse ¶ added in v0.7.0
type GetDCMIMgmtControllerIdentifierResponse struct { // ID String Length Count of non-null characters starting from offset 0 up to the first null. // Note: The Maximum length of the Identifier String is specified as 64 bytes including the null character, // therefore the range for this return is 0-63. IDStrLength uint8 IDStr []byte }
func (*GetDCMIMgmtControllerIdentifierResponse) CompletionCodes ¶ added in v0.7.0
func (res *GetDCMIMgmtControllerIdentifierResponse) CompletionCodes() map[uint8]string
func (*GetDCMIMgmtControllerIdentifierResponse) Format ¶ added in v0.7.0
func (res *GetDCMIMgmtControllerIdentifierResponse) Format() string
func (*GetDCMIMgmtControllerIdentifierResponse) Unpack ¶ added in v0.7.0
func (res *GetDCMIMgmtControllerIdentifierResponse) Unpack(msg []byte) error
type GetDCMIPowerLimitRequest ¶ added in v0.7.0
type GetDCMIPowerLimitRequest struct { }
[DCMI specification v1.5]: 6.6.2 Get Power Limit
func (*GetDCMIPowerLimitRequest) Command ¶ added in v0.7.0
func (req *GetDCMIPowerLimitRequest) Command() Command
func (*GetDCMIPowerLimitRequest) Pack ¶ added in v0.7.0
func (req *GetDCMIPowerLimitRequest) Pack() []byte
type GetDCMIPowerLimitResponse ¶ added in v0.7.0
type GetDCMIPowerLimitResponse struct { ExceptionAction DCMIExceptionAction // Power Limit Requested in Watts PowerLimitRequested uint16 // Maximum time taken to limit the power after the platform power has reached // the power limit before the Exception Action will be taken. CorrectionTimeLimitMilliSec uint32 // Management application Statistics Sampling period in seconds StatisticsSamplingPeriodSec uint16 }
func (*GetDCMIPowerLimitResponse) CompletionCodes ¶ added in v0.7.0
func (res *GetDCMIPowerLimitResponse) CompletionCodes() map[uint8]string
func (*GetDCMIPowerLimitResponse) Format ¶ added in v0.7.0
func (res *GetDCMIPowerLimitResponse) Format() string
func (*GetDCMIPowerLimitResponse) Unpack ¶ added in v0.7.0
func (res *GetDCMIPowerLimitResponse) Unpack(msg []byte) error
type GetDCMIPowerReadingRequest ¶ added in v0.5.8
type GetDCMIPowerReadingRequest struct { }
GetDCMIPowerReadingRequest represents a "Get Power Reading" request according to section 6.6.1 of the DCMI specification v1.5.
Currently, only the basic "System Power Statistics" mode is supported, not the extended mode.
func (*GetDCMIPowerReadingRequest) Command ¶ added in v0.5.8
func (req *GetDCMIPowerReadingRequest) Command() Command
func (*GetDCMIPowerReadingRequest) Pack ¶ added in v0.5.8
func (req *GetDCMIPowerReadingRequest) Pack() []byte
type GetDCMIPowerReadingResponse ¶ added in v0.5.8
type GetDCMIPowerReadingResponse struct { // Current Power in watts CurrentPower uint16 // Minimum Power over sampling duration in watts MinimumPower uint16 // Maximum Power over sampling duration in watts MaximumPower uint16 // Average Power over sampling duration in watts AveragePower uint16 // IPMI Specification based Time Stamp // // For Mode 02h (not yet supported), the time stamp specifies the end of the // averaging window. Timestamp uint32 // Statistics reporting time period // // For Mode 01h, time-frame in milliseconds, over which the controller // collects statistics. For Mode 02h (not yet supported), time-frame reflects // the Averaging Time period in units. ReportingPeriod uint32 // True if power measurements are available, false otherwise. PowerMeasurementActive bool }
GetDCMIPowerReadingResponse represents a response to a GetDCMIPowerReadingRequest.
func (*GetDCMIPowerReadingResponse) CompletionCodes ¶ added in v0.5.8
func (res *GetDCMIPowerReadingResponse) CompletionCodes() map[uint8]string
func (*GetDCMIPowerReadingResponse) Format ¶ added in v0.5.8
func (res *GetDCMIPowerReadingResponse) Format() string
func (*GetDCMIPowerReadingResponse) Unpack ¶ added in v0.5.8
func (res *GetDCMIPowerReadingResponse) Unpack(msg []byte) error
type GetDCMISensorInfoRequest ¶ added in v0.7.0
type GetDCMISensorInfoRequest struct { SensorType SensorType EntityID EntityID // 00h Retrieve information about all instances associated with Entity ID // 01h - FFh Retrieve only the information about particular instance. EntityInstance EntityInstance EntityInstanceStart uint8 }
[DCMI specification v1.5]: 6.5.2 Get DCMI Sensor Info Command
func (*GetDCMISensorInfoRequest) Command ¶ added in v0.7.0
func (req *GetDCMISensorInfoRequest) Command() Command
func (*GetDCMISensorInfoRequest) Pack ¶ added in v0.7.0
func (req *GetDCMISensorInfoRequest) Pack() []byte
type GetDCMISensorInfoResponse ¶ added in v0.7.0
type GetDCMISensorInfoResponse struct { TotalEntityInstances uint8 RecordsCount uint8 SDRRecordID []uint16 }
func (*GetDCMISensorInfoResponse) CompletionCodes ¶ added in v0.7.0
func (res *GetDCMISensorInfoResponse) CompletionCodes() map[uint8]string
func (*GetDCMISensorInfoResponse) Format ¶ added in v0.7.0
func (res *GetDCMISensorInfoResponse) Format() string
func (*GetDCMISensorInfoResponse) Unpack ¶ added in v0.7.0
func (res *GetDCMISensorInfoResponse) Unpack(msg []byte) error
type GetDCMITemperatureReadingsRequest ¶ added in v0.7.0
type GetDCMITemperatureReadingsRequest struct { SensorType SensorType EntityID EntityID EntityInstance EntityInstance EntityInstanceStart uint8 }
[DCMI specification v1.5]: 6.7.3 Get Temperature Readings Command
func (*GetDCMITemperatureReadingsRequest) Command ¶ added in v0.7.0
func (req *GetDCMITemperatureReadingsRequest) Command() Command
func (*GetDCMITemperatureReadingsRequest) Pack ¶ added in v0.7.0
func (req *GetDCMITemperatureReadingsRequest) Pack() []byte
type GetDCMITemperatureReadingsResponse ¶ added in v0.7.0
type GetDCMITemperatureReadingsResponse struct { TotalEntityInstances uint8 TemperatureReadingsCount uint8 TemperatureReadings []DCMITemperatureReading // contains filtered or unexported fields }
func (*GetDCMITemperatureReadingsResponse) CompletionCodes ¶ added in v0.7.0
func (res *GetDCMITemperatureReadingsResponse) CompletionCodes() map[uint8]string
func (*GetDCMITemperatureReadingsResponse) Format ¶ added in v0.7.0
func (res *GetDCMITemperatureReadingsResponse) Format() string
func (*GetDCMITemperatureReadingsResponse) Unpack ¶ added in v0.7.0
func (res *GetDCMITemperatureReadingsResponse) Unpack(msg []byte) error
type GetDCMIThermalLimitRequest ¶ added in v0.7.0
type GetDCMIThermalLimitRequest struct { EntityID EntityID // Entity ID = 37h or 40h (Inlet Temperature) EntityInstance EntityInstance }
[DCMI specification v1.5]: 6.7.1 Get Thermal Limit Command
func (*GetDCMIThermalLimitRequest) Command ¶ added in v0.7.0
func (req *GetDCMIThermalLimitRequest) Command() Command
func (*GetDCMIThermalLimitRequest) Pack ¶ added in v0.7.0
func (req *GetDCMIThermalLimitRequest) Pack() []byte
type GetDCMIThermalLimitResponse ¶ added in v0.7.0
type GetDCMIThermalLimitResponse struct { ExceptionAction_PowerOffAndLogSEL bool ExceptionAction_LogSELOnly bool // ignored if ExceptionAction_PowerOffAndLogSEL is true // Temperature Limit set in units defined by the SDR record. // Note: the management controller is not required to check this parameter for validity against the SDR contents. TemperatureLimit uint8 // Interval in seconds over which the temperature must continuously be sampled as exceeding the set limit // before the specified Exception Action will be taken. // Samples are taken at the rate specified by the sampling frequency value in parameter #5 of the DCMI Capabilities // parameters (see Table 6-3, DCMI Capabilities Parameters). ExceptionTimeSec uint16 }
func (*GetDCMIThermalLimitResponse) CompletionCodes ¶ added in v0.7.0
func (res *GetDCMIThermalLimitResponse) CompletionCodes() map[uint8]string
func (*GetDCMIThermalLimitResponse) Format ¶ added in v0.7.0
func (res *GetDCMIThermalLimitResponse) Format() string
func (*GetDCMIThermalLimitResponse) Unpack ¶ added in v0.7.0
func (res *GetDCMIThermalLimitResponse) Unpack(msg []byte) error
type GetDeviceGUIDRequest ¶
type GetDeviceGUIDRequest struct { }
20.8 Get Device GUID Command
func (*GetDeviceGUIDRequest) Command ¶
func (req *GetDeviceGUIDRequest) Command() Command
func (*GetDeviceGUIDRequest) Pack ¶
func (req *GetDeviceGUIDRequest) Pack() []byte
type GetDeviceGUIDResponse ¶
type GetDeviceGUIDResponse struct {
GUID [16]byte
}
func (*GetDeviceGUIDResponse) CompletionCodes ¶
func (res *GetDeviceGUIDResponse) CompletionCodes() map[uint8]string
func (*GetDeviceGUIDResponse) Format ¶
func (res *GetDeviceGUIDResponse) Format() string
func (*GetDeviceGUIDResponse) Unpack ¶
func (res *GetDeviceGUIDResponse) Unpack(msg []byte) error
type GetDeviceIDRequest ¶
type GetDeviceIDRequest struct { }
20.1 Get Device ID Command
func (*GetDeviceIDRequest) Command ¶
func (req *GetDeviceIDRequest) Command() Command
func (*GetDeviceIDRequest) Pack ¶
func (req *GetDeviceIDRequest) Pack() []byte
type GetDeviceIDResponse ¶
type GetDeviceIDResponse struct { DeviceID uint8 // [7] 1 = device provides Device SDRs // 0 = device does not provide Device SDRs // [6:4] reserved. Return as 0. ProvideDeviceSDRs bool // [3:0] Device Revision, binary encoded DeviceRevision uint8 // [7] Device available: 0=normal operation, 1= device firmware, SDR // Repository update or self-initialization in progress. [Firmware / SDR // Repository updates can be differentiated by issuing a Get SDR // command and checking the completion code.] DeviceAvailable bool // [6:0] Major Firmware Revision, binary encoded MajorFirmwareRevision uint8 // BCD encoded MinorFirmwareRevision uint8 // Holds IPMI Command Specification Version. BCD encoded. // 00h = reserved. // Bits 7:4 hold the Least Significant digit of the revision, while // bits 3:0 hold the Most Significant bits. // E.g. a value of 51h indicates revision 1.5 functionality. // 02h for implementations that provide IPMI v2.0 capabilities // per this specification. MajorIPMIVersion uint8 MinorIPMIVersion uint8 AdditionalDeviceSupport // Manufacturer ID, LS Byte first. The manufacturer ID is a 20-bit value that is // derived from the IANA Private Enterprise ID (see below). // Most significant four bits = reserved (0000b). // 000000h = unspecified. 0FFFFFh = reserved. This value is binary encoded. // E.g. the ID for the IPMI forum is 7154 decimal, which is 1BF2h, which would // be stored in this record as F2h, 1Bh, 00h for bytes 8 through 10, respectively ManufacturerID uint32 // only 3 bytes used // Product ID, LS Byte first. This field can be used to provide a number that // identifies a particular system, module, add-in card, or board set. The number // is specified according to the manufacturer given by Manufacturer ID (see // below). // 0000h = unspecified. FFFFh = reserved. ProductID uint16 // Auxiliary Firmware Revision Information. This field is optional. If present, it // holds additional information about the firmware revision, such as boot block or // internal data structure version numbers. The meanings of the numbers are // specific to the vendor identified by Manufacturer ID (see below). When the // vendor-specific definition is not known, generic utilities should display each // byte as 2-digit hexadecimal numbers, with byte 13 displayed first as the most-significant byte. AuxiliaryFirmwareRevision []byte // 4 bytes }
func (*GetDeviceIDResponse) CompletionCodes ¶
func (res *GetDeviceIDResponse) CompletionCodes() map[uint8]string
func (*GetDeviceIDResponse) FirmwareVersionStr ¶
func (res *GetDeviceIDResponse) FirmwareVersionStr() string
func (*GetDeviceIDResponse) Format ¶
func (res *GetDeviceIDResponse) Format() string
func (*GetDeviceIDResponse) Unpack ¶
func (res *GetDeviceIDResponse) Unpack(msg []byte) error
type GetDeviceSDRInfoRequest ¶
type GetDeviceSDRInfoRequest struct { // true: Get SDR count. This returns the total number of SDRs in the device. // false: Get Sensor count. This returns the number of sensors implemented on LUN this command was addressed to. GetSDRCount bool }
35.2 Get Device SDR Info Command
func (*GetDeviceSDRInfoRequest) Command ¶
func (req *GetDeviceSDRInfoRequest) Command() Command
func (*GetDeviceSDRInfoRequest) Pack ¶
func (req *GetDeviceSDRInfoRequest) Pack() []byte
type GetDeviceSDRInfoResponse ¶
type GetDeviceSDRInfoResponse struct { Count uint8 // 0b = static sensor population. The number of sensors handled by this // device is fixed, and a query shall return records for all sensors. // // 1b = dynamic sensor population. This device may have its sensor // population vary during "run time" (defined as any time other that // when an install operation is in progress). DynamicSensorPopulation bool LUN3HasSensors bool LUN2HasSensors bool LUN1HasSensors bool LUN0HasSensors bool // Four byte timestamp, or counter. Updated or incremented each time the // sensor population changes. This field is not provided if the flags indicate a // static sensor population. SensorPopulationChangeIndicator uint32 // contains filtered or unexported fields }
func (*GetDeviceSDRInfoResponse) CompletionCodes ¶
func (r *GetDeviceSDRInfoResponse) CompletionCodes() map[uint8]string
func (*GetDeviceSDRInfoResponse) Format ¶
func (res *GetDeviceSDRInfoResponse) Format() string
func (*GetDeviceSDRInfoResponse) Unpack ¶
func (res *GetDeviceSDRInfoResponse) Unpack(msg []byte) error
type GetDeviceSDRRequest ¶
type GetDeviceSDRRequest struct { ReservationID uint16 RecordID uint16 ReadOffset uint8 ReadBytes uint8 // FFh means read entire record }
35.3 Get Device SDR Command
func (*GetDeviceSDRRequest) Command ¶
func (req *GetDeviceSDRRequest) Command() Command
func (*GetDeviceSDRRequest) Pack ¶
func (req *GetDeviceSDRRequest) Pack() []byte
type GetDeviceSDRResponse ¶
func (*GetDeviceSDRResponse) CompletionCodes ¶
func (r *GetDeviceSDRResponse) CompletionCodes() map[uint8]string
func (*GetDeviceSDRResponse) Format ¶
func (res *GetDeviceSDRResponse) Format() string
func (*GetDeviceSDRResponse) Unpack ¶
func (res *GetDeviceSDRResponse) Unpack(msg []byte) error
type GetEventReceiverRequest ¶ added in v0.3.0
type GetEventReceiverRequest struct { }
29.2 Get Event Receiver Command
func (*GetEventReceiverRequest) Command ¶ added in v0.3.0
func (req *GetEventReceiverRequest) Command() Command
func (*GetEventReceiverRequest) Pack ¶ added in v0.3.0
func (req *GetEventReceiverRequest) Pack() []byte
type GetEventReceiverResponse ¶ added in v0.3.0
func (*GetEventReceiverResponse) CompletionCodes ¶ added in v0.3.0
func (res *GetEventReceiverResponse) CompletionCodes() map[uint8]string
func (*GetEventReceiverResponse) Format ¶ added in v0.3.0
func (res *GetEventReceiverResponse) Format() string
func (*GetEventReceiverResponse) Unpack ¶ added in v0.3.0
func (res *GetEventReceiverResponse) Unpack(msg []byte) error
type GetFRUInventoryAreaInfoRequest ¶
type GetFRUInventoryAreaInfoRequest struct {
FRUDeviceID uint8
}
34.1 Get FRU Inventory Area Info Command
func (*GetFRUInventoryAreaInfoRequest) Command ¶
func (req *GetFRUInventoryAreaInfoRequest) Command() Command
func (*GetFRUInventoryAreaInfoRequest) Pack ¶
func (req *GetFRUInventoryAreaInfoRequest) Pack() []byte
type GetFRUInventoryAreaInfoResponse ¶
type GetFRUInventoryAreaInfoResponse struct { AreaSizeBytes uint16 DeviceAccessedByWords bool // false means Device is accessed by Bytes }
func (*GetFRUInventoryAreaInfoResponse) CompletionCodes ¶
func (r *GetFRUInventoryAreaInfoResponse) CompletionCodes() map[uint8]string
func (*GetFRUInventoryAreaInfoResponse) Format ¶
func (res *GetFRUInventoryAreaInfoResponse) Format() string
func (*GetFRUInventoryAreaInfoResponse) Unpack ¶
func (res *GetFRUInventoryAreaInfoResponse) Unpack(msg []byte) error
type GetIPStatisticsRequest ¶
23.4 Get IP/UDP/RMCP Statistics Command
func (*GetIPStatisticsRequest) Command ¶
func (req *GetIPStatisticsRequest) Command() Command
func (*GetIPStatisticsRequest) Pack ¶
func (req *GetIPStatisticsRequest) Pack() []byte
type GetIPStatisticsResponse ¶
type GetIPStatisticsResponse struct { IPPacketsReceived uint16 IPHeaderErrorsReceived uint16 IPAddressErrorsReceived uint16 IPPacketsFragmentedReceived uint16 IPPacketsTransmitted uint16 UDPPacketsReceived uint16 RMCPPacketsValidReceived uint16 UDPProxyPacketsReceived uint16 UDPProxyPacketsDropped uint16 }
func (*GetIPStatisticsResponse) CompletionCodes ¶
func (res *GetIPStatisticsResponse) CompletionCodes() map[uint8]string
func (*GetIPStatisticsResponse) Format ¶
func (res *GetIPStatisticsResponse) Format() string
func (*GetIPStatisticsResponse) Unpack ¶
func (res *GetIPStatisticsResponse) Unpack(msg []byte) error
type GetLanConfigParamRequest ¶ added in v0.7.1
type GetLanConfigParamRequest struct { ChannelNumber uint8 ParamSelector LanConfigParamSelector SetSelector uint8 BlockSelector uint8 }
23.2 Get LAN Configuration Parameters Command
func (*GetLanConfigParamRequest) Command ¶ added in v0.7.1
func (req *GetLanConfigParamRequest) Command() Command
func (*GetLanConfigParamRequest) Pack ¶ added in v0.7.1
func (req *GetLanConfigParamRequest) Pack() []byte
type GetLanConfigParamResponse ¶ added in v0.7.1
func (*GetLanConfigParamResponse) CompletionCodes ¶ added in v0.7.1
func (res *GetLanConfigParamResponse) CompletionCodes() map[uint8]string
func (*GetLanConfigParamResponse) Format ¶ added in v0.7.1
func (res *GetLanConfigParamResponse) Format() string
func (*GetLanConfigParamResponse) Unpack ¶ added in v0.7.1
func (res *GetLanConfigParamResponse) Unpack(msg []byte) error
type GetLastProcessedEventIdRequest ¶ added in v0.5.5
type GetLastProcessedEventIdRequest struct { }
30.6 Get Last Processed Event ID Command
func (*GetLastProcessedEventIdRequest) Command ¶ added in v0.5.5
func (req *GetLastProcessedEventIdRequest) Command() Command
func (*GetLastProcessedEventIdRequest) Pack ¶ added in v0.5.5
func (req *GetLastProcessedEventIdRequest) Pack() []byte
type GetLastProcessedEventIdResponse ¶ added in v0.5.5
type GetLastProcessedEventIdResponse struct { MostRecentAdditionTime time.Time LastRecordID uint16 // Record ID for last record in SEL. Returns FFFFh if SEL is empty. LastSoftwareProcessedEventRecordID uint16 LastBMCProcessedEventRecordID uint16 // Returns 0000h when event has been processed but could not be logged because the SEL is full or logging has been disabled. }
func (*GetLastProcessedEventIdResponse) CompletionCodes ¶ added in v0.5.5
func (r *GetLastProcessedEventIdResponse) CompletionCodes() map[uint8]string
func (*GetLastProcessedEventIdResponse) Format ¶ added in v0.5.5
func (res *GetLastProcessedEventIdResponse) Format() string
func (*GetLastProcessedEventIdResponse) Unpack ¶ added in v0.5.5
func (res *GetLastProcessedEventIdResponse) Unpack(msg []byte) error
type GetMessageFlagsRequest ¶
type GetMessageFlagsRequest struct { }
22.4 Get Message Flags Command
func (*GetMessageFlagsRequest) Command ¶
func (req *GetMessageFlagsRequest) Command() Command
func (*GetMessageFlagsRequest) Pack ¶
func (req *GetMessageFlagsRequest) Pack() []byte
type GetMessageFlagsResponse ¶
type GetMessageFlagsResponse struct { OEM2Available bool OEM1Available bool OEM0Available bool WatchdogPreTimeoutInterruptOccurred bool EventMessageBufferFull bool ReceiveMessageQueueAvailable bool // One or more messages ready for reading from Receive Message Queue }
func (*GetMessageFlagsResponse) CompletionCodes ¶
func (*GetMessageFlagsResponse) CompletionCodes() map[uint8]string
func (*GetMessageFlagsResponse) Format ¶
func (res *GetMessageFlagsResponse) Format() string
func (*GetMessageFlagsResponse) Unpack ¶
func (res *GetMessageFlagsResponse) Unpack(msg []byte) error
type GetMessageRequest ¶
type GetMessageRequest struct { }
22.6 Get Message Command
func (*GetMessageRequest) Command ¶
func (req *GetMessageRequest) Command() Command
func (*GetMessageRequest) Pack ¶
func (req *GetMessageRequest) Pack() []byte
type GetMessageResponse ¶
func (*GetMessageResponse) CompletionCodes ¶
func (res *GetMessageResponse) CompletionCodes() map[uint8]string
func (*GetMessageResponse) Format ¶
func (res *GetMessageResponse) Format() string
func (*GetMessageResponse) Unpack ¶
func (res *GetMessageResponse) Unpack(msg []byte) error
type GetNetFnSupportRequest ¶
type GetNetFnSupportRequest struct {
ChannelNumber uint8
}
21.2 Get NetFn Support Command
func (*GetNetFnSupportRequest) Command ¶
func (req *GetNetFnSupportRequest) Command() Command
func (*GetNetFnSupportRequest) Pack ¶
func (req *GetNetFnSupportRequest) Pack() []byte
type GetNetFnSupportResponse ¶
type GetNetFnSupportResponse struct { LUN3Support LUNSupport LUN2Support LUNSupport LUN1Support LUNSupport LUN0Support LUNSupport // Todo NetFnPairsSupport []byte }
func (*GetNetFnSupportResponse) CompletionCodes ¶
func (*GetNetFnSupportResponse) CompletionCodes() map[uint8]string
func (*GetNetFnSupportResponse) Format ¶
func (res *GetNetFnSupportResponse) Format() string
func (*GetNetFnSupportResponse) Unpack ¶
func (res *GetNetFnSupportResponse) Unpack(msg []byte) error
type GetPEFCapabilitiesRequest ¶ added in v0.3.0
type GetPEFCapabilitiesRequest struct { }
30.1 Get PEF Capabilities Command
func (*GetPEFCapabilitiesRequest) Command ¶ added in v0.3.0
func (req *GetPEFCapabilitiesRequest) Command() Command
func (*GetPEFCapabilitiesRequest) Pack ¶ added in v0.3.0
func (req *GetPEFCapabilitiesRequest) Pack() []byte
type GetPEFCapabilitiesResponse ¶ added in v0.3.0
type GetPEFCapabilitiesResponse struct { // PEF Version (BCD encoded, LSN first. 51h version 1.5) PEFVersion uint8 SupportOEMEventFilter bool SupportDiagnosticInterrupt bool SupportOEMAction bool SupportPowerCycle bool SupportReset bool SupportPowerDown bool SupportAlert bool EventFilterTableEntries uint8 }
func (*GetPEFCapabilitiesResponse) CompletionCodes ¶ added in v0.3.0
func (r *GetPEFCapabilitiesResponse) CompletionCodes() map[uint8]string
func (*GetPEFCapabilitiesResponse) Format ¶ added in v0.3.0
func (res *GetPEFCapabilitiesResponse) Format() string
func (*GetPEFCapabilitiesResponse) Unpack ¶ added in v0.3.0
func (res *GetPEFCapabilitiesResponse) Unpack(msg []byte) error
type GetPEFConfigParamRequest ¶ added in v0.7.1
type GetPEFConfigParamRequest struct { // [7] - 1b = get parameter revision only. 0b = get parameter // [6:0] - Parameter selector GetParamRevisionOnly bool ParamSelector PEFConfigParamSelector SetSelector uint8 // 00h if parameter does not require a Set Selector BlockSelector uint8 // 00h if parameter does not require a block number }
30.4 Get PEF Configuration Parameters Command
func (*GetPEFConfigParamRequest) Command ¶ added in v0.7.1
func (req *GetPEFConfigParamRequest) Command() Command
func (*GetPEFConfigParamRequest) Pack ¶ added in v0.7.1
func (req *GetPEFConfigParamRequest) Pack() []byte
type GetPEFConfigParamResponse ¶ added in v0.7.1
type GetPEFConfigParamResponse struct { // Parameter revision. // // Format: // - MSN = present revision. // - LSN = oldest revision parameter is backward compatible with. // - 11h for parameters in this specification. ParamRevision uint8 // ParamData not returned when GetParamRevisionOnly is true ParamData []byte }
func (*GetPEFConfigParamResponse) CompletionCodes ¶ added in v0.7.1
func (r *GetPEFConfigParamResponse) CompletionCodes() map[uint8]string
func (*GetPEFConfigParamResponse) Format ¶ added in v0.7.1
func (res *GetPEFConfigParamResponse) Format() string
func (*GetPEFConfigParamResponse) Unpack ¶ added in v0.7.1
func (res *GetPEFConfigParamResponse) Unpack(msg []byte) error
type GetPOHCounterRequest ¶
type GetPOHCounterRequest struct { }
28.14 Get POH Counter Command
func (*GetPOHCounterRequest) Command ¶
func (req *GetPOHCounterRequest) Command() Command
func (*GetPOHCounterRequest) Pack ¶
func (req *GetPOHCounterRequest) Pack() []byte
type GetPOHCounterResponse ¶
func (*GetPOHCounterResponse) CompletionCodes ¶
func (r *GetPOHCounterResponse) CompletionCodes() map[uint8]string
func (*GetPOHCounterResponse) Format ¶
func (res *GetPOHCounterResponse) Format() string
func (*GetPOHCounterResponse) Minutes ¶ added in v0.3.0
func (res *GetPOHCounterResponse) Minutes() uint32
func (*GetPOHCounterResponse) Unpack ¶
func (res *GetPOHCounterResponse) Unpack(msg []byte) error
type GetPayloadActivationStatusRequest ¶ added in v0.5.5
type GetPayloadActivationStatusRequest struct {
PayloadType PayloadType
}
24.4 Get Payload Activation Status Command
func (*GetPayloadActivationStatusRequest) Command ¶ added in v0.5.5
func (req *GetPayloadActivationStatusRequest) Command() Command
func (*GetPayloadActivationStatusRequest) Pack ¶ added in v0.5.5
func (req *GetPayloadActivationStatusRequest) Pack() []byte
type GetPayloadActivationStatusResponse ¶ added in v0.5.5
type GetPayloadActivationStatusResponse struct { // [3:0] - Number of instances of given payload type that can be simultaneously activated on BMC. 1-based. 0h = reserved. InstanceCapacity uint8 Instance01Activated bool Instance02Activated bool Instance03Activated bool Instance04Activated bool Instance05Activated bool Instance06Activated bool Instance07Activated bool Instance08Activated bool Instance09Activated bool Instance10Activated bool Instance11Activated bool Instance12Activated bool Instance13Activated bool Instance14Activated bool Instance15Activated bool Instance16Activated bool // Store the PayloadType specified in GetPayloadActivationStatusRequest PayloadType PayloadType }
func (*GetPayloadActivationStatusResponse) CompletionCodes ¶ added in v0.5.5
func (res *GetPayloadActivationStatusResponse) CompletionCodes() map[uint8]string
func (*GetPayloadActivationStatusResponse) Format ¶ added in v0.5.5
func (res *GetPayloadActivationStatusResponse) Format() string
func (*GetPayloadActivationStatusResponse) Unpack ¶ added in v0.5.5
func (res *GetPayloadActivationStatusResponse) Unpack(msg []byte) error
type GetPayloadInstanceInfoRequest ¶ added in v0.7.4
type GetPayloadInstanceInfoRequest struct { PayloadType PayloadType PayloadInstance uint8 }
24.5 Get Payload Instance Info Command
func (*GetPayloadInstanceInfoRequest) Command ¶ added in v0.7.4
func (req *GetPayloadInstanceInfoRequest) Command() Command
func (*GetPayloadInstanceInfoRequest) Pack ¶ added in v0.7.4
func (req *GetPayloadInstanceInfoRequest) Pack() []byte
type GetPayloadInstanceInfoResponse ¶ added in v0.7.4
type GetPayloadInstanceInfoResponse struct { SessionID uint32 // For Payload Type = SOL: // Byte 1: Port Number // A number representing the system serial port that is being redirected. // 1-based. 0h = unspecified. Used when more than one port can be redirected on a system. PortNumber uint8 PayloadType PayloadType }
func (*GetPayloadInstanceInfoResponse) CompletionCodes ¶ added in v0.7.4
func (res *GetPayloadInstanceInfoResponse) CompletionCodes() map[uint8]string
func (*GetPayloadInstanceInfoResponse) Format ¶ added in v0.7.4
func (res *GetPayloadInstanceInfoResponse) Format() string
func (*GetPayloadInstanceInfoResponse) Unpack ¶ added in v0.7.4
func (res *GetPayloadInstanceInfoResponse) Unpack(msg []byte) error
type GetSDRRepoAllocInfoRequest ¶
type GetSDRRepoAllocInfoRequest struct { }
33.10 Get SDR Repository Allocation Info Command
func (*GetSDRRepoAllocInfoRequest) Command ¶
func (req *GetSDRRepoAllocInfoRequest) Command() Command
func (*GetSDRRepoAllocInfoRequest) Pack ¶
func (req *GetSDRRepoAllocInfoRequest) Pack() []byte
type GetSDRRepoAllocInfoResponse ¶
type GetSDRRepoAllocInfoResponse struct { PossibleAllocUnits uint16 AllocUnitsSize uint16 // Allocation unit size in bytes. 0000h indicates unspecified. FreeAllocUnits uint16 LargestFreeBlock uint16 MaximumRecordSize uint8 }
func (*GetSDRRepoAllocInfoResponse) CompletionCodes ¶
func (res *GetSDRRepoAllocInfoResponse) CompletionCodes() map[uint8]string
func (*GetSDRRepoAllocInfoResponse) Format ¶
func (res *GetSDRRepoAllocInfoResponse) Format() string
func (*GetSDRRepoAllocInfoResponse) Unpack ¶
func (res *GetSDRRepoAllocInfoResponse) Unpack(msg []byte) error
type GetSDRRepoInfoRequest ¶
type GetSDRRepoInfoRequest struct { }
33.9 Get SDR Repository Info Command
func (*GetSDRRepoInfoRequest) Command ¶
func (req *GetSDRRepoInfoRequest) Command() Command
func (*GetSDRRepoInfoRequest) Pack ¶
func (req *GetSDRRepoInfoRequest) Pack() []byte
type GetSDRRepoInfoResponse ¶
type GetSDRRepoInfoResponse struct { SDRVersion uint8 // version number of the SDR command set for the SDR Device. 51h for this specification. RecordCount uint16 // LS Byte first FreeSpaceBytes uint16 // LS Byte first MostRecentAdditionTime time.Time MostRecentEraseTime time.Time SDROperationSupport SDROperationSupport }
func (*GetSDRRepoInfoResponse) CompletionCodes ¶
func (res *GetSDRRepoInfoResponse) CompletionCodes() map[uint8]string
func (*GetSDRRepoInfoResponse) Format ¶
func (res *GetSDRRepoInfoResponse) Format() string
func (*GetSDRRepoInfoResponse) Unpack ¶
func (res *GetSDRRepoInfoResponse) Unpack(msg []byte) error
type GetSDRRequest ¶
type GetSDRRequest struct { ReservationID uint16 // LS Byte first RecordID uint16 // LS Byte first ReadOffset uint8 // Offset into record ReadBytes uint8 // FFh means read entire record }
33.12 Get SDR Command
func (*GetSDRRequest) Command ¶
func (req *GetSDRRequest) Command() Command
func (*GetSDRRequest) Pack ¶
func (req *GetSDRRequest) Pack() []byte
type GetSDRResponse ¶
func (*GetSDRResponse) CompletionCodes ¶
func (res *GetSDRResponse) CompletionCodes() map[uint8]string
func (*GetSDRResponse) Format ¶
func (res *GetSDRResponse) Format() string
func (*GetSDRResponse) Unpack ¶
func (res *GetSDRResponse) Unpack(msg []byte) error
type GetSELAllocInfoRequest ¶
type GetSELAllocInfoRequest struct { }
func (*GetSELAllocInfoRequest) Command ¶
func (req *GetSELAllocInfoRequest) Command() Command
func (*GetSELAllocInfoRequest) Pack ¶
func (req *GetSELAllocInfoRequest) Pack() []byte
type GetSELAllocInfoResponse ¶
type GetSELAllocInfoResponse struct { PossibleAllocUnits uint16 AllocUnitsSize uint16 // Allocation unit size in bytes. 0000h indicates unspecified. FreeAllocUnits uint16 LargestFreeBlock uint16 MaximumRecordSize uint8 }
func (*GetSELAllocInfoResponse) CompletionCodes ¶
func (res *GetSELAllocInfoResponse) CompletionCodes() map[uint8]string
func (*GetSELAllocInfoResponse) Format ¶
func (res *GetSELAllocInfoResponse) Format() string
func (*GetSELAllocInfoResponse) Unpack ¶
func (res *GetSELAllocInfoResponse) Unpack(msg []byte) error
type GetSELEntryRequest ¶
type GetSELEntryRequest struct { // LS Byte first. Only required for partial Get. Use 0000h otherwise. ReservationID uint16 // SEL Record ID, LS Byte first. // 0000h = GET FIRST ENTRY // FFFFh = GET LAST ENTRY RecordID uint16 // Offset into record Offset uint8 // FFh means read entire record. ReadBytes uint8 }
31.5 Get SEL Entry Command
func (*GetSELEntryRequest) Command ¶
func (req *GetSELEntryRequest) Command() Command
func (*GetSELEntryRequest) Pack ¶
func (req *GetSELEntryRequest) Pack() []byte
type GetSELEntryResponse ¶
type GetSELEntryResponse struct { NextRecordID uint16 Data []byte // Record Data, 16 bytes for entire record, at least 1 byte }
func (*GetSELEntryResponse) CompletionCodes ¶
func (*GetSELEntryResponse) CompletionCodes() map[uint8]string
func (*GetSELEntryResponse) Format ¶
func (res *GetSELEntryResponse) Format() string
func (*GetSELEntryResponse) Unpack ¶
func (res *GetSELEntryResponse) Unpack(msg []byte) error
type GetSELInfoRequest ¶
type GetSELInfoRequest struct { }
GetSELInfoRequest (31.2) command returns the number of entries in the SEL.
func (*GetSELInfoRequest) Command ¶
func (req *GetSELInfoRequest) Command() Command
func (*GetSELInfoRequest) Pack ¶
func (req *GetSELInfoRequest) Pack() []byte
type GetSELInfoResponse ¶
type GetSELInfoResponse struct { SELVersion uint8 Entries uint16 FreeBytes uint16 RecentAdditionTime time.Time RecentEraseTime time.Time OperationSupport SELOperationSupport }
func (*GetSELInfoResponse) CompletionCodes ¶
func (r *GetSELInfoResponse) CompletionCodes() map[uint8]string
func (*GetSELInfoResponse) Format ¶
func (res *GetSELInfoResponse) Format() string
func (*GetSELInfoResponse) Unpack ¶
func (res *GetSELInfoResponse) Unpack(msg []byte) error
type GetSELTimeRequest ¶ added in v0.2.0
type GetSELTimeRequest struct { }
31.10 Get SEL Time Command
func (*GetSELTimeRequest) Command ¶ added in v0.2.0
func (req *GetSELTimeRequest) Command() Command
func (*GetSELTimeRequest) Pack ¶ added in v0.2.0
func (req *GetSELTimeRequest) Pack() []byte
type GetSELTimeResponse ¶ added in v0.2.0
func (*GetSELTimeResponse) CompletionCodes ¶ added in v0.2.0
func (res *GetSELTimeResponse) CompletionCodes() map[uint8]string
func (*GetSELTimeResponse) Format ¶ added in v0.2.0
func (res *GetSELTimeResponse) Format() string
func (*GetSELTimeResponse) Unpack ¶ added in v0.2.0
func (res *GetSELTimeResponse) Unpack(msg []byte) error
type GetSELTimeUTCOffsetRequest ¶ added in v0.2.0
type GetSELTimeUTCOffsetRequest struct { }
31.11a Get SEL Time UTC Offset
func (*GetSELTimeUTCOffsetRequest) Command ¶ added in v0.2.0
func (req *GetSELTimeUTCOffsetRequest) Command() Command
func (*GetSELTimeUTCOffsetRequest) Pack ¶ added in v0.2.0
func (req *GetSELTimeUTCOffsetRequest) Pack() []byte
type GetSELTimeUTCOffsetResponse ¶ added in v0.2.0
type GetSELTimeUTCOffsetResponse struct { // signed integer for the offset in minutes from UTC to SEL Time. MinutesOffset int16 }
func (*GetSELTimeUTCOffsetResponse) CompletionCodes ¶ added in v0.2.0
func (res *GetSELTimeUTCOffsetResponse) CompletionCodes() map[uint8]string
func (*GetSELTimeUTCOffsetResponse) Format ¶ added in v0.2.0
func (res *GetSELTimeUTCOffsetResponse) Format() string
func (*GetSELTimeUTCOffsetResponse) Unpack ¶ added in v0.2.0
func (res *GetSELTimeUTCOffsetResponse) Unpack(msg []byte) error
type GetSOLConfigParamRequest ¶ added in v0.7.1
type GetSOLConfigParamRequest struct { GetParamRevisionOnly bool ChannelNumber uint8 ParamSelector SOLConfigParamSelector SetSelector uint8 BlockSelector uint8 }
26.3 Get SOL Configuration Parameters Command
func (*GetSOLConfigParamRequest) Command ¶ added in v0.7.1
func (req *GetSOLConfigParamRequest) Command() Command
func (*GetSOLConfigParamRequest) Pack ¶ added in v0.7.1
func (req *GetSOLConfigParamRequest) Pack() []byte
type GetSOLConfigParamResponse ¶ added in v0.7.1
func (*GetSOLConfigParamResponse) CompletionCodes ¶ added in v0.7.1
func (res *GetSOLConfigParamResponse) CompletionCodes() map[uint8]string
func (*GetSOLConfigParamResponse) Format ¶ added in v0.7.1
func (res *GetSOLConfigParamResponse) Format() string
func (*GetSOLConfigParamResponse) Unpack ¶ added in v0.7.1
func (res *GetSOLConfigParamResponse) Unpack(msg []byte) error
type GetSelfTestResultsRequest ¶
type GetSelfTestResultsRequest struct { }
20.4 Get Self Test Results Command
func (*GetSelfTestResultsRequest) Command ¶
func (req *GetSelfTestResultsRequest) Command() Command
func (*GetSelfTestResultsRequest) Pack ¶
func (req *GetSelfTestResultsRequest) Pack() []byte
type GetSelfTestResultsResponse ¶
func (*GetSelfTestResultsResponse) CompletionCodes ¶
func (res *GetSelfTestResultsResponse) CompletionCodes() map[uint8]string
func (*GetSelfTestResultsResponse) Format ¶
func (res *GetSelfTestResultsResponse) Format() string
func (*GetSelfTestResultsResponse) Unpack ¶
func (res *GetSelfTestResultsResponse) Unpack(msg []byte) error
type GetSensorEventEnableRequest ¶
type GetSensorEventEnableRequest struct {
SensorNumber uint8
}
35.11 Get Sensor Event Enable Command
func (*GetSensorEventEnableRequest) Command ¶
func (req *GetSensorEventEnableRequest) Command() Command
func (*GetSensorEventEnableRequest) Pack ¶
func (req *GetSensorEventEnableRequest) Pack() []byte
type GetSensorEventEnableResponse ¶
type GetSensorEventEnableResponse struct { EventMessagesDisabled bool SensorScanningDisabled bool SensorEventFlag }
For event , true means the event has enabled.
func (*GetSensorEventEnableResponse) CompletionCodes ¶
func (r *GetSensorEventEnableResponse) CompletionCodes() map[uint8]string
func (*GetSensorEventEnableResponse) Format ¶
func (res *GetSensorEventEnableResponse) Format() string
func (*GetSensorEventEnableResponse) Unpack ¶
func (res *GetSensorEventEnableResponse) Unpack(msg []byte) error
type GetSensorEventStatusRequest ¶
type GetSensorEventStatusRequest struct {
SensorNumber uint8
}
35.13 Get Sensor Event Status Command
func (*GetSensorEventStatusRequest) Command ¶
func (req *GetSensorEventStatusRequest) Command() Command
func (*GetSensorEventStatusRequest) Pack ¶
func (req *GetSensorEventStatusRequest) Pack() []byte
type GetSensorEventStatusResponse ¶
type GetSensorEventStatusResponse struct { EventMessagesDisabled bool SensorScanningDisabled bool SensorEventFlag }
For event boolean value, true means the event has occurred.
func (*GetSensorEventStatusResponse) CompletionCodes ¶
func (res *GetSensorEventStatusResponse) CompletionCodes() map[uint8]string
func (*GetSensorEventStatusResponse) Format ¶
func (res *GetSensorEventStatusResponse) Format() string
func (*GetSensorEventStatusResponse) Unpack ¶
func (res *GetSensorEventStatusResponse) Unpack(msg []byte) error
type GetSensorHysteresisRequest ¶
type GetSensorHysteresisRequest struct {
SensorNumber uint8
}
35.7 Get Sensor Hysteresis Command
func (*GetSensorHysteresisRequest) Command ¶
func (req *GetSensorHysteresisRequest) Command() Command
func (*GetSensorHysteresisRequest) Pack ¶
func (req *GetSensorHysteresisRequest) Pack() []byte
type GetSensorHysteresisResponse ¶
func (*GetSensorHysteresisResponse) CompletionCodes ¶
func (r *GetSensorHysteresisResponse) CompletionCodes() map[uint8]string
func (*GetSensorHysteresisResponse) Format ¶
func (res *GetSensorHysteresisResponse) Format() string
func (*GetSensorHysteresisResponse) Unpack ¶
func (res *GetSensorHysteresisResponse) Unpack(msg []byte) error
type GetSensorReadingFactorsRequest ¶
35.5 Get Sensor Reading Factors Command
func (*GetSensorReadingFactorsRequest) Command ¶
func (req *GetSensorReadingFactorsRequest) Command() Command
func (*GetSensorReadingFactorsRequest) Pack ¶
func (req *GetSensorReadingFactorsRequest) Pack() []byte
type GetSensorReadingFactorsResponse ¶
type GetSensorReadingFactorsResponse struct { NextReading uint8 ReadingFactors }
func (*GetSensorReadingFactorsResponse) CompletionCodes ¶
func (r *GetSensorReadingFactorsResponse) CompletionCodes() map[uint8]string
func (*GetSensorReadingFactorsResponse) Format ¶
func (res *GetSensorReadingFactorsResponse) Format() string
func (*GetSensorReadingFactorsResponse) Unpack ¶
func (res *GetSensorReadingFactorsResponse) Unpack(msg []byte) error
type GetSensorReadingRequest ¶
type GetSensorReadingRequest struct {
SensorNumber uint8
}
35.14 Get Sensor Reading Command
Retrieve a raw sensor reading (current reading) from ipmb
func (*GetSensorReadingRequest) Command ¶
func (req *GetSensorReadingRequest) Command() Command
func (*GetSensorReadingRequest) Pack ¶
func (req *GetSensorReadingRequest) Pack() []byte
type GetSensorReadingResponse ¶
type GetSensorReadingResponse struct { // reading byte. Ignore on read if sensor does not return an numeric (analog) reading Reading uint8 EventMessagesDisabled bool // see 16.5 System Software use of Sensor Scanning bits & Entity Info // // System software must ignore any sensor that has the sensor scanning bit disabled - if system software didn't disable the sensor. SensorScanningDisabled bool Above_UNR bool // at or above UNR threshold Above_UCR bool // at or above UCR threshold Above_UNC bool // at or above UNC threshold Below_LNR bool // at or below LNR threshold Below_LCR bool // at or below LCR threshold Below_LNC bool // at or below LNC threshold // see 42.1 // (Sensor Classes: Discrete) // It is possible for a discrete sensor to have more than one state active at a time. ActiveStates Mask_DiscreteEvent // contains filtered or unexported fields }
func (*GetSensorReadingResponse) CompletionCodes ¶
func (r *GetSensorReadingResponse) CompletionCodes() map[uint8]string
func (*GetSensorReadingResponse) Format ¶
func (res *GetSensorReadingResponse) Format() string
func (*GetSensorReadingResponse) ThresholdStatus ¶ added in v0.2.0
func (r *GetSensorReadingResponse) ThresholdStatus() SensorThresholdStatus
func (*GetSensorReadingResponse) Unpack ¶
func (res *GetSensorReadingResponse) Unpack(msg []byte) error
type GetSensorThresholdsRequest ¶
type GetSensorThresholdsRequest struct {
SensorNumber uint8
}
35.9 Get Sensor Thresholds Command
func (*GetSensorThresholdsRequest) Command ¶
func (req *GetSensorThresholdsRequest) Command() Command
func (*GetSensorThresholdsRequest) Pack ¶
func (req *GetSensorThresholdsRequest) Pack() []byte
type GetSensorThresholdsResponse ¶
type GetSensorThresholdsResponse struct { // Readable thresholds mask UNR_Readable bool UCR_Readable bool UNC_Readable bool LNR_Readable bool LCR_Readable bool LNC_Readable bool // Threshold value LNC_Raw uint8 LCR_Raw uint8 LNR_Raw uint8 UNC_Raw uint8 UCR_Raw uint8 UNR_Raw uint8 }
func (*GetSensorThresholdsResponse) CompletionCodes ¶
func (r *GetSensorThresholdsResponse) CompletionCodes() map[uint8]string
func (*GetSensorThresholdsResponse) Format ¶
func (res *GetSensorThresholdsResponse) Format() string
func (*GetSensorThresholdsResponse) Unpack ¶
func (res *GetSensorThresholdsResponse) Unpack(msg []byte) error
type GetSensorTypeRequest ¶
type GetSensorTypeRequest struct {
SensorNumber uint8
}
GetSensorTypeRequest (31.2)
func (*GetSensorTypeRequest) Command ¶
func (req *GetSensorTypeRequest) Command() Command
func (*GetSensorTypeRequest) Pack ¶
func (req *GetSensorTypeRequest) Pack() []byte
type GetSensorTypeResponse ¶
type GetSensorTypeResponse struct { SensorType SensorType EventReadingType EventReadingType }
func (*GetSensorTypeResponse) CompletionCodes ¶
func (r *GetSensorTypeResponse) CompletionCodes() map[uint8]string
func (*GetSensorTypeResponse) Format ¶
func (res *GetSensorTypeResponse) Format() string
func (*GetSensorTypeResponse) Unpack ¶
func (res *GetSensorTypeResponse) Unpack(msg []byte) error
type GetSessionChallengeRequest ¶
type GetSessionChallengeRequest struct { // Authentication Type for Challenge // indicating what type of authentication type the console wants to use. AuthType AuthType // Sixteen-bytes. All 0s for null user name (User 1) Username [16]byte }
22.16
func (*GetSessionChallengeRequest) Command ¶
func (req *GetSessionChallengeRequest) Command() Command
func (*GetSessionChallengeRequest) Pack ¶
func (req *GetSessionChallengeRequest) Pack() []byte
type GetSessionChallengeResponse ¶
type GetSessionChallengeResponse struct { TemporarySessionID uint32 // LS byte first Challenge [16]byte }
func (*GetSessionChallengeResponse) CompletionCodes ¶
func (*GetSessionChallengeResponse) CompletionCodes() map[uint8]string
func (*GetSessionChallengeResponse) Format ¶
func (res *GetSessionChallengeResponse) Format() string
func (*GetSessionChallengeResponse) Unpack ¶
func (res *GetSessionChallengeResponse) Unpack(msg []byte) error
type GetSessionInfoRequest ¶
type GetSessionInfoRequest struct { // Session index // 00h = Return info for active session associated with session this command was received over. // N = get info for Nth active session // FEh = Look up session info according to Session Handle passed in this request. // FFh = Look up session info according to Session ID passed in this request. SessionIndex uint8 SessionHandle uint8 SessionID uint32 }
22.20 Get Session Info Command
func (*GetSessionInfoRequest) Command ¶
func (req *GetSessionInfoRequest) Command() Command
func (*GetSessionInfoRequest) Pack ¶
func (req *GetSessionInfoRequest) Pack() []byte
type GetSessionInfoResponse ¶
type GetSessionInfoResponse struct { SessionHandle uint8 // Session Handle presently assigned to active session. PossibleActiveSessions uint8 // This value reflects the number of possible entries (slots) in the sessions table. CurrentActiveSessions uint8 // Number of currently active sessions on all channels on this controller UserID uint8 OperatingPrivilegeLevel PrivilegeLevel // [7:4] - Session protocol auxiliary data // For Channel Type = 802.3 LAN: // 0h = IPMI v1.5 // 1h = IPMI v2.0/RMCP+ AuxiliaryData uint8 // 4bits ChannelNumber uint8 // 4bits // if Channel Type = 802.3 LAN: RemoteConsoleIPAddr net.IP // IP Address of remote console (MS-byte first). RemoteConsoleMacAddr net.HardwareAddr // 6 bytes, MAC Address (MS-byte first) RemoteConsolePort uint16 // Port Number of remote console (LS-byte first) // if Channel Type = asynch. serial/modem SessionChannelActivityType uint8 DestinationSelector uint8 RemoteConsoleIPAddr_PPP uint32 // If PPP connection: IP address of remote console. (MS-byte first) 00h, 00h, 00h, 00h otherwise. // if Channel Type = asynch. serial/modem and connection is PPP: RemoteConsolePort_PPP uint16 }
func (*GetSessionInfoResponse) CompletionCodes ¶
func (res *GetSessionInfoResponse) CompletionCodes() map[uint8]string
func (*GetSessionInfoResponse) Format ¶
func (res *GetSessionInfoResponse) Format() string
func (*GetSessionInfoResponse) Unpack ¶
func (res *GetSessionInfoResponse) Unpack(msg []byte) error
type GetSystemBootOptionsParamRequest ¶ added in v0.7.2
type GetSystemBootOptionsParamRequest struct { ParamSelector BootOptionParamSelector SetSelector uint8 BlockSelector uint8 }
28.13 Get System Boot Options Command
func (*GetSystemBootOptionsParamRequest) Command ¶ added in v0.7.2
func (req *GetSystemBootOptionsParamRequest) Command() Command
func (*GetSystemBootOptionsParamRequest) Pack ¶ added in v0.7.2
func (req *GetSystemBootOptionsParamRequest) Pack() []byte
type GetSystemBootOptionsParamResponse ¶ added in v0.7.2
type GetSystemBootOptionsParamResponse struct { ParameterVersion uint8 // [7] - 1b = mark parameter invalid / locked // 0b = mark parameter valid / unlocked ParameterInValid bool // [6:0] - boot option parameter selector ParamSelector BootOptionParamSelector ParamData []byte // origin parameter data }
func (*GetSystemBootOptionsParamResponse) CompletionCodes ¶ added in v0.7.2
func (res *GetSystemBootOptionsParamResponse) CompletionCodes() map[uint8]string
func (*GetSystemBootOptionsParamResponse) Format ¶ added in v0.7.2
func (res *GetSystemBootOptionsParamResponse) Format() string
func (*GetSystemBootOptionsParamResponse) Unpack ¶ added in v0.7.2
func (res *GetSystemBootOptionsParamResponse) Unpack(msg []byte) error
type GetSystemGUIDRequest ¶
type GetSystemGUIDRequest struct { }
22.14 Get System GUID Command
func (*GetSystemGUIDRequest) Command ¶
func (req *GetSystemGUIDRequest) Command() Command
func (*GetSystemGUIDRequest) Pack ¶
func (req *GetSystemGUIDRequest) Pack() []byte
type GetSystemGUIDResponse ¶
type GetSystemGUIDResponse struct { // Note that the individual fields within the GUID are stored least-significant byte first GUID [16]byte }
func (*GetSystemGUIDResponse) CompletionCodes ¶
func (*GetSystemGUIDResponse) CompletionCodes() map[uint8]string
func (*GetSystemGUIDResponse) Format ¶
func (res *GetSystemGUIDResponse) Format() string
func (*GetSystemGUIDResponse) Unpack ¶
func (res *GetSystemGUIDResponse) Unpack(msg []byte) error
type GetSystemInfoParamRequest ¶ added in v0.7.1
type GetSystemInfoParamRequest struct { GetParamRevisionOnly bool ParamSelector SystemInfoParamSelector SetSelector uint8 BlockSelector uint8 }
22.14b Get System Info Parameters Command
func (*GetSystemInfoParamRequest) Command ¶ added in v0.7.1
func (req *GetSystemInfoParamRequest) Command() Command
func (*GetSystemInfoParamRequest) Pack ¶ added in v0.7.1
func (req *GetSystemInfoParamRequest) Pack() []byte
type GetSystemInfoParamResponse ¶ added in v0.7.1
func (*GetSystemInfoParamResponse) CompletionCodes ¶ added in v0.7.1
func (res *GetSystemInfoParamResponse) CompletionCodes() map[uint8]string
func (*GetSystemInfoParamResponse) Format ¶ added in v0.7.1
func (res *GetSystemInfoParamResponse) Format() string
func (*GetSystemInfoParamResponse) Unpack ¶ added in v0.7.1
func (res *GetSystemInfoParamResponse) Unpack(msg []byte) error
type GetSystemInterfaceCapabilitiesRequest ¶
type GetSystemInterfaceCapabilitiesRequest struct {
SystemInterfaceType SystemInterfaceType
}
22.9 Get System Interface Capabilities Command
func (*GetSystemInterfaceCapabilitiesRequest) Command ¶
func (req *GetSystemInterfaceCapabilitiesRequest) Command() Command
func (*GetSystemInterfaceCapabilitiesRequest) Pack ¶
func (req *GetSystemInterfaceCapabilitiesRequest) Pack() []byte
type GetSystemInterfaceCapabilitiesResponse ¶
type GetSystemInterfaceCapabilitiesResponse struct { // For System Interface Type = SSIF TransactionSupportMask uint8 PECSupported bool SSIFVersion uint8 InputMessageSizeBytes uint8 OutputMessageSizeBytes uint8 // For System Interface Type = KCS or SMIC SystemInterfaceVersion uint8 InputMaximumMessageSizeBytes uint8 }
func (*GetSystemInterfaceCapabilitiesResponse) CompletionCodes ¶
func (*GetSystemInterfaceCapabilitiesResponse) CompletionCodes() map[uint8]string
func (*GetSystemInterfaceCapabilitiesResponse) Format ¶
func (res *GetSystemInterfaceCapabilitiesResponse) Format() string
func (*GetSystemInterfaceCapabilitiesResponse) Unpack ¶
func (res *GetSystemInterfaceCapabilitiesResponse) Unpack(msg []byte) error
type GetSystemRestartCauseRequest ¶
type GetSystemRestartCauseRequest struct { }
28.11 Get System Restart Cause Command
func (*GetSystemRestartCauseRequest) Command ¶
func (req *GetSystemRestartCauseRequest) Command() Command
func (*GetSystemRestartCauseRequest) Pack ¶
func (req *GetSystemRestartCauseRequest) Pack() []byte
type GetSystemRestartCauseResponse ¶
type GetSystemRestartCauseResponse struct { SystemRestartCause SystemRestartCause ChannelNumber uint8 }
func (*GetSystemRestartCauseResponse) CompletionCodes ¶
func (res *GetSystemRestartCauseResponse) CompletionCodes() map[uint8]string
func (*GetSystemRestartCauseResponse) Format ¶
func (res *GetSystemRestartCauseResponse) Format() string
func (*GetSystemRestartCauseResponse) Unpack ¶
func (res *GetSystemRestartCauseResponse) Unpack(msg []byte) error
type GetUserAccessRequest ¶
22.27 Get User Access Command
func (*GetUserAccessRequest) Command ¶
func (req *GetUserAccessRequest) Command() Command
func (*GetUserAccessRequest) Pack ¶
func (req *GetUserAccessRequest) Pack() []byte
type GetUserAccessResponse ¶
type GetUserAccessResponse struct { // Maximum number of User IDs. 1-based. Count includes User 1. A value of 1 // indicates only User 1 is supported. MaxUsersIDCount uint8 // [7:6] - User ID Enable status (for IPMI v2.0 errata 3 and later implementations). // 00b = User ID enable status unspecified. (For backward compatibility // with pre-errata 3 implementations. IPMI errata 3 and later // implementations should return the 01b and 10b responses.) // 01b = User ID enabled via Set User Password command. // 10b = User ID disabled via Set User Password command. // 11b = reserved EnableStatus uint8 // [5:0] - count of currently enabled user IDs on this channel (Indicates how // many User ID slots are presently in use.) EnabledUserIDsCount uint8 // Count of User IDs with fixed names, including User 1 (1-based). Fixed names // in addition to User 1 are required to be associated with sequential user IDs // starting from User ID 2. FixedNameUseIDsCount uint8 // [6] - 0b = user access available during call-in or callback direct connection // 1b = user access available only during callback connection CallbackOnly bool // [5] - 0b = user disabled for link authentication // 1b = user enabled for link authentication LinkAuthEnabled bool // [4] - 0b = user disabled for IPMI Messaging // 1b = user enabled for IPMI Messaging IPMIMessagingEnabled bool // [3:0] - User Privilege Limit for given Channel MaxPrivLevel PrivilegeLevel }
func (*GetUserAccessResponse) CompletionCodes ¶
func (res *GetUserAccessResponse) CompletionCodes() map[uint8]string
func (*GetUserAccessResponse) Format ¶
func (res *GetUserAccessResponse) Format() string
func (*GetUserAccessResponse) Unpack ¶
func (res *GetUserAccessResponse) Unpack(msg []byte) error
type GetUserPayloadAccessRequest ¶ added in v0.7.4
24.7 Get User Payload Access Command
func (*GetUserPayloadAccessRequest) Command ¶ added in v0.7.4
func (req *GetUserPayloadAccessRequest) Command() Command
func (*GetUserPayloadAccessRequest) Pack ¶ added in v0.7.4
func (req *GetUserPayloadAccessRequest) Pack() []byte
type GetUserPayloadAccessResponse ¶ added in v0.7.4
type GetUserPayloadAccessResponse struct { PayloadTypeSOL bool PayloadTypeOEM0 bool PayloadTypeOEM1 bool PayloadTypeOEM2 bool PayloadTypeOEM3 bool PayloadTypeOEM4 bool PayloadTypeOEM5 bool PayloadTypeOEM6 bool PayloadTypeOEM7 bool }
func (*GetUserPayloadAccessResponse) CompletionCodes ¶ added in v0.7.4
func (res *GetUserPayloadAccessResponse) CompletionCodes() map[uint8]string
func (*GetUserPayloadAccessResponse) Format ¶ added in v0.7.4
func (res *GetUserPayloadAccessResponse) Format() string
func (*GetUserPayloadAccessResponse) Unpack ¶ added in v0.7.4
func (res *GetUserPayloadAccessResponse) Unpack(msg []byte) error
type GetUsernameRequest ¶
type GetUsernameRequest struct { // [5:0] - User ID. 000000b = reserved. (User ID 1 is permanently associated with User 1, the null user name). UserID uint8 }
22.29 Get User Name Command
func (*GetUsernameRequest) Command ¶
func (req *GetUsernameRequest) Command() Command
func (*GetUsernameRequest) Pack ¶
func (req *GetUsernameRequest) Pack() []byte
type GetUsernameResponse ¶
type GetUsernameResponse struct {
Username string
}
func (*GetUsernameResponse) CompletionCodes ¶
func (res *GetUsernameResponse) CompletionCodes() map[uint8]string
func (*GetUsernameResponse) Format ¶
func (res *GetUsernameResponse) Format() string
func (*GetUsernameResponse) Unpack ¶
func (res *GetUsernameResponse) Unpack(msg []byte) error
type GetWatchdogTimerRequest ¶ added in v0.2.0
type GetWatchdogTimerRequest struct { }
27.7 Get Watchdog Timer Command
func (*GetWatchdogTimerRequest) Command ¶ added in v0.2.0
func (req *GetWatchdogTimerRequest) Command() Command
func (*GetWatchdogTimerRequest) Pack ¶ added in v0.2.0
func (req *GetWatchdogTimerRequest) Pack() []byte
type GetWatchdogTimerResponse ¶ added in v0.2.0
type GetWatchdogTimerResponse struct { DontLog bool TimerIsStarted bool TimerUse TimerUse PreTimeoutInterrupt PreTimeoutInterrupt TimeoutAction TimeoutAction PreTimeoutIntervalSec uint8 ExpirationFlags uint8 InitialCountdown uint16 PresentCountdown uint16 }
func (*GetWatchdogTimerResponse) CompletionCodes ¶ added in v0.2.0
func (res *GetWatchdogTimerResponse) CompletionCodes() map[uint8]string
func (*GetWatchdogTimerResponse) Format ¶ added in v0.2.0
func (res *GetWatchdogTimerResponse) Format() string
func (*GetWatchdogTimerResponse) Unpack ¶ added in v0.2.0
func (res *GetWatchdogTimerResponse) Unpack(msg []byte) error
type I2CAddress7Bit ¶ added in v0.7.0
type I2CAddress7Bit uint8
I2CAddress7Bit is a 7-bit I2C address, the bit 0 to bit 6 take effect, bit 7 is always 0.
eg: `var a I2CAddress7Bit = 0x35`
- 0 011 0101 = 0x35
- 7 654 3210 bit position
func (I2CAddress7Bit) To8BitForRead ¶ added in v0.7.0
func (a I2CAddress7Bit) To8BitForRead() I2CAddress8Bit
To8BitForRead convert 7-bit I2C address to 8-bit I2C address, bit 1 to bit 7 for I2C address, bit 0 set to 1
func (I2CAddress7Bit) To8BitForWrite ¶ added in v0.7.0
func (a I2CAddress7Bit) To8BitForWrite() I2CAddress8Bit
To8BitForWrite convert 7-bit I2C address to 8-bit I2C address, bit 1 to bit 7 for I2C address, bit 0 set to 0
type I2CAddress8Bit ¶ added in v0.7.0
type I2CAddress8Bit uint8
I2CAddress8Bit represents 8-bit I2C address, the 7-bit I2CAddress occupies bit 1 to bit 7, bit 0 indicates for write or read.
eg: `var a I2CAddress7Bit = 0x35`
- 0110 101 0 = 0x6A (for write)
- 0110 101 1 = 0x6B (fore read)
- 7654 321 0 bit position
func (I2CAddress8Bit) To7Bit ¶ added in v0.7.0
func (a I2CAddress8Bit) To7Bit() I2CAddress7Bit
type IPMIRequest ¶
type IPMIRequest struct { // SlaveAddress or SoftwareID // Responder's Slave Address. 1 byte. LS bit is 0 for Slave Addresses and 1 for Software IDs. Upper 7-bits hold Slave Address or Software ID, respectively. This byte is always 20h when the BMC is the responder. ResponderAddr uint8 // SlaveAddress or SoftwareID // The lower 2-bits of the netFn byte identify the logical unit number, which provides further sub-addressing within the target node. NetFn NetFn // (even) / rsLUN ResponderLUN uint8 // lower 2 bits // Checksum1 is filled by calling ComputeChecksum method Checksum1 uint8 // SlaveAddress or SoftwareID // Requester's Address. 1 byte. LS bit is 0 for Slave Addresses and 1 for Software IDs. Upper 7-bits hold Slave Address or Software ID, respectively. This byte is always 20h when the BMC is the requester. RequesterAddr uint8 // rqSA RequesterSequence uint8 // rqSeq, occupies the highest 6 bits, (so should left shit 2 bits) RequesterLUN uint8 // rqLUN, occupies the lowest 2 bits Command uint8 // Command ID // Command Request Body Data defined by each command. CommandData []byte // optional, 0 or more // Checksum2 is filled by calling ComputeChecksum method Checksum2 uint8 }
13.8 IPMI LAN Message Format
func (*IPMIRequest) ComputeChecksum ¶
func (req *IPMIRequest) ComputeChecksum()
func (*IPMIRequest) Pack ¶
func (req *IPMIRequest) Pack() []byte
type IPMIResponse ¶
type IPMIResponse struct { // Requester's Address. 1 byte. LS bit is 0 for Slave Addresses and 1 for Software IDs. Upper 7-bits hold Slave Address or Software ID, respectively. This byte is always 20h when the BMC is the requester. RequesterAddr uint8 // SlaveAddress or SoftwareID // Network Function code // The lower 2-bits of the netFn byte identify the logical unit number, which provides further sub-addressing within the target node. NetFn NetFn // (odd) higher 6 bits // Requester's LUN RequestLUN uint8 // lower 2 bits // 8-bit checksum algorithm: Initialize checksum to 0. For each byte, checksum = (checksum + byte) modulo 256. Then checksum = - checksum. When the checksum and the bytes are added together, modulo 256, the result should be 0. Checksum1 uint8 // Responder's Slave Address. 1 byte. LS bit is 0 for Slave Addresses and 1 for Software IDs. Upper 7-bits hold Slave Address or Software ID, respectively. This byte is always 20h when the BMC is the responder. ResponderAddr uint8 // SlaveAddress or SoftwareID // Sequence number. This field is used to verify that a response is for a particular instance of a request. Refer to [IPMB] for additional information on use and operation of the Seq field. RequesterSequence uint8 // higher 6 bits ResponderLUN uint8 // lower 2 bits Command uint8 // Completion code returned in the response to indicated success/failure status of the request. CompletionCode uint8 // Response Data Data []byte // optional Checksum2 uint8 }
IPMIResponse represent IPMI PayloadType msg response
func (*IPMIResponse) Unpack ¶
func (res *IPMIResponse) Unpack(msg []byte) error
type IntegrityAlg ¶
type IntegrityAlg uint8
13.28.4
const ( IntegrityAlg_None IntegrityAlg = 0x00 // Mandatory IntegrityAlg_HMAC_SHA1_96 IntegrityAlg = 0x01 // Mandatory IntegrityAlg_HMAC_MD5_128 IntegrityAlg = 0x02 // Optional IntegrityAlg_MD5_128 IntegrityAlg = 0x03 // Optional IntegrityAlg_HMAC_SHA256_128 IntegrityAlg = 0x04 // Optional )
func (IntegrityAlg) String ¶
func (integrityAlg IntegrityAlg) String() string
type IntegrityPayload ¶
type IntegrityPayload struct { // 01h = integrity algorithm PayloadType uint8 PayloadLength uint8 IntegrityAlg uint8 }
func (*IntegrityPayload) Pack ¶
func (p *IntegrityPayload) Pack() []byte
func (*IntegrityPayload) Unpack ¶
func (p *IntegrityPayload) Unpack(msg []byte) error
type InterruptType ¶
type InterruptType uint8
func (InterruptType) String ¶
func (typ InterruptType) String() string
type LUNSupport ¶
type LUNSupport uint8
func (LUNSupport) String ¶
func (l LUNSupport) String() string
type LanConfig ¶
type LanConfig struct { SetInProgress SetInProgressState // #0, Read Only AuthTypeSupport LanConfigParam_AuthTypeSupport // #1 AuthTypeEnables LanConfigParam_AuthTypeEnables // #2 IP net.IP // #3 IPSource LanIPAddressSource // #4 MAC net.HardwareAddr // #5, can be Read Only. SubnetMask net.IP // #6 IPv4HeaderParams LanConfigParam_IPv4HeaderParams // #7 PrimaryRMCPPort uint16 // #8 SecondaryRMCPPort uint16 // #9 ARPControl LanConfigParam_ARPControl // #10 GratuitousARPIntervalMilliSec uint32 // #11 DefaultGatewayIP net.IP // #12 DefaultGatewayMAC net.HardwareAddr // #13 BackupGatewayIP net.IP // #14 BackupGatewayMAC net.HardwareAddr // #15 CommunityString CommunityString // #16 AlertDestinationsCount uint8 // #17, Read Only VLANEnabled bool // #20 VLANID uint16 // #20 VLANPriority uint8 // #21 CipherSuitesSupport uint8 // #22, Read Only CipherSuitesID LanConfigParam_CipherSuitesID // #23, Read Only CipherSuitesPrivLevel LanConfigParam_CipherSuitesPrivLevel // #24 BadPasswordThreshold LanConfigParam_BadPasswordThreshold // #26 }
type LanConfigParamSelector ¶ added in v0.7.0
type LanConfigParamSelector uint8
Table 23-4, LAN Configuration Parameters Parameter selector
const ( LanConfigParamSelector_SetInProgress LanConfigParamSelector = 0 LanConfigParamSelector_AuthTypeSupport LanConfigParamSelector = 1 // read only LanConfigParamSelector_AuthTypeEnables LanConfigParamSelector = 2 LanConfigParamSelector_IP LanConfigParamSelector = 3 LanConfigParamSelector_IPSource LanConfigParamSelector = 4 LanConfigParamSelector_MAC LanConfigParamSelector = 5 // can be read only LanConfigParamSelector_SubnetMask LanConfigParamSelector = 6 LanConfigParamSelector_IPv4HeaderParams LanConfigParamSelector = 7 LanConfigParamSelector_PrimaryRMCPPort LanConfigParamSelector = 8 LanConfigParamSelector_SecondaryRMCPPort LanConfigParamSelector = 9 LanConfigParamSelector_ARPControl LanConfigParamSelector = 10 LanConfigParamSelector_GratuitousARPInterval LanConfigParamSelector = 11 LanConfigParamSelector_DefaultGatewayIP LanConfigParamSelector = 12 LanConfigParamSelector_DefaultGatewayMAC LanConfigParamSelector = 13 LanConfigParamSelector_BackupGatewayIP LanConfigParamSelector = 14 LanConfigParamSelector_BackupGatewayMAC LanConfigParamSelector = 15 LanConfigParamSelector_CommunityString LanConfigParamSelector = 16 LanConfigParamSelector_AlertDestinationsCount LanConfigParamSelector = 17 // read only LanConfigParamSelector_AlertDestinationType LanConfigParamSelector = 18 LanConfigParamSelector_AlertDestinationAddress LanConfigParamSelector = 19 LanConfigParamSelector_VLANID LanConfigParamSelector = 20 LanConfigParamSelector_VLANPriority LanConfigParamSelector = 21 LanConfigParamSelector_CipherSuitesSupport LanConfigParamSelector = 22 // read only LanConfigParamSelector_CipherSuitesID LanConfigParamSelector = 23 // read only LanConfigParamSelector_CipherSuitesPrivLevel LanConfigParamSelector = 24 LanConfigParamSelector_AlertDestinationVLAN LanConfigParamSelector = 25 // can be read only LanConfigParamSelector_BadPasswordThreshold LanConfigParamSelector = 26 LanConfigParamSelector_IPv6Support LanConfigParamSelector = 50 // read only LanConfigParamSelector_IPv6Enables LanConfigParamSelector = 51 LanConfigParamSelector_IPv6StaticTrafficClass LanConfigParamSelector = 52 LanConfigParamSelector_IPv6StaticHopLimit LanConfigParamSelector = 53 LanConfigParamSelector_IPv6FlowLabel LanConfigParamSelector = 54 LanConfigParamSelector_IPv6Status LanConfigParamSelector = 55 // read only LanConfigParamSelector_IPv6StaticAddress LanConfigParamSelector = 56 LanConfigParamSelector_IPv6DHCPv6StaticDUIDCount LanConfigParamSelector = 57 // read only LanConfigParamSelector_IPv6DHCPv6StaticDUID LanConfigParamSelector = 58 LanConfigParamSelector_IPv6DynamicAddress LanConfigParamSelector = 59 // read only LanConfigParamSelector_IPv6DHCPv6DynamicDUIDCount LanConfigParamSelector = 60 // read only LanConfigParamSelector_IPv6DHCPv6DynamicDUID LanConfigParamSelector = 61 LanConfigParamSelector_IPv6DHCPv6TimingConfigSupport LanConfigParamSelector = 62 // read only LanConfigParamSelector_IPv6DHCPv6TimingConfig LanConfigParamSelector = 63 LanConfigParamSelector_IPv6RouterAddressConfigControl LanConfigParamSelector = 64 LanConfigParamSelector_IPv6StaticRouter1IP LanConfigParamSelector = 65 LanConfigParamSelector_IPv6StaticRouter1MAC LanConfigParamSelector = 66 LanConfigParamSelector_IPv6StaticRouter1PrefixLength LanConfigParamSelector = 67 LanConfigParamSelector_IPv6StaticRouter1PrefixValue LanConfigParamSelector = 68 LanConfigParamSelector_IPv6StaticRouter2IP LanConfigParamSelector = 69 LanConfigParamSelector_IPv6StaticRouter2MAC LanConfigParamSelector = 70 LanConfigParamSelector_IPv6StaticRouter2PrefixLength LanConfigParamSelector = 71 LanConfigParamSelector_IPv6StaticRouter2PrefixValue LanConfigParamSelector = 72 LanConfigParamSelector_IPv6DynamicRouterInfoCount LanConfigParamSelector = 73 // read only LanConfigParamSelector_IPv6DynamicRouterInfoIP LanConfigParamSelector = 74 // read only LanConfigParamSelector_IPv6DynamicRouterInfoMAC LanConfigParamSelector = 75 // read only LanConfigParamSelector_IPv6DynamicRouterInfoPrefixLength LanConfigParamSelector = 76 // read only LanConfigParamSelector_IPv6DynamicRouterInfoPrefixValue LanConfigParamSelector = 77 // read only LanConfigParamSelector_IPv6DynamicRouterReceivedHopLimit LanConfigParamSelector = 78 // read only LanConfigParamSelector_IPv6NDSLAACTimingConfigSupport LanConfigParamSelector = 79 // read only, IPv6 Neighbor Discovery / SLAAC LanConfigParamSelector_IPv6NDSLAACTimingConfig LanConfigParamSelector = 80 )
func (LanConfigParamSelector) String ¶ added in v0.7.0
func (lanConfigParam LanConfigParamSelector) String() string
type LanConfigParam_ARPControl ¶ added in v0.7.0
func (*LanConfigParam_ARPControl) Format ¶ added in v0.7.0
func (param *LanConfigParam_ARPControl) Format() string
func (*LanConfigParam_ARPControl) LanConfigParameter ¶ added in v0.7.0
func (param *LanConfigParam_ARPControl) LanConfigParameter() (paramSelector LanConfigParamSelector, setSelector uint8, blockSelector uint8)
func (*LanConfigParam_ARPControl) Pack ¶ added in v0.7.0
func (param *LanConfigParam_ARPControl) Pack() []byte
func (*LanConfigParam_ARPControl) Unpack ¶ added in v0.7.0
func (param *LanConfigParam_ARPControl) Unpack(data []byte) error
type LanConfigParam_AlertDestinationAddress ¶ added in v0.7.0
type LanConfigParam_AlertDestinationAddress struct { SetSelector uint8 IsIPv6 bool // - 0b = use default gateway first, then backup gateway // (Note: older implementations (errata 4 or earlier) may only send to the default gateway.) // - 1b = use backup gateway UseBackupGateway bool IPv4 net.IP MAC net.HardwareAddr IPv6 net.IP }
func (*LanConfigParam_AlertDestinationAddress) Format ¶ added in v0.7.0
func (param *LanConfigParam_AlertDestinationAddress) Format() string
func (*LanConfigParam_AlertDestinationAddress) LanConfigParameter ¶ added in v0.7.0
func (param *LanConfigParam_AlertDestinationAddress) LanConfigParameter() (paramSelector LanConfigParamSelector, setSelector uint8, blockSelector uint8)
func (*LanConfigParam_AlertDestinationAddress) Pack ¶ added in v0.7.0
func (param *LanConfigParam_AlertDestinationAddress) Pack() []byte
func (*LanConfigParam_AlertDestinationAddress) Unpack ¶ added in v0.7.0
func (param *LanConfigParam_AlertDestinationAddress) Unpack(data []byte) error
type LanConfigParam_AlertDestinationType ¶ added in v0.7.0
type LanConfigParam_AlertDestinationType struct { // Destination selector, 0 based. // Destination 0 is always present as a volatile destination that is used with the Alert Immediate command. SetSelector uint8 // Alert Acknowledge // - 0b = Unacknowledged. // Alert is assumed successful if transmission occurs without error. // This value is also used with Callback numbers. // - 1b = Acknowledged. // Alert is assumed successful only if acknowledged is returned. // Note, some alert types, such as Dial Page, do not support an acknowledge AlertAcknowledged bool // Destination Type // - 000b = PET Trap destination // - 001b - 101b = reserved // - 110b = OEM 1 // - 111b = OEM 2 DestinationType uint8 // Alert Acknowledge Timeout / Retry Interval, in seconds, 0-based (i.e. minimum // timeout = 1 second) AlertAcknowledgeTimeout uint8 // Number of times to retry alert to given destination. Retries uint8 }
func (*LanConfigParam_AlertDestinationType) Format ¶ added in v0.7.0
func (param *LanConfigParam_AlertDestinationType) Format() string
func (*LanConfigParam_AlertDestinationType) LanConfigParameter ¶ added in v0.7.0
func (param *LanConfigParam_AlertDestinationType) LanConfigParameter() (paramSelector LanConfigParamSelector, setSelector uint8, blockSelector uint8)
func (*LanConfigParam_AlertDestinationType) Pack ¶ added in v0.7.0
func (param *LanConfigParam_AlertDestinationType) Pack() []byte
func (*LanConfigParam_AlertDestinationType) Unpack ¶ added in v0.7.0
func (param *LanConfigParam_AlertDestinationType) Unpack(data []byte) error
type LanConfigParam_AlertDestinationVLAN ¶ added in v0.7.0
type LanConfigParam_AlertDestinationVLAN struct { // data 1 - Set Selector = Destination Selector. // - [7:4] - reserved // - [3:0] - Destination selector. // Destination 0 is always present as a volatile destination that is used with the Alert Immediate command. SetSelector uint8 // Address Format. // VLAN ID is used with this destination // - 0h = VLAN ID not used with this destination // - 1h = 802.1q VLAN TAG Enabled bool // data 3-4 - VLAN TAG // - [7:0] - VLAN ID, least-significant byte // - [11:8] - VLAN ID, most-significant nibble // - [12] - CFI (Canonical Format Indicator. Set to 0b) // - [15:13] - User priority (000b, typical) VLANID uint16 CFI bool Priority uint8 }
func (*LanConfigParam_AlertDestinationVLAN) Format ¶ added in v0.7.0
func (param *LanConfigParam_AlertDestinationVLAN) Format() string
func (*LanConfigParam_AlertDestinationVLAN) LanConfigParameter ¶ added in v0.7.0
func (param *LanConfigParam_AlertDestinationVLAN) LanConfigParameter() (paramSelector LanConfigParamSelector, setSelector uint8, blockSelector uint8)
func (*LanConfigParam_AlertDestinationVLAN) Pack ¶ added in v0.7.0
func (param *LanConfigParam_AlertDestinationVLAN) Pack() []byte
func (*LanConfigParam_AlertDestinationVLAN) Unpack ¶ added in v0.7.0
func (param *LanConfigParam_AlertDestinationVLAN) Unpack(data []byte) error
type LanConfigParam_AlertDestinationsCount ¶ added in v0.7.0
type LanConfigParam_AlertDestinationsCount struct { // [7:4] - reserved. // [3:0] - Number LAN Destinations. A count of 0h indicates LAN Alerting is not supported. // This value is number of non-volatile destinations. Count uint8 }
Number of LAN Alert Destinations supported on this channel. (Read Only).
At least one set of non-volatile destination information is required if LAN alerting is supported.
Additional non-volatile destination parameters can optionally be provided for supporting an alert 'call down' list policy.
A maximum of fifteen (1h to Fh) non-volatile destinations are supported in this specification. Destination 0 is always present as a volatile destination that is used with the Alert Immediate command.
func (*LanConfigParam_AlertDestinationsCount) Format ¶ added in v0.7.0
func (param *LanConfigParam_AlertDestinationsCount) Format() string
func (*LanConfigParam_AlertDestinationsCount) LanConfigParameter ¶ added in v0.7.0
func (param *LanConfigParam_AlertDestinationsCount) LanConfigParameter() (paramSelector LanConfigParamSelector, setSelector uint8, blockSelector uint8)
func (*LanConfigParam_AlertDestinationsCount) Pack ¶ added in v0.7.0
func (param *LanConfigParam_AlertDestinationsCount) Pack() []byte
func (*LanConfigParam_AlertDestinationsCount) Unpack ¶ added in v0.7.0
func (param *LanConfigParam_AlertDestinationsCount) Unpack(data []byte) error
type LanConfigParam_AuthTypeEnables ¶ added in v0.7.0
type LanConfigParam_AuthTypeEnables struct { Callback *AuthTypesEnabled User *AuthTypesEnabled Operator *AuthTypesEnabled Admin *AuthTypesEnabled OEM *AuthTypesEnabled }
func (*LanConfigParam_AuthTypeEnables) Format ¶ added in v0.7.0
func (param *LanConfigParam_AuthTypeEnables) Format() string
func (*LanConfigParam_AuthTypeEnables) LanConfigParameter ¶ added in v0.7.0
func (param *LanConfigParam_AuthTypeEnables) LanConfigParameter() (paramSelector LanConfigParamSelector, setSelector uint8, blockSelector uint8)
func (*LanConfigParam_AuthTypeEnables) Pack ¶ added in v0.7.0
func (param *LanConfigParam_AuthTypeEnables) Pack() []byte
func (*LanConfigParam_AuthTypeEnables) Unpack ¶ added in v0.7.0
func (param *LanConfigParam_AuthTypeEnables) Unpack(data []byte) error
type LanConfigParam_AuthTypeSupport ¶ added in v0.7.0
func (*LanConfigParam_AuthTypeSupport) Format ¶ added in v0.7.0
func (param *LanConfigParam_AuthTypeSupport) Format() string
func (*LanConfigParam_AuthTypeSupport) LanConfigParameter ¶ added in v0.7.0
func (param *LanConfigParam_AuthTypeSupport) LanConfigParameter() (paramSelector LanConfigParamSelector, setSelector uint8, blockSelector uint8)
func (*LanConfigParam_AuthTypeSupport) Pack ¶ added in v0.7.0
func (param *LanConfigParam_AuthTypeSupport) Pack() []byte
func (*LanConfigParam_AuthTypeSupport) Unpack ¶ added in v0.7.0
func (param *LanConfigParam_AuthTypeSupport) Unpack(data []byte) error
type LanConfigParam_BackupGatewayIP ¶ added in v0.7.0
func (*LanConfigParam_BackupGatewayIP) Format ¶ added in v0.7.0
func (param *LanConfigParam_BackupGatewayIP) Format() string
func (*LanConfigParam_BackupGatewayIP) LanConfigParameter ¶ added in v0.7.0
func (param *LanConfigParam_BackupGatewayIP) LanConfigParameter() (paramSelector LanConfigParamSelector, setSelector uint8, blockSelector uint8)
func (*LanConfigParam_BackupGatewayIP) Pack ¶ added in v0.7.0
func (param *LanConfigParam_BackupGatewayIP) Pack() []byte
func (*LanConfigParam_BackupGatewayIP) Unpack ¶ added in v0.7.0
func (param *LanConfigParam_BackupGatewayIP) Unpack(data []byte) error
type LanConfigParam_BackupGatewayMAC ¶ added in v0.7.0
type LanConfigParam_BackupGatewayMAC struct {
MAC net.HardwareAddr
}
func (*LanConfigParam_BackupGatewayMAC) Format ¶ added in v0.7.0
func (param *LanConfigParam_BackupGatewayMAC) Format() string
func (*LanConfigParam_BackupGatewayMAC) LanConfigParameter ¶ added in v0.7.0
func (param *LanConfigParam_BackupGatewayMAC) LanConfigParameter() (paramSelector LanConfigParamSelector, setSelector uint8, blockSelector uint8)
func (*LanConfigParam_BackupGatewayMAC) Pack ¶ added in v0.7.0
func (param *LanConfigParam_BackupGatewayMAC) Pack() []byte
func (*LanConfigParam_BackupGatewayMAC) Unpack ¶ added in v0.7.0
func (param *LanConfigParam_BackupGatewayMAC) Unpack(data []byte) error
type LanConfigParam_BadPasswordThreshold ¶ added in v0.7.0
type LanConfigParam_BadPasswordThreshold struct { // Generate Session Audit Event // - 0b = do not generate an event message when the user is disabled. // - 1b = generate a Session Audit sensor "Invalid password disable" event message. GenerateSessionAuditEvent bool // Bad Password Threshold number Threshold uint8 // Attempt Count Reset Interval. // The raw data occupies 2 bytes, and the unit is in tens of seconds. // // 0 means the Attempt Count Reset Interval is disabled. // The count of bad password attempts is retained as long as // the BMC remains powered and is not reinitialized. AttemptCountResetIntervalSec uint32 // User Lockout Interval // The raw data occupies 2 bytes, and the unit is in tens of seconds. // // 0 means the User Lockout Interval is disabled. // If a user was automatically disabled due to the Bad Password threshold, // the user will remain disabled until re-enabled via the Set User Access command. UserLockoutIntervalSec uint32 }
func (*LanConfigParam_BadPasswordThreshold) Format ¶ added in v0.7.0
func (param *LanConfigParam_BadPasswordThreshold) Format() string
func (*LanConfigParam_BadPasswordThreshold) LanConfigParameter ¶ added in v0.7.0
func (param *LanConfigParam_BadPasswordThreshold) LanConfigParameter() (paramSelector LanConfigParamSelector, setSelector uint8, blockSelector uint8)
func (*LanConfigParam_BadPasswordThreshold) Pack ¶ added in v0.7.0
func (param *LanConfigParam_BadPasswordThreshold) Pack() []byte
func (*LanConfigParam_BadPasswordThreshold) Unpack ¶ added in v0.7.0
func (param *LanConfigParam_BadPasswordThreshold) Unpack(data []byte) error
type LanConfigParam_CipherSuitesID ¶ added in v0.7.0
type LanConfigParam_CipherSuitesID struct {
IDs [16]CipherSuiteID
}
func (*LanConfigParam_CipherSuitesID) Format ¶ added in v0.7.0
func (param *LanConfigParam_CipherSuitesID) Format() string
func (*LanConfigParam_CipherSuitesID) LanConfigParameter ¶ added in v0.7.0
func (param *LanConfigParam_CipherSuitesID) LanConfigParameter() (paramSelector LanConfigParamSelector, setSelector uint8, blockSelector uint8)
func (*LanConfigParam_CipherSuitesID) Pack ¶ added in v0.7.0
func (param *LanConfigParam_CipherSuitesID) Pack() []byte
func (*LanConfigParam_CipherSuitesID) Unpack ¶ added in v0.7.0
func (param *LanConfigParam_CipherSuitesID) Unpack(data []byte) error
type LanConfigParam_CipherSuitesPrivLevel ¶ added in v0.7.0
type LanConfigParam_CipherSuitesPrivLevel struct {
PrivLevels [16]PrivilegeLevel
}
func (*LanConfigParam_CipherSuitesPrivLevel) Format ¶ added in v0.7.0
func (param *LanConfigParam_CipherSuitesPrivLevel) Format() string
func (*LanConfigParam_CipherSuitesPrivLevel) LanConfigParameter ¶ added in v0.7.0
func (param *LanConfigParam_CipherSuitesPrivLevel) LanConfigParameter() (paramSelector LanConfigParamSelector, setSelector uint8, blockSelector uint8)
func (*LanConfigParam_CipherSuitesPrivLevel) Pack ¶ added in v0.7.0
func (param *LanConfigParam_CipherSuitesPrivLevel) Pack() []byte
func (*LanConfigParam_CipherSuitesPrivLevel) Unpack ¶ added in v0.7.0
func (param *LanConfigParam_CipherSuitesPrivLevel) Unpack(data []byte) error
type LanConfigParam_CipherSuitesSupport ¶ added in v0.7.0
type LanConfigParam_CipherSuitesSupport struct { // Cipher Suite Entry count. Number of Cipher Suite entries, 1-based, 10h max. Count uint8 }
func (*LanConfigParam_CipherSuitesSupport) Format ¶ added in v0.7.0
func (param *LanConfigParam_CipherSuitesSupport) Format() string
func (*LanConfigParam_CipherSuitesSupport) LanConfigParameter ¶ added in v0.7.0
func (param *LanConfigParam_CipherSuitesSupport) LanConfigParameter() (paramSelector LanConfigParamSelector, setSelector uint8, blockSelector uint8)
func (*LanConfigParam_CipherSuitesSupport) Pack ¶ added in v0.7.0
func (param *LanConfigParam_CipherSuitesSupport) Pack() []byte
func (*LanConfigParam_CipherSuitesSupport) Unpack ¶ added in v0.7.0
func (param *LanConfigParam_CipherSuitesSupport) Unpack(data []byte) error
type LanConfigParam_CommunityString ¶ added in v0.7.0
type LanConfigParam_CommunityString struct {
CommunityString CommunityString
}
func (*LanConfigParam_CommunityString) Format ¶ added in v0.7.0
func (param *LanConfigParam_CommunityString) Format() string
func (*LanConfigParam_CommunityString) LanConfigParameter ¶ added in v0.7.0
func (param *LanConfigParam_CommunityString) LanConfigParameter() (paramSelector LanConfigParamSelector, setSelector uint8, blockSelector uint8)
func (*LanConfigParam_CommunityString) Pack ¶ added in v0.7.0
func (param *LanConfigParam_CommunityString) Pack() []byte
func (*LanConfigParam_CommunityString) Unpack ¶ added in v0.7.0
func (param *LanConfigParam_CommunityString) Unpack(data []byte) error
type LanConfigParam_DefaultGatewayIP ¶ added in v0.7.0
func (*LanConfigParam_DefaultGatewayIP) Format ¶ added in v0.7.0
func (param *LanConfigParam_DefaultGatewayIP) Format() string
func (*LanConfigParam_DefaultGatewayIP) LanConfigParameter ¶ added in v0.7.0
func (param *LanConfigParam_DefaultGatewayIP) LanConfigParameter() (paramSelector LanConfigParamSelector, setSelector uint8, blockSelector uint8)
func (*LanConfigParam_DefaultGatewayIP) Pack ¶ added in v0.7.0
func (param *LanConfigParam_DefaultGatewayIP) Pack() []byte
func (*LanConfigParam_DefaultGatewayIP) Unpack ¶ added in v0.7.0
func (param *LanConfigParam_DefaultGatewayIP) Unpack(data []byte) error
type LanConfigParam_DefaultGatewayMAC ¶ added in v0.7.0
type LanConfigParam_DefaultGatewayMAC struct {
MAC net.HardwareAddr
}
func (*LanConfigParam_DefaultGatewayMAC) Format ¶ added in v0.7.0
func (param *LanConfigParam_DefaultGatewayMAC) Format() string
func (*LanConfigParam_DefaultGatewayMAC) LanConfigParameter ¶ added in v0.7.0
func (param *LanConfigParam_DefaultGatewayMAC) LanConfigParameter() (paramSelector LanConfigParamSelector, setSelector uint8, blockSelector uint8)
func (*LanConfigParam_DefaultGatewayMAC) Pack ¶ added in v0.7.0
func (param *LanConfigParam_DefaultGatewayMAC) Pack() []byte
func (*LanConfigParam_DefaultGatewayMAC) Unpack ¶ added in v0.7.0
func (param *LanConfigParam_DefaultGatewayMAC) Unpack(data []byte) error
type LanConfigParam_GratuitousARPInterval ¶ added in v0.7.0
type LanConfigParam_GratuitousARPInterval struct { // Gratuitous ARP interval in 500 millisecond increments. 0-based. MilliSec uint32 }
func (*LanConfigParam_GratuitousARPInterval) Format ¶ added in v0.7.0
func (param *LanConfigParam_GratuitousARPInterval) Format() string
func (*LanConfigParam_GratuitousARPInterval) LanConfigParameter ¶ added in v0.7.0
func (param *LanConfigParam_GratuitousARPInterval) LanConfigParameter() (paramSelector LanConfigParamSelector, setSelector uint8, blockSelector uint8)
func (*LanConfigParam_GratuitousARPInterval) Pack ¶ added in v0.7.0
func (param *LanConfigParam_GratuitousARPInterval) Pack() []byte
func (*LanConfigParam_GratuitousARPInterval) Unpack ¶ added in v0.7.0
func (param *LanConfigParam_GratuitousARPInterval) Unpack(data []byte) error
type LanConfigParam_IP ¶ added in v0.7.0
func (*LanConfigParam_IP) Format ¶ added in v0.7.0
func (param *LanConfigParam_IP) Format() string
func (*LanConfigParam_IP) LanConfigParameter ¶ added in v0.7.0
func (param *LanConfigParam_IP) LanConfigParameter() (paramSelector LanConfigParamSelector, setSelector uint8, blockSelector uint8)
func (*LanConfigParam_IP) Pack ¶ added in v0.7.0
func (param *LanConfigParam_IP) Pack() []byte
func (*LanConfigParam_IP) Unpack ¶ added in v0.7.0
func (param *LanConfigParam_IP) Unpack(data []byte) error
type LanConfigParam_IPSource ¶ added in v0.7.0
type LanConfigParam_IPSource struct {
Source LanIPAddressSource
}
func (*LanConfigParam_IPSource) Format ¶ added in v0.7.0
func (param *LanConfigParam_IPSource) Format() string
func (*LanConfigParam_IPSource) LanConfigParameter ¶ added in v0.7.0
func (param *LanConfigParam_IPSource) LanConfigParameter() (paramSelector LanConfigParamSelector, setSelector uint8, blockSelector uint8)
func (*LanConfigParam_IPSource) Pack ¶ added in v0.7.0
func (param *LanConfigParam_IPSource) Pack() []byte
func (*LanConfigParam_IPSource) Unpack ¶ added in v0.7.0
func (param *LanConfigParam_IPSource) Unpack(data []byte) error
type LanConfigParam_IPv4HeaderParams ¶ added in v0.7.0
type LanConfigParam_IPv4HeaderParams struct { // data 1 - Time-to-live. 1-based. (Default = 40h) // Value for time-to-live parameter in IP Header for RMCP packets and PET Traps // transmitted from this channel. TTL uint8 // data 2 // - [7:5] - Flags. Sets value of bit 1 in the Flags field in the IP Header for packets transmitted // by this channel. (Default = 010b don't fragment) // - [4:0] - reserved Flags uint8 // data 3 // - [7:5] - Precedence (Default = 000b) Precedence uint8 // data 3 // - [4:1] - Type of Service (Default = 1000b, 'minimize delay') // - [0] - reserved TOS uint8 }
func (*LanConfigParam_IPv4HeaderParams) Format ¶ added in v0.7.0
func (param *LanConfigParam_IPv4HeaderParams) Format() string
func (*LanConfigParam_IPv4HeaderParams) LanConfigParameter ¶ added in v0.7.0
func (param *LanConfigParam_IPv4HeaderParams) LanConfigParameter() (paramSelector LanConfigParamSelector, setSelector uint8, blockSelector uint8)
func (*LanConfigParam_IPv4HeaderParams) Pack ¶ added in v0.7.0
func (param *LanConfigParam_IPv4HeaderParams) Pack() []byte
func (*LanConfigParam_IPv4HeaderParams) Unpack ¶ added in v0.7.0
func (param *LanConfigParam_IPv4HeaderParams) Unpack(data []byte) error
type LanConfigParam_IPv6DHCPv6DynamicDUID ¶ added in v0.7.0
type LanConfigParam_IPv6DHCPv6DynamicDUID struct { SetSelector uint8 BlockSelector uint8 DUID [16]byte }
func (*LanConfigParam_IPv6DHCPv6DynamicDUID) Format ¶ added in v0.7.0
func (param *LanConfigParam_IPv6DHCPv6DynamicDUID) Format() string
func (*LanConfigParam_IPv6DHCPv6DynamicDUID) LanConfigParameter ¶ added in v0.7.0
func (param *LanConfigParam_IPv6DHCPv6DynamicDUID) LanConfigParameter() (paramSelector LanConfigParamSelector, setSelector uint8, blockSelector uint8)
func (*LanConfigParam_IPv6DHCPv6DynamicDUID) Pack ¶ added in v0.7.0
func (param *LanConfigParam_IPv6DHCPv6DynamicDUID) Pack() []byte
func (*LanConfigParam_IPv6DHCPv6DynamicDUID) Unpack ¶ added in v0.7.0
func (param *LanConfigParam_IPv6DHCPv6DynamicDUID) Unpack(data []byte) error
type LanConfigParam_IPv6DHCPv6DynamicDUIDCount ¶ added in v0.7.0
type LanConfigParam_IPv6DHCPv6DynamicDUIDCount struct { // The maximum number of 16-byte blocks that can be used for storing each DUID via // the IPv6 DHCPv6 Static DUIDs parameter. 1-based. Returns 0 if IPv6 Static Address // configuration is not supported. Max uint8 }
func (*LanConfigParam_IPv6DHCPv6DynamicDUIDCount) Format ¶ added in v0.7.0
func (param *LanConfigParam_IPv6DHCPv6DynamicDUIDCount) Format() string
func (*LanConfigParam_IPv6DHCPv6DynamicDUIDCount) LanConfigParameter ¶ added in v0.7.0
func (param *LanConfigParam_IPv6DHCPv6DynamicDUIDCount) LanConfigParameter() (paramSelector LanConfigParamSelector, setSelector uint8, blockSelector uint8)
func (*LanConfigParam_IPv6DHCPv6DynamicDUIDCount) Pack ¶ added in v0.7.0
func (param *LanConfigParam_IPv6DHCPv6DynamicDUIDCount) Pack() []byte
func (*LanConfigParam_IPv6DHCPv6DynamicDUIDCount) Unpack ¶ added in v0.7.0
func (param *LanConfigParam_IPv6DHCPv6DynamicDUIDCount) Unpack(data []byte) error
type LanConfigParam_IPv6DHCPv6StaticDUID ¶ added in v0.7.0
type LanConfigParam_IPv6DHCPv6StaticDUID struct { SetSelector uint8 BlockSelector uint8 DUID [16]byte }
func (*LanConfigParam_IPv6DHCPv6StaticDUID) Format ¶ added in v0.7.0
func (param *LanConfigParam_IPv6DHCPv6StaticDUID) Format() string
func (*LanConfigParam_IPv6DHCPv6StaticDUID) LanConfigParameter ¶ added in v0.7.0
func (param *LanConfigParam_IPv6DHCPv6StaticDUID) LanConfigParameter() (paramSelector LanConfigParamSelector, setSelector uint8, blockSelector uint8)
func (*LanConfigParam_IPv6DHCPv6StaticDUID) Pack ¶ added in v0.7.0
func (param *LanConfigParam_IPv6DHCPv6StaticDUID) Pack() []byte
func (*LanConfigParam_IPv6DHCPv6StaticDUID) Unpack ¶ added in v0.7.0
func (param *LanConfigParam_IPv6DHCPv6StaticDUID) Unpack(data []byte) error
type LanConfigParam_IPv6DHCPv6StaticDUIDCount ¶ added in v0.7.0
type LanConfigParam_IPv6DHCPv6StaticDUIDCount struct { // The maximum number of 16-byte blocks that can be used for storing each DUID via // the IPv6 DHCPv6 Static DUIDs parameter. 1-based. Returns 0 if IPv6 Static Address // configuration is not supported. Max uint8 }
func (*LanConfigParam_IPv6DHCPv6StaticDUIDCount) Format ¶ added in v0.7.0
func (param *LanConfigParam_IPv6DHCPv6StaticDUIDCount) Format() string
func (*LanConfigParam_IPv6DHCPv6StaticDUIDCount) LanConfigParameter ¶ added in v0.7.0
func (param *LanConfigParam_IPv6DHCPv6StaticDUIDCount) LanConfigParameter() (paramSelector LanConfigParamSelector, setSelector uint8, blockSelector uint8)
func (*LanConfigParam_IPv6DHCPv6StaticDUIDCount) Pack ¶ added in v0.7.0
func (param *LanConfigParam_IPv6DHCPv6StaticDUIDCount) Pack() []byte
func (*LanConfigParam_IPv6DHCPv6StaticDUIDCount) Unpack ¶ added in v0.7.0
func (param *LanConfigParam_IPv6DHCPv6StaticDUIDCount) Unpack(data []byte) error
type LanConfigParam_IPv6DHCPv6TimingConfig ¶ added in v0.7.0
func (*LanConfigParam_IPv6DHCPv6TimingConfig) Format ¶ added in v0.7.0
func (param *LanConfigParam_IPv6DHCPv6TimingConfig) Format() string
func (*LanConfigParam_IPv6DHCPv6TimingConfig) LanConfigParameter ¶ added in v0.7.0
func (param *LanConfigParam_IPv6DHCPv6TimingConfig) LanConfigParameter() (paramSelector LanConfigParamSelector, setSelector uint8, blockSelector uint8)
func (*LanConfigParam_IPv6DHCPv6TimingConfig) Pack ¶ added in v0.7.0
func (param *LanConfigParam_IPv6DHCPv6TimingConfig) Pack() []byte
func (*LanConfigParam_IPv6DHCPv6TimingConfig) Unpack ¶ added in v0.7.0
func (param *LanConfigParam_IPv6DHCPv6TimingConfig) Unpack(data []byte) error
type LanConfigParam_IPv6DHCPv6TimingConfigSupport ¶ added in v0.7.0
type LanConfigParam_IPv6DHCPv6TimingConfigSupport struct {
Mode LanIPv6DHCPv6TimingConfigMode
}
func (*LanConfigParam_IPv6DHCPv6TimingConfigSupport) Format ¶ added in v0.7.0
func (param *LanConfigParam_IPv6DHCPv6TimingConfigSupport) Format() string
func (*LanConfigParam_IPv6DHCPv6TimingConfigSupport) LanConfigParameter ¶ added in v0.7.0
func (param *LanConfigParam_IPv6DHCPv6TimingConfigSupport) LanConfigParameter() (paramSelector LanConfigParamSelector, setSelector uint8, blockSelector uint8)
func (*LanConfigParam_IPv6DHCPv6TimingConfigSupport) Pack ¶ added in v0.7.0
func (param *LanConfigParam_IPv6DHCPv6TimingConfigSupport) Pack() []byte
func (*LanConfigParam_IPv6DHCPv6TimingConfigSupport) Unpack ¶ added in v0.7.0
func (param *LanConfigParam_IPv6DHCPv6TimingConfigSupport) Unpack(data []byte) error
type LanConfigParam_IPv6DynamicAddress ¶ added in v0.7.0
type LanConfigParam_IPv6DynamicAddress struct { SetSelector uint8 Enabled bool Source LanIPv6DynamicAddressSource IPv6 net.IP PrefixLength uint8 Status LanIPv6AddressStatus }
func (*LanConfigParam_IPv6DynamicAddress) Format ¶ added in v0.7.0
func (param *LanConfigParam_IPv6DynamicAddress) Format() string
func (*LanConfigParam_IPv6DynamicAddress) LanConfigParameter ¶ added in v0.7.0
func (param *LanConfigParam_IPv6DynamicAddress) LanConfigParameter() (paramSelector LanConfigParamSelector, setSelector uint8, blockSelector uint8)
func (*LanConfigParam_IPv6DynamicAddress) Pack ¶ added in v0.7.0
func (param *LanConfigParam_IPv6DynamicAddress) Pack() []byte
func (*LanConfigParam_IPv6DynamicAddress) Unpack ¶ added in v0.7.0
func (param *LanConfigParam_IPv6DynamicAddress) Unpack(data []byte) error
type LanConfigParam_IPv6DynamicRouterInfoIP ¶ added in v0.7.0
func (*LanConfigParam_IPv6DynamicRouterInfoIP) Format ¶ added in v0.7.0
func (param *LanConfigParam_IPv6DynamicRouterInfoIP) Format() string
func (*LanConfigParam_IPv6DynamicRouterInfoIP) LanConfigParameter ¶ added in v0.7.0
func (param *LanConfigParam_IPv6DynamicRouterInfoIP) LanConfigParameter() (paramSelector LanConfigParamSelector, setSelector uint8, blockSelector uint8)
func (*LanConfigParam_IPv6DynamicRouterInfoIP) Pack ¶ added in v0.7.0
func (param *LanConfigParam_IPv6DynamicRouterInfoIP) Pack() []byte
func (*LanConfigParam_IPv6DynamicRouterInfoIP) Unpack ¶ added in v0.7.0
func (param *LanConfigParam_IPv6DynamicRouterInfoIP) Unpack(data []byte) error
type LanConfigParam_IPv6DynamicRouterInfoMAC ¶ added in v0.7.0
type LanConfigParam_IPv6DynamicRouterInfoMAC struct { SetSelector uint8 MAC net.HardwareAddr }
func (*LanConfigParam_IPv6DynamicRouterInfoMAC) Format ¶ added in v0.7.0
func (param *LanConfigParam_IPv6DynamicRouterInfoMAC) Format() string
func (*LanConfigParam_IPv6DynamicRouterInfoMAC) LanConfigParameter ¶ added in v0.7.0
func (param *LanConfigParam_IPv6DynamicRouterInfoMAC) LanConfigParameter() (paramSelector LanConfigParamSelector, setSelector uint8, blockSelector uint8)
func (*LanConfigParam_IPv6DynamicRouterInfoMAC) Pack ¶ added in v0.7.0
func (param *LanConfigParam_IPv6DynamicRouterInfoMAC) Pack() []byte
func (*LanConfigParam_IPv6DynamicRouterInfoMAC) Unpack ¶ added in v0.7.0
func (param *LanConfigParam_IPv6DynamicRouterInfoMAC) Unpack(data []byte) error
type LanConfigParam_IPv6DynamicRouterInfoPrefixLength ¶ added in v0.7.0
type LanConfigParam_IPv6DynamicRouterInfoPrefixLength struct { SetSelector uint8 PrefixLength uint8 }
func (*LanConfigParam_IPv6DynamicRouterInfoPrefixLength) Format ¶ added in v0.7.0
func (param *LanConfigParam_IPv6DynamicRouterInfoPrefixLength) Format() string
func (*LanConfigParam_IPv6DynamicRouterInfoPrefixLength) LanConfigParameter ¶ added in v0.7.0
func (param *LanConfigParam_IPv6DynamicRouterInfoPrefixLength) LanConfigParameter() (paramSelector LanConfigParamSelector, setSelector uint8, blockSelector uint8)
func (*LanConfigParam_IPv6DynamicRouterInfoPrefixLength) Pack ¶ added in v0.7.0
func (param *LanConfigParam_IPv6DynamicRouterInfoPrefixLength) Pack() []byte
func (*LanConfigParam_IPv6DynamicRouterInfoPrefixLength) Unpack ¶ added in v0.7.0
func (param *LanConfigParam_IPv6DynamicRouterInfoPrefixLength) Unpack(data []byte) error
type LanConfigParam_IPv6DynamicRouterInfoPrefixValue ¶ added in v0.7.0
type LanConfigParam_IPv6DynamicRouterInfoPrefixValue struct { SetSelector uint8 PrefixValue [16]byte }
func (*LanConfigParam_IPv6DynamicRouterInfoPrefixValue) Format ¶ added in v0.7.0
func (param *LanConfigParam_IPv6DynamicRouterInfoPrefixValue) Format() string
func (*LanConfigParam_IPv6DynamicRouterInfoPrefixValue) LanConfigParameter ¶ added in v0.7.0
func (param *LanConfigParam_IPv6DynamicRouterInfoPrefixValue) LanConfigParameter() (paramSelector LanConfigParamSelector, setSelector uint8, blockSelector uint8)
func (*LanConfigParam_IPv6DynamicRouterInfoPrefixValue) Pack ¶ added in v0.7.0
func (param *LanConfigParam_IPv6DynamicRouterInfoPrefixValue) Pack() []byte
func (*LanConfigParam_IPv6DynamicRouterInfoPrefixValue) Unpack ¶ added in v0.7.0
func (param *LanConfigParam_IPv6DynamicRouterInfoPrefixValue) Unpack(data []byte) error
type LanConfigParam_IPv6DynamicRouterInfoSets ¶ added in v0.7.0
type LanConfigParam_IPv6DynamicRouterInfoSets struct { // Number of dynamic Router Address information entries Count uint8 }
func (*LanConfigParam_IPv6DynamicRouterInfoSets) Format ¶ added in v0.7.0
func (param *LanConfigParam_IPv6DynamicRouterInfoSets) Format() string
func (*LanConfigParam_IPv6DynamicRouterInfoSets) LanConfigParameter ¶ added in v0.7.0
func (param *LanConfigParam_IPv6DynamicRouterInfoSets) LanConfigParameter() (paramSelector LanConfigParamSelector, setSelector uint8, blockSelector uint8)
func (*LanConfigParam_IPv6DynamicRouterInfoSets) Pack ¶ added in v0.7.0
func (param *LanConfigParam_IPv6DynamicRouterInfoSets) Pack() []byte
func (*LanConfigParam_IPv6DynamicRouterInfoSets) Unpack ¶ added in v0.7.0
func (param *LanConfigParam_IPv6DynamicRouterInfoSets) Unpack(data []byte) error
type LanConfigParam_IPv6DynamicRouterReceivedHopLimit ¶ added in v0.7.0
type LanConfigParam_IPv6DynamicRouterReceivedHopLimit struct {
HopLimit uint8
}
func (*LanConfigParam_IPv6DynamicRouterReceivedHopLimit) Format ¶ added in v0.7.0
func (param *LanConfigParam_IPv6DynamicRouterReceivedHopLimit) Format() string
func (*LanConfigParam_IPv6DynamicRouterReceivedHopLimit) LanConfigParameter ¶ added in v0.7.0
func (param *LanConfigParam_IPv6DynamicRouterReceivedHopLimit) LanConfigParameter() (paramSelector LanConfigParamSelector, setSelector uint8, blockSelector uint8)
func (*LanConfigParam_IPv6DynamicRouterReceivedHopLimit) Pack ¶ added in v0.7.0
func (param *LanConfigParam_IPv6DynamicRouterReceivedHopLimit) Pack() []byte
func (*LanConfigParam_IPv6DynamicRouterReceivedHopLimit) Unpack ¶ added in v0.7.0
func (param *LanConfigParam_IPv6DynamicRouterReceivedHopLimit) Unpack(data []byte) error
type LanConfigParam_IPv6Enables ¶ added in v0.7.0
type LanConfigParam_IPv6Enables struct {
EnableMode LanIPv6EnableMode
}
func (*LanConfigParam_IPv6Enables) Format ¶ added in v0.7.0
func (param *LanConfigParam_IPv6Enables) Format() string
func (*LanConfigParam_IPv6Enables) LanConfigParameter ¶ added in v0.7.0
func (param *LanConfigParam_IPv6Enables) LanConfigParameter() (paramSelector LanConfigParamSelector, setSelector uint8, blockSelector uint8)
func (*LanConfigParam_IPv6Enables) Pack ¶ added in v0.7.0
func (param *LanConfigParam_IPv6Enables) Pack() []byte
func (*LanConfigParam_IPv6Enables) Unpack ¶ added in v0.7.0
func (param *LanConfigParam_IPv6Enables) Unpack(data []byte) error
type LanConfigParam_IPv6FlowLabel ¶ added in v0.7.0
type LanConfigParam_IPv6FlowLabel struct { // Flow Label, 20-bits, right justified, MS Byte first. Default = 0. // // Three bytes. // // If this configuration parameter is not supported, the Flow Label shall be set to 0 per [RFC2460]. // Bits [23:20] = reserved - set to 0b. // see: https://datatracker.ietf.org/doc/html/rfc2460#page-25 FlowLabel uint32 }
func (*LanConfigParam_IPv6FlowLabel) Format ¶ added in v0.7.0
func (param *LanConfigParam_IPv6FlowLabel) Format() string
func (*LanConfigParam_IPv6FlowLabel) LanConfigParameter ¶ added in v0.7.0
func (param *LanConfigParam_IPv6FlowLabel) LanConfigParameter() (paramSelector LanConfigParamSelector, setSelector uint8, blockSelector uint8)
func (*LanConfigParam_IPv6FlowLabel) Pack ¶ added in v0.7.0
func (param *LanConfigParam_IPv6FlowLabel) Pack() []byte
func (*LanConfigParam_IPv6FlowLabel) Unpack ¶ added in v0.7.0
func (param *LanConfigParam_IPv6FlowLabel) Unpack(data []byte) error
type LanConfigParam_IPv6NDSLAACTimingConfig ¶ added in v0.7.0
func (*LanConfigParam_IPv6NDSLAACTimingConfig) Format ¶ added in v0.7.0
func (param *LanConfigParam_IPv6NDSLAACTimingConfig) Format() string
func (*LanConfigParam_IPv6NDSLAACTimingConfig) LanConfigParameter ¶ added in v0.7.0
func (param *LanConfigParam_IPv6NDSLAACTimingConfig) LanConfigParameter() (paramSelector LanConfigParamSelector, setSelector uint8, blockSelector uint8)
func (*LanConfigParam_IPv6NDSLAACTimingConfig) Pack ¶ added in v0.7.0
func (param *LanConfigParam_IPv6NDSLAACTimingConfig) Pack() []byte
func (*LanConfigParam_IPv6NDSLAACTimingConfig) Unpack ¶ added in v0.7.0
func (param *LanConfigParam_IPv6NDSLAACTimingConfig) Unpack(data []byte) error
type LanConfigParam_IPv6NDSLAACTimingConfigSupport ¶ added in v0.7.0
type LanConfigParam_IPv6NDSLAACTimingConfigSupport struct {
Mode LanIPv6NDSLAACTimingConfigMode
}
func (*LanConfigParam_IPv6NDSLAACTimingConfigSupport) Format ¶ added in v0.7.0
func (param *LanConfigParam_IPv6NDSLAACTimingConfigSupport) Format() string
func (*LanConfigParam_IPv6NDSLAACTimingConfigSupport) LanConfigParameter ¶ added in v0.7.0
func (param *LanConfigParam_IPv6NDSLAACTimingConfigSupport) LanConfigParameter() (paramSelector LanConfigParamSelector, setSelector uint8, blockSelector uint8)
func (*LanConfigParam_IPv6NDSLAACTimingConfigSupport) Pack ¶ added in v0.7.0
func (param *LanConfigParam_IPv6NDSLAACTimingConfigSupport) Pack() []byte
func (*LanConfigParam_IPv6NDSLAACTimingConfigSupport) Unpack ¶ added in v0.7.0
func (param *LanConfigParam_IPv6NDSLAACTimingConfigSupport) Unpack(data []byte) error
type LanConfigParam_IPv6RouterAddressConfigControl ¶ added in v0.7.0
type LanConfigParam_IPv6RouterAddressConfigControl struct { // enable dynamic router address configuration via router advertisement messages. EnableDynamic bool // enable static router address EnableStatic bool }
func (*LanConfigParam_IPv6RouterAddressConfigControl) Format ¶ added in v0.7.0
func (param *LanConfigParam_IPv6RouterAddressConfigControl) Format() string
func (*LanConfigParam_IPv6RouterAddressConfigControl) LanConfigParameter ¶ added in v0.7.0
func (param *LanConfigParam_IPv6RouterAddressConfigControl) LanConfigParameter() (paramSelector LanConfigParamSelector, setSelector uint8, blockSelector uint8)
func (*LanConfigParam_IPv6RouterAddressConfigControl) Pack ¶ added in v0.7.0
func (param *LanConfigParam_IPv6RouterAddressConfigControl) Pack() []byte
func (*LanConfigParam_IPv6RouterAddressConfigControl) Unpack ¶ added in v0.7.0
func (param *LanConfigParam_IPv6RouterAddressConfigControl) Unpack(data []byte) error
type LanConfigParam_IPv6StaticAddress ¶ added in v0.7.0
type LanConfigParam_IPv6StaticAddress struct { SetSelector uint8 // Address Enabled // - [7]- enable=1/disable=0 Enabled bool // Address Source // [3:0]- source/type // - 0h = Static // - All other = reserved Source LanIPv6StaticAddressSource IPv6 net.IP PrefixLength uint8 Status LanIPv6AddressStatus }
func (*LanConfigParam_IPv6StaticAddress) Format ¶ added in v0.7.0
func (param *LanConfigParam_IPv6StaticAddress) Format() string
func (*LanConfigParam_IPv6StaticAddress) LanConfigParameter ¶ added in v0.7.0
func (param *LanConfigParam_IPv6StaticAddress) LanConfigParameter() (paramSelector LanConfigParamSelector, setSelector uint8, blockSelector uint8)
func (*LanConfigParam_IPv6StaticAddress) Pack ¶ added in v0.7.0
func (param *LanConfigParam_IPv6StaticAddress) Pack() []byte
func (*LanConfigParam_IPv6StaticAddress) Unpack ¶ added in v0.7.0
func (param *LanConfigParam_IPv6StaticAddress) Unpack(data []byte) error
type LanConfigParam_IPv6StaticHopLimit ¶ added in v0.7.0
type LanConfigParam_IPv6StaticHopLimit struct {
HopLimit uint8
}
func (*LanConfigParam_IPv6StaticHopLimit) Format ¶ added in v0.7.0
func (param *LanConfigParam_IPv6StaticHopLimit) Format() string
func (*LanConfigParam_IPv6StaticHopLimit) LanConfigParameter ¶ added in v0.7.0
func (param *LanConfigParam_IPv6StaticHopLimit) LanConfigParameter() (paramSelector LanConfigParamSelector, setSelector uint8, blockSelector uint8)
func (*LanConfigParam_IPv6StaticHopLimit) Pack ¶ added in v0.7.0
func (param *LanConfigParam_IPv6StaticHopLimit) Pack() []byte
func (*LanConfigParam_IPv6StaticHopLimit) Unpack ¶ added in v0.7.0
func (param *LanConfigParam_IPv6StaticHopLimit) Unpack(data []byte) error
type LanConfigParam_IPv6StaticRouter1IP ¶ added in v0.7.0
func (*LanConfigParam_IPv6StaticRouter1IP) Format ¶ added in v0.7.0
func (param *LanConfigParam_IPv6StaticRouter1IP) Format() string
func (*LanConfigParam_IPv6StaticRouter1IP) LanConfigParameter ¶ added in v0.7.0
func (param *LanConfigParam_IPv6StaticRouter1IP) LanConfigParameter() (paramSelector LanConfigParamSelector, setSelector uint8, blockSelector uint8)
func (*LanConfigParam_IPv6StaticRouter1IP) Pack ¶ added in v0.7.0
func (param *LanConfigParam_IPv6StaticRouter1IP) Pack() []byte
func (*LanConfigParam_IPv6StaticRouter1IP) Unpack ¶ added in v0.7.0
func (param *LanConfigParam_IPv6StaticRouter1IP) Unpack(data []byte) error
type LanConfigParam_IPv6StaticRouter1MAC ¶ added in v0.7.0
type LanConfigParam_IPv6StaticRouter1MAC struct {
MAC net.HardwareAddr
}
func (*LanConfigParam_IPv6StaticRouter1MAC) Format ¶ added in v0.7.0
func (param *LanConfigParam_IPv6StaticRouter1MAC) Format() string
func (*LanConfigParam_IPv6StaticRouter1MAC) LanConfigParameter ¶ added in v0.7.0
func (param *LanConfigParam_IPv6StaticRouter1MAC) LanConfigParameter() (paramSelector LanConfigParamSelector, setSelector uint8, blockSelector uint8)
func (*LanConfigParam_IPv6StaticRouter1MAC) Pack ¶ added in v0.7.0
func (param *LanConfigParam_IPv6StaticRouter1MAC) Pack() []byte
func (*LanConfigParam_IPv6StaticRouter1MAC) Unpack ¶ added in v0.7.0
func (param *LanConfigParam_IPv6StaticRouter1MAC) Unpack(data []byte) error
type LanConfigParam_IPv6StaticRouter1PrefixLength ¶ added in v0.7.0
type LanConfigParam_IPv6StaticRouter1PrefixLength struct {
PrefixLength uint8
}
func (*LanConfigParam_IPv6StaticRouter1PrefixLength) Format ¶ added in v0.7.0
func (param *LanConfigParam_IPv6StaticRouter1PrefixLength) Format() string
func (*LanConfigParam_IPv6StaticRouter1PrefixLength) LanConfigParameter ¶ added in v0.7.0
func (param *LanConfigParam_IPv6StaticRouter1PrefixLength) LanConfigParameter() (paramSelector LanConfigParamSelector, setSelector uint8, blockSelector uint8)
func (*LanConfigParam_IPv6StaticRouter1PrefixLength) Pack ¶ added in v0.7.0
func (param *LanConfigParam_IPv6StaticRouter1PrefixLength) Pack() []byte
func (*LanConfigParam_IPv6StaticRouter1PrefixLength) Unpack ¶ added in v0.7.0
func (param *LanConfigParam_IPv6StaticRouter1PrefixLength) Unpack(data []byte) error
type LanConfigParam_IPv6StaticRouter1PrefixValue ¶ added in v0.7.0
type LanConfigParam_IPv6StaticRouter1PrefixValue struct {
PrefixValue [16]byte
}
func (*LanConfigParam_IPv6StaticRouter1PrefixValue) Format ¶ added in v0.7.0
func (param *LanConfigParam_IPv6StaticRouter1PrefixValue) Format() string
func (*LanConfigParam_IPv6StaticRouter1PrefixValue) LanConfigParameter ¶ added in v0.7.0
func (param *LanConfigParam_IPv6StaticRouter1PrefixValue) LanConfigParameter() (paramSelector LanConfigParamSelector, setSelector uint8, blockSelector uint8)
func (*LanConfigParam_IPv6StaticRouter1PrefixValue) Pack ¶ added in v0.7.0
func (param *LanConfigParam_IPv6StaticRouter1PrefixValue) Pack() []byte
func (*LanConfigParam_IPv6StaticRouter1PrefixValue) Unpack ¶ added in v0.7.0
func (param *LanConfigParam_IPv6StaticRouter1PrefixValue) Unpack(data []byte) error
type LanConfigParam_IPv6StaticRouter2IP ¶ added in v0.7.0
func (*LanConfigParam_IPv6StaticRouter2IP) Format ¶ added in v0.7.0
func (param *LanConfigParam_IPv6StaticRouter2IP) Format() string
func (*LanConfigParam_IPv6StaticRouter2IP) LanConfigParameter ¶ added in v0.7.0
func (param *LanConfigParam_IPv6StaticRouter2IP) LanConfigParameter() (paramSelector LanConfigParamSelector, setSelector uint8, blockSelector uint8)
func (*LanConfigParam_IPv6StaticRouter2IP) Pack ¶ added in v0.7.0
func (param *LanConfigParam_IPv6StaticRouter2IP) Pack() []byte
func (*LanConfigParam_IPv6StaticRouter2IP) Unpack ¶ added in v0.7.0
func (param *LanConfigParam_IPv6StaticRouter2IP) Unpack(data []byte) error
type LanConfigParam_IPv6StaticRouter2MAC ¶ added in v0.7.0
type LanConfigParam_IPv6StaticRouter2MAC struct {
MAC net.HardwareAddr
}
func (*LanConfigParam_IPv6StaticRouter2MAC) Format ¶ added in v0.7.0
func (param *LanConfigParam_IPv6StaticRouter2MAC) Format() string
func (*LanConfigParam_IPv6StaticRouter2MAC) LanConfigParameter ¶ added in v0.7.0
func (param *LanConfigParam_IPv6StaticRouter2MAC) LanConfigParameter() (paramSelector LanConfigParamSelector, setSelector uint8, blockSelector uint8)
func (*LanConfigParam_IPv6StaticRouter2MAC) Pack ¶ added in v0.7.0
func (param *LanConfigParam_IPv6StaticRouter2MAC) Pack() []byte
func (*LanConfigParam_IPv6StaticRouter2MAC) Unpack ¶ added in v0.7.0
func (param *LanConfigParam_IPv6StaticRouter2MAC) Unpack(data []byte) error
type LanConfigParam_IPv6StaticRouter2PrefixLength ¶ added in v0.7.0
type LanConfigParam_IPv6StaticRouter2PrefixLength struct {
PrefixLength uint8
}
func (*LanConfigParam_IPv6StaticRouter2PrefixLength) Format ¶ added in v0.7.0
func (param *LanConfigParam_IPv6StaticRouter2PrefixLength) Format() string
func (*LanConfigParam_IPv6StaticRouter2PrefixLength) LanConfigParameter ¶ added in v0.7.0
func (param *LanConfigParam_IPv6StaticRouter2PrefixLength) LanConfigParameter() (paramSelector LanConfigParamSelector, setSelector uint8, blockSelector uint8)
func (*LanConfigParam_IPv6StaticRouter2PrefixLength) Pack ¶ added in v0.7.0
func (param *LanConfigParam_IPv6StaticRouter2PrefixLength) Pack() []byte
func (*LanConfigParam_IPv6StaticRouter2PrefixLength) Unpack ¶ added in v0.7.0
func (param *LanConfigParam_IPv6StaticRouter2PrefixLength) Unpack(data []byte) error
type LanConfigParam_IPv6StaticRouter2PrefixValue ¶ added in v0.7.0
type LanConfigParam_IPv6StaticRouter2PrefixValue struct {
PrefixValue [16]byte
}
func (*LanConfigParam_IPv6StaticRouter2PrefixValue) Format ¶ added in v0.7.0
func (param *LanConfigParam_IPv6StaticRouter2PrefixValue) Format() string
func (*LanConfigParam_IPv6StaticRouter2PrefixValue) LanConfigParameter ¶ added in v0.7.0
func (param *LanConfigParam_IPv6StaticRouter2PrefixValue) LanConfigParameter() (paramSelector LanConfigParamSelector, setSelector uint8, blockSelector uint8)
func (*LanConfigParam_IPv6StaticRouter2PrefixValue) Pack ¶ added in v0.7.0
func (param *LanConfigParam_IPv6StaticRouter2PrefixValue) Pack() []byte
func (*LanConfigParam_IPv6StaticRouter2PrefixValue) Unpack ¶ added in v0.7.0
func (param *LanConfigParam_IPv6StaticRouter2PrefixValue) Unpack(data []byte) error
type LanConfigParam_IPv6StaticTrafficClass ¶ added in v0.7.0
type LanConfigParam_IPv6StaticTrafficClass struct {
TrafficClass uint8
}
func (*LanConfigParam_IPv6StaticTrafficClass) Format ¶ added in v0.7.0
func (param *LanConfigParam_IPv6StaticTrafficClass) Format() string
func (*LanConfigParam_IPv6StaticTrafficClass) LanConfigParameter ¶ added in v0.7.0
func (param *LanConfigParam_IPv6StaticTrafficClass) LanConfigParameter() (paramSelector LanConfigParamSelector, setSelector uint8, blockSelector uint8)
func (*LanConfigParam_IPv6StaticTrafficClass) Pack ¶ added in v0.7.0
func (param *LanConfigParam_IPv6StaticTrafficClass) Pack() []byte
func (*LanConfigParam_IPv6StaticTrafficClass) Unpack ¶ added in v0.7.0
func (param *LanConfigParam_IPv6StaticTrafficClass) Unpack(data []byte) error
type LanConfigParam_IPv6Status ¶ added in v0.7.0
type LanConfigParam_IPv6Status struct { // Maximum number of static IPv6 addresses for establishing connections to the BMC. // Note: in some implementations this may exceed the number of simultaneous sessions supported on // the channel. 0 indicates that static address configuration is not available. StaticAddressMax uint8 // Maximum number of Dynamic (SLAAC/ DHCPv6) IPv6 addresses that can be obtained for // establishing connections to the BMC. //Note: in some implementations this may exceed the number of simultaneous sessions supported on the channel. // 0 = Dynamic addressing is not supported by the BMC. DynamicAddressMax uint8 // data 3: - // - [7:2] - reserved // - [1] - 1b = SLAAC addressing is supported by the BMC // - [0] - 1b = DHCPv6 addressing is supported by the BMC (optional) SupportSLAACAddressing bool SupportDHCPv6Addressing bool }
func (*LanConfigParam_IPv6Status) Format ¶ added in v0.7.0
func (param *LanConfigParam_IPv6Status) Format() string
func (*LanConfigParam_IPv6Status) LanConfigParameter ¶ added in v0.7.0
func (param *LanConfigParam_IPv6Status) LanConfigParameter() (paramSelector LanConfigParamSelector, setSelector uint8, blockSelector uint8)
func (*LanConfigParam_IPv6Status) Pack ¶ added in v0.7.0
func (param *LanConfigParam_IPv6Status) Pack() []byte
func (*LanConfigParam_IPv6Status) Unpack ¶ added in v0.7.0
func (param *LanConfigParam_IPv6Status) Unpack(data []byte) error
type LanConfigParam_IPv6Support ¶ added in v0.7.0
type LanConfigParam_IPv6Support struct { // Implementation supports IPv6 Destination Addresses for LAN Alerting. SupportIPv6AlertDestination bool // Implementation can be configured to use both IPv4 and IPv6 addresses simultaneously CanUseBothIPv4AndIPv6 bool // Implementation can be configured to use IPv6 addresses only. CanUseIPv6Only bool }
func (*LanConfigParam_IPv6Support) Format ¶ added in v0.7.0
func (param *LanConfigParam_IPv6Support) Format() string
func (*LanConfigParam_IPv6Support) LanConfigParameter ¶ added in v0.7.0
func (param *LanConfigParam_IPv6Support) LanConfigParameter() (paramSelector LanConfigParamSelector, setSelector uint8, blockSelector uint8)
func (*LanConfigParam_IPv6Support) Pack ¶ added in v0.7.0
func (param *LanConfigParam_IPv6Support) Pack() []byte
func (*LanConfigParam_IPv6Support) Unpack ¶ added in v0.7.0
func (param *LanConfigParam_IPv6Support) Unpack(data []byte) error
type LanConfigParam_MAC ¶ added in v0.7.0
type LanConfigParam_MAC struct {
MAC net.HardwareAddr
}
func (*LanConfigParam_MAC) Format ¶ added in v0.7.0
func (param *LanConfigParam_MAC) Format() string
func (*LanConfigParam_MAC) LanConfigParameter ¶ added in v0.7.0
func (param *LanConfigParam_MAC) LanConfigParameter() (paramSelector LanConfigParamSelector, setSelector uint8, blockSelector uint8)
func (*LanConfigParam_MAC) Pack ¶ added in v0.7.0
func (param *LanConfigParam_MAC) Pack() []byte
func (*LanConfigParam_MAC) Unpack ¶ added in v0.7.0
func (param *LanConfigParam_MAC) Unpack(data []byte) error
type LanConfigParam_PrimaryRMCPPort ¶ added in v0.7.0
type LanConfigParam_PrimaryRMCPPort struct {
Port uint16
}
func (*LanConfigParam_PrimaryRMCPPort) Format ¶ added in v0.7.0
func (param *LanConfigParam_PrimaryRMCPPort) Format() string
func (*LanConfigParam_PrimaryRMCPPort) LanConfigParameter ¶ added in v0.7.0
func (param *LanConfigParam_PrimaryRMCPPort) LanConfigParameter() (paramSelector LanConfigParamSelector, setSelector uint8, blockSelector uint8)
func (*LanConfigParam_PrimaryRMCPPort) Pack ¶ added in v0.7.0
func (param *LanConfigParam_PrimaryRMCPPort) Pack() []byte
func (*LanConfigParam_PrimaryRMCPPort) Unpack ¶ added in v0.7.0
func (param *LanConfigParam_PrimaryRMCPPort) Unpack(data []byte) error
type LanConfigParam_SecondaryRMCPPort ¶ added in v0.7.0
type LanConfigParam_SecondaryRMCPPort struct {
Port uint16
}
func (*LanConfigParam_SecondaryRMCPPort) Format ¶ added in v0.7.0
func (param *LanConfigParam_SecondaryRMCPPort) Format() string
func (*LanConfigParam_SecondaryRMCPPort) LanConfigParameter ¶ added in v0.7.0
func (param *LanConfigParam_SecondaryRMCPPort) LanConfigParameter() (paramSelector LanConfigParamSelector, setSelector uint8, blockSelector uint8)
func (*LanConfigParam_SecondaryRMCPPort) Pack ¶ added in v0.7.0
func (param *LanConfigParam_SecondaryRMCPPort) Pack() []byte
func (*LanConfigParam_SecondaryRMCPPort) Unpack ¶ added in v0.7.0
func (param *LanConfigParam_SecondaryRMCPPort) Unpack(data []byte) error
type LanConfigParam_SetInProgress ¶ added in v0.7.0
type LanConfigParam_SetInProgress struct {
Value SetInProgressState
}
func (*LanConfigParam_SetInProgress) Format ¶ added in v0.7.0
func (param *LanConfigParam_SetInProgress) Format() string
func (*LanConfigParam_SetInProgress) LanConfigParameter ¶ added in v0.7.0
func (param *LanConfigParam_SetInProgress) LanConfigParameter() (paramSelector LanConfigParamSelector, setSelector uint8, blockSelector uint8)
func (*LanConfigParam_SetInProgress) Pack ¶ added in v0.7.0
func (param *LanConfigParam_SetInProgress) Pack() []byte
func (*LanConfigParam_SetInProgress) Unpack ¶ added in v0.7.0
func (param *LanConfigParam_SetInProgress) Unpack(data []byte) error
type LanConfigParam_SubnetMask ¶ added in v0.7.0
func (*LanConfigParam_SubnetMask) Format ¶ added in v0.7.0
func (param *LanConfigParam_SubnetMask) Format() string
func (*LanConfigParam_SubnetMask) LanConfigParameter ¶ added in v0.7.0
func (param *LanConfigParam_SubnetMask) LanConfigParameter() (paramSelector LanConfigParamSelector, setSelector uint8, blockSelector uint8)
func (*LanConfigParam_SubnetMask) Pack ¶ added in v0.7.0
func (param *LanConfigParam_SubnetMask) Pack() []byte
func (*LanConfigParam_SubnetMask) Unpack ¶ added in v0.7.0
func (param *LanConfigParam_SubnetMask) Unpack(data []byte) error
type LanConfigParam_VLANID ¶ added in v0.7.0
func (*LanConfigParam_VLANID) Format ¶ added in v0.7.0
func (param *LanConfigParam_VLANID) Format() string
func (*LanConfigParam_VLANID) LanConfigParameter ¶ added in v0.7.0
func (param *LanConfigParam_VLANID) LanConfigParameter() (paramSelector LanConfigParamSelector, setSelector uint8, blockSelector uint8)
func (*LanConfigParam_VLANID) Pack ¶ added in v0.7.0
func (param *LanConfigParam_VLANID) Pack() []byte
func (*LanConfigParam_VLANID) Unpack ¶ added in v0.7.0
func (param *LanConfigParam_VLANID) Unpack(data []byte) error
type LanConfigParam_VLANPriority ¶ added in v0.7.0
type LanConfigParam_VLANPriority struct {
Priority uint8
}
func (*LanConfigParam_VLANPriority) Format ¶ added in v0.7.0
func (param *LanConfigParam_VLANPriority) Format() string
func (*LanConfigParam_VLANPriority) LanConfigParameter ¶ added in v0.7.0
func (param *LanConfigParam_VLANPriority) LanConfigParameter() (paramSelector LanConfigParamSelector, setSelector uint8, blockSelector uint8)
func (*LanConfigParam_VLANPriority) Pack ¶ added in v0.7.0
func (param *LanConfigParam_VLANPriority) Pack() []byte
func (*LanConfigParam_VLANPriority) Unpack ¶ added in v0.7.0
func (param *LanConfigParam_VLANPriority) Unpack(data []byte) error
type LanConfigParameter ¶ added in v0.7.0
type LanConfigParameter interface { LanConfigParameter() (paramSelector LanConfigParamSelector, setSelector uint8, blockSelector uint8) Parameter }
type LanConfigParams ¶ added in v0.7.1
type LanConfigParams struct { SetInProgress *LanConfigParam_SetInProgress // #0, Read Only AuthTypeSupport *LanConfigParam_AuthTypeSupport // #1 AuthTypeEnables *LanConfigParam_AuthTypeEnables // #2 IP *LanConfigParam_IP // #3 IPSource *LanConfigParam_IPSource // #4 MAC *LanConfigParam_MAC // #5, can be Read Only. An implementation can either allow this parameter to be settable, or it can be implemented as Read Only. SubnetMask *LanConfigParam_SubnetMask // #6 IPv4HeaderParams *LanConfigParam_IPv4HeaderParams // #7 PrimaryRMCPPort *LanConfigParam_PrimaryRMCPPort // #8 SecondaryRMCPPort *LanConfigParam_SecondaryRMCPPort // #9 ARPControl *LanConfigParam_ARPControl // #10 GratuitousARPInterval *LanConfigParam_GratuitousARPInterval // #11 DefaultGatewayIP *LanConfigParam_DefaultGatewayIP // #12 DefaultGatewayMAC *LanConfigParam_DefaultGatewayMAC // #13 BackupGatewayIP *LanConfigParam_BackupGatewayIP // #14 BackupGatewayMAC *LanConfigParam_BackupGatewayMAC // #15 CommunityString *LanConfigParam_CommunityString // #16 AlertDestinationsCount *LanConfigParam_AlertDestinationsCount // #17, Read Only AlertDestinationTypes []*LanConfigParam_AlertDestinationType // #18 AlertDestinationAddresses []*LanConfigParam_AlertDestinationAddress // #19 VLANID *LanConfigParam_VLANID // #20 VLANPriority *LanConfigParam_VLANPriority // #21 CipherSuitesSupport *LanConfigParam_CipherSuitesSupport // #22, Read Only CipherSuitesID *LanConfigParam_CipherSuitesID // #23, Read Only CipherSuitesPrivLevel *LanConfigParam_CipherSuitesPrivLevel // #24 AlertDestinationVLANs []*LanConfigParam_AlertDestinationVLAN // #25, can be READ ONLY BadPasswordThreshold *LanConfigParam_BadPasswordThreshold // #26 IPv6Support *LanConfigParam_IPv6Support // #50, Read Only IPv6Enables *LanConfigParam_IPv6Enables // #51 IPv6StaticTrafficClass *LanConfigParam_IPv6StaticTrafficClass // #52 IPv6StaticHopLimit *LanConfigParam_IPv6StaticHopLimit // #53 IPv6FlowLabel *LanConfigParam_IPv6FlowLabel // #54 IPv6Status *LanConfigParam_IPv6Status // #55, Read Only IPv6StaticAddresses []*LanConfigParam_IPv6StaticAddress // #56 IPv6DHCPv6StaticDUIDCount *LanConfigParam_IPv6DHCPv6StaticDUIDCount // #57, Read Only IPv6DHCPv6StaticDUIDs []*LanConfigParam_IPv6DHCPv6StaticDUID // #58 IPv6DynamicAddresses []*LanConfigParam_IPv6DynamicAddress // #59, Read Only IPv6DHCPv6DynamicDUIDCount *LanConfigParam_IPv6DHCPv6DynamicDUIDCount // #60, Read Only IPv6DHCPv6DynamicDUIDs []*LanConfigParam_IPv6DHCPv6DynamicDUID // #61 IPv6DHCPv6TimingConfigSupport *LanConfigParam_IPv6DHCPv6TimingConfigSupport // #62, Read Only IPv6DHCPv6TimingConfig []*LanConfigParam_IPv6DHCPv6TimingConfig // #63 IPv6RouterAddressConfigControl *LanConfigParam_IPv6RouterAddressConfigControl // #64 IPv6StaticRouter1IP *LanConfigParam_IPv6StaticRouter1IP // #65 IPv6StaticRouter1MAC *LanConfigParam_IPv6StaticRouter1MAC // #66 IPv6StaticRouter1PrefixLength *LanConfigParam_IPv6StaticRouter1PrefixLength // #67 IPv6StaticRouter1PrefixValue *LanConfigParam_IPv6StaticRouter1PrefixValue // #68 IPv6StaticRouter2IP *LanConfigParam_IPv6StaticRouter2IP // #69 IPv6StaticRouter2MAC *LanConfigParam_IPv6StaticRouter2MAC // #70 IPv6StaticRouter2PrefixLength *LanConfigParam_IPv6StaticRouter2PrefixLength // #71 IPv6StaticRouter2PrefixValue *LanConfigParam_IPv6StaticRouter2PrefixValue // #72 IPv6DynamicRouterInfoSets *LanConfigParam_IPv6DynamicRouterInfoSets // #73, Read Only IPv6DynamicRouterInfoIP []*LanConfigParam_IPv6DynamicRouterInfoIP // #74 IPv6DynamicRouterInfoMAC []*LanConfigParam_IPv6DynamicRouterInfoMAC // #75 IPv6DynamicRouterInfoPrefixLength []*LanConfigParam_IPv6DynamicRouterInfoPrefixLength // #76 IPv6DynamicRouterInfoPrefixValue []*LanConfigParam_IPv6DynamicRouterInfoPrefixValue // #77 IPv6DynamicRouterReceivedHopLimit *LanConfigParam_IPv6DynamicRouterReceivedHopLimit // #78 IPv6NDSLAACTimingConfigSupport *LanConfigParam_IPv6NDSLAACTimingConfigSupport // #79, Read Only IPv6NDSLAACTimingConfig []*LanConfigParam_IPv6NDSLAACTimingConfig // #80 }
func (*LanConfigParams) Format ¶ added in v0.7.1
func (lanConfigParams *LanConfigParams) Format() string
func (*LanConfigParams) ToLanConfig ¶ added in v0.7.1
func (lanConfigParams *LanConfigParams) ToLanConfig() *LanConfig
type LanIPAddressSource ¶ added in v0.7.0
type LanIPAddressSource uint8
see: LanConfigParameter_IPAddressSource (#4)
const ( IPAddressSourceUnspecified LanIPAddressSource = 0x00 IPAddressSourceStatic LanIPAddressSource = 0x01 IPAddressSourceDHCP LanIPAddressSource = 0x02 IPAddressSourceBIOS LanIPAddressSource = 0x03 IPAddressSourceOther LanIPAddressSource = 0x04 )
func (LanIPAddressSource) String ¶ added in v0.7.0
func (i LanIPAddressSource) String() string
type LanIPv6AddressStatus ¶ added in v0.7.0
type LanIPv6AddressStatus uint8
Address Status (Read-only parameter)
- 00h = Active (in-use)
- 01h = Disabled
- 02h = Pending (currently undergoing DAD [duplicate address detection], optional)
- 03h = Failed (duplicate address found, optional)
- 04h = Deprecated (preferred timer has expired, optional)
- 05h = Invalid (validity timer has expired, optional)
- All other = reserved
const ( LanIPv6AddressStatus_Active LanIPv6AddressStatus = 0 LanIPv6AddressStatus_Disabled LanIPv6AddressStatus = 1 LanIPv6AddressStatus_Pending LanIPv6AddressStatus = 2 LanIPv6AddressStatus_Failed LanIPv6AddressStatus = 3 LanIPv6AddressStatus_Deprecated LanIPv6AddressStatus = 4 LanIPv6AddressStatus_Invalid LanIPv6AddressStatus = 5 )
func (LanIPv6AddressStatus) String ¶ added in v0.7.0
func (addressStatus LanIPv6AddressStatus) String() string
type LanIPv6DHCPv6TimingConfigMode ¶ added in v0.7.0
type LanIPv6DHCPv6TimingConfigMode uint8
DHCPv6 Timing Configuration Mode
- 00b = `Not Supported` DHCPv6 timing configuration per IPMI is not supported.
- 01b = `Global` Timing configuration applies across all interfaces (IAs) that use dynamic addressing and have DHCPv6 is enabled.
- 10b = `Per Interface` Timing is configurable for each interface and used when DHCPv6 is enabled for the given interface (IA).
- 11b = reserved
const ( LanIPv6DHCPv6TimingConfigMode_NotSupported LanIPv6DHCPv6TimingConfigMode = 0 LanIPv6DHCPv6TimingConfigMode_Global LanIPv6DHCPv6TimingConfigMode = 1 LanIPv6DHCPv6TimingConfigMode_PerInterface LanIPv6DHCPv6TimingConfigMode = 2 )
func (LanIPv6DHCPv6TimingConfigMode) String ¶ added in v0.7.0
func (mode LanIPv6DHCPv6TimingConfigMode) String() string
type LanIPv6DynamicAddressSource ¶ added in v0.7.0
type LanIPv6DynamicAddressSource uint8
Address source/type
- 0 - Reserved
- 1 - SLAAC (StateLess Address Auto Configuration)
- 2 - DHCPv6 (optional)
- Other - reserved
const ( LanIPv6AddressSource_SLAAC LanIPv6DynamicAddressSource = 1 LanIPv6AddressSource_DHCPv6 LanIPv6DynamicAddressSource = 2 )
func (LanIPv6DynamicAddressSource) String ¶ added in v0.7.0
func (addressSource LanIPv6DynamicAddressSource) String() string
type LanIPv6EnableMode ¶ added in v0.7.0
type LanIPv6EnableMode uint8
const ( // 00h = IPv6 addressing disabled. LanIPv6EnableMode_IPv6Disabled LanIPv6EnableMode = 0 // 01h = Enable IPv6 addressing only. IPv4 addressing is disabled. LanIPv6EnableMode_IPv6Only LanIPv6EnableMode = 1 // 02h = Enable IPv6 and IPv4 addressing simultaneously. LanIPv6EnableMode_IPv4AndIPv6 LanIPv6EnableMode = 2 )
func (LanIPv6EnableMode) String ¶ added in v0.7.0
func (enableMode LanIPv6EnableMode) String() string
type LanIPv6NDSLAACTimingConfigMode ¶ added in v0.7.0
type LanIPv6NDSLAACTimingConfigMode uint8
func (LanIPv6NDSLAACTimingConfigMode) String ¶ added in v0.7.0
func (mode LanIPv6NDSLAACTimingConfigMode) String() string
type LanIPv6StaticAddressSource ¶ added in v0.7.0
type LanIPv6StaticAddressSource uint8
IPv6 Static Address Source
- 0h = Static
- All other = reserved
const (
LanIPv6StaticAddressSource_Static LanIPv6StaticAddressSource = 0
)
func (LanIPv6StaticAddressSource) String ¶ added in v0.7.0
func (addressSource LanIPv6StaticAddressSource) String() string
type LinearizationFunc ¶ added in v0.2.0
type LinearizationFunc uint8
LinearizationFunc is linearization function used in "Sensor Reading Conversion Formula" 线性化函数
const ( LinearizationFunc_Linear LinearizationFunc = 0x00 LinearizationFunc_LN LinearizationFunc = 0x01 LinearizationFunc_LOG10 LinearizationFunc = 0x02 LinearizationFunc_LOG2 LinearizationFunc = 0x03 LinearizationFunc_E LinearizationFunc = 0x04 LinearizationFunc_EXP10 LinearizationFunc = 0x05 LinearizationFunc_EXP2 LinearizationFunc = 0x06 LinearizationFunc_1X LinearizationFunc = 0x07 LinearizationFunc_SQR LinearizationFunc = 0x08 LinearizationFunc_CUBE LinearizationFunc = 0x09 LinearizationFunc_SQRT LinearizationFunc = 0x0a LinearizationFunc_CBRT LinearizationFunc = 0x0b // 70h = non-linear. // 71h-7Fh = non-linear OEM LinearizationFunc_NonLinear LinearizationFunc = 0x70 )
func (LinearizationFunc) Apply ¶ added in v0.2.0
func (l LinearizationFunc) Apply(x float64) float64
Apply applies linearization func (itself) to the input value and returns the result.
func (LinearizationFunc) IsNonLinear ¶ added in v0.2.0
func (l LinearizationFunc) IsNonLinear() bool
func (LinearizationFunc) String ¶ added in v0.2.0
func (l LinearizationFunc) String() string
type ManagementAccessSubRecordType ¶ added in v0.2.0
type ManagementAccessSubRecordType uint8
func (ManagementAccessSubRecordType) String ¶ added in v0.2.0
func (t ManagementAccessSubRecordType) String() string
type ManufacturingTestOnRequest ¶
type ManufacturingTestOnRequest struct { }
20.4 20.5 Manufacturing Test On Command
func (*ManufacturingTestOnRequest) Command ¶
func (req *ManufacturingTestOnRequest) Command() Command
func (*ManufacturingTestOnRequest) Pack ¶
func (req *ManufacturingTestOnRequest) Pack() []byte
type ManufacturingTestOnResponse ¶
type ManufacturingTestOnResponse struct { }
func (*ManufacturingTestOnResponse) CompletionCodes ¶
func (res *ManufacturingTestOnResponse) CompletionCodes() map[uint8]string
func (*ManufacturingTestOnResponse) Format ¶
func (res *ManufacturingTestOnResponse) Format() string
func (*ManufacturingTestOnResponse) Unpack ¶
func (res *ManufacturingTestOnResponse) Unpack(msg []byte) error
type Mask ¶ added in v0.2.0
type Mask struct { Threshold Mask_Thresholds Discrete Mask_Discrete }
For non-threshold-based sensors, Mask holds:
- Assertion Event Mask
- Deassertion Event Mask
- Discrete Reading Mask
For threshold-based sensors, Mask holds:
- Lower Threshold Reading Mask
- Upper Threshold Reading Mask
- Settable Threshold Mask, Readable Threshold Mask
Used in Full and Compact SDR
func (*Mask) ParseAssertLower ¶ added in v0.2.0
ParseAssertLower fill:
- Assertion Event Mask
- Lower Threshold Reading Mask
- Threshold Assertion Event Mask
func (*Mask) ParseDeassertUpper ¶ added in v0.2.0
func (*Mask) ParseReading ¶ added in v0.2.0
func (*Mask) ReadableThresholds ¶ added in v0.2.0
func (mask *Mask) ReadableThresholds() SensorThresholdTypes
ReadableThresholds returns all readable thresholds for the sensor.
func (*Mask) SettableThresholds ¶ added in v0.2.0
func (mask *Mask) SettableThresholds() SensorThresholdTypes
func (*Mask) StatusReturnedThresholds ¶ added in v0.2.0
func (mask *Mask) StatusReturnedThresholds() SensorThresholdTypes
StatusReturnedThresholds returns all supported thresholds comparison status via the Get Sensor Reading command.
func (*Mask) SupportedThresholdEvents ¶ added in v0.2.0
func (mask *Mask) SupportedThresholdEvents() SensorEvents
type Mask_Discrete ¶ added in v0.2.0
type Mask_Discrete struct { // Assertion Event Mask for non-threshold based sensors, true means assertion event can be generated for this state Assert Mask_DiscreteEvent // Deassertion Event Mask for non-threshold based sensors, true means deassertion event can be generated for this state Deassert Mask_DiscreteEvent // Reading Mask for non-threshold based sensors, true means discrete state can be returned by this sensor Reading Mask_DiscreteEvent }
type Mask_DiscreteEvent ¶ added in v0.2.0
type Mask_DiscreteEvent struct { State_0 bool State_1 bool State_2 bool State_3 bool State_4 bool State_5 bool State_6 bool State_7 bool State_8 bool State_9 bool State_10 bool State_11 bool State_12 bool State_13 bool State_14 bool }
func (Mask_DiscreteEvent) TrueEvents ¶ added in v0.2.0
func (mask Mask_DiscreteEvent) TrueEvents() []uint8
type Mask_Threshold ¶ added in v0.2.0
type Mask_Threshold struct { StatusReturned bool // Indicates whether this threshold comparison status is returned via the Get Sensor Reading command. Settable bool Readable bool High_Assert bool Low_Assert bool High_Deassert bool Low_Deassert bool }
Mask_Threshold holds masks for a specific threshold type.
type Mask_Thresholds ¶ added in v0.2.0
type Mask_Thresholds struct { LNR Mask_Threshold LCR Mask_Threshold LNC Mask_Threshold UNR Mask_Threshold UCR Mask_Threshold UNC Mask_Threshold }
Mask_Thresholds holds masks for all threshold types.
func (*Mask_Thresholds) IsThresholdReadable ¶ added in v0.2.0
func (mask *Mask_Thresholds) IsThresholdReadable(thresholdType SensorThresholdType) bool
type MasterWriteReadRequest ¶
type MasterWriteReadRequest struct { // [7:4] channel number (Ignored when bus type = 1b) ChannelNumber uint8 // [3:1] bus ID, 0-based (always 000b for public bus [bus type = 0b]) BusID uint8 // [0] bus type: // - 0b = public (e.g. IPMB or PCI Management Bus. // The channel number value is used to select the target bus.) // - 1b = private bus (The bus ID value is used to select the target bus.) BusTypeIsPrivate bool SlaveAddress uint8 ReadCount uint8 // Data to write. This command should support at least 35 bytes of write data Data []byte }
22.11 Master Write-Read Command
func (*MasterWriteReadRequest) Command ¶
func (req *MasterWriteReadRequest) Command() Command
func (*MasterWriteReadRequest) Pack ¶
func (req *MasterWriteReadRequest) Pack() []byte
type MasterWriteReadResponse ¶
type MasterWriteReadResponse struct { // Bytes read from specified slave address. // This field will be absent if the read count is 0. // The controller terminates the I2C transaction with a STOP condition after reading the requested number of bytes. Data []byte }
func (*MasterWriteReadResponse) CompletionCodes ¶
func (*MasterWriteReadResponse) CompletionCodes() map[uint8]string
func (*MasterWriteReadResponse) Format ¶
func (res *MasterWriteReadResponse) Format() string
func (*MasterWriteReadResponse) Unpack ¶
func (res *MasterWriteReadResponse) Unpack(msg []byte) error
type MessageClass ¶
type MessageClass uint8
func (MessageClass) NormalACKFlag ¶
func (mc MessageClass) NormalACKFlag() bool
type MessageType ¶
type MessageType uint8
const ( MessageTypeUndefined MessageType = 0x00 MessageTypePing MessageType = 0x80 MessageTypeRMCPACK MessageType = (0x80 | 6) MessageTypeASF MessageType = (0x00 | 6) MessageTypeIPMI MessageType = (0x00 | 7) MessageTypeOEM MessageType = (0x00 | 8) )
type NetFn ¶
type NetFn uint8
NetFn is Network Function
const ( NetFnChassisRequest NetFn = 0x00 NetFnChassisResponse NetFn = 0x01 NetFnBridgeRequest NetFn = 0x02 NetFnBridgeResponse NetFn = 0x03 NetFnSensorEventRequest NetFn = 0x04 NetFnSensorEventResponse NetFn = 0x05 NetFnAppRequest NetFn = 0x06 NetFnAppResponse NetFn = 0x07 NetFnFirmwareRequest NetFn = 0x08 NetFnFirmwareResponse NetFn = 0x09 NetFnStorageRequest NetFn = 0x0a NetFnStorageResponse NetFn = 0x0b NetFnTransportRequest NetFn = 0x0c NetFnTransportResponse NetFn = 0x0d NetFnGroupExtensionRequest NetFn = 0x2c NetFnGroupExtensionResponse NetFn = 0x2d NetFnOEMGroupRequest NetFn = 0x2e NetFnOEMGroupResponse NetFn = 0x2f NetFnOEMSupermicroRequest NetFn = 0x30 )
Network Function Codes, section 5.1 Table 5 Even NetFn values are used for requests to the BMC, and odd NetFn values are returned in responses from the BMC.
six-bit field identifying the function, so total 64 NetFn (32 NetFn pairs)
type OEM ¶ added in v0.2.0
type OEM uint32
OEM represents Manufacturer ID, that is IANA Private Enterprise Number
type OpenSessionRequest ¶
type OpenSessionRequest struct { MessageTag uint8 RequestedMaximumPrivilegeLevel PrivilegeLevel RemoteConsoleSessionID uint32 AuthenticationPayload IntegrityPayload ConfidentialityPayload }
13.17 RMCP+ Open Session Request
func (*OpenSessionRequest) Command ¶
func (req *OpenSessionRequest) Command() Command
func (*OpenSessionRequest) Pack ¶
func (req *OpenSessionRequest) Pack() []byte
type OpenSessionResponse ¶
type OpenSessionResponse struct { // The BMC returns the Message Tag value that was passed by the remote console in the Open Session Request message. MessageTag uint8 // Identifies the status of the previous message. // If the previous message generated an error, then only the Status Code, Reserved, and Remote Console Session ID fields are returned. RmcpStatusCode RmcpStatusCode MaximumPrivilegeLevel uint8 RemoteConsoleSessionID uint32 ManagedSystemSessionID uint32 AuthenticationPayload IntegrityPayload ConfidentialityPayload }
13.18 RMCP+ Open Session Response
func (*OpenSessionResponse) CompletionCodes ¶
func (*OpenSessionResponse) CompletionCodes() map[uint8]string
func (*OpenSessionResponse) Format ¶
func (res *OpenSessionResponse) Format() string
func (*OpenSessionResponse) Unpack ¶
func (res *OpenSessionResponse) Unpack(data []byte) error
type PEFAlertPolicy ¶ added in v0.7.0
type PEFAlertPolicy struct { // [7:4] - policy number. 1 based. 0000b = reserved. PolicyNumber uint8 // PolicyState (enabled or disabled) // // [3] - 0b = this entry is disabled. Skip to next entry in policy, if any. // 1b = this entry is enabled. PolicyState bool // [2:0] - policy PolicyAction PEFAlertPolicyAction // [7:4] = ChannelNumber Number. ChannelNumber uint8 // [3:0] = Destination selector. Destination uint8 // [7] - Event-specific Alert String // 1b = Alert String look-up is event specific. The following Alert String Set / Selector sub- // field is interpreted as an Alert String Set Number that is used in conjunction with // the Event Filter Number to lookup the Alert String from the PEF Configuration Parameters. // 0b = Alert String is not event specific. The following Alert String Set / Selector sub-field // is interpreted as an Alert String Selector that provides a direct pointer to the // desired Alert String from the PEF Configuration Parameters. IsEventSpecific bool // [6:0] - Alert String Set / Selector. // This value identifies one or more Alert Strings in the Alert String table. // - When used as an Alert String Set Number (IsEventSpecific = true), it is used in conjunction with the Event Filter Number to uniquely identify an Alert String. // - When used as an Alert String Selector (IsEventSpecific = false), it directly selects an Alert String from the PEF Configuration Parameters. AlertStringKey uint8 }
17.11 Alert Policy Table
func (*PEFAlertPolicy) Format ¶ added in v0.7.0
func (entry *PEFAlertPolicy) Format() string
func (*PEFAlertPolicy) Pack ¶ added in v0.7.0
func (entry *PEFAlertPolicy) Pack() []byte
func (*PEFAlertPolicy) Unpack ¶ added in v0.7.0
func (entry *PEFAlertPolicy) Unpack(data []byte) error
type PEFAlertPolicyAction ¶ added in v0.7.0
type PEFAlertPolicyAction uint8
const ( // always send alert to this destination. PEFAlertPolicyAction_Always PEFAlertPolicyAction = 0 // if alert to previous destination was successful, do not send alert to this destination. // Proceed to next entry in this policy set. PEFAlertPolicyAction_ProceedNext PEFAlertPolicyAction = 1 // if alert to previous destination was successful, do not send alert to this destination. // Do not process any more entries in this policy set. PEFAlertPolicyAction_NoProceed PEFAlertPolicyAction = 2 // if alert to previous destination was successful, do not send alert to this destination. // Proceed to next entry in this policy set that is to a different channel. PEFAlertPolicyAction_ProceedNextDifferentChannel PEFAlertPolicyAction = 3 // if alert to previous destination was successful, do not send alert to this destination. // Proceed to next entry in this policy set that is to a different destination type. PEFAlertPolicyAction_ProceedNextDifferentDestination PEFAlertPolicyAction = 4 )
func (PEFAlertPolicyAction) ShortString ¶ added in v0.7.0
func (action PEFAlertPolicyAction) ShortString() string
func (PEFAlertPolicyAction) String ¶ added in v0.7.0
func (action PEFAlertPolicyAction) String() string
type PEFConfigParamSelector ¶ added in v0.5.5
type PEFConfigParamSelector uint8
const ( PEFConfigParamSelector_SetInProgress PEFConfigParamSelector = 0x00 PEFConfigParamSelector_Control PEFConfigParamSelector = 0x01 PEFConfigParamSelector_ActionGlobalControl PEFConfigParamSelector = 0x02 PEFConfigParamSelector_StartupDelay PEFConfigParamSelector = 0x03 PEFConfigParamSelector_AlertStartDelay PEFConfigParamSelector = 0x04 PEFConfigParamSelector_EventFiltersCount PEFConfigParamSelector = 0x05 PEFConfigParamSelector_EventFilter PEFConfigParamSelector = 0x06 PEFConfigParamSelector_EventFilterData1 PEFConfigParamSelector = 0x07 PEFConfigParamSelector_AlertPoliciesCount PEFConfigParamSelector = 0x08 PEFConfigParamSelector_AlertPolicy PEFConfigParamSelector = 0x09 PEFConfigParamSelector_SystemGUID PEFConfigParamSelector = 0x0a PEFConfigParamSelector_AlertStringsCount PEFConfigParamSelector = 0x0b PEFConfigParamSelector_AlertStringKey PEFConfigParamSelector = 0x0c PEFConfigParamSelector_AlertString PEFConfigParamSelector = 0x0d PEFConfigParamSelector_GroupControlsCount PEFConfigParamSelector = 0x0e PEFConfigParamSelector_GroupControl PEFConfigParamSelector = 0x0f )
func (PEFConfigParamSelector) String ¶ added in v0.7.0
func (p PEFConfigParamSelector) String() string
type PEFConfigParam_ActionGlobalControl ¶ added in v0.7.0
type PEFConfigParam_ActionGlobalControl struct { DiagnosticInterruptEnabled bool OEMActionEnabled bool PowerCycleActionEnabled bool ResetActionEnabled bool PowerDownActionEnabled bool AlertActionEnabled bool }
func (*PEFConfigParam_ActionGlobalControl) Format ¶ added in v0.7.0
func (param *PEFConfigParam_ActionGlobalControl) Format() string
func (*PEFConfigParam_ActionGlobalControl) PEFConfigParameter ¶ added in v0.7.0
func (param *PEFConfigParam_ActionGlobalControl) PEFConfigParameter() (paramSelector PEFConfigParamSelector, setSelector uint8, blockSelector uint8)
func (*PEFConfigParam_ActionGlobalControl) Pack ¶ added in v0.7.0
func (param *PEFConfigParam_ActionGlobalControl) Pack() []byte
func (*PEFConfigParam_ActionGlobalControl) Unpack ¶ added in v0.7.0
func (param *PEFConfigParam_ActionGlobalControl) Unpack(data []byte) error
type PEFConfigParam_AlertPoliciesCount ¶ added in v0.7.0
type PEFConfigParam_AlertPoliciesCount struct {
Value uint8
}
Number of alert policy entries supported. 1-based. This parameter does not need to be supported if Alerting is not supported. READ ONLY
func (*PEFConfigParam_AlertPoliciesCount) Format ¶ added in v0.7.0
func (param *PEFConfigParam_AlertPoliciesCount) Format() string
func (*PEFConfigParam_AlertPoliciesCount) PEFConfigParameter ¶ added in v0.7.0
func (param *PEFConfigParam_AlertPoliciesCount) PEFConfigParameter() (paramSelector PEFConfigParamSelector, setSelector uint8, blockSelector uint8)
func (*PEFConfigParam_AlertPoliciesCount) Pack ¶ added in v0.7.0
func (param *PEFConfigParam_AlertPoliciesCount) Pack() []byte
func (*PEFConfigParam_AlertPoliciesCount) Unpack ¶ added in v0.7.0
func (param *PEFConfigParam_AlertPoliciesCount) Unpack(data []byte) error
type PEFConfigParam_AlertPolicy ¶ added in v0.7.0
type PEFConfigParam_AlertPolicy struct { // Set Selector = entry number // - [7] - reserved // - [6:0] - alert policy entry number. 1-based. SetSelector uint8 Policy *PEFAlertPolicy }
func (*PEFConfigParam_AlertPolicy) Format ¶ added in v0.7.0
func (param *PEFConfigParam_AlertPolicy) Format() string
func (*PEFConfigParam_AlertPolicy) PEFConfigParameter ¶ added in v0.7.0
func (param *PEFConfigParam_AlertPolicy) PEFConfigParameter() (paramSelector PEFConfigParamSelector, setSelector uint8, blockSelector uint8)
func (*PEFConfigParam_AlertPolicy) Pack ¶ added in v0.7.0
func (param *PEFConfigParam_AlertPolicy) Pack() []byte
func (*PEFConfigParam_AlertPolicy) Unpack ¶ added in v0.7.0
func (param *PEFConfigParam_AlertPolicy) Unpack(data []byte) error
type PEFConfigParam_AlertStartupDelay ¶ added in v0.7.0
type PEFConfigParam_AlertStartupDelay struct {
DelaySec uint8
}
func (*PEFConfigParam_AlertStartupDelay) Format ¶ added in v0.7.0
func (param *PEFConfigParam_AlertStartupDelay) Format() string
func (*PEFConfigParam_AlertStartupDelay) PEFConfigParameter ¶ added in v0.7.0
func (param *PEFConfigParam_AlertStartupDelay) PEFConfigParameter() (paramSelector PEFConfigParamSelector, setSelector uint8, blockSelector uint8)
func (*PEFConfigParam_AlertStartupDelay) Pack ¶ added in v0.7.0
func (param *PEFConfigParam_AlertStartupDelay) Pack() []byte
func (*PEFConfigParam_AlertStartupDelay) Unpack ¶ added in v0.7.0
func (param *PEFConfigParam_AlertStartupDelay) Unpack(data []byte) error
type PEFConfigParam_AlertString ¶ added in v0.7.0
type PEFConfigParam_AlertString struct { // Set Selector = string selector. // - 0 = selects volatile string // - 01h-7Fh = non-volatile string selectors SetSelector uint8 // Block Selector = string block number to set, 1 based. Blocks are 16 bytes. BlockSelector uint8 // String data. Null terminated 8-bit ASCII string. 16-bytes max. per block. StringData []byte }
func (*PEFConfigParam_AlertString) Format ¶ added in v0.7.0
func (param *PEFConfigParam_AlertString) Format() string
func (*PEFConfigParam_AlertString) PEFConfigParameter ¶ added in v0.7.0
func (param *PEFConfigParam_AlertString) PEFConfigParameter() (paramSelector PEFConfigParamSelector, setSelector uint8, blockSelector uint8)
func (*PEFConfigParam_AlertString) Pack ¶ added in v0.7.0
func (param *PEFConfigParam_AlertString) Pack() []byte
func (*PEFConfigParam_AlertString) Unpack ¶ added in v0.7.0
func (param *PEFConfigParam_AlertString) Unpack(data []byte) error
type PEFConfigParam_AlertStringKey ¶ added in v0.7.0
type PEFConfigParam_AlertStringKey struct { // Set Selector = Alert string selector. // - 0 = selects volatile string parameters // - 01h-7Fh = non-volatile string selectors SetSelector uint8 // [6:0] - Filter number. 1-based. 00h = unspecified. FilterNumber uint8 // [6:0] - Set number for string. 1-based. 00h = unspecified. AlertStringSet uint8 }
Sets the keys used to look up Alert String data in PEF. This parameter does not need to be supported if Alerting is not supported.
It's purpose is to get the AlertStringSelector from combination of the (Event) FilterNumber and AlertStringSet.
func (*PEFConfigParam_AlertStringKey) Format ¶ added in v0.7.0
func (param *PEFConfigParam_AlertStringKey) Format() string
func (*PEFConfigParam_AlertStringKey) PEFConfigParameter ¶ added in v0.7.0
func (param *PEFConfigParam_AlertStringKey) PEFConfigParameter() (paramSelector PEFConfigParamSelector, setSelector uint8, blockSelector uint8)
func (*PEFConfigParam_AlertStringKey) Pack ¶ added in v0.7.0
func (param *PEFConfigParam_AlertStringKey) Pack() []byte
func (*PEFConfigParam_AlertStringKey) Unpack ¶ added in v0.7.0
func (param *PEFConfigParam_AlertStringKey) Unpack(data []byte) error
type PEFConfigParam_AlertStringsCount ¶ added in v0.7.0
type PEFConfigParam_AlertStringsCount struct {
Value uint8
}
Number of alert strings supported in addition to Alert String 0. 1-based. This parameter does not need to be supported if Alerting is not supported. READ ONLY
func (*PEFConfigParam_AlertStringsCount) Format ¶ added in v0.7.0
func (param *PEFConfigParam_AlertStringsCount) Format() string
func (*PEFConfigParam_AlertStringsCount) PEFConfigParameter ¶ added in v0.7.0
func (param *PEFConfigParam_AlertStringsCount) PEFConfigParameter() (paramSelector PEFConfigParamSelector, setSelector uint8, blockSelector uint8)
func (*PEFConfigParam_AlertStringsCount) Pack ¶ added in v0.7.0
func (param *PEFConfigParam_AlertStringsCount) Pack() []byte
func (*PEFConfigParam_AlertStringsCount) Unpack ¶ added in v0.7.0
func (param *PEFConfigParam_AlertStringsCount) Unpack(data []byte) error
type PEFConfigParam_Control ¶ added in v0.7.0
type PEFConfigParam_Control struct { EnablePEFAlertStartupDelay bool EnablePEFStartupDelay bool EnableEventMessage bool EnablePEF bool }
func (*PEFConfigParam_Control) Format ¶ added in v0.7.0
func (param *PEFConfigParam_Control) Format() string
func (*PEFConfigParam_Control) PEFConfigParameter ¶ added in v0.7.0
func (param *PEFConfigParam_Control) PEFConfigParameter() (paramSelector PEFConfigParamSelector, setSelector uint8, blockSelector uint8)
func (*PEFConfigParam_Control) Pack ¶ added in v0.7.0
func (param *PEFConfigParam_Control) Pack() []byte
func (*PEFConfigParam_Control) Unpack ¶ added in v0.7.0
func (param *PEFConfigParam_Control) Unpack(data []byte) error
type PEFConfigParam_EventFilter ¶ added in v0.7.0
type PEFConfigParam_EventFilter struct { // Set Selector = filter number. 1-based. 00h = reserved. SetSelector uint8 Filter *PEFEventFilter }
func (*PEFConfigParam_EventFilter) Format ¶ added in v0.7.0
func (param *PEFConfigParam_EventFilter) Format() string
func (*PEFConfigParam_EventFilter) PEFConfigParameter ¶ added in v0.7.0
func (param *PEFConfigParam_EventFilter) PEFConfigParameter() (paramSelector PEFConfigParamSelector, setSelector uint8, blockSelector uint8)
func (*PEFConfigParam_EventFilter) Pack ¶ added in v0.7.0
func (param *PEFConfigParam_EventFilter) Pack() []byte
func (*PEFConfigParam_EventFilter) Unpack ¶ added in v0.7.0
func (param *PEFConfigParam_EventFilter) Unpack(data []byte) error
type PEFConfigParam_EventFilterData1 ¶ added in v0.7.0
type PEFConfigParam_EventFilterData1 struct { // Set Selector = filter number SetSelector uint8 // [7] - 1b = enable filter // 0b = disable filter FilterEnabled bool // [6:5] - 11b = reserved // 10b = manufacturer pre-configured filter. The filter entry has been // configured by the system integrator and should not be altered by software. // Software is allowed to enable or disable the filter, however. // 01b = reserved // 00b = software configurable filter. The filter entry is available for // configuration by system management software. FilterType PEFEventFilterType }
This parameter provides an aliased access to the first byte of the event filter data. This is provided to simplify the act of enabling and disabling individual filters by avoiding the need to do a read-modify-write of the entire filter data.
func (*PEFConfigParam_EventFilterData1) Format ¶ added in v0.7.0
func (param *PEFConfigParam_EventFilterData1) Format() string
func (*PEFConfigParam_EventFilterData1) PEFConfigParameter ¶ added in v0.7.0
func (param *PEFConfigParam_EventFilterData1) PEFConfigParameter() (paramSelector PEFConfigParamSelector, setSelector uint8, blockSelector uint8)
func (*PEFConfigParam_EventFilterData1) Pack ¶ added in v0.7.0
func (param *PEFConfigParam_EventFilterData1) Pack() []byte
func (*PEFConfigParam_EventFilterData1) Unpack ¶ added in v0.7.0
func (param *PEFConfigParam_EventFilterData1) Unpack(data []byte) error
type PEFConfigParam_EventFiltersCount ¶ added in v0.7.0
type PEFConfigParam_EventFiltersCount struct {
Value uint8
}
Number of event filters supported. 1-based. This parameter does not need to be supported if Alerting is not supported. READ ONLY
func (*PEFConfigParam_EventFiltersCount) Format ¶ added in v0.7.0
func (param *PEFConfigParam_EventFiltersCount) Format() string
func (*PEFConfigParam_EventFiltersCount) PEFConfigParameter ¶ added in v0.7.0
func (param *PEFConfigParam_EventFiltersCount) PEFConfigParameter() (paramSelector PEFConfigParamSelector, setSelector uint8, blockSelector uint8)
func (*PEFConfigParam_EventFiltersCount) Pack ¶ added in v0.7.0
func (param *PEFConfigParam_EventFiltersCount) Pack() []byte
func (*PEFConfigParam_EventFiltersCount) Unpack ¶ added in v0.7.0
func (param *PEFConfigParam_EventFiltersCount) Unpack(data []byte) error
type PEFConfigParam_GroupControl ¶ added in v0.7.0
type PEFConfigParam_GroupControl struct { // Set Selector (Entry Selector) = group control table entry selector. SetSelector uint8 ForceControlOperation bool DelayedControl bool ChannelNumber uint8 GroupID0 uint8 MemberID0 uint8 DisableMemberID0Check bool GroupID1 uint8 MemberID1 uint8 DisableMemberID1Check bool GroupID2 uint8 MemberID2 uint8 DisableMemberID2Check bool GroupID3 uint8 MemberID3 uint8 DisableMemberID3Check bool RetryCount uint8 Operation uint8 }
func (*PEFConfigParam_GroupControl) Format ¶ added in v0.7.0
func (param *PEFConfigParam_GroupControl) Format() string
func (*PEFConfigParam_GroupControl) PEFConfigParameter ¶ added in v0.7.0
func (param *PEFConfigParam_GroupControl) PEFConfigParameter() (paramSelector PEFConfigParamSelector, setSelector uint8, blockSelector uint8)
func (*PEFConfigParam_GroupControl) Pack ¶ added in v0.7.0
func (param *PEFConfigParam_GroupControl) Pack() []byte
func (*PEFConfigParam_GroupControl) Unpack ¶ added in v0.7.0
func (param *PEFConfigParam_GroupControl) Unpack(data []byte) error
type PEFConfigParam_GroupControlsCount ¶ added in v0.7.0
type PEFConfigParam_GroupControlsCount struct {
Value uint8
}
READ ONLY
func (*PEFConfigParam_GroupControlsCount) Format ¶ added in v0.7.0
func (param *PEFConfigParam_GroupControlsCount) Format() string
func (*PEFConfigParam_GroupControlsCount) PEFConfigParameter ¶ added in v0.7.0
func (param *PEFConfigParam_GroupControlsCount) PEFConfigParameter() (paramSelector PEFConfigParamSelector, setSelector uint8, blockSelector uint8)
func (*PEFConfigParam_GroupControlsCount) Pack ¶ added in v0.7.0
func (param *PEFConfigParam_GroupControlsCount) Pack() []byte
func (*PEFConfigParam_GroupControlsCount) Unpack ¶ added in v0.7.0
func (param *PEFConfigParam_GroupControlsCount) Unpack(data []byte) error
type PEFConfigParam_SetInProgress ¶ added in v0.7.0
type PEFConfigParam_SetInProgress struct {
Value SetInProgressState
}
func (*PEFConfigParam_SetInProgress) Format ¶ added in v0.7.0
func (param *PEFConfigParam_SetInProgress) Format() string
func (*PEFConfigParam_SetInProgress) PEFConfigParameter ¶ added in v0.7.0
func (param *PEFConfigParam_SetInProgress) PEFConfigParameter() (paramSelector PEFConfigParamSelector, setSelector uint8, blockSelector uint8)
func (*PEFConfigParam_SetInProgress) Pack ¶ added in v0.7.0
func (param *PEFConfigParam_SetInProgress) Pack() []byte
func (*PEFConfigParam_SetInProgress) Unpack ¶ added in v0.7.0
func (param *PEFConfigParam_SetInProgress) Unpack(data []byte) error
type PEFConfigParam_StartupDelay ¶ added in v0.7.0
type PEFConfigParam_StartupDelay struct {
DelaySec uint8
}
func (*PEFConfigParam_StartupDelay) Format ¶ added in v0.7.0
func (param *PEFConfigParam_StartupDelay) Format() string
func (*PEFConfigParam_StartupDelay) PEFConfigParameter ¶ added in v0.7.0
func (param *PEFConfigParam_StartupDelay) PEFConfigParameter() (paramSelector PEFConfigParamSelector, setSelector uint8, blockSelector uint8)
func (*PEFConfigParam_StartupDelay) Pack ¶ added in v0.7.0
func (param *PEFConfigParam_StartupDelay) Pack() []byte
func (*PEFConfigParam_StartupDelay) Unpack ¶ added in v0.7.0
func (param *PEFConfigParam_StartupDelay) Unpack(data []byte) error
type PEFConfigParam_SystemGUID ¶ added in v0.7.0
type PEFConfigParam_SystemGUID struct { // Used to fill in the GUID field in a PET Trap. // [7:1] - reserved // [0] // 1b = BMC uses following value in PET Trap. // 0b = BMC ignores following value and uses value returned from Get System GUID command instead. UseGUID bool GUID [16]byte }
func (*PEFConfigParam_SystemGUID) Format ¶ added in v0.7.0
func (param *PEFConfigParam_SystemGUID) Format() string
func (*PEFConfigParam_SystemGUID) PEFConfigParameter ¶ added in v0.7.0
func (param *PEFConfigParam_SystemGUID) PEFConfigParameter() (paramSelector PEFConfigParamSelector, setSelector uint8, blockSelector uint8)
func (*PEFConfigParam_SystemGUID) Pack ¶ added in v0.7.0
func (param *PEFConfigParam_SystemGUID) Pack() []byte
func (*PEFConfigParam_SystemGUID) Unpack ¶ added in v0.7.0
func (param *PEFConfigParam_SystemGUID) Unpack(configData []byte) error
type PEFConfigParameter ¶ added in v0.7.0
type PEFConfigParameter interface { PEFConfigParameter() (paramSelector PEFConfigParamSelector, setSelector uint8, blockSelector uint8) Parameter }
type PEFConfigParams ¶ added in v0.7.1
type PEFConfigParams struct { SetInProgress *PEFConfigParam_SetInProgress Control *PEFConfigParam_Control ActionGlobalControl *PEFConfigParam_ActionGlobalControl StartupDelay *PEFConfigParam_StartupDelay AlertStartupDelay *PEFConfigParam_AlertStartupDelay EventFiltersCount *PEFConfigParam_EventFiltersCount EventFilters []*PEFConfigParam_EventFilter EventFiltersData1 []*PEFConfigParam_EventFilterData1 AlertPoliciesCount *PEFConfigParam_AlertPoliciesCount AlertPolicies []*PEFConfigParam_AlertPolicy SystemGUID *PEFConfigParam_SystemGUID AlertStringsCount *PEFConfigParam_AlertStringsCount AlertStringKeys []*PEFConfigParam_AlertStringKey AlertStrings []*PEFConfigParam_AlertString GroupControlsCount *PEFConfigParam_GroupControlsCount GroupControls []*PEFConfigParam_GroupControl }
func (*PEFConfigParams) Format ¶ added in v0.7.1
func (pefConfigParams *PEFConfigParams) Format() string
type PEFEventFilter ¶ added in v0.7.0
type PEFEventFilter struct { // Filter Configuration // // FilterState (enabled or disabled) // [4:0] - reserved // // [7] - 1b = enable filter // 0b = disable filter FilterState bool // [6:5] - 11b = reserved // 10b = manufacturer pre-configured filter. The filter entry has been // configured by the system integrator and should not be altered by software. // Software is allowed to enable or disable the filter, however. // 01b = reserved // 00b = software configurable filter. The filter entry is available for // configuration by system management software. FilterType PEFEventFilterType // 17.6 PEF Actions // All actions are optional for an implementation, with the exception of Alert // which is mandatory if alerting is supported for one or more channels. // The BMC will return 0b for unsupported actions. // Software can test for which actions are supported by writing 1's to the // specified fields and reading back the result. // (Note that reserved bits must be written with 0's) ActionGroupControlOperation bool ActionDiagnosticInterrupt bool ActionOEM bool ActionPowerCycle bool ActionReset bool ActionPowerOff bool // Either Event filter Action should be enabled or Power action should be present as channel alert is enabled. ActionAlert bool // Relates with AlertPolicyNumber // Used to select an alerting policy set from the Alert Policy Table. // The Alert Policy Table holds different policies that configure the order in which different alert destinations and alerting media are tried. // [6:4] - group control selector (1-based). Selects entry from group control table. (see [ICMB) GroupControlSelector uint8 // [3:0] - policy number. Value is "don't care" if (ActionAlert=false) Alert is not selected in the Event Filter Action. AlertPolicyNumber uint8 EventSeverity PEFEventSeverity GeneratorID GeneratorID SensorType SensorType SensorNumber SensorNumber EventReadingType EventReadingType EventData1EventOffsetMask uint16 EventData1ANDMask uint8 // Used to indicate whether each bit position's comparison is an exact comparison or not. EventData1Compare1 uint8 EventData1Compare2 uint8 EventData2ANDMask uint8 EventData2Compare1 uint8 EventData2Compare2 uint8 EventData3ANDMask uint8 EventData3Compare1 uint8 EventData3Compare2 uint8 }
17.7 Event Filter Table
func (*PEFEventFilter) Format ¶ added in v0.7.0
func (entry *PEFEventFilter) Format() string
func (*PEFEventFilter) Pack ¶ added in v0.7.0
func (entry *PEFEventFilter) Pack() []byte
func (*PEFEventFilter) Unpack ¶ added in v0.7.0
func (entry *PEFEventFilter) Unpack(data []byte) error
type PEFEventFilterType ¶ added in v0.7.0
type PEFEventFilterType uint8
PEFEventFilterType:
- manufacturer pre-configured filter. The filter entry has been configured by the system integrator and should not be altered by software. Software is allowed to enable or disable the filter, however.
- software configurable filter. The filter entry is available for configuration by system management software.
const ( PEFEventFilterType_Configurable PEFEventFilterType = 0x00 PEFEventFilterType_PreConfigured PEFEventFilterType = 0x10 )
func (PEFEventFilterType) String ¶ added in v0.7.0
func (filterType PEFEventFilterType) String() string
type PEFEventSeverity ¶ added in v0.7.0
type PEFEventSeverity uint8
const ( PEFEventSeverityUnspecified PEFEventSeverity = 0x00 PEFEventSeverityMonitor PEFEventSeverity = 0x01 PEFEventSeverityInformation PEFEventSeverity = 0x02 PEFEventSeverityOK PEFEventSeverity = 0x04 PEFEventSeverityNonCritical PEFEventSeverity = 0x08 // aka Warning PEFEventSeverityCritical PEFEventSeverity = 0x10 PEFEventSeverityNonRecoverable PEFEventSeverity = 0x20 )
func (PEFEventSeverity) String ¶ added in v0.7.0
func (severity PEFEventSeverity) String() string
type PETAcknowledgeRequest ¶ added in v0.7.0
type PETAcknowledgeRequest struct { SequenceNumber uint16 LocalTimestamp uint32 EventSourceType uint8 SensorDevice uint8 SensorNumber uint8 EventData EventData }
30.8 PET Acknowledge Command This message is used to acknowledge a Platform Event Trap (PET) alert.
func (*PETAcknowledgeRequest) Command ¶ added in v0.7.0
func (req *PETAcknowledgeRequest) Command() Command
func (*PETAcknowledgeRequest) Pack ¶ added in v0.7.0
func (req *PETAcknowledgeRequest) Pack() []byte
func (*PETAcknowledgeRequest) Unpack ¶ added in v0.7.0
func (req *PETAcknowledgeRequest) Unpack(data []byte) error
type PETAcknowledgeResponse ¶ added in v0.7.0
type PETAcknowledgeResponse struct {
PETAcknowledgeStatus uint8
}
func (*PETAcknowledgeResponse) CompletionCodes ¶ added in v0.7.0
func (res *PETAcknowledgeResponse) CompletionCodes() map[uint8]string
func (*PETAcknowledgeResponse) Format ¶ added in v0.7.0
func (res *PETAcknowledgeResponse) Format() string
func (*PETAcknowledgeResponse) Pack ¶ added in v0.7.0
func (res *PETAcknowledgeResponse) Pack() []byte
func (*PETAcknowledgeResponse) Unpack ¶ added in v0.7.0
func (res *PETAcknowledgeResponse) Unpack(msg []byte) error
type PasswordOperation ¶
type PasswordOperation uint8
const ( PasswordOperationDisableUser PasswordOperation = 0x00 PasswordOperationEnableUser PasswordOperation = 0x01 PasswordOperationSetPassword PasswordOperation = 0x02 PasswordOperationTestPassword PasswordOperation = 0x03 )
type PayloadEncryptionOperation ¶ added in v0.7.4
type PayloadEncryptionOperation uint8
const ( PayloadEncryptionOperationSuspend PayloadEncryptionOperation = 0 PayloadEncryptionOperationResume PayloadEncryptionOperation = 1 PayloadEncryptionOperationReinitialize PayloadEncryptionOperation = 2 )
type PayloadType ¶
type PayloadType uint8
13.27.3 The Get Channel Payload Support command returns which standard payload type numbers and OEM payload type handles are available on a given channel of a BMC.
const ( PayloadTypeIPMI PayloadType = 0x00 PayloadTypeSOL PayloadType = 0x01 PayloadTypeOEM PayloadType = 0x02 PayloadTypeRmcpOpenSessionRequest PayloadType = 0x10 PayloadTypeRmcpOpenSessionResponse PayloadType = 0x11 PayloadTypeRAKPMessage1 PayloadType = 0x12 PayloadTypeRAKPMessage2 PayloadType = 0x13 PayloadTypeRAKPMessage3 PayloadType = 0x14 PayloadTypeRAKPMessage4 PayloadType = 0x15 PayloadTypeOEM0 PayloadType = 0x20 PayloadTypeOEM1 PayloadType = 0x21 PayloadTypeOEM2 PayloadType = 0x22 PayloadTypeOEM3 PayloadType = 0x23 PayloadTypeOEM4 PayloadType = 0x24 PayloadTypeOEM5 PayloadType = 0x25 PayloadTypeOEM6 PayloadType = 0x26 PayloadTypeOEM7 PayloadType = 0x27 )
func (PayloadType) String ¶ added in v0.5.5
func (pt PayloadType) String() string
type PlatformEventMessageRequest ¶ added in v0.3.0
type PlatformEventMessageRequest struct { // The Generator ID field is a required element of an Event Request Message. // This field identifies the device that has generated the Event Message. // This is the 7-bit Requester's Slave Address (RqSA) and 2-bit Requester's LUN (RqLUN) // if the message was received from the IPMB, or the 7-bit System Software ID // if the message was received from system software. // // For IPMB messages, this field is equated to the Requester's Slave Address and LUN fields. // Thus, the Generator ID information is not carried in the data field of an IPMB request message. // // For 'system side' interfaces, it is not as useful or appropriate to 'overlay' the Generator ID field // with the message source address information, and so it is specified as being carried in the data field of the request. GeneratorID uint8 EvMRev uint8 SensorType uint8 SensorNumber uint8 EventDir EventDir EventType EventReadingType EventData EventData }
29.3 Platform Event Message Command
func (*PlatformEventMessageRequest) Command ¶ added in v0.3.0
func (req *PlatformEventMessageRequest) Command() Command
func (*PlatformEventMessageRequest) Pack ¶ added in v0.3.0
func (req *PlatformEventMessageRequest) Pack() []byte
type PlatformEventMessageResponse ¶ added in v0.3.0
type PlatformEventMessageResponse struct { }
func (*PlatformEventMessageResponse) CompletionCodes ¶ added in v0.3.0
func (res *PlatformEventMessageResponse) CompletionCodes() map[uint8]string
func (*PlatformEventMessageResponse) Format ¶ added in v0.3.0
func (res *PlatformEventMessageResponse) Format() string
func (*PlatformEventMessageResponse) Unpack ¶ added in v0.3.0
func (res *PlatformEventMessageResponse) Unpack(msg []byte) error
type PowerRestorePolicy ¶
type PowerRestorePolicy uint8
PowerRestorePolicy 通电开机策略
const ( PowerRestorePolicyAlwaysOff PowerRestorePolicy = 0 // 保持下电(关机) PowerRestorePolicyPrevious PowerRestorePolicy = 1 // 与之前保持一致(恢复断电前状态) PowerRestorePolicyAlwaysOn PowerRestorePolicy = 2 // 保持上电(开机) )
func (PowerRestorePolicy) String ¶
func (p PowerRestorePolicy) String() string
type PreTimeoutInterrupt ¶ added in v0.2.0
type PreTimeoutInterrupt uint8
const ( PreTimeoutInterruptNone PreTimeoutInterrupt = 0x00 PreTimeoutInterruptSMI PreTimeoutInterrupt = 0x01 PreTimeoutInterruptNMI PreTimeoutInterrupt = 0x02 PreTimeoutInterruptMessaging PreTimeoutInterrupt = 0x03 )
func (PreTimeoutInterrupt) String ¶ added in v0.2.0
func (t PreTimeoutInterrupt) String() string
type PrivilegeLevel ¶
type PrivilegeLevel uint8
6.8 Channel Privilege Levels
- The `SetChannelAccess` command is used to set the maximum privilege level limit for a channel.
- The `SetSessionPrivilegeLevel` Command is used to request the ability to perform operations at a particular privilege level.
- The `SetSessionPrivilegeLevel` command can only be used to set privilege levels that are less than or equal to the privilege level limit for the entire channel, regardless of the privilege level of the user.
const ( PrivilegeLevelUnspecified PrivilegeLevel = 0x00 PrivilegeLevelCallback PrivilegeLevel = 0x01 PrivilegeLevelUser PrivilegeLevel = 0x02 PrivilegeLevelOperator PrivilegeLevel = 0x03 PrivilegeLevelAdministrator PrivilegeLevel = 0x04 PrivilegeLevelOEM PrivilegeLevel = 0x05 )
func (PrivilegeLevel) Short ¶
func (l PrivilegeLevel) Short() string
func (PrivilegeLevel) String ¶
func (l PrivilegeLevel) String() string
func (PrivilegeLevel) Symbol ¶ added in v0.7.0
func (l PrivilegeLevel) Symbol() string
type RAKPMessage1 ¶
type RAKPMessage1 struct { MessageTag uint8 // The Managed System's Session ID for this session, returned by the Managed System on the // previous RMCP+ Open Session Response message. ManagedSystemSessionID uint32 // 16 bytes RemoteConsoleRandomNumber [16]byte // bit 4 // 0b = Username/Privilege lookup. // 1b = Name-only lookup. NameOnlyLookup bool RequestedMaximumPrivilegeLevel PrivilegeLevel UsernameLength uint8 Username []byte }
13.20 RAKP Message 1
func (*RAKPMessage1) Command ¶
func (req *RAKPMessage1) Command() Command
func (*RAKPMessage1) Pack ¶
func (r *RAKPMessage1) Pack() []byte
func (*RAKPMessage1) Role ¶
func (r *RAKPMessage1) Role() uint8
the combination of RequestedMaximumPrivilegeLevel and NameOnlyLookup field The whole byte should be stored to client session for computing auth code of rakp2
type RAKPMessage2 ¶
type RAKPMessage2 struct { MessageTag uint8 // RMCP+ Status Code - Identifies the status of the previous message. // // If the previous message generated an error, then only the Completion Code, Reserved, and // Remote Console Session ID fields are returned. // // If the Remote Console Session ID field is indeterminate // (as would be the case if the Managed System Session ID in RAKP Message 1 were invalid) // then the Remote Console Session ID field will be set to all zeros. // // On error, the remote console can attempt to correct the error and send a new RAKP Message 1. // // Note that the remote console must change the Message Tag value to ensure the BMC sees the message as a new message and not as a retry. // // See Table 13-15, RMCP+ and RAKP Message Status Codes for the status codes defined for this message. RmcpStatusCode RmcpStatusCode // The Remote Console Session ID specified by the RMCP+ Open Session Request message associated with this response. RemoteConsoleSessionID uint32 // Random number generated/selected by the managed system. ManagedSystemRandomNumber [16]byte // The Globally Unique ID (GUID) of the Managed System. // This value is typically specified by the client system's SMBIOS implementation. See // 22.14, Get System GUID Command, for additional information ManagedSystemGUID [16]byte // An integrity check value over the relevant items specified by the RAKP algorithm for RAKP Message 2. // The size of this field depends on the specific Authentication Algorithm // This field may be 0-bytes (absent) for some algorithms (e.g. RAKP-none). // // see 13.31 for how the managed system generate this HMAC KeyExchangeAuthenticationCode []byte // contains filtered or unexported fields }
func (*RAKPMessage2) CompletionCodes ¶
func (*RAKPMessage2) CompletionCodes() map[uint8]string
func (*RAKPMessage2) Format ¶
func (res *RAKPMessage2) Format() string
func (*RAKPMessage2) Unpack ¶
func (res *RAKPMessage2) Unpack(msg []byte) error
type RAKPMessage3 ¶
type RAKPMessage3 struct { // Selected by remote console. Used by remote console to help match // responses up with requests. MessageTag uint8 // Identifies the status of the previous message. RmcpStatusCode RmcpStatusCode // The Managed System's Session ID for this session, returned by the managed system on the previous RMCP+ Open Session Response message. ManagedSystemSessionID uint32 // An integrity check value over the relevant items specified by the RAKP // authentication algorithm identified in RAKP Message 1. // The size of this field depends on the specific authentication algorithm. // // This field may be 0 bytes (absent) for some algorithms (e.g. RAKP-none). KeyExchangeAuthenticationCode []byte }
13.22 RAKP Message 3
func (*RAKPMessage3) Command ¶
func (req *RAKPMessage3) Command() Command
func (*RAKPMessage3) Pack ¶
func (req *RAKPMessage3) Pack() []byte
type RAKPMessage4 ¶
type RAKPMessage4 struct { MessageTag uint8 RmcpStatusCode RmcpStatusCode MgmtConsoleSessionID uint32 // An integrity check value over the relevant items specified by // the RAKP authentication algorithm that was identified in RAKP Message 1. // // The size of this field depends on the specific authentication algorithm. // // For example, the RAKP-HMAC-SHA1 specifies that an HMACSHA1-96 algorithm be used for calculating this field. // See Section 13.28 // Authentication, Integrity, and Confidentiality Algorithm Numbers for info on // the algorithm to be used for this field. // // This field may be 0 bytes (absent) for some authentication algorithms (e.g. RAKP-none) IntegrityCheckValue []byte // contains filtered or unexported fields }
func (*RAKPMessage4) CompletionCodes ¶
func (*RAKPMessage4) CompletionCodes() map[uint8]string
func (*RAKPMessage4) Format ¶
func (res *RAKPMessage4) Format() string
func (*RAKPMessage4) Unpack ¶
func (res *RAKPMessage4) Unpack(msg []byte) error
type ReadEventMessageBufferRequest ¶
type ReadEventMessageBufferRequest struct { }
22.8 Read Event Message Buffer Command
func (ReadEventMessageBufferRequest) Command ¶
func (req ReadEventMessageBufferRequest) Command() Command
func (*ReadEventMessageBufferRequest) Pack ¶
func (req *ReadEventMessageBufferRequest) Pack() []byte
type ReadEventMessageBufferResponse ¶
type ReadEventMessageBufferResponse struct { // 16 bytes of data in SEL Record format MessageData [16]byte }
func (*ReadEventMessageBufferResponse) CompletionCodes ¶
func (*ReadEventMessageBufferResponse) CompletionCodes() map[uint8]string
func (*ReadEventMessageBufferResponse) Format ¶
func (res *ReadEventMessageBufferResponse) Format() string
func (*ReadEventMessageBufferResponse) Unpack ¶
func (res *ReadEventMessageBufferResponse) Unpack(msg []byte) error
type ReadFRUDataRequest ¶
34.2 Read FRU Data Command
func (*ReadFRUDataRequest) Command ¶
func (req *ReadFRUDataRequest) Command() Command
func (*ReadFRUDataRequest) Pack ¶
func (req *ReadFRUDataRequest) Pack() []byte
type ReadFRUDataResponse ¶
func (*ReadFRUDataResponse) CompletionCodes ¶
func (r *ReadFRUDataResponse) CompletionCodes() map[uint8]string
func (*ReadFRUDataResponse) Format ¶
func (res *ReadFRUDataResponse) Format() string
func (*ReadFRUDataResponse) Unpack ¶
func (res *ReadFRUDataResponse) Unpack(msg []byte) error
type ReadingFactors ¶ added in v0.2.0
type ReadingFactors struct { M int16 // 10 bits used // in +/- ½ raw counts Tolerance uint8 // 6 bits used B int16 // 10 bits used // Unsigned, 10-bit Basic Sensor Accuracy in 1/100 percent scaled up by unsigned Accuracy exponent. Accuracy uint16 // 10 bits, unsigned Accuracy_Exp uint8 // 2 bits, unsigned // [7:4] - R (result) exponent 4 bits, 2's complement, signed // [3:0] - B exponent 4 bits, 2's complement, signed R_Exp int8 // 4 bits, signed, also called K2 B_Exp int8 // 4 bits, signed, also called K1 }
ReadingFactors is used in "Sensor Reading Conversion Formula" Only Full SDR defines reading factors. see: 36.3 Sensor Reading Conversion Formula
func (ReadingFactors) String ¶ added in v0.2.0
func (f ReadingFactors) String() string
type RearmSensorEventsRequest ¶ added in v0.7.4
type RearmSensorEventsRequest struct { SensorNumber uint8 RearmAllEventStatus bool DiscreteEvents bool // If the field of SensorEventFlag is true, it means to re-arm the specific event SensorEventFlag }
35.12 Re-arm Sensor Events Command
func (*RearmSensorEventsRequest) Command ¶ added in v0.7.4
func (req *RearmSensorEventsRequest) Command() Command
func (*RearmSensorEventsRequest) Pack ¶ added in v0.7.4
func (req *RearmSensorEventsRequest) Pack() []byte
type RearmSensorEventsResponse ¶ added in v0.7.4
type RearmSensorEventsResponse struct { }
func (*RearmSensorEventsResponse) CompletionCodes ¶ added in v0.7.4
func (r *RearmSensorEventsResponse) CompletionCodes() map[uint8]string
func (*RearmSensorEventsResponse) Format ¶ added in v0.7.4
func (res *RearmSensorEventsResponse) Format() string
func (*RearmSensorEventsResponse) Unpack ¶ added in v0.7.4
func (res *RearmSensorEventsResponse) Unpack(msg []byte) error
type ReserveDeviceSDRRepoRequest ¶
type ReserveDeviceSDRRepoRequest struct { }
35.4 Reserve Device SDR Repository Command
func (*ReserveDeviceSDRRepoRequest) Command ¶
func (req *ReserveDeviceSDRRepoRequest) Command() Command
func (*ReserveDeviceSDRRepoRequest) Pack ¶
func (req *ReserveDeviceSDRRepoRequest) Pack() []byte
type ReserveDeviceSDRRepoResponse ¶
type ReserveDeviceSDRRepoResponse struct {
ReservationID uint16
}
func (*ReserveDeviceSDRRepoResponse) CompletionCodes ¶
func (r *ReserveDeviceSDRRepoResponse) CompletionCodes() map[uint8]string
func (*ReserveDeviceSDRRepoResponse) Format ¶
func (res *ReserveDeviceSDRRepoResponse) Format() string
func (*ReserveDeviceSDRRepoResponse) Unpack ¶
func (res *ReserveDeviceSDRRepoResponse) Unpack(msg []byte) error
type ReserveSDRRepoRequest ¶ added in v0.7.0
type ReserveSDRRepoRequest struct { }
33.11 Reserve SDR Repository Command
func (*ReserveSDRRepoRequest) Command ¶ added in v0.7.0
func (req *ReserveSDRRepoRequest) Command() Command
func (*ReserveSDRRepoRequest) Pack ¶ added in v0.7.0
func (req *ReserveSDRRepoRequest) Pack() []byte
type ReserveSDRRepoResponse ¶ added in v0.7.0
type ReserveSDRRepoResponse struct {
ReservationID uint16
}
func (*ReserveSDRRepoResponse) CompletionCodes ¶ added in v0.7.0
func (r *ReserveSDRRepoResponse) CompletionCodes() map[uint8]string
func (*ReserveSDRRepoResponse) Format ¶ added in v0.7.0
func (res *ReserveSDRRepoResponse) Format() string
func (*ReserveSDRRepoResponse) Unpack ¶ added in v0.7.0
func (res *ReserveSDRRepoResponse) Unpack(msg []byte) error
type ReserveSELRequest ¶
type ReserveSELRequest struct { }
31.4 Reserve SEL Command
func (*ReserveSELRequest) Command ¶
func (req *ReserveSELRequest) Command() Command
func (*ReserveSELRequest) Pack ¶
func (req *ReserveSELRequest) Pack() []byte
type ReserveSELResponse ¶
type ReserveSELResponse struct {
ReservationID uint16
}
func (*ReserveSELResponse) CompletionCodes ¶
func (*ReserveSELResponse) CompletionCodes() map[uint8]string
func (*ReserveSELResponse) Format ¶
func (res *ReserveSELResponse) Format() string
func (*ReserveSELResponse) Unpack ¶
func (res *ReserveSELResponse) Unpack(msg []byte) error
type ResetWatchdogTimerRequest ¶ added in v0.2.0
type ResetWatchdogTimerRequest struct { }
27.5 Reset Watchdog Timer Command
func (*ResetWatchdogTimerRequest) Command ¶ added in v0.2.0
func (req *ResetWatchdogTimerRequest) Command() Command
func (*ResetWatchdogTimerRequest) Pack ¶ added in v0.2.0
func (req *ResetWatchdogTimerRequest) Pack() []byte
type ResetWatchdogTimerResponse ¶ added in v0.2.0
type ResetWatchdogTimerResponse struct { }
func (*ResetWatchdogTimerResponse) CompletionCodes ¶ added in v0.2.0
func (res *ResetWatchdogTimerResponse) CompletionCodes() map[uint8]string
func (*ResetWatchdogTimerResponse) Format ¶ added in v0.2.0
func (res *ResetWatchdogTimerResponse) Format() string
func (*ResetWatchdogTimerResponse) Unpack ¶ added in v0.2.0
func (res *ResetWatchdogTimerResponse) Unpack(msg []byte) error
type ResponseError ¶
type ResponseError struct {
// contains filtered or unexported fields
}
ResponseError encapsulate the CompletionCode of IPMI Response Msg alongside with error description.
func (*ResponseError) CompletionCode ¶
func (e *ResponseError) CompletionCode() CompletionCode
func (*ResponseError) Error ¶
func (e *ResponseError) Error() string
Error implements the error interface
type Rmcp ¶
type Rmcp struct { // Multi-byte fields in RMCP/ASF fields are specified as being transmitted in "Network Byte Order" - meaning most-significant byte first. // RMCP and ASF-specified fields are therefore transferred **most-significant byte first**. RmcpHeader *RmcpHeader // Multi-byte fields in RMCP/ASF fields are specified as being transmitted in "Network Byte Order" ASF *ASF // The IPMI convention is to transfer multi-byte numeric fields least-significant Byte first. Therefore, unless otherwise specified: // Data in the IPMI Session Header and IPMI Message fields are transmitted **least-significant byte first**. Session15 *Session15 Session20 *Session20 }
Rmcp holds the data that will be send over UDP
type RmcpAckMessage ¶
type RmcpAckMessage struct { // Copied from received message Version uint8 // Copied from received message SequenceNumber uint8 // [7] - Set to 1 to indicate ACK packet // [6:0] - Copied from received message. ACKFlag bool MessageClass MessageClass // Can be IPMI Messages, ASF, OEM }
13.2.1 RMCP ACK Messages
type RmcpHeader ¶
type RmcpHeader struct { // 06h = RMCP Version 1.0 // IPMI-over-LAN uses version 1 of the RMCP protocol and packet format Version uint8 // RMCP Messages with class=IPMI should be sent with an RMCP Sequence Number of FFh // to indicate that an RMCP ACK message should not be generated by the message receiver. SequenceNumber uint8 // This field identifies the format of the messages that follow this header. // All messages of class ASF (6) conform to the formats defined in this // specification and can be extended via an OEM IANA. // Bit 7 RMCP ACK // 0 - Normal RMCP message // 1 - RMCP ACK message ACKFlag bool // Bit 6:5 Reserved // Bit 4:0 Message Class // 0-5 = Reserved // 6 = ASF // 7 = IPMI // 8 = OEM defined // all other = Reserved MessageClass MessageClass // Can be IPMI Messages, ASF, OEM }
RmcpHeader represents RMCP Message Header 13.1.3
func NewRmcpHeader ¶
func NewRmcpHeader() *RmcpHeader
func NewRmcpHeaderASF ¶
func NewRmcpHeaderASF() *RmcpHeader
func (*RmcpHeader) MessageType ¶
func (r *RmcpHeader) MessageType() MessageType
the ACK/Normal Bit and the Message Class combine to identify the type of message under RMCP see: Table 13-, Message Type Determination Under RMCP
func (*RmcpHeader) Pack ¶
func (r *RmcpHeader) Pack() []byte
func (*RmcpHeader) Unpack ¶
func (r *RmcpHeader) Unpack(msg []byte) error
type RmcpPingRequest ¶
type RmcpPingRequest struct { }
RmcpPingRequest 13.2.3 RMCP/ASF Presence Ping Message
func (*RmcpPingRequest) Command ¶
func (req *RmcpPingRequest) Command() Command
func (*RmcpPingRequest) Pack ¶
func (req *RmcpPingRequest) Pack() []byte
type RmcpPingResponse ¶
type RmcpPingResponse struct { // If no OEM-specific capabilities exist, this field contains the ASF IANA (4542) and the OEM-defined field is set to all zeroes (00000000h). Otherwise, this field contains the OEM's IANA Enterprise Number and the OEM-defined field contains the OEM-specific capabilities. OEMIANA uint32 // Not used for IPMI. // This field can contain OEM-defined values; the definition of these values is left to the manufacturer identified by the preceding IANA Enterprise number. OEMDefined uint32 IPMISupported bool ASFVersion uint8 RMCPSecurityExtensionsSupported bool DMTFDashSupported bool // Reserved for future definition by ASF specification, // set to 00 00 00 00 00 00h, six bytes Reserved []byte }
func (*RmcpPingResponse) CompletionCodes ¶
func (r *RmcpPingResponse) CompletionCodes() map[uint8]string
func (*RmcpPingResponse) Format ¶
func (res *RmcpPingResponse) Format() string
func (*RmcpPingResponse) Unpack ¶
func (res *RmcpPingResponse) Unpack(msg []byte) error
type RmcpStatusCode ¶ added in v0.3.3
type RmcpStatusCode uint8
13.24 RMCP+ and RAKP Message Status Codes
const ( RmcpStatusCodeNoErrors RmcpStatusCode = 0x00 RmcpStatusCodeNoResToCreateSess RmcpStatusCode = 0x01 RmcpStatusCodeInvalidSessionID RmcpStatusCode = 0x02 RmcpStatusCodeInvalidPayloadType RmcpStatusCode = 0x03 RmcpStatusCodeInvalidAuthAlg RmcpStatusCode = 0x04 RmcpStatusCodeInvalidIntegrityAlg RmcpStatusCode = 0x05 RmcpStatusCodeNoMatchingAuthPayload RmcpStatusCode = 0x06 RmcpStatusCodeNoMatchingIntegrityPayload RmcpStatusCode = 0x07 RmcpStatusCodeInactiveSessionID RmcpStatusCode = 0x08 RmcpStatusCodeInvalidRole RmcpStatusCode = 0x09 RmcpStatusCodeNoResToCreateSessAtRole RmcpStatusCode = 0x0b RmcpStatusCodeInvalidNameLength RmcpStatusCode = 0x0c RmcpStatusCodeInvalidIntegrityCheckValue RmcpStatusCode = 0x0f RmcpStatusCodeInvalidConfidentAlg RmcpStatusCode = 0x10 RmcpStatusCodeNoCipherSuiteMatch RmcpStatusCode = 0x11 RmcpStatusCodeIllegalParameter RmcpStatusCode = 0x12 )
func (RmcpStatusCode) String ¶ added in v0.3.3
func (c RmcpStatusCode) String() string
type SDR ¶
type SDR struct { // NextRecordID should be filled by ParseSDR. NextRecordID uint16 RecordHeader *SDRHeader Full *SDRFull Compact *SDRCompact EventOnly *SDREventOnly EntityAssociation *SDREntityAssociation DeviceRelative *SDRDeviceRelative GenericDeviceLocator *SDRGenericDeviceLocator FRUDeviceLocator *SDRFRUDeviceLocator MgmtControllerDeviceLocator *SDRMgmtControllerDeviceLocator MgmtControllerConfirmation *SDRMgmtControllerConfirmation BMCChannelInfo *SDRBMCChannelInfo OEM *SDROEM Reserved *SDRReserved }
43. Sensor Data Record Formats
func ParseSDR ¶
ParseSDR parses raw SDR record data to SDR struct. This function is normally used after getting GetSDRResponse or GetDeviceSDRResponse to interpret the raw SDR record data in the response.
func (*SDR) HasAnalogReading ¶ added in v0.2.0
Determine if sensor has an analog reading
func (*SDR) SensorName ¶
func (*SDR) SensorNumber ¶
func (sdr *SDR) SensorNumber() SensorNumber
type SDRBMCChannelInfo ¶
type SDRBMCChannelInfo struct { Channel0 ChannelInfo Channel1 ChannelInfo Channel2 ChannelInfo Channel3 ChannelInfo Channel4 ChannelInfo Channel5 ChannelInfo Channel6 ChannelInfo Channel7 ChannelInfo MessagingInterruptType uint8 EventMessageBufferInterruptType uint8 }
43.11 SDR Type 14h - BMC Message Channel Info Record
type SDRCompact ¶
type SDRCompact struct { GeneratorID GeneratorID SensorNumber SensorNumber SensorEntityID EntityID SensorEntityInstance EntityInstance // 0b = treat entity as a physical entity per Entity ID table // 1b = treat entity as a logical container entity. For example, if this bit is set, // and the Entity ID is "Processor", the container entity would be considered // to represent a logical "Processor Group" rather than a physical processor. // This bit is typically used in conjunction with an Entity Association record. SensorEntityIsLogical bool SensorInitialization SensorInitialization SensorCapabilities SensorCapabilities SensorType SensorType SensorEventReadingType EventReadingType Mask Mask SensorUnit SensorUnit // SensorValue is not stored in SDR intrinsically, this field is set by `enhanceSDR` // It is fetched by IPMI command GetSensorReading and aligned/converted to SensorUnit based. SensorValue float64 // SensorStatus is not stored in SDR intrinsically, this field is set by `enhanceSDR` SensorStatus string // Sensor Direction. Indicates whether the sensor is monitoring an input or // output relative to the given Entity. E.g. if the sensor is monitoring a // current, this can be used to specify whether it is an input voltage or an // output voltage. // 00b = unspecified / not applicable // 01b = input // 10b = output // 11b = reserved SensorDirection uint8 EntityInstanceSharing uint8 // Positive hysteresis is defined as the unsigned number of counts that are // subtracted from the raw threshold values to create the "re-arm" point for all // positive-going thresholds on the sensor. 0 indicates that there is no hysteresis on // positive-going thresholds for this sensor. Hysteresis values are given as raw // counts. That is, to find the degree of hysteresis in units, the value must be // converted using the "y=Mx+B" formula. // // compact SDR can have pos/neg hysteresis, but they cannot be analog! PositiveHysteresisRaw uint8 // Negative hysteresis is defined as the unsigned number of counts that are added // to the raw threshold value to create the "re-arm" point for all negative-going // thresholds on the sensor. 0 indicates that there is no hysteresis on negative-going // thresholds for this sensor. // // compact SDR can have pos/neg hysteresis, but they cannot be analog! NegativeHysteresisRaw uint8 IDStringTypeLength TypeLength // Sensor ID String Type/Length Code IDStringBytes []byte // Sensor ID String bytes. }
43.2 SDR Type 02h, Compact Sensor Record
The Compact sensor record saves space, but has limitations in the sensors it can describe.
func (*SDRCompact) NegativeHysteresis ¶ added in v0.2.0
func (record *SDRCompact) NegativeHysteresis() (raw uint8, valid bool)
func (*SDRCompact) PositiveHysteresis ¶ added in v0.2.0
func (record *SDRCompact) PositiveHysteresis() (raw uint8, valid bool)
func (*SDRCompact) String ¶ added in v0.2.0
func (compact *SDRCompact) String() string
type SDRDeviceRelative ¶
type SDRDeviceRelative struct { ContainerEntityID uint8 ContainerEntityInstance uint8 ContainerEntityDeviceAddress uint8 ContainerEntityDeviceChannel uint8 // [7] - 0b = contained entities specified as list // 1b = contained entities specified as range ContainedEntitiesAsRange bool // [6] - Record Link // 0b = no linked Entity Association records // 1b = linked Entity Association records exist LinkedEntityAssociationExist bool // [5] - 0b = Container entity and contained entities can be assumed absent // if presence sensor for container entity cannot be accessed. // This value is also used if the entity does not have a presence sensor. // 1b = Presence sensor should always be accessible. Software should consider // it an error if the presence sensor associated with the container entity // is not accessible. If a presence sensor is accessible, then the // presence sensor can still report that the container entity is absent. PresenceSensorAlwaysAccessible bool ContainedEntity1DeviceAddress uint8 ContainedEntity1DeviceChannel uint8 ContainedEntity1ID uint8 ContainedEntity1Instance uint8 ContainedEntity2DeviceAddress uint8 ContainedEntity2DeviceChannel uint8 ContainedEntity2ID uint8 ContainedEntity2Instance uint8 ContainedEntity3DeviceAddress uint8 ContainedEntity3DeviceChannel uint8 ContainedEntity3ID uint8 ContainedEntity3Instance uint8 ContainedEntity4DeviceAddress uint8 ContainedEntity4DeviceChannel uint8 ContainedEntity4ID uint8 ContainedEntity4Instance uint8 }
43.5 SDR Type 09h - Device-relative Entity Association Record
type SDREntityAssociation ¶
type SDREntityAssociation struct { ContainerEntityID uint8 ContainerEntityInstance uint8 // [7] - 0b = contained entities specified as list // 1b = contained entities specified as range ContainedEntitiesAsRange bool // [6] - Record Link // 0b = no linked Entity Association records // 1b = linked Entity Association records exist LinkedEntityAssociationExist bool // [5] - 0b = Container entity and contained entities can be assumed absent // if presence sensor for container entity cannot be accessed. // This value is also used if the entity does not have a presence sensor. // 1b = Presence sensor should always be accessible. Software should consider // it an error if the presence sensor associated with the container entity // is not accessible. If a presence sensor is accessible, then the // presence sensor can still report that the container entity is absent. PresenceSensorAlwaysAccessible bool ContainedEntity1ID uint8 ContainedEntity1Instance uint8 ContainedEntity2ID uint8 ContainedEntity2Instance uint8 ContainedEntity3ID uint8 ContainedEntity3Instance uint8 ContainedEntity4ID uint8 ContainedEntity4Instance uint8 }
43.4 SDR Type 08h - Entity Association Record
type SDREventOnly ¶
type SDREventOnly struct { GeneratorID GeneratorID SensorNumber SensorNumber // Unique number identifying the sensor behind a given slave address and LUN. Code FFh reserved. SensorEntityID EntityID SensorEntityInstance EntityInstance // 0b = treat entity as a physical entity per Entity ID table // 1b = treat entity as a logical container entity. For example, if this bit is set, // and the Entity ID is "Processor", the container entity would be considered // to represent a logical "Processor Group" rather than a physical processor. // This bit is typically used in conjunction with an Entity Association record. SensorEntityIsLogical bool SensorType SensorType SensorEventReadingType EventReadingType SensorDirection uint8 IDStringInstanceModifierType uint8 // record are sequential starting with the sensor number specified by the Sensor // Number field for this record. E.g. if the starting sensor number was 10, and the share // count was 3, then sensors 10, 11, and 12 would share this record. ShareCount uint8 EntityInstanceSharing bool // Multiple Discrete sensors can share the same sensor data record. The ID String Instance // Modifier and Modifier Offset are used to modify the Sensor ID String as follows: // Suppose sensor ID is "Temp " for "Temperature Sensor", share count = 3, ID string // instance modifier = numeric, instance modifier offset = 5 - then the sensors could be // identified as: // Temp 5, Temp 6, Temp 7 // If the modifier = alpha, and offset = 26, then the sensors could be identified as: // Temp AA, Temp AB, Temp AC // (alpha characters are considered to be base 26 for ASCII) IDStringInstanceModifierOffset uint8 IDStringTypeLength TypeLength IDStringBytes []byte }
43.3 SDR Type 03h, Event-Only Record
func (*SDREventOnly) String ¶ added in v0.2.0
func (eventOnly *SDREventOnly) String() string
type SDRFRUDeviceLocator ¶
type SDRFRUDeviceLocator struct { // [7:1] - Slave address of controller used to access device. 0000000b if device is directly on IPMB. // This field indicates whether the device is on a private bus or not. DeviceAccessAddress uint8 // FRU Device ID / Device Slave Address // // For Logical FRU DEVICE (accessed via FRU commands to mgmt. controller): // [7:0] - Number identifying FRU device within given IPM Controller. FFh = reserved. // The primary FRU device for a management controller is always device #0 at // LUN 00b. The primary FRU device is not reported via this FRU Device Locator // record - its presence is identified via the Device Capabilities field in the // Management Controller Device Locator record. // // For non-intelligent FRU device: // [7:1] - 7-bit I2C Slave Address // This is relative to the bus the device is on. // For devices on the IPMB, this is the slave address of the device on the IPMB. // For devices on a private bus, this is the slave address of the device on the private bus. // [0] - reserved FRUDeviceID_SlaveAddress uint8 // [7] - logical/physical FRU device // 0b = device is not a logical FRU Device (a physical device, that is a non-intelligent device) // 1b = device is logical FRU Device (accessed via FRU commands to mgmt. controller) IsLogicalFRUDevice bool // [4:3] - LUN for Read/Write FRU Data Command or Master Write-Read command. AccessLUN uint8 // [2:0] - Private bus ID if bus = Private. // 000b if device directly on IPMB, or device is a logical FRU Device. // // three bits, total eight bus ids, 000 ~ 111, (0 ~ 7) PrivateBusID uint8 // [7:4] - Channel number for management controller used to access device. // 000b if device directly on the primary IPMB, or if controller is on the primary IPMB. // Msbit for channel number is kept in next byte. // (For IPMI v1.5. This byte position was reserved for IPMI v1.0.) // // [3:0] - reserved ChannelNumber uint8 DeviceType DeviceType DeviceTypeModifier uint8 FRUEntityID uint8 FRUEntityInstance uint8 DeviceIDTypeLength TypeLength DeviceIDBytes []byte // Short ID string for the FRU Device }
43.8 SDR Type 11h - FRU Device Locator Record 38. Accessing FRU Devices
func (*SDRFRUDeviceLocator) Location ¶ added in v0.2.0
func (sdrFRU *SDRFRUDeviceLocator) Location() FRULocation
Table 38-1, FRU Device Locator Field Usage
type SDRFull ¶
type SDRFull struct { GeneratorID GeneratorID SensorNumber SensorNumber // Indicates the physical entity that the sensor is monitoring or is otherwise // associated with the sensor. SensorEntityID EntityID SensorEntityInstance EntityInstance // For example, if this bit is set, and the Entity ID is "Processor", // the container entity would be considered to represent a logical "Processor Group" rather than a physical processor. // // This bit is typically used in conjunction with an Entity Association full. // // 0b = treat entity as a physical entity per Entity ID table // 1b = treat entity as a logical container entity. SensorEntityIsLogical bool SensorInitialization SensorInitialization SensorCapabilities SensorCapabilities SensorType SensorType SensorEventReadingType EventReadingType Mask Mask SensorUnit SensorUnit // Note, SensorValue is not stored in SDR intrinsically, this field is set by `enhanceSDR` // It is fetched by IPMI command GetSensorReading and aligned/converted to SensorUnit based. SensorValue float64 // Note, SensorStatus is not stored in SDR intrinsically, this field is set by `enhanceSDR` SensorStatus string EntityInstanceSharing uint8 // LinearizationFunc is the Linearization func. (L of the Sensor Reading Conversion Formula) // // [6:0] - enum (linear, ln, log10, log2, e, exp10, exp2, 1/x, sqr(x), cube(x), sqrt(x), // cube-1 (x) ) // - 70h = non-linear. // 71h-7Fh = non-linear, OEM defined. LinearizationFunc LinearizationFunc ReadingFactors // Sensor Direction. Indicates whether the sensor is monitoring an input or // output relative to the given Entity. E.g. if the sensor is monitoring a // current, this can be used to specify whether it is an input voltage or an // output voltage. // 00b = unspecified / not applicable // 01b = input // 10b = output // 11b = reserved SensorDirection uint8 NominalReadingSpecified bool NormalMaxSpecified bool NormalMinSpecified bool // 额定值, 标称值 // Given as a raw value. Must be converted to units-based value using the y=Mx+B // formula. 1's or 2's complement signed or unsigned per flag bits in Sensor Units 1 // // Only meaningful when NominalReadingSpecified is true NominalReadingRaw uint8 // 最大正常值 // Only meaningful when NormalMaxSpecified is true NormalMaxRaw uint8 // 最小正常值 // Only meaningful when NormalMinSpecified is true NormalMinRaw uint8 // Given as a raw value. Must be converted to units-based value based using the // y=Mx+B formula. Signed or unsigned per "signed" bit in sensor flags. Normally // "FFh" for an 8-bit unsigned sensor, but can be a lesser value if the sensor has a // restricted range. If max. reading cannot be pre-specified this value should be set // to max value, based on data format, (e.g. FFh for an unsigned sensor, 7Fh for 2"s // complement, etc.) SensorMaxReadingRaw uint8 // Given as a raw value. Must be converted to units-based value using the "y=Mx+B" // formula. Signed or unsigned per "signed" bit in sensor flags. If min. reading // cannot be pre-specified this value should be set to min value, based on data // format, (e.g. 00h for an unsigned sensor, 80h for 2"s complement, etc.) SensorMinReadingRaw uint8 // Given as raw value. UNR_Raw uint8 UCR_Raw uint8 UNC_Raw uint8 LNR_Raw uint8 LCR_Raw uint8 LNC_Raw uint8 // Positive hysteresis is defined as the unsigned number of counts that are // subtracted from the raw threshold values to create the "re-arm" point for all // positive-going thresholds on the sensor. 0 indicates that there is no hysteresis on // positive-going thresholds for this sensor. Hysteresis values are given as raw // counts. That is, to find the degree of hysteresis in units, the value must be // converted using the "y=Mx+B" formula. // // 正向迟滞量 PositiveHysteresisRaw uint8 // Negative hysteresis is defined as the unsigned number of counts that are added // to the raw threshold value to create the "re-arm" point for all negative-going // thresholds on the sensor. 0 indicates that there is no hysteresis on negative-going // thresholds for this sensor. // // 负向迟滞量 NegativeHysteresisRaw uint8 IDStringTypeLength TypeLength IDStringBytes []byte }
43.1 SDRFull Type 01h, Full Sensor Record
The Full Sensor Record can be used to describe any type of sensor.
func (*SDRFull) ConvertReading ¶ added in v0.2.0
ConvertReading converts raw sensor reading or raw sensor threshold value to real value in the desired units for the sensor.
func (*SDRFull) ConvertSensorHysteresis ¶ added in v0.2.0
ConvertSensorHysteresis converts raw sensor hysteresis value to real value in the desired units for the sensor.
func (*SDRFull) ConvertSensorTolerance ¶ added in v0.2.0
ConvertSensorTolerance converts raw sensor tolerance value to real value in the desired units for the sensor.
func (*SDRFull) HasAnalogReading ¶ added in v0.4.0
func (*SDRFull) HysteresisStr ¶ added in v0.2.0
func (*SDRFull) ReadingMaxStr ¶ added in v0.2.0
func (*SDRFull) ReadingMinStr ¶ added in v0.2.0
func (*SDRFull) ReadingStr ¶ added in v0.2.0
func (*SDRFull) SensorThreshold ¶ added in v0.2.0
func (full *SDRFull) SensorThreshold(thresholdType SensorThresholdType) SensorThreshold
SensorThreshold return SensorThreshold for a specified threshold type.
func (*SDRFull) ThresholdValueStr ¶ added in v0.2.0
func (full *SDRFull) ThresholdValueStr(thresholdType SensorThresholdType) string
ThresholdValueStr formats a threshold value for specified threshold type. If the threshold is not readable, return "not readable".
type SDRGenericDeviceLocator ¶
type SDRGenericDeviceLocator struct { DeviceAccessAddress uint8 // Slave address of management controller used to access device. 0000000b if device is directly on IPMB DeviceSlaveAddress uint8 ChannelNumber uint8 // Channel number for management controller used to access device AccessLUN uint8 // LUN for Master Write-Read command. 00b if device is non-intelligent device directly on IPMB. PrivateBusID uint8 // Private bus ID if bus = Private. 000b if device directly on IPMB AddressSpan uint8 DeviceType uint8 DeviceTypeModifier uint8 EntityID uint8 EntityInstance uint8 DeviceIDTypeLength TypeLength DeviceIDString []byte // Short ID string for the device }
43.7 SDR Type 10h - Generic Device Locator Record This record is used to store the location and type information for devices on the IPMB or management controller private busses that are neither IPMI FRU devices nor IPMI management controllers.
These devices can either be common non-intelligent I2C devices, special management ASICs, or proprietary controllers.
IPMI FRU Devices and Management Controllers are located via the FRU Device Locator and Management Controller Device Locator records described in following sections.
type SDRHeader ¶
type SDRHeader struct { RecordID uint16 SDRVersion uint8 // The version number of the SDR specification. RecordType SDRRecordType // A number representing the type of the record. E.g. 01h = 8-bit Sensor with Thresholds. RecordLength uint8 // Number of bytes of data following the Record Length field. }
type SDRMapBySensorNumber ¶ added in v0.2.0
type SDRMapBySensorNumber map[GeneratorID]map[SensorNumber]*SDR
type SDRMgmtControllerConfirmation ¶
type SDRMgmtControllerConfirmation struct { DeviceSlaveAddress uint8 // 7-bit I2C Slave Address[1] of device on IPMB. DeviceID uint8 ChannelNumber uint8 DeviceRevision uint8 FirmwareMajorRevision uint8 // [6:0] - Major Firmware Revision, binary encoded. FirmwareMinorRevision uint8 // Minor Firmware Revision. BCD encoded. // IPMI Version from Get Device ID command. Holds IPMI Command Specification // Version. BCD encoded. 00h = reserved. Bits 7:4 hold the Least Significant digit of the // revision, while bits 3:0 hold the Most Significant bits. E.g. a value of 01h indicates // revision 1.0 MajorIPMIVersion uint8 MinorIPMIVersion uint8 ManufacturerID uint32 // 3 bytes only ProductID uint16 DeviceGUID []byte // 16 bytes }
43.10 SDR Type 13h - Management Controller Confirmation Record
type SDRMgmtControllerDeviceLocator ¶
type SDRMgmtControllerDeviceLocator struct { DeviceSlaveAddress uint8 // 7-bit I2C Slave Address[1] of device on channel ChannelNumber uint8 ACPISystemPowerStateNotificationRequired bool ACPIDevicePowerStateNotificationRequired bool ControllerLogsInitializationAgentErrors bool LogInitializationAgentErrors bool DeviceCap_ChassisDevice bool // device functions as chassis device DeviceCap_Bridge bool // Controller responds to Bridge NetFn command DeviceCap_IPMBEventGenerator bool // device generates event messages on IPMB DeviceCap_IPMBEventReceiver bool // device accepts event messages from IPMB DeviceCap_FRUInventoryDevice bool // accepts FRU commands to FRU Device #0 at LUN 00b DeviceCap_SELDevice bool // provides interface to SEL DeviceCap_SDRRepoDevice bool // For BMC, indicates BMC provides interface to 1b = SDR Repository. For other controller, indicates controller accepts Device SDR commands DeviceCap_SensorDevice bool // device accepts sensor commands EntityID uint8 EntityInstance uint8 DeviceIDTypeLength TypeLength DeviceIDBytes []byte }
43.9 SDR Type 12h - Management Controller Device Locator Record
type SDROperationSupport ¶
type SDROperationSupport struct { Overflow bool SupportModalSDRRepoUpdate bool // A modal SDR Repository is only updated when the controller is in an SDR Repository update mode. SupportNonModalSDRRepoUpdate bool // A non-modal SDR Repository can be written to at any time SupportDeleteSDR bool SupportPartialAddSDR bool SupportReserveSDRRepo bool SupportGetSDRRepoAllocInfo bool }
type SDRRecordType ¶
type SDRRecordType uint8
43. Sensor Data Record Formats SDRRecordType is a number representing the type of the record.
const ( SDRRecordTypeFullSensor SDRRecordType = 0x01 SDRRecordTypeCompactSensor SDRRecordType = 0x02 SDRRecordTypeEventOnly SDRRecordType = 0x03 SDRRecordTypeEntityAssociation SDRRecordType = 0x08 SDRRecordTypeDeviceRelativeEntityAssociation SDRRecordType = 0x09 SDRRecordTypeGenericLocator SDRRecordType = 0x10 SDRRecordTypeFRUDeviceLocator SDRRecordType = 0x11 SDRRecordTypeManagementControllerDeviceLocator SDRRecordType = 0x12 SDRRecordTypeManagementControllerConfirmation SDRRecordType = 0x13 SDRRecordTypeBMCMessageChannelInfo SDRRecordType = 0x14 SDRRecordTypeOEM SDRRecordType = 0xc0 )
func (SDRRecordType) String ¶
func (sdrRecordType SDRRecordType) String() string
type SEL ¶
type SEL struct { // SEL Record IDs 0000h and FFFFh are reserved for functional use and are not legal ID values. // Record IDs are handles. They are not required to be sequential or consecutive. // Applications should not assume that SEL Record IDs will follow any particular numeric ordering. RecordID uint16 RecordType SELRecordType Standard *SELStandard OEMTimestamped *SELOEMTimestamped OEMNonTimestamped *SELOEMNonTimestamped }
32. SEL Record Formats
type SELOEMNonTimestamped ¶
type SELOEMNonTimestamped struct {
OEM [13]byte
}
func (*SELOEMNonTimestamped) Pack ¶ added in v0.2.0
func (oemNonTimestamped *SELOEMNonTimestamped) Pack() []byte
type SELOEMTimestamped ¶
type SELOEMTimestamped struct { Timestamp time.Time // Time when event was logged. uint32 LS byte first. ManufacturerID uint32 // only 3 bytes OEMDefined [6]byte }
32.2 OEM SEL Record - Type C0h-DFh
func (*SELOEMTimestamped) Pack ¶ added in v0.2.0
func (oemTimestamped *SELOEMTimestamped) Pack() []byte
type SELOperationSupport ¶
type SELRecordType ¶ added in v0.2.0
type SELRecordType uint8
31.6.1 SEL Record Type Ranges
func (SELRecordType) Range ¶ added in v0.2.0
func (typ SELRecordType) Range() SELRecordTypeRange
The SELRecordType can be categorized into 3 ranges according to the SELRecordType value.
- 00h - BFh -> standard
- C0h - DFh -> timestamped OEM
- E0h - FFh -> none-timestamped OEM
func (SELRecordType) String ¶ added in v0.2.0
func (typ SELRecordType) String() string
type SELRecordTypeRange ¶ added in v0.2.0
type SELRecordTypeRange string
const ( // Range reserved for standard SEL Record Types. // As of this writing, only type 02h is defined. // Records are automatically timestamped unless otherwise indicated // 00h - BFh SELRecordTypeRangeStandard SELRecordTypeRange = "standard" // 32.2 OEM SEL Record - Type C0h-DFh // Range reserved for timestamped OEM SEL records. // These records are automatically timestamped by the SEL Device // C0h - DFh SELRecordTypeRangeTimestampedOEM SELRecordTypeRange = "timestamped OEM" // 32.3 OEM SEL Record - Type E0h-FFh // Range reserved for non-timestamped OEM SEL records. // The SEL Device does not automatically timestamp these records. // The four bytes passed in the byte locations for the timestamp will be directly entered into the SEL. // E0h - FFh SELRecordTypeRangeNonTimestampedOEM SELRecordTypeRange = "non-timestamped OEM" )
type SELStandard ¶
type SELStandard struct { Timestamp time.Time // Time when event was logged. uint32 LS byte first. GeneratorID GeneratorID // RqSA & LUN if event was generated from IPMB. Software ID if event was generated from system software. EvMRev uint8 // Event Message Revision (format version) SensorType SensorType // Sensor Type Code for sensor that generated the event SensorNumber SensorNumber // Number of sensor that generated the event EventDir EventDir // Event Direction. [7] -0b = Assertion event. 1b = Deassertion event. EventReadingType EventReadingType // Type of trigger for the event. [6:0] - Event Type Code // 29.7 Event Data Field Formats // // The sensor class determines the corresponding Event Data format. // The sensor class can be extracted from EventReadingType. EventData EventData }
32.1 SEL Standard Event Records
func (*SELStandard) EventSeverity ¶ added in v0.2.0
func (sel *SELStandard) EventSeverity() EventSeverity
func (*SELStandard) EventString ¶
func (sel *SELStandard) EventString() string
EventString return string description of the event.
func (*SELStandard) Pack ¶ added in v0.2.0
func (standard *SELStandard) Pack() []byte
type SOLActivatingRequest ¶ added in v0.2.0
type SOLActivatingRequest struct { SessionState uint8 PayloadInstance uint8 FormatVersionMajor uint8 FormatVersionMinor uint8 }
26.1 SOL Activating Command
func (*SOLActivatingRequest) Command ¶ added in v0.2.0
func (req *SOLActivatingRequest) Command() Command
func (*SOLActivatingRequest) Pack ¶ added in v0.2.0
func (req *SOLActivatingRequest) Pack() []byte
type SOLActivatingResponse ¶ added in v0.2.0
type SOLActivatingResponse struct { }
func (*SOLActivatingResponse) CompletionCodes ¶ added in v0.2.0
func (res *SOLActivatingResponse) CompletionCodes() map[uint8]string
func (*SOLActivatingResponse) Format ¶ added in v0.2.0
func (res *SOLActivatingResponse) Format() string
func (*SOLActivatingResponse) Unpack ¶ added in v0.2.0
func (res *SOLActivatingResponse) Unpack(msg []byte) error
type SOLConfigParamSelector ¶ added in v0.2.0
type SOLConfigParamSelector uint8
const ( SOLConfigParamSelector_SetInProgress SOLConfigParamSelector = 0x00 SOLConfigParamSelector_SOLEnable SOLConfigParamSelector = 0x01 SOLConfigParamSelector_SOLAuthentication SOLConfigParamSelector = 0x02 SOLConfigParamSelector_Character SOLConfigParamSelector = 0x03 SOLConfigParamSelector_SOLRetry SOLConfigParamSelector = 0x04 SOLConfigParamSelector_NonVolatileBitRate SOLConfigParamSelector = 0x05 SOLConfigParamSelector_VolatileBitRate SOLConfigParamSelector = 0x06 SOLConfigParamSelector_PayloadChannel SOLConfigParamSelector = 0x07 SOLConfigParamSelector_PayloadPort SOLConfigParamSelector = 0x08 )
func (SOLConfigParamSelector) String ¶ added in v0.7.0
func (p SOLConfigParamSelector) String() string
type SOLConfigParam_Character ¶ added in v0.2.0
func (*SOLConfigParam_Character) Format ¶ added in v0.2.0
func (p *SOLConfigParam_Character) Format() string
func (*SOLConfigParam_Character) Pack ¶ added in v0.2.0
func (p *SOLConfigParam_Character) Pack() []byte
func (*SOLConfigParam_Character) SOLConfigParameter ¶ added in v0.7.0
func (p *SOLConfigParam_Character) SOLConfigParameter() (paramSelector SOLConfigParamSelector, setSelector uint8, blockSelector uint8)
func (*SOLConfigParam_Character) Unpack ¶ added in v0.2.0
func (p *SOLConfigParam_Character) Unpack(paramData []byte) error
type SOLConfigParam_NonVolatileBitRate ¶ added in v0.2.0
type SOLConfigParam_NonVolatileBitRate struct {
BitRate uint8
}
func (*SOLConfigParam_NonVolatileBitRate) Format ¶ added in v0.2.0
func (p *SOLConfigParam_NonVolatileBitRate) Format() string
func (*SOLConfigParam_NonVolatileBitRate) Pack ¶ added in v0.2.0
func (p *SOLConfigParam_NonVolatileBitRate) Pack() []byte
func (*SOLConfigParam_NonVolatileBitRate) SOLConfigParameter ¶ added in v0.7.0
func (p *SOLConfigParam_NonVolatileBitRate) SOLConfigParameter() (paramSelector SOLConfigParamSelector, setSelector uint8, blockSelector uint8)
func (*SOLConfigParam_NonVolatileBitRate) Unpack ¶ added in v0.2.0
func (p *SOLConfigParam_NonVolatileBitRate) Unpack(paramData []byte) error
type SOLConfigParam_PayloadChannel ¶ added in v0.2.0
type SOLConfigParam_PayloadChannel struct {
ChannelNumber uint8
}
func (*SOLConfigParam_PayloadChannel) Format ¶ added in v0.2.0
func (p *SOLConfigParam_PayloadChannel) Format() string
func (*SOLConfigParam_PayloadChannel) Pack ¶ added in v0.2.0
func (p *SOLConfigParam_PayloadChannel) Pack() []byte
func (*SOLConfigParam_PayloadChannel) SOLConfigParameter ¶ added in v0.7.0
func (p *SOLConfigParam_PayloadChannel) SOLConfigParameter() (paramSelector SOLConfigParamSelector, setSelector uint8, blockSelector uint8)
func (*SOLConfigParam_PayloadChannel) Unpack ¶ added in v0.2.0
func (p *SOLConfigParam_PayloadChannel) Unpack(paramData []byte) error
type SOLConfigParam_PayloadPort ¶ added in v0.2.0
type SOLConfigParam_PayloadPort struct {
Port uint16
}
func (*SOLConfigParam_PayloadPort) Format ¶ added in v0.2.0
func (p *SOLConfigParam_PayloadPort) Format() string
func (*SOLConfigParam_PayloadPort) Pack ¶ added in v0.2.0
func (p *SOLConfigParam_PayloadPort) Pack() []byte
func (*SOLConfigParam_PayloadPort) SOLConfigParameter ¶ added in v0.7.0
func (p *SOLConfigParam_PayloadPort) SOLConfigParameter() (paramSelector SOLConfigParamSelector, setSelector uint8, blockSelector uint8)
func (*SOLConfigParam_PayloadPort) Unpack ¶ added in v0.2.0
func (p *SOLConfigParam_PayloadPort) Unpack(paramData []byte) error
type SOLConfigParam_SOLAuthentication ¶ added in v0.2.0
type SOLConfigParam_SOLAuthentication struct { ForceEncryption bool ForceAuthentication bool PrivilegeLevel uint8 }
func (*SOLConfigParam_SOLAuthentication) Format ¶ added in v0.2.0
func (p *SOLConfigParam_SOLAuthentication) Format() string
func (*SOLConfigParam_SOLAuthentication) Pack ¶ added in v0.2.0
func (p *SOLConfigParam_SOLAuthentication) Pack() []byte
func (*SOLConfigParam_SOLAuthentication) SOLConfigParameter ¶ added in v0.7.0
func (p *SOLConfigParam_SOLAuthentication) SOLConfigParameter() (paramSelector SOLConfigParamSelector, setSelector uint8, blockSelector uint8)
func (*SOLConfigParam_SOLAuthentication) Unpack ¶ added in v0.2.0
func (p *SOLConfigParam_SOLAuthentication) Unpack(paramData []byte) error
type SOLConfigParam_SOLEnable ¶ added in v0.2.0
type SOLConfigParam_SOLEnable struct {
EnableSOLPayload bool
}
func (*SOLConfigParam_SOLEnable) Format ¶ added in v0.2.0
func (p *SOLConfigParam_SOLEnable) Format() string
func (*SOLConfigParam_SOLEnable) Pack ¶ added in v0.2.0
func (p *SOLConfigParam_SOLEnable) Pack() []byte
func (*SOLConfigParam_SOLEnable) SOLConfigParameter ¶ added in v0.7.0
func (p *SOLConfigParam_SOLEnable) SOLConfigParameter() (paramSelector SOLConfigParamSelector, setSelector uint8, blockSelector uint8)
func (*SOLConfigParam_SOLEnable) Unpack ¶ added in v0.2.0
func (p *SOLConfigParam_SOLEnable) Unpack(paramData []byte) error
type SOLConfigParam_SOLRetry ¶ added in v0.2.0
type SOLConfigParam_SOLRetry struct { // 1-based. 0 = no retries after packet is transmitted. Packet will be // dropped if no ACK/NACK received by time retries expire. RetryCount uint8 RetryInterval10Millis uint8 }
func (*SOLConfigParam_SOLRetry) Format ¶ added in v0.2.0
func (p *SOLConfigParam_SOLRetry) Format() string
func (*SOLConfigParam_SOLRetry) Pack ¶ added in v0.2.0
func (p *SOLConfigParam_SOLRetry) Pack() []byte
func (*SOLConfigParam_SOLRetry) SOLConfigParameter ¶ added in v0.7.0
func (p *SOLConfigParam_SOLRetry) SOLConfigParameter() (paramSelector SOLConfigParamSelector, setSelector uint8, blockSelector uint8)
func (*SOLConfigParam_SOLRetry) Unpack ¶ added in v0.2.0
func (p *SOLConfigParam_SOLRetry) Unpack(paramData []byte) error
type SOLConfigParam_SetInProgress ¶ added in v0.2.0
type SOLConfigParam_SetInProgress struct {
Value SetInProgressState
}
func (*SOLConfigParam_SetInProgress) Format ¶ added in v0.2.0
func (p *SOLConfigParam_SetInProgress) Format() string
func (*SOLConfigParam_SetInProgress) Pack ¶ added in v0.2.0
func (p *SOLConfigParam_SetInProgress) Pack() []byte
func (*SOLConfigParam_SetInProgress) SOLConfigParameter ¶ added in v0.7.0
func (p *SOLConfigParam_SetInProgress) SOLConfigParameter() (paramSelector SOLConfigParamSelector, setSelector uint8, blockSelector uint8)
func (*SOLConfigParam_SetInProgress) Unpack ¶ added in v0.2.0
func (p *SOLConfigParam_SetInProgress) Unpack(paramData []byte) error
type SOLConfigParam_VolatileBitRate ¶ added in v0.2.0
type SOLConfigParam_VolatileBitRate struct {
BitRate uint8
}
func (*SOLConfigParam_VolatileBitRate) Format ¶ added in v0.2.0
func (p *SOLConfigParam_VolatileBitRate) Format() string
func (*SOLConfigParam_VolatileBitRate) Pack ¶ added in v0.2.0
func (p *SOLConfigParam_VolatileBitRate) Pack() []byte
func (*SOLConfigParam_VolatileBitRate) SOLConfigParameter ¶ added in v0.7.0
func (p *SOLConfigParam_VolatileBitRate) SOLConfigParameter() (paramSelector SOLConfigParamSelector, setSelector uint8, blockSelector uint8)
func (*SOLConfigParam_VolatileBitRate) Unpack ¶ added in v0.2.0
func (p *SOLConfigParam_VolatileBitRate) Unpack(paramData []byte) error
type SOLConfigParameter ¶ added in v0.7.0
type SOLConfigParameter interface { SOLConfigParameter() (paramSelector SOLConfigParamSelector, setSelector uint8, blockSelector uint8) Parameter }
type SOLConfigParams ¶ added in v0.7.1
type SOLConfigParams struct { SetInProgress *SOLConfigParam_SetInProgress SOLEnable *SOLConfigParam_SOLEnable SOLAuthentication *SOLConfigParam_SOLAuthentication Character *SOLConfigParam_Character SOLRetry *SOLConfigParam_SOLRetry NonVolatileBitRate *SOLConfigParam_NonVolatileBitRate VolatileBitRate *SOLConfigParam_VolatileBitRate PayloadChannel *SOLConfigParam_PayloadChannel PayloadPort *SOLConfigParam_PayloadPort }
func (*SOLConfigParams) Format ¶ added in v0.7.1
func (p *SOLConfigParams) Format() string
type SendMessageRequest ¶
type SendMessageRequest struct { // [7:6] 00b = No tracking // 01b = Track Request. // 10b = Send Raw. (optional) // 11b = reserved TrackMask uint8 Encrypted bool Authenticated bool ChannelNumber uint8 // Todo MessageData []byte }
22.7 Send Message Command
func (SendMessageRequest) Command ¶
func (req SendMessageRequest) Command() Command
func (*SendMessageRequest) Pack ¶
func (req *SendMessageRequest) Pack() []byte
type SendMessageResponse ¶
type SendMessageResponse struct { // This data will only be present when using the Send Message command to // originate requests from IPMB or PCI Management Bus to other channels // such as LAN or serial/modem. It is not present in the response to a // Send Message command delivered via the System Interface. Data []byte }
func (*SendMessageResponse) CompletionCodes ¶
func (*SendMessageResponse) CompletionCodes() map[uint8]string
func (*SendMessageResponse) Format ¶
func (res *SendMessageResponse) Format() string
func (*SendMessageResponse) Unpack ¶
func (res *SendMessageResponse) Unpack(msg []byte) error
type Sensor ¶ added in v0.2.0
type Sensor struct { Number uint8 Name string SDRRecordType SDRRecordType HasAnalogReading bool SensorType SensorType EventReadingType EventReadingType SensorUnit SensorUnit SensorInitialization SensorInitialization SensorCapabilities SensorCapabilities EntityID EntityID EntityInstance EntityInstance // Raw reading value before conversion Raw uint8 // reading value after conversion Value float64 Threshold struct { Mask Mask_Thresholds // Threshold Status, updated by GetSensorReadingResponse.ThresholdStatus() ThresholdStatus SensorThresholdStatus // Only Full SDR LinearizationFunc LinearizationFunc ReadingFactors LNC_Raw uint8 LCR_Raw uint8 LNR_Raw uint8 UNC_Raw uint8 UCR_Raw uint8 UNR_Raw uint8 LNC float64 LCR float64 LNR float64 UNC float64 UCR float64 UNR float64 PositiveHysteresisRaw uint8 NegativeHysteresisRaw uint8 PositiveHysteresis float64 NegativeHysteresis float64 } Discrete struct { Mask Mask_Discrete ActiveStates Mask_DiscreteEvent // contains filtered or unexported fields } OccurredEvents []SensorEvent // contains filtered or unexported fields }
Sensor holds all attribute of a sensor.
func (*Sensor) ConvertReading ¶ added in v0.2.0
ConvertReading converts raw discrete-sensor reading or raw threshold-sensor value to real value in the desired units for the sensor.
This function can also be applied on raw threshold setting (UNR,UCR,NNC,LNC,LCR,LNR) values.
func (*Sensor) ConvertSensorHysteresis ¶ added in v0.2.0
func (*Sensor) ConvertSensorTolerance ¶ added in v0.2.0
func (*Sensor) DiscreteActiveEvents ¶ added in v0.5.6
func (*Sensor) DiscreteActiveEventsString ¶ added in v0.5.6
func (*Sensor) EventString ¶ added in v0.5.6
func (*Sensor) HysteresisStr ¶ added in v0.2.0
func (*Sensor) IsReadingValid ¶ added in v0.2.0
func (*Sensor) IsThreshold ¶ added in v0.2.0
IsThreshold returns whether the sensor is threshold sensor class or not.
func (*Sensor) IsThresholdAndReadingValid ¶ added in v0.2.0
func (*Sensor) IsThresholdReadable ¶ added in v0.2.0
func (sensor *Sensor) IsThresholdReadable(thresholdType SensorThresholdType) bool
func (*Sensor) ReadingStr ¶ added in v0.2.0
func (*Sensor) SensorThreshold ¶ added in v0.2.0
func (sensor *Sensor) SensorThreshold(thresholdType SensorThresholdType) SensorThreshold
SensorThreshold return SensorThreshold for a specified threshold type.
func (*Sensor) ThresholdStr ¶ added in v0.2.0
func (sensor *Sensor) ThresholdStr(thresholdType SensorThresholdType) string
type SensorAnalogUnitFormat ¶ added in v0.2.0
type SensorAnalogUnitFormat uint8
const ( SensorAnalogUnitFormat_Unsigned SensorAnalogUnitFormat = 0 // unsigned SensorAnalogUnitFormat_1sComplement SensorAnalogUnitFormat = 1 // 1's complement (signed) SensorAnalogUnitFormat_2sComplement SensorAnalogUnitFormat = 2 // 2's complement (signed) SensorAnalogUnitFormat_NotAnalog SensorAnalogUnitFormat = 3 // does not return analog (numeric) reading )
func (SensorAnalogUnitFormat) String ¶ added in v0.2.0
func (format SensorAnalogUnitFormat) String() string
type SensorCapabilities ¶ added in v0.5.0
type SensorCapabilities struct { // [7] - 1b = ignore sensor if Entity is not present or disabled. 0b = don't ignore sensor IgnoreSensorIfNoEntity bool // Sensor Auto Re-arm Support // Indicates whether the sensor requires manual rearming, or automatically rearms // itself when the event clears. 'manual' implies that the get sensor event status and // rearm sensor events commands are supported // [6] - 0b = no (manual), 1b = yes (auto) AutoRearm bool HysteresisAccess SensorHysteresisAccess ThresholdAccess SensorThresholdAccess EventMessageControl SensorEventMessageControl }
SensorCapabilities represent the capabilities of the sensor. SDRs of Full/Compact record type has this field.
type SensorClass ¶
type SensorClass string
42.1 Sensors are classified according to the type of readings they provide and/or the type of events they generate.
Three sensor classes: threshold, discrete, oem (oem is a special case of discrete)
A sensor can return either an analog or discrete readings. Sensor events can be discrete or threshold-based. Valid sensorclass string values are: "N/A", "threshold", "discrete", "oem"
const ( SensorClassNotApplicable SensorClass = "N/A" // 不适用的 SensorClassThreshold SensorClass = "threshold" // 离散 multiple states possible // Discrete sensors can contain up to 15 possible states. // It is possible for a discrete sensor to have more than one state active at a time SensorClassDiscrete SensorClass = "discrete" // Special case of discrete where the meaning of the states (offsets) are OEM defined. SensorClassOEM SensorClass = "oem" )
type SensorEvent ¶ added in v0.2.0
type SensorEvent struct { SensorClass SensorClass ThresholdType SensorThresholdType Assert bool // true -> assertion events; false -> deassertion events High bool // true -> going high; false -> going low State uint8 // state 0-14 (total 15 possible states) }
func (SensorEvent) String ¶ added in v0.2.0
func (e SensorEvent) String() string
type SensorEventFlag ¶ added in v0.2.0
type SensorEventFlag struct { SensorEvent_UNC_High_Assert bool SensorEvent_UNC_Low_Assert bool SensorEvent_LNR_High_Assert bool SensorEvent_LNR_Low_Assert bool SensorEvent_LCR_High_Assert bool SensorEvent_LCR_Low_Assert bool SensorEvent_LNC_High_Assert bool SensorEvent_LNC_Low_Assert bool SensorEvent_State_7_Assert bool SensorEvent_State_6_Assert bool SensorEvent_State_5_Assert bool SensorEvent_State_4_Assert bool SensorEvent_State_3_Assert bool SensorEvent_State_2_Assert bool SensorEvent_State_1_Assert bool SensorEvent_State_0_Assert bool SensorEvent_UNR_High_Assert bool SensorEvent_UNR_Low_Assert bool SensorEvent_UCR_High_Assert bool SensorEvent_UCR_Low_Assert bool SensorEvent_State_14_Assert bool SensorEvent_State_13_Assert bool SensorEvent_State_12_Assert bool SensorEvent_State_11_Assert bool SensorEvent_State_10_Assert bool SensorEvent_State_9_Assert bool SensorEvent_State_8_Assert bool SensorEvent_UNC_High_Deassert bool SensorEvent_UNC_Low_Deassert bool SensorEvent_LNR_High_Deassert bool SensorEvent_LNR_Low_Deassert bool SensorEvent_LCR_High_Deassert bool SensorEvent_LCR_Low_Deassert bool SensorEvent_LNC_High_Deassert bool SensorEvent_LNC_Low_Deassert bool SensorEvent_State_7_Deassert bool SensorEvent_State_6_Deassert bool SensorEvent_State_5_Deassert bool SensorEvent_State_4_Deassert bool SensorEvent_State_3_Deassert bool SensorEvent_State_2_Deassert bool SensorEvent_State_1_Deassert bool SensorEvent_State_0_Deassert bool SensorEvent_UNR_High_Deassert bool SensorEvent_UNR_Low_Deassert bool SensorEvent_UCR_High_Deassert bool SensorEvent_UCR_Low_Deassert bool SensorEvent_State_14_Deassert bool SensorEvent_State_13_Deassert bool SensorEvent_State_12_Deassert bool SensorEvent_State_11_Deassert bool SensorEvent_State_10_Deassert bool SensorEvent_State_9_Deassert bool SensorEvent_State_8_Deassert bool }
SensorEventFlag holds a struct with fields indicating the specified sensor event is set or not. SensorEventFlag was embedded in Sensor related commands.
func (*SensorEventFlag) TrueEvents ¶ added in v0.2.0
func (flag *SensorEventFlag) TrueEvents() []SensorEvent
TrueEvents returns a slice of SensorEvent those are set to true in the SensorEventFlag.
type SensorEventMessageControl ¶ added in v0.2.0
type SensorEventMessageControl uint8
SensorEventMessageControl indicates whether this sensor generates Event Messages, and if so, what type of Event Message control is offered.
const ( // per threshold/discrete-state event enable/disable control (implies // that entire sensor and global disable are also supported) SensorEventMessageControl_PerThresholdState SensorEventMessageControl = 0 // entire sensor only (implies that global disable is also supported) SensorEventMessageControl_EntireSensorOnly SensorEventMessageControl = 1 // global disable only SensorEventMessageControl_GlobalDisableOnly SensorEventMessageControl = 2 // no events from sensor SensorEventMessageControl_NoEvents SensorEventMessageControl = 3 )
func (SensorEventMessageControl) String ¶ added in v0.2.0
func (a SensorEventMessageControl) String() string
type SensorEvents ¶ added in v0.2.0
type SensorEvents []SensorEvent
func (SensorEvents) FilterAssert ¶ added in v0.2.0
func (events SensorEvents) FilterAssert() SensorEvents
func (SensorEvents) FilterDeassert ¶ added in v0.2.0
func (events SensorEvents) FilterDeassert() SensorEvents
func (SensorEvents) FilterDiscrete ¶ added in v0.2.0
func (events SensorEvents) FilterDiscrete() SensorEvents
func (SensorEvents) FilterThreshold ¶ added in v0.2.0
func (events SensorEvents) FilterThreshold() SensorEvents
func (SensorEvents) Strings ¶ added in v0.2.0
func (events SensorEvents) Strings() []string
type SensorFilterOption ¶ added in v0.2.0
type SensorHysteresisAccess ¶ added in v0.2.0
type SensorHysteresisAccess uint8
SensorHysteresisAccess represents the access mode for the hysteresis value of the sensor.
const ( // No hysteresis, or hysteresis built-in but not specified SensorHysteresisAccess_No SensorHysteresisAccess = 0 // hysteresis is readable. SensorHysteresisAccess_Readable SensorHysteresisAccess = 1 // hysteresis is readable and settable. SensorHysteresisAccess_ReadableSettable SensorHysteresisAccess = 2 // Fixed, unreadable, hysteresis. Hysteresis fields values implemented in the sensor. SensorHysteresisAccess_Fixed SensorHysteresisAccess = 3 )
func (SensorHysteresisAccess) String ¶ added in v0.2.0
func (a SensorHysteresisAccess) String() string
type SensorInitialization ¶ added in v0.2.0
type SensorInitialization struct { // 1b = Sensor is settable (Support the Set Sensor Reading And Event Status command) // 0b = Sensor is not settable // // using this bit to report settable sensors is optional. // I.e. it is ok to report a settable sensor as 'not settable' in the // SDR if it is desired to not report this capability to s/w Settable bool // 1b = enable scanning // // this bit=1 implies that the sensor // accepts the 'enable/disable scanning' bit in the Set // Sensor Event Enable command. InitScanning bool // 1b = enable events (per Sensor Event Message Control // Support bits in Sensor Capabilities field, and per // the Event Mask fields, below). InitEvents bool // 1b = initialize sensor thresholds (per settable threshold mask below). InitThresholds bool // 1b = initialize sensor hysteresis (per Sensor Hysteresis // Support bits in the Sensor Capabilities field, below). InitHysteresis bool // 1b = initialize Sensor Type and Event / Reading Type code InitSensorType bool // 0b = event generation disabled, 1b = event generation enabled EventGenerationEnabled bool // 0b = sensor scanning disabled, 1b = sensor scanning enabled SensorScanningEnabled bool }
SDRs of Full/Compact record type has this field.
type SensorModifierRelation ¶ added in v0.2.0
type SensorModifierRelation uint8
const ( SensorModifierRelation_None SensorModifierRelation = 0 SensorModifierRelation_Div SensorModifierRelation = 1 // Basic Unit / Modifier Unit SensorModifierRelation_Mul SensorModifierRelation = 2 // Basic Unit * Modifier Unit )
func (SensorModifierRelation) String ¶ added in v0.2.0
func (unit SensorModifierRelation) String() string
type SensorNumber ¶
type SensorNumber uint8
see: Intel System Event Log (SEL) Troubleshooting Guide Rev 3.4 September 2019 section 3.1
type SensorRateUnit ¶ added in v0.2.0
type SensorRateUnit uint8
const ( SensorRateUnit_None SensorRateUnit = 0 SensorRateUnit_PerMicroSec SensorRateUnit = 1 SensorRateUnit_PerMilliSec SensorRateUnit = 2 SensorRateUnit_PerSec SensorRateUnit = 3 SensorRateUnit_PerMin SensorRateUnit = 4 SensorRateUnit_PerHour SensorRateUnit = 5 SensorRateUnit_PerDay SensorRateUnit = 6 SensorRateUnit_Reserved SensorRateUnit = 7 )
func (SensorRateUnit) String ¶ added in v0.2.0
func (unit SensorRateUnit) String() string
type SensorStatus ¶ added in v0.2.0
type SensorStatus string
type SensorThreshold ¶
type SensorThreshold struct { // type of threshold Type SensorThresholdType Mask Mask_Threshold // threshold raw reading value before conversion Raw uint8 }
SensorThreshold holds all values and attributes of a specified threshold type.
type SensorThresholdAccess ¶ added in v0.2.0
type SensorThresholdAccess uint8
SensorThresholdAccess represents the access mode for the threshold value of the sensor.
const ( // no thresholds. SensorThresholdAccess_No SensorThresholdAccess = 0 // thresholds are readable, per Reading Mask SensorThresholdAccess_Readable SensorThresholdAccess = 1 // thresholds are readable and settable, per Reading Mask and Settable Threshold Mask, respectively. SensorThresholdAccess_ReadableSettable SensorThresholdAccess = 2 // Fixed, unreadable, thresholds. // Which thresholds are supported is reflected by the Reading Mask. // The threshold value fields report the values that are hard-coded in the sensor. SensorThresholdAccess_Fixed SensorThresholdAccess = 3 )
func (SensorThresholdAccess) String ¶ added in v0.2.0
func (a SensorThresholdAccess) String() string
type SensorThresholdStatus ¶ added in v0.2.0
type SensorThresholdStatus string
SensorThresholdStatus are enums for threshold status of sensor.
....UNR status (NonRecoverable) -----------------UNR threshold ....UCR status (Critical) -----------------UCR threshold ....UNC status (NonCritical) -----------------UNC threshold ....OK status (OK) -----------------LNC threshold ....LNC status (NonCritical) -----------------LCR threshold ....LCR status (Critical) -----------------LNR threshold ....LNR status (NonRecoverable)
type SensorThresholdType ¶ added in v0.2.0
type SensorThresholdType string
SensorThresholdType are enums for types of threshold
const ( SensorThresholdType_LNC SensorThresholdType = "LowerNonCritical" SensorThresholdType_LCR SensorThresholdType = "LowerCritical" SensorThresholdType_LNR SensorThresholdType = "LowerNonRecoverable" SensorThresholdType_UNC SensorThresholdType = "UpperNonCritical" SensorThresholdType_UCR SensorThresholdType = "UpperCritical" SensorThresholdType_UNR SensorThresholdType = "UpperNonRecoverable" )
func (SensorThresholdType) Abbr ¶ added in v0.2.0
func (sensorThresholdType SensorThresholdType) Abbr() string
type SensorThresholdTypes ¶ added in v0.2.0
type SensorThresholdTypes []SensorThresholdType
func (SensorThresholdTypes) Strings ¶ added in v0.2.0
func (types SensorThresholdTypes) Strings() []string
type SensorType ¶
type SensorType uint8
41.1 Sensor Type Code 42.2 Sensor Type Codes and Data
const ( SensorTypeReserved SensorType = 0x00 SensorTypeTemperature SensorType = 0x01 // 温度传感器 SensorTypeVoltage SensorType = 0x02 // 电压传感器 SensorTypeCurrent SensorType = 0x03 // 电流传感器 SensorTypeFan SensorType = 0x04 // 风扇传感器 SensorTypePhysicalSecurity SensorType = 0x05 // Chassis Intrusion SensorTypePlatformSecurity SensorType = 0x06 SensorTypeProcessor SensorType = 0x07 SensorTypePowerSupply SensorType = 0x08 SensorTypePowerUnit SensorType = 0x09 SensorTypeCollingDevice SensorType = 0x0a SensorTypeOtherUnitsbased SensorType = 0x0b SensorTypeMemory SensorType = 0x0c SensorTypeDriveSlot SensorType = 0x0d SensorTypePostMemoryResize SensorType = 0x0e SensorTypeSystemFirmwareProgress SensorType = 0x0f SensorTypeEventLoggingDisabled SensorType = 0x10 SensorTypeWatchdog1 SensorType = 0x11 SensorTypeSystemEvent SensorType = 0x12 SensorTypeCriticalInterrupt SensorType = 0x13 SensorTypeButtonSwitch SensorType = 0x14 SensorTypeModuleBoard SensorType = 0x15 SensorTypeMicrocontrollerCoprocessor SensorType = 0x16 SensorTypeAddinCard SensorType = 0x17 SensorTypeChassis SensorType = 0x18 SensorTypeChipSet SensorType = 0x19 SensorTypeOtherFRU SensorType = 0x1a SensorTypeCableInterconnect SensorType = 0x1b SensorTypeTerminator SensorType = 0x1c SensorTypeSystemBootRestartInitiated SensorType = 0x1d SensorTypeBootError SensorType = 0x1e SensorTypeBaseOSBootInstallationStatus SensorType = 0x1f SensorTypeOSStopShutdown SensorType = 0x20 SensorTypeSlotConnector SensorType = 0x21 SensorTypeSystemACPIPowerState SensorType = 0x22 SensorTypeWatchdog2 SensorType = 0x23 SensorTypePlatformAlert SensorType = 0x24 SensorTypeEntityPresence SensorType = 0x25 SensorTypeMonitorASIC SensorType = 0x26 SensorTypeLAN SensorType = 0x27 SensorTypeManagementSubsystemHealth SensorType = 0x28 SensorTypeBattery SensorType = 0x29 SensorTypeSessionAudit SensorType = 0x2a SensorTypeVersionChange SensorType = 0x2b SensorTypeFRUState SensorType = 0x2c )
func SensorTypeFromNameOrNumber ¶ added in v0.5.6
func SensorTypeFromNameOrNumber(sensorTypeNameOrNumber string) (SensorType, error)
func (SensorType) String ¶
func (c SensorType) String() string
type SensorUnit ¶
type SensorUnit struct { AnalogDataFormat SensorAnalogUnitFormat RateUnit SensorRateUnit ModifierRelation SensorModifierRelation Percentage bool // Percentage 0b = no, 1b = yes BaseUnit SensorUnitType ModifierUnit SensorUnitType }
func (SensorUnit) IsAnalog ¶ added in v0.2.0
func (unit SensorUnit) IsAnalog() bool
func (SensorUnit) String ¶
func (unit SensorUnit) String() string
type SensorUnitType ¶ added in v0.2.0
type SensorUnitType uint8
43.17 Sensor Unit Type Codes
const ( SensorUnitType_Unspecified SensorUnitType = 0 // unspecified SensorUnitType_DegreesC SensorUnitType = 1 // degrees C, Celsius, 摄氏度 ℃ SensorUnitType_DegreesF SensorUnitType = 2 // degrees F, Fahrenheit, 华氏度 SensorUnitType_DegreesK SensorUnitType = 3 // degrees K, Kelvins, 开尔文 SensorUnitType_Volts SensorUnitType = 4 // Volts, 伏特(电压单位) SensorUnitType_Amps SensorUnitType = 5 // Amps, 安培数 SensorUnitType_Watts SensorUnitType = 6 // Watts, 瓦特(功率单位) SensorUnitType_Joules SensorUnitType = 7 // Joules, 焦耳 SensorUnitType_Coulombs SensorUnitType = 8 // Coulombs, 库伦 SensorUnitType_VA SensorUnitType = 9 // VA, 伏安 SensorUnitType_Nits SensorUnitType = 10 // Nits, 尼特(光度单位) SensorUnitType_Lumen SensorUnitType = 11 // lumen, 流明(光通量单位) SensorUnitType_Lux SensorUnitType = 12 // lux, 勒克斯(照明单位) SensorUnitType_Candela SensorUnitType = 13 // Candela, 坎, 坎德拉(发光强度单位) SensorUnitType_KPa SensorUnitType = 14 // kPa kilopascal, 千帕, 千帕斯卡 SensorUnitType_PSI SensorUnitType = 15 // PSI SensorUnitType_Newton SensorUnitType = 16 // Newton, 牛顿(力的单位) SensorUnitType_CFM SensorUnitType = 17 // CFM, 风量, cubic feet per minute (cu ft/min) SensorUnitType_RPM SensorUnitType = 18 // RPM, 每分钟转数, Revolutions per minute, is the number of turns in one minute SensorUnitType_Hz SensorUnitType = 19 // Hz, 赫兹 SensorUnitType_MicroSecond SensorUnitType = 20 // microsecond, 微秒 SensorUnitType_MilliSecond SensorUnitType = 21 // millisecond, 毫秒 SensorUnitType_Second SensorUnitType = 22 // second, 秒 SensorUnitType_Minute SensorUnitType = 23 // minute, 分 SensorUnitType_Hour SensorUnitType = 24 // hour, 时 SensorUnitType_Day SensorUnitType = 25 // day, 日 SensorUnitType_Week SensorUnitType = 26 // week, 周 SensorUnitType_Mil SensorUnitType = 27 // mil, 毫升;密耳(千分之一寸) SensorUnitType_Inches SensorUnitType = 28 // inches, 英寸(inch的复数) SensorUnitType_Fleet SensorUnitType = 29 // feet SensorUnitType_CuIn SensorUnitType = 30 // cu in, 立方英寸(cubic inch) SensorUnitType_CuFleet SensorUnitType = 31 // cu feet SensorUnitType_MM SensorUnitType = 32 // mm, 毫米(millimeter) SensorUnitType_CM SensorUnitType = 33 // cm, 厘米(centimeter) SensorUnitType_M SensorUnitType = 34 // m, 米 SensorUnitType_CuCM SensorUnitType = 35 // cu cm SensorUnitType_Cum SensorUnitType = 36 // cum SensorUnitType_Liters SensorUnitType = 37 // liters, 公升(容量单位) SensorUnitType_FluidOunce SensorUnitType = 38 // fluid ounce, 液盎司(液体容量单位, 等于 fluidounce) SensorUnitType_Radians SensorUnitType = 39 // radians, 弧度(radian的复数) SensorUnitType_vSteradians SensorUnitType = 40 // steradians, 球面度, 立体弧度(立体角国际单位制, 等于 sterad) SensorUnitType_Revolutions SensorUnitType = 41 // revolutions, 转数(revolution的复数形式) SensorUnitType_Cycles SensorUnitType = 42 // cycles, 周期, 圈 SensorUnitType_Gravities SensorUnitType = 43 // gravities, 重力 SensorUnitType_Ounce SensorUnitType = 44 // ounce, 盎司 SensorUnitType_Pound SensorUnitType = 45 // pound, 英镑 SensorUnitType_FootPound SensorUnitType = 46 // ft-lb, 英尺-磅(foot pound) SensorUnitType_OzIn SensorUnitType = 47 // oz-in, 扭力;盎司英寸 SensorUnitType_Gauss SensorUnitType = 48 // gauss, 高斯(磁感应或磁场的单位) SensorUnitType_Gilberts SensorUnitType = 49 // gilberts, 吉伯(磁通量的单位) SensorUnitType_Henry SensorUnitType = 50 // henry, 亨利(电感单位) SensorUnitType_MilliHenry SensorUnitType = 51 // millihenry, 毫亨(利)(电感单位) SensorUnitType_Farad SensorUnitType = 52 // farad, 法拉(电容单位) SensorUnitType_MicroFarad SensorUnitType = 53 // microfarad, 微法拉(电容量的实用单位) SensorUnitType_Ohms SensorUnitType = 54 // ohms, 欧姆(Ohm) :电阻的量度单位, 欧姆值越大, 电阻越大 SensorUnitType_Siemens SensorUnitType = 55 // siemens, 西门子, 电导单位 SensorUnitType_Mole SensorUnitType = 56 // mole, 摩尔 [化学] 克分子(等于mole) SensorUnitType_Becquerel SensorUnitType = 57 // becquerel, 贝可(放射性活度单位) SensorUnitType_PPM SensorUnitType = 58 // PPM (parts/million), 百万分率, 百万分之…(parts per million) SensorUnitType_Reserved SensorUnitType = 59 // reserved SensorUnitType_Decibels SensorUnitType = 60 // Decibels, 分贝(声音强度单位, decibel的复数) SensorUnitType_DbA SensorUnitType = 61 // DbA, dBA is often used to specify the loudness of the fan used to cool the microprocessor and associated components. Typical dBA ratings are in the neighborhood of 25 dBA, representing 25 A-weighted decibels above the threshold of hearing. This is approximately the loudness of a person whispering in a quiet room. SensorUnitType_DbC SensorUnitType = 62 // DbC SensorUnitType_Gray SensorUnitType = 63 // gray, 核吸收剂量(Gy) SensorUnitType_Sievert SensorUnitType = 64 // sievert, 希沃特(辐射效果单位, 简称希) SensorUnitType_ColorTempDegK SensorUnitType = 65 // color temp deg K, 色温 SensorUnitType_Bit SensorUnitType = 66 // bit, 比特(二进位制信息单位) SensorUnitType_Kilobit SensorUnitType = 67 // kilobit, 千比特 SensorUnitType_Megabit SensorUnitType = 68 // megabit, 兆比特 SensorUnitType_Gigabit SensorUnitType = 69 // gigabit, 吉比特 SensorUnitType_Byte SensorUnitType = 70 // byte, 字节 SensorUnitType_Kilobyte SensorUnitType = 71 // kilobyte, 千字节 SensorUnitType_Megabyte SensorUnitType = 72 // megabyte, 兆字节 SensorUnitType_Gigabyte SensorUnitType = 73 // gigabyte, 吉字节 SensorUnitType_Word SensorUnitType = 74 // word (data), 字 SensorUnitType_DWord SensorUnitType = 75 // dword, 双字 SensorUnitType_QWord SensorUnitType = 76 // qword, 四字 SensorUnitType_Line SensorUnitType = 77 // line (re. mem. line) SensorUnitType_Hit SensorUnitType = 78 // hit, 命中 SensorUnitType_Miss SensorUnitType = 79 // miss, 未击中, 未命中 SensorUnitType_Retry SensorUnitType = 80 // retry, 重试(次数) SensorUnitType_Reset SensorUnitType = 81 // reset, 重置(次数) SensorUnitType_Overrun SensorUnitType = 82 // overrun) / overflow 满载, 溢出(次数) SensorUnitType_Underrun SensorUnitType = 83 // underrun 欠载 SensorUnitType_Collision SensorUnitType = 84 // collision, 冲突 SensorUnitType_Packet SensorUnitType = 85 // packets, 包, 数据包 SensorUnitType_Message SensorUnitType = 86 // messages, 消息 SensorUnitType_Characters SensorUnitType = 87 // characters, 字符 SensorUnitType_Error SensorUnitType = 88 // error, 错误 SensorUnitType_CorrectableError SensorUnitType = 89 // correctable error 可校正错误 SensorUnitType_UncorrectableError SensorUnitType = 90 // uncorrectable error 不可校正错误 SensorUnitType_FatalError SensorUnitType = 91 // fatal error, 致命错误, 不可恢复的错误 SensorUnitType_Grams SensorUnitType = 92 // grams, 克(gram的复数形式) )
func (SensorUnitType) String ¶ added in v0.2.0
func (u SensorUnitType) String() string
type Session15 ¶
type Session15 struct { SessionHeader15 *SessionHeader15 Payload []byte // legacy PAD not needed for IPMI v2.0 LegacyPAD byte }
type Session20 ¶
type Session20 struct { SessionHeader20 *SessionHeader20 // for encrypted packets, it should contain Confidentiality Header, Encrypted Payload, and Confidentiality Trailer. SessionPayload []byte // For IPMI v2.0 RMCP+ packets, the IPMI Session Trailer is absent whenever the Session ID is 0000_0000h, or whenever bit 6 in the payload type field indicates the packet is unauthenticated. SessionTrailer *SessionTrailer }
type SessionHeader15 ¶
type SessionHeader15 struct { // For IPMI 1.5, it's value is 00h, 01h, 02h, 04h, 05h AuthType AuthType // For IPMI v2.0 RMCP+ there are separate sequence numbers tracked for authenticated and unauthenticated packets. // 0000_0000h is used for packets that are sent outside of a session. Sequence uint32 SessionID uint32 // The Authentication Code field in the session header may or may not be present based on the Authentication Type. The authentication code field is absent whenever the Authentication Type is NONE. Whether the authentication code field is present or not when the Authentication Type = OEM is dependent on the OEM identified in the Get Channel Authentication Capabilities command. // // 16 bytes, not present when Authentication Type set to none AuthCode []byte // IPMI 1.5 // Payload length in bytes. 1-based. // IPMI 1.5 should be uint8 // You should construct SessionHeader after the payload is created, thus you can fill the length here. PayloadLength uint8 }
SessionHeader15 for IPMI 1.5 see 22.12, Table 13.
Whether the session header fields are present in a packet is based on whether the channel is specified as supporting multiple sessions or not. In addition, which session fields are present is based on the authentication type. Single-session connections and session-less channels do not include session header fields.
Session header fields are present on all packets where the channel and connection mode is specified as supporting multiple sessions, even if the particular implementation only supports one session.
Note that the command tables do not show the session header fields except for the Get Channel Authentication Capabilities, Get Session Challenge, and Activate Session commands. However, they are still required for all commands on a multi-session connection.
func (*SessionHeader15) Pack ¶
func (h *SessionHeader15) Pack() []byte
func (*SessionHeader15) Unpack ¶
func (h *SessionHeader15) Unpack(msg []byte) error
type SessionHeader20 ¶
type SessionHeader20 struct { // For IPMI 2.0, it's value is always 06h AuthType AuthType PayloadEncrypted bool PayloadAuthenticated bool PayloadType PayloadType // The complete identification of an OEM Payload is given by the combination of a three-byte IANA ID for the OEM, a reserved byte, plus a twobyte OEM Payload ID that is assigned and defined by the given OEM OEMIANA uint32 OEMPayloadID uint16 // Should be set to bmcSessionID (generated by bmc, cached by remote console) SessionID uint32 // For IPMI v2.0 RMCP+ there are separate sequence numbers tracked for authenticated and unauthenticated packets. // 0000_0000h is used for packets that are sent outside of a session. Sequence uint32 // Payload length in bytes. 1-based. // You should construct SessionHeader after the payload is created, thus you can fill the length here. // IPMI 2.0 should be uint16 PayloadLength uint16 }
SessionHeader20 for IPMI 2.0
func (*SessionHeader20) Pack ¶
func (h *SessionHeader20) Pack() []byte
func (*SessionHeader20) Unpack ¶
func (h *SessionHeader20) Unpack(msg []byte) error
type SessionState ¶
type SessionState uint8
const ( SessionStatePreSession SessionState = 0x00 SessionStateOpenSessionSent SessionState = 0x01 SessionStateOpenSessionReceived SessionState = 0x02 SessionStateRakp1Sent SessionState = 0x03 SessionStateRakp2Received SessionState = 0x04 SessionStateRakp3Sent SessionState = 0x05 SessionStateActive SessionState = 0x06 SessionStateCloseSent SessionState = 0x07 )
type SessionTrailer ¶
type SessionTrailer struct { // Added as needed to cause the number of bytes in the data range covered by the AuthCode (Integrity Data) field to be a multiple of 4 bytes (DWORD). If present, each Integrity Pad byte is set to FFh. IntegrityPAD []byte // indicates how many pad bytes were added so that the amount of non-pad data can be determined. PadLength uint8 // Reserved in IPMI v2.0. Set to 07h for RMCP+ packets defined in this specification. NextHeader uint8 // For IPMI v2.0 (RMCP+) if this field is present, then it is calculated according to the Integrity Algorithm that was negotiated during the session open process. See Table 13-, Integrity Algorithm Numbers. // This field is absent when the packet is unauthenticated. AuthCode []byte // Integrity Data }
For IPMI v2.0 RMCP+ packets, the IPMI Session Trailer is absent whenever the Session ID is 0000_0000h, or whenever bit 6 in the payload type field indicates the packet is unauthenticated
func (*SessionTrailer) Pack ¶
func (s *SessionTrailer) Pack() []byte
type SetACPIPowerStateRequest ¶
type SetACPIPowerStateRequest struct { SetSystemPowerState bool // false means don't change system power state SystemPowerState SystemPowerState SetDevicePowerState bool // false means don't change device power state DevicePowerState DevicePowerState }
20.6 Set ACPI Power State Command
func (*SetACPIPowerStateRequest) Command ¶
func (req *SetACPIPowerStateRequest) Command() Command
func (*SetACPIPowerStateRequest) Pack ¶
func (req *SetACPIPowerStateRequest) Pack() []byte
type SetACPIPowerStateResponse ¶
type SetACPIPowerStateResponse struct { }
func (*SetACPIPowerStateResponse) CompletionCodes ¶
func (res *SetACPIPowerStateResponse) CompletionCodes() map[uint8]string
func (*SetACPIPowerStateResponse) Format ¶
func (res *SetACPIPowerStateResponse) Format() string
func (*SetACPIPowerStateResponse) Unpack ¶
func (res *SetACPIPowerStateResponse) Unpack(msg []byte) error
type SetBMCGlobalEnablesRequest ¶
type SetBMCGlobalEnablesRequest struct { // Generic system mgmt. software must do a "read-modify-write" using the Get BMC Global Enables and Set BMC Global Enables to avoid altering EnableOEM_X field. EnableOEM2 bool EnableOEM1 bool EnableOEM0 bool EnableSystemEventLogging bool EnableEventMessageBuffer bool EnableEventMessageBufferFullInterrupt bool EnableReceiveMessageQueueInterrupt bool }
22.1 Set BMC Global Enables Command
func (*SetBMCGlobalEnablesRequest) Command ¶
func (req *SetBMCGlobalEnablesRequest) Command() Command
func (*SetBMCGlobalEnablesRequest) Pack ¶
func (req *SetBMCGlobalEnablesRequest) Pack() []byte
type SetBMCGlobalEnablesResponse ¶
type SetBMCGlobalEnablesResponse struct { }
func (*SetBMCGlobalEnablesResponse) CompletionCodes ¶
func (*SetBMCGlobalEnablesResponse) CompletionCodes() map[uint8]string
func (*SetBMCGlobalEnablesResponse) Format ¶
func (res *SetBMCGlobalEnablesResponse) Format() string
func (*SetBMCGlobalEnablesResponse) Unpack ¶
func (res *SetBMCGlobalEnablesResponse) Unpack(msg []byte) error
type SetChannelAccessRequest ¶
type SetChannelAccessRequest struct { ChannelNumber uint8 // [7:6] - 00b = don't set or change Channel Access // 01b = set non-volatile Channel Access according to bits [5:0] // 10b = set volatile (active) setting of Channel Access according to bit [5:0] // 11b = reserved AccessOption uint8 DisablePEFAlerting bool DisablePerMsgAuth bool DisableUserLevelAuth bool AccessMode ChannelAccessMode PrivilegeOption uint8 MaxPrivilegeLevel uint8 }
22.22 Set Channel Access Command
func (*SetChannelAccessRequest) Command ¶
func (req *SetChannelAccessRequest) Command() Command
func (*SetChannelAccessRequest) Pack ¶
func (req *SetChannelAccessRequest) Pack() []byte
type SetChannelAccessResponse ¶
type SetChannelAccessResponse struct { }
func (*SetChannelAccessResponse) CompletionCodes ¶
func (res *SetChannelAccessResponse) CompletionCodes() map[uint8]string
func (*SetChannelAccessResponse) Format ¶
func (res *SetChannelAccessResponse) Format() string
func (*SetChannelAccessResponse) Unpack ¶
func (res *SetChannelAccessResponse) Unpack(msg []byte) error
type SetChannelSecurityKeysRequest ¶ added in v0.7.4
type SetChannelSecurityKeysRequest struct { ChannelNumber uint8 Operation ChannelSecurityKeysOperation KeyID uint8 KeyValue []byte }
22.25 Set Channel Security Keys Command
func (*SetChannelSecurityKeysRequest) Command ¶ added in v0.7.4
func (req *SetChannelSecurityKeysRequest) Command() Command
func (*SetChannelSecurityKeysRequest) Pack ¶ added in v0.7.4
func (req *SetChannelSecurityKeysRequest) Pack() []byte
type SetChannelSecurityKeysResponse ¶ added in v0.7.4
type SetChannelSecurityKeysResponse struct { LockStatus ChannelSecurityKeysLockStatus KeyValue []byte }
func (*SetChannelSecurityKeysResponse) CompletionCodes ¶ added in v0.7.4
func (res *SetChannelSecurityKeysResponse) CompletionCodes() map[uint8]string
func (*SetChannelSecurityKeysResponse) Format ¶ added in v0.7.4
func (res *SetChannelSecurityKeysResponse) Format() string
func (*SetChannelSecurityKeysResponse) Unpack ¶ added in v0.7.4
func (res *SetChannelSecurityKeysResponse) Unpack(msg []byte) error
type SetChassisCapabilitiesRequest ¶
type SetChassisCapabilitiesRequest struct { ProvideFrontPanelLockout bool ProvideIntrusionSensor bool FRUDeviceAddress uint8 SDRDeviceAddress uint8 SELDeviceAddress uint8 SystemManagementDeviceAddress uint8 BridgeDeviceAddress uint8 }
28.7 Set Chassis Capabilities Command
func (*SetChassisCapabilitiesRequest) Command ¶
func (req *SetChassisCapabilitiesRequest) Command() Command
func (*SetChassisCapabilitiesRequest) Pack ¶
func (req *SetChassisCapabilitiesRequest) Pack() []byte
type SetChassisCapabilitiesResponse ¶
type SetChassisCapabilitiesResponse struct { }
func (*SetChassisCapabilitiesResponse) CompletionCodes ¶
func (res *SetChassisCapabilitiesResponse) CompletionCodes() map[uint8]string
func (*SetChassisCapabilitiesResponse) Format ¶
func (res *SetChassisCapabilitiesResponse) Format() string
func (*SetChassisCapabilitiesResponse) Unpack ¶
func (res *SetChassisCapabilitiesResponse) Unpack(msg []byte) error
type SetCommandEnablesRequest ¶ added in v0.7.4
type SetCommandEnablesRequest struct { ChannelNumber uint8 CommandRangeMask CommandRangeMask NetFn NetFn LUN uint8 // if CommandRangeMask == CommandRangeMask007F CommandsMaskBytes [16]byte CodeForNetFn2C uint8 OEMIANA uint32 // 3 bytes only }
21.7 Set Command Enables Command
func (*SetCommandEnablesRequest) Command ¶ added in v0.7.4
func (req *SetCommandEnablesRequest) Command() Command
func (*SetCommandEnablesRequest) Pack ¶ added in v0.7.4
func (req *SetCommandEnablesRequest) Pack() []byte
type SetCommandEnablesResponse ¶ added in v0.7.4
type SetCommandEnablesResponse struct { }
func (*SetCommandEnablesResponse) CompletionCodes ¶ added in v0.7.4
func (*SetCommandEnablesResponse) CompletionCodes() map[uint8]string
func (*SetCommandEnablesResponse) Format ¶ added in v0.7.4
func (res *SetCommandEnablesResponse) Format() string
func (*SetCommandEnablesResponse) Unpack ¶ added in v0.7.4
func (res *SetCommandEnablesResponse) Unpack(msg []byte) error
type SetCommandSubfunctionEnablesRequest ¶ added in v0.7.4
type SetCommandSubfunctionEnablesRequest struct { ChannelNumber uint8 CommandRangeMask CommandRangeMask NetFn NetFn LUN uint8 Cmd uint8 CodeForNetFn2C uint8 OEMIANA uint32 // 3 bytes only SubfunctionEnables []bool }
21.9 Set Configurable Command Sub-function Enables Command
func (*SetCommandSubfunctionEnablesRequest) Command ¶ added in v0.7.4
func (req *SetCommandSubfunctionEnablesRequest) Command() Command
func (*SetCommandSubfunctionEnablesRequest) Pack ¶ added in v0.7.4
func (req *SetCommandSubfunctionEnablesRequest) Pack() []byte
type SetCommandSubfunctionEnablesResponse ¶ added in v0.7.4
type SetCommandSubfunctionEnablesResponse struct { }
func (*SetCommandSubfunctionEnablesResponse) CompletionCodes ¶ added in v0.7.4
func (*SetCommandSubfunctionEnablesResponse) CompletionCodes() map[uint8]string
func (*SetCommandSubfunctionEnablesResponse) Format ¶ added in v0.7.4
func (res *SetCommandSubfunctionEnablesResponse) Format() string
func (*SetCommandSubfunctionEnablesResponse) Unpack ¶ added in v0.7.4
func (res *SetCommandSubfunctionEnablesResponse) Unpack(msg []byte) error
type SetDCMIAssetTagRequest ¶ added in v0.7.0
type SetDCMIAssetTagRequest struct { // The offset is relative to the first character of the Asset Tag data. // Offset to write (0 to 62) // C9h shall be returned if offset >62, offset+bytes to write >63, or bytes to write >16. Offset uint8 // Number of bytes to write (16 bytes maximum). // The command shall set the overall length of the Asset Tag (in bytes) to // the value (offset to write + bytes to write). Any pre-existing Asset Tag // bytes at offsets past that length are automatically deleted. WriteBytes uint8 // The Asset Tag shall be encoded using either UTF-8 with Byte Order Mark or ASCII+Latin1 encoding. // The maximum size of the Asset Tag shall be 63 bytes, including Byte Order Mark, if provided. AssetTag []byte }
[DCMI specification v1.5] 6.4.3 Set Asset Tag Command
func (*SetDCMIAssetTagRequest) Command ¶ added in v0.7.0
func (req *SetDCMIAssetTagRequest) Command() Command
func (*SetDCMIAssetTagRequest) Pack ¶ added in v0.7.0
func (req *SetDCMIAssetTagRequest) Pack() []byte
type SetDCMIAssetTagResponse ¶ added in v0.7.0
type SetDCMIAssetTagResponse struct { // Total Asset Tag Length. // This is the length in bytes of the stored Asset Tag after the Set operation has completed. // The Asset Tag length shall be set to the sum of the offset to write plus bytes to write. // For example, if offset to write is 32 and bytes to write is 4, the Total Asset Tag Length returned will be 36. TotalLength uint8 }
func (*SetDCMIAssetTagResponse) CompletionCodes ¶ added in v0.7.0
func (res *SetDCMIAssetTagResponse) CompletionCodes() map[uint8]string
func (*SetDCMIAssetTagResponse) Format ¶ added in v0.7.0
func (res *SetDCMIAssetTagResponse) Format() string
func (*SetDCMIAssetTagResponse) Unpack ¶ added in v0.7.0
func (res *SetDCMIAssetTagResponse) Unpack(msg []byte) error
type SetDCMIConfigParamRequest ¶ added in v0.7.1
type SetDCMIConfigParamRequest struct { ParamSelector DCMIConfigParamSelector SetSelector uint8 // use 00h for parameters that only have one set ParamData []byte }
[DCMI specification v1.5] 6.1.2 Set DCMI Configuration Parameters
func (*SetDCMIConfigParamRequest) Command ¶ added in v0.7.1
func (req *SetDCMIConfigParamRequest) Command() Command
func (*SetDCMIConfigParamRequest) Pack ¶ added in v0.7.1
func (req *SetDCMIConfigParamRequest) Pack() []byte
type SetDCMIConfigParamResponse ¶ added in v0.7.1
type SetDCMIConfigParamResponse struct { }
func (*SetDCMIConfigParamResponse) CompletionCodes ¶ added in v0.7.1
func (res *SetDCMIConfigParamResponse) CompletionCodes() map[uint8]string
func (*SetDCMIConfigParamResponse) Format ¶ added in v0.7.1
func (res *SetDCMIConfigParamResponse) Format() string
func (*SetDCMIConfigParamResponse) Unpack ¶ added in v0.7.1
func (res *SetDCMIConfigParamResponse) Unpack(msg []byte) error
type SetDCMIMgmtControllerIdentifierRequest ¶ added in v0.7.0
[DCMI specification v1.5] 6.4.6.2 Set Management Controller Identifier String Command
func (*SetDCMIMgmtControllerIdentifierRequest) Command ¶ added in v0.7.0
func (req *SetDCMIMgmtControllerIdentifierRequest) Command() Command
func (*SetDCMIMgmtControllerIdentifierRequest) Pack ¶ added in v0.7.0
func (req *SetDCMIMgmtControllerIdentifierRequest) Pack() []byte
type SetDCMIMgmtControllerIdentifierResponse ¶ added in v0.7.0
type SetDCMIMgmtControllerIdentifierResponse struct { // Total Asset Tag Length. // This is the length in bytes of the stored Asset Tag after the Set operation has completed. // The Asset Tag length shall be set to the sum of the offset to write plus bytes to write. // For example, if offset to write is 32 and bytes to write is 4, the Total Asset Tag Length returned will be 36. TotalLength uint8 }
func (*SetDCMIMgmtControllerIdentifierResponse) CompletionCodes ¶ added in v0.7.0
func (res *SetDCMIMgmtControllerIdentifierResponse) CompletionCodes() map[uint8]string
func (*SetDCMIMgmtControllerIdentifierResponse) Format ¶ added in v0.7.0
func (res *SetDCMIMgmtControllerIdentifierResponse) Format() string
func (*SetDCMIMgmtControllerIdentifierResponse) Unpack ¶ added in v0.7.0
func (res *SetDCMIMgmtControllerIdentifierResponse) Unpack(msg []byte) error
type SetDCMIPowerLimitRequest ¶ added in v0.7.0
type SetDCMIPowerLimitRequest struct { ExceptionAction DCMIExceptionAction // Power Limit Requested in Watts PowerLimitRequested uint16 // Maximum time taken to limit the power after the platform power has reached // the power limit before the Exception Action will be taken. CorrectionTimeLimitMilliSec uint32 // Management application Statistics Sampling period in seconds StatisticsSamplingPeriodSec uint16 }
The Set Power Limit command sets the power limit parameters on the system. The power limit defines a threshold which, if exceeded for a configurable amount of time, will trigger a system power off and/or event logging action.
If the limit is already active, the Set Power Limit command may immediately change the limit that is in effect. However, software should always explicitly activate the limit using the Activate/Deactivate power limit command to ensure the setting takes effect.
[DCMI specification v1.5]: 6.6.3 Set Power Limit
func (*SetDCMIPowerLimitRequest) Command ¶ added in v0.7.0
func (req *SetDCMIPowerLimitRequest) Command() Command
func (*SetDCMIPowerLimitRequest) Pack ¶ added in v0.7.0
func (req *SetDCMIPowerLimitRequest) Pack() []byte
type SetDCMIPowerLimitResponse ¶ added in v0.7.0
type SetDCMIPowerLimitResponse struct { }
func (*SetDCMIPowerLimitResponse) CompletionCodes ¶ added in v0.7.0
func (res *SetDCMIPowerLimitResponse) CompletionCodes() map[uint8]string
func (*SetDCMIPowerLimitResponse) Format ¶ added in v0.7.0
func (res *SetDCMIPowerLimitResponse) Format() string
func (*SetDCMIPowerLimitResponse) Unpack ¶ added in v0.7.0
func (res *SetDCMIPowerLimitResponse) Unpack(msg []byte) error
type SetDCMIThermalLimitRequest ¶ added in v0.7.0
type SetDCMIThermalLimitRequest struct { EntityID EntityID // Entity ID = 37h or 40h (Inlet Temperature) EntityInstance EntityInstance ExceptionAction_PowerOffAndLogSEL bool ExceptionAction_LogSELOnly bool // ignored if ExceptionAction_PowerOffAndLogSEL is true TemperatureLimit uint8 ExceptionTimeSec uint16 }
[DCMI specification v1.5]: 6.7.2 Set Thermal Limit Command
func (*SetDCMIThermalLimitRequest) Command ¶ added in v0.7.0
func (req *SetDCMIThermalLimitRequest) Command() Command
func (*SetDCMIThermalLimitRequest) Pack ¶ added in v0.7.0
func (req *SetDCMIThermalLimitRequest) Pack() []byte
type SetDCMIThermalLimitResponse ¶ added in v0.7.0
type SetDCMIThermalLimitResponse struct { }
func (*SetDCMIThermalLimitResponse) CompletionCodes ¶ added in v0.7.0
func (res *SetDCMIThermalLimitResponse) CompletionCodes() map[uint8]string
func (*SetDCMIThermalLimitResponse) Format ¶ added in v0.7.0
func (res *SetDCMIThermalLimitResponse) Format() string
func (*SetDCMIThermalLimitResponse) Unpack ¶ added in v0.7.0
func (res *SetDCMIThermalLimitResponse) Unpack(msg []byte) error
type SetEventReceiverRequest ¶ added in v0.3.0
type SetEventReceiverRequest struct { // Event Receiver Slave Address. // - 0FFh disables Event Message Generation, Otherwise: // - [7:1] - IPMB (I2C) Slave Address // - [0] - always 0b when [7:1] hold I2C slave address SlaveAddress uint8 // [1:0] - Event Receiver LUN LUN uint8 }
29.1 Set Event Receiver Command
func (*SetEventReceiverRequest) Command ¶ added in v0.3.0
func (req *SetEventReceiverRequest) Command() Command
func (*SetEventReceiverRequest) Pack ¶ added in v0.3.0
func (req *SetEventReceiverRequest) Pack() []byte
type SetEventReceiverResponse ¶ added in v0.3.0
type SetEventReceiverResponse struct { }
func (*SetEventReceiverResponse) CompletionCodes ¶ added in v0.3.0
func (res *SetEventReceiverResponse) CompletionCodes() map[uint8]string
func (*SetEventReceiverResponse) Format ¶ added in v0.3.0
func (res *SetEventReceiverResponse) Format() string
func (*SetEventReceiverResponse) Unpack ¶ added in v0.3.0
func (res *SetEventReceiverResponse) Unpack(msg []byte) error
type SetFrontPanelEnablesRequest ¶
type SetFrontPanelEnablesRequest struct { DisableSleepButton bool DisableDiagnosticButton bool DisableResetButton bool DisablePoweroffButton bool }
28.6 Set Front Panel Enables 定位
func (*SetFrontPanelEnablesRequest) Command ¶
func (req *SetFrontPanelEnablesRequest) Command() Command
func (*SetFrontPanelEnablesRequest) Pack ¶
func (req *SetFrontPanelEnablesRequest) Pack() []byte
type SetFrontPanelEnablesResponse ¶
type SetFrontPanelEnablesResponse struct { }
func (*SetFrontPanelEnablesResponse) CompletionCodes ¶
func (res *SetFrontPanelEnablesResponse) CompletionCodes() map[uint8]string
func (*SetFrontPanelEnablesResponse) Format ¶
func (res *SetFrontPanelEnablesResponse) Format() string
func (*SetFrontPanelEnablesResponse) Unpack ¶
func (res *SetFrontPanelEnablesResponse) Unpack(msg []byte) error
type SetInProgressState ¶ added in v0.7.1
type SetInProgressState uint8
const ( SetInProgress_SetComplete SetInProgressState = 0x00 SetInProgress_SetInProgress SetInProgressState = 0x01 SetInProgress_CommitWrite SetInProgressState = 0x02 SetInProgress_Reserved SetInProgressState = 0x03 )
func (SetInProgressState) String ¶ added in v0.7.1
func (p SetInProgressState) String() string
type SetLanConfigParamRequest ¶ added in v0.7.1
type SetLanConfigParamRequest struct { ChannelNumber uint8 ParamSelector LanConfigParamSelector ParamData []byte }
23.1 Set LAN Configuration Parameters Command
func (*SetLanConfigParamRequest) Command ¶ added in v0.7.1
func (req *SetLanConfigParamRequest) Command() Command
func (*SetLanConfigParamRequest) Pack ¶ added in v0.7.1
func (req *SetLanConfigParamRequest) Pack() []byte
type SetLanConfigParamResponse ¶ added in v0.7.1
type SetLanConfigParamResponse struct { }
func (*SetLanConfigParamResponse) CompletionCodes ¶ added in v0.7.1
func (res *SetLanConfigParamResponse) CompletionCodes() map[uint8]string
func (*SetLanConfigParamResponse) Format ¶ added in v0.7.1
func (res *SetLanConfigParamResponse) Format() string
func (*SetLanConfigParamResponse) Unpack ¶ added in v0.7.1
func (res *SetLanConfigParamResponse) Unpack(msg []byte) error
type SetLastProcessedEventIdRequest ¶ added in v0.5.5
type SetLastProcessedEventIdRequest struct { // 0b = set Record ID for last record processed by software. // 1b = set Record ID for last record processed by BMC. ByBMC bool RecordID uint16 }
30.5 Set Last Processed Event ID Command
func (*SetLastProcessedEventIdRequest) Command ¶ added in v0.5.5
func (req *SetLastProcessedEventIdRequest) Command() Command
func (*SetLastProcessedEventIdRequest) Pack ¶ added in v0.5.5
func (req *SetLastProcessedEventIdRequest) Pack() []byte
type SetLastProcessedEventIdResponse ¶ added in v0.5.5
type SetLastProcessedEventIdResponse struct { }
func (*SetLastProcessedEventIdResponse) CompletionCodes ¶ added in v0.5.5
func (r *SetLastProcessedEventIdResponse) CompletionCodes() map[uint8]string
func (*SetLastProcessedEventIdResponse) Format ¶ added in v0.5.5
func (res *SetLastProcessedEventIdResponse) Format() string
func (*SetLastProcessedEventIdResponse) Unpack ¶ added in v0.5.5
func (res *SetLastProcessedEventIdResponse) Unpack(msg []byte) error
type SetPEFConfigParamRequest ¶ added in v0.7.1
type SetPEFConfigParamRequest struct { ParamSelector PEFConfigParamSelector ParamData []byte }
30.3 Set PEF Configuration Parameters Command
func (*SetPEFConfigParamRequest) Command ¶ added in v0.7.1
func (req *SetPEFConfigParamRequest) Command() Command
func (*SetPEFConfigParamRequest) Pack ¶ added in v0.7.1
func (req *SetPEFConfigParamRequest) Pack() []byte
type SetPEFConfigParamResponse ¶ added in v0.7.1
type SetPEFConfigParamResponse struct { }
func (*SetPEFConfigParamResponse) CompletionCodes ¶ added in v0.7.1
func (r *SetPEFConfigParamResponse) CompletionCodes() map[uint8]string
func (*SetPEFConfigParamResponse) Format ¶ added in v0.7.1
func (res *SetPEFConfigParamResponse) Format() string
func (*SetPEFConfigParamResponse) Unpack ¶ added in v0.7.1
func (res *SetPEFConfigParamResponse) Unpack(msg []byte) error
type SetPowerCycleIntervalRequest ¶
type SetPowerCycleIntervalRequest struct {
IntervalInSec uint8
}
28.9 Set Power Cycle Interval
func (*SetPowerCycleIntervalRequest) Command ¶
func (req *SetPowerCycleIntervalRequest) Command() Command
func (*SetPowerCycleIntervalRequest) Pack ¶
func (req *SetPowerCycleIntervalRequest) Pack() []byte
type SetPowerCycleIntervalResponse ¶
type SetPowerCycleIntervalResponse struct { }
func (*SetPowerCycleIntervalResponse) CompletionCodes ¶
func (res *SetPowerCycleIntervalResponse) CompletionCodes() map[uint8]string
func (*SetPowerCycleIntervalResponse) Format ¶
func (res *SetPowerCycleIntervalResponse) Format() string
func (*SetPowerCycleIntervalResponse) Unpack ¶
func (res *SetPowerCycleIntervalResponse) Unpack(msg []byte) error
type SetPowerRestorePolicyRequest ¶
type SetPowerRestorePolicyRequest struct {
PowerRestorePolicy
}
28.8 Set Power Restore Policy Command
func (*SetPowerRestorePolicyRequest) Command ¶
func (req *SetPowerRestorePolicyRequest) Command() Command
func (*SetPowerRestorePolicyRequest) Pack ¶
func (req *SetPowerRestorePolicyRequest) Pack() []byte
type SetPowerRestorePolicyResponse ¶
type SetPowerRestorePolicyResponse struct { SupportPolicyAlwaysOn bool // chassis supports always powering up after AC/mains returns SupportPolicyPrevious bool // chassis supports restoring power to state that was in effect when AC/mains was lost SupportPolicyAlwaysOff bool // chassis supports staying powered off after AC/mains returns }
func (*SetPowerRestorePolicyResponse) CompletionCodes ¶
func (res *SetPowerRestorePolicyResponse) CompletionCodes() map[uint8]string
func (*SetPowerRestorePolicyResponse) Format ¶
func (res *SetPowerRestorePolicyResponse) Format() string
func (*SetPowerRestorePolicyResponse) Unpack ¶
func (res *SetPowerRestorePolicyResponse) Unpack(msg []byte) error
type SetSELTimeRequest ¶ added in v0.2.0
31.11 Set SEL Time Command
func (*SetSELTimeRequest) Command ¶ added in v0.2.0
func (req *SetSELTimeRequest) Command() Command
func (*SetSELTimeRequest) Pack ¶ added in v0.2.0
func (req *SetSELTimeRequest) Pack() []byte
type SetSELTimeResponse ¶ added in v0.2.0
type SetSELTimeResponse struct { }
func (*SetSELTimeResponse) CompletionCodes ¶ added in v0.2.0
func (res *SetSELTimeResponse) CompletionCodes() map[uint8]string
func (*SetSELTimeResponse) Format ¶ added in v0.2.0
func (res *SetSELTimeResponse) Format() string
func (*SetSELTimeResponse) Unpack ¶ added in v0.2.0
func (res *SetSELTimeResponse) Unpack(msg []byte) error
type SetSELTimeUTCOffsetRequest ¶ added in v0.2.0
type SetSELTimeUTCOffsetRequest struct { // signed integer for the offset in minutes from UTC to SEL Time. (ranges from -1440 to 1440) MinutesOffset int16 }
31.11a Set SEL Time UTC Offset
func (*SetSELTimeUTCOffsetRequest) Command ¶ added in v0.2.0
func (req *SetSELTimeUTCOffsetRequest) Command() Command
func (*SetSELTimeUTCOffsetRequest) Pack ¶ added in v0.2.0
func (req *SetSELTimeUTCOffsetRequest) Pack() []byte
type SetSELTimeUTCOffsetResponse ¶ added in v0.2.0
type SetSELTimeUTCOffsetResponse struct { }
func (*SetSELTimeUTCOffsetResponse) CompletionCodes ¶ added in v0.2.0
func (res *SetSELTimeUTCOffsetResponse) CompletionCodes() map[uint8]string
func (*SetSELTimeUTCOffsetResponse) Format ¶ added in v0.2.0
func (res *SetSELTimeUTCOffsetResponse) Format() string
func (*SetSELTimeUTCOffsetResponse) Unpack ¶ added in v0.2.0
func (res *SetSELTimeUTCOffsetResponse) Unpack(msg []byte) error
type SetSOLConfigParamRequest ¶ added in v0.7.1
type SetSOLConfigParamRequest struct { ChannelNumber uint8 ParamSelector SOLConfigParamSelector ParamData []byte }
26.2 Set SOL Configuration Parameters Command
func (*SetSOLConfigParamRequest) Command ¶ added in v0.7.1
func (req *SetSOLConfigParamRequest) Command() Command
func (*SetSOLConfigParamRequest) Pack ¶ added in v0.7.1
func (req *SetSOLConfigParamRequest) Pack() []byte
type SetSOLConfigParamResponse ¶ added in v0.7.1
type SetSOLConfigParamResponse struct { }
func (*SetSOLConfigParamResponse) CompletionCodes ¶ added in v0.7.1
func (res *SetSOLConfigParamResponse) CompletionCodes() map[uint8]string
func (*SetSOLConfigParamResponse) Format ¶ added in v0.7.1
func (res *SetSOLConfigParamResponse) Format() string
func (*SetSOLConfigParamResponse) Unpack ¶ added in v0.7.1
func (res *SetSOLConfigParamResponse) Unpack(msg []byte) error
type SetSensorEventEnableMode ¶ added in v0.7.4
type SetSensorEventEnableMode uint8
const ( SetSensorEventEnableModeNoChange SetSensorEventEnableMode = 0 SetSensorEventEnableModeEnable SetSensorEventEnableMode = 1 SetSensorEventEnableModeDisable SetSensorEventEnableMode = 2 )
type SetSensorEventEnableRequest ¶ added in v0.7.4
type SetSensorEventEnableRequest struct { SensorNumber uint8 DisableEventMessages bool DisableSensorScanning bool Mode SetSensorEventEnableMode DiscreteEvents bool // If the field of SensorEventFlag is true, it means that this event is selected // to be enabled or disabled (depending on the value of Mode). SensorEventFlag }
35.10 Set Sensor Event Enable Command
func (*SetSensorEventEnableRequest) Command ¶ added in v0.7.4
func (req *SetSensorEventEnableRequest) Command() Command
func (*SetSensorEventEnableRequest) Pack ¶ added in v0.7.4
func (req *SetSensorEventEnableRequest) Pack() []byte
type SetSensorEventEnableResponse ¶ added in v0.7.4
type SetSensorEventEnableResponse struct { }
func (*SetSensorEventEnableResponse) CompletionCodes ¶ added in v0.7.4
func (r *SetSensorEventEnableResponse) CompletionCodes() map[uint8]string
func (*SetSensorEventEnableResponse) Format ¶ added in v0.7.4
func (res *SetSensorEventEnableResponse) Format() string
func (*SetSensorEventEnableResponse) Unpack ¶ added in v0.7.4
func (res *SetSensorEventEnableResponse) Unpack(msg []byte) error
type SetSensorHysteresisRequest ¶
type SetSensorHysteresisRequest struct { SensorNumber uint8 PositiveHysteresis uint8 NegativeHysteresis uint8 }
35.6 Set Sensor Hysteresis Command
func (*SetSensorHysteresisRequest) Command ¶
func (req *SetSensorHysteresisRequest) Command() Command
func (*SetSensorHysteresisRequest) Pack ¶
func (req *SetSensorHysteresisRequest) Pack() []byte
type SetSensorHysteresisResponse ¶
type SetSensorHysteresisResponse struct { }
func (*SetSensorHysteresisResponse) CompletionCodes ¶
func (r *SetSensorHysteresisResponse) CompletionCodes() map[uint8]string
func (*SetSensorHysteresisResponse) Format ¶
func (res *SetSensorHysteresisResponse) Format() string
func (*SetSensorHysteresisResponse) Unpack ¶
func (res *SetSensorHysteresisResponse) Unpack(msg []byte) error
type SetSensorReadingAndEventStatusRequest ¶
type SetSensorReadingAndEventStatusRequest struct { SensorNumber uint8 EventDataBytesOperation uint8 AssertionBitsOperation uint8 DeassertionBitsOperation uint8 SensorReadingOperation uint8 SensorReading uint8 SensorEventFlag EventData1 uint8 EventData2 uint8 EventData3 uint8 }
35.17 Set Sensor Reading And Event Status Command
func (*SetSensorReadingAndEventStatusRequest) Command ¶
func (req *SetSensorReadingAndEventStatusRequest) Command() Command
func (*SetSensorReadingAndEventStatusRequest) Pack ¶
func (req *SetSensorReadingAndEventStatusRequest) Pack() []byte
type SetSensorReadingAndEventStatusResponse ¶
type SetSensorReadingAndEventStatusResponse struct { }
func (*SetSensorReadingAndEventStatusResponse) CompletionCodes ¶
func (r *SetSensorReadingAndEventStatusResponse) CompletionCodes() map[uint8]string
func (*SetSensorReadingAndEventStatusResponse) Format ¶
func (res *SetSensorReadingAndEventStatusResponse) Format() string
func (*SetSensorReadingAndEventStatusResponse) Unpack ¶
func (res *SetSensorReadingAndEventStatusResponse) Unpack(msg []byte) error
type SetSensorThresholdsRequest ¶
type SetSensorThresholdsRequest struct { SensorNumber uint8 // Set Threshold flag SetUNR bool SetUCR bool SetUNC bool SetLNR bool SetLCR bool SetLNC bool // Threshold value LNC_Raw uint8 LCR_Raw uint8 LNR_Raw uint8 UNC_Raw uint8 UCR_Raw uint8 UNR_Raw uint8 }
35.8 Set Sensor Thresholds Command
func (*SetSensorThresholdsRequest) Command ¶
func (req *SetSensorThresholdsRequest) Command() Command
func (*SetSensorThresholdsRequest) Pack ¶
func (req *SetSensorThresholdsRequest) Pack() []byte
type SetSensorThresholdsResponse ¶
type SetSensorThresholdsResponse struct { }
func (*SetSensorThresholdsResponse) CompletionCodes ¶
func (r *SetSensorThresholdsResponse) CompletionCodes() map[uint8]string
func (*SetSensorThresholdsResponse) Format ¶
func (res *SetSensorThresholdsResponse) Format() string
func (*SetSensorThresholdsResponse) Unpack ¶
func (res *SetSensorThresholdsResponse) Unpack(msg []byte) error
type SetSensorTypeRequest ¶
type SetSensorTypeRequest struct { SensorNumber uint8 SensorType SensorType EventReadingType EventReadingType }
35.15 Set Sensor Type Command
func (*SetSensorTypeRequest) Command ¶
func (req *SetSensorTypeRequest) Command() Command
func (*SetSensorTypeRequest) Pack ¶
func (req *SetSensorTypeRequest) Pack() []byte
type SetSensorTypeResponse ¶
type SetSensorTypeResponse struct { }
func (*SetSensorTypeResponse) CompletionCodes ¶
func (r *SetSensorTypeResponse) CompletionCodes() map[uint8]string
func (*SetSensorTypeResponse) Format ¶
func (res *SetSensorTypeResponse) Format() string
func (*SetSensorTypeResponse) Unpack ¶
func (res *SetSensorTypeResponse) Unpack(msg []byte) error
type SetSessionPrivilegeLevelRequest ¶
type SetSessionPrivilegeLevelRequest struct {
PrivilegeLevel PrivilegeLevel
}
22.18 Set Session Privilege Level Command
func (*SetSessionPrivilegeLevelRequest) Command ¶
func (req *SetSessionPrivilegeLevelRequest) Command() Command
func (*SetSessionPrivilegeLevelRequest) Pack ¶
func (req *SetSessionPrivilegeLevelRequest) Pack() []byte
type SetSessionPrivilegeLevelResponse ¶
type SetSessionPrivilegeLevelResponse struct { // New Privilege Level (or present level if 'return present privilege level' was selected.) PrivilegeLevel uint8 }
func (*SetSessionPrivilegeLevelResponse) CompletionCodes ¶
func (*SetSessionPrivilegeLevelResponse) CompletionCodes() map[uint8]string
func (*SetSessionPrivilegeLevelResponse) Format ¶
func (res *SetSessionPrivilegeLevelResponse) Format() string
func (*SetSessionPrivilegeLevelResponse) Unpack ¶
func (res *SetSessionPrivilegeLevelResponse) Unpack(msg []byte) error
type SetSystemBootOptionsParamRequest ¶ added in v0.7.2
type SetSystemBootOptionsParamRequest struct { // Parameter valid // - 1b = mark parameter invalid / locked // - 0b = mark parameter valid / unlocked MarkParameterInvalid bool // [6:0] - boot option parameter selector ParamSelector BootOptionParamSelector ParamData []byte }
28.12 Set System Boot Options Command
func (*SetSystemBootOptionsParamRequest) Command ¶ added in v0.7.2
func (req *SetSystemBootOptionsParamRequest) Command() Command
func (*SetSystemBootOptionsParamRequest) Pack ¶ added in v0.7.2
func (req *SetSystemBootOptionsParamRequest) Pack() []byte
type SetSystemBootOptionsParamResponse ¶ added in v0.7.2
type SetSystemBootOptionsParamResponse struct { }
func (*SetSystemBootOptionsParamResponse) CompletionCodes ¶ added in v0.7.2
func (res *SetSystemBootOptionsParamResponse) CompletionCodes() map[uint8]string
func (*SetSystemBootOptionsParamResponse) Format ¶ added in v0.7.2
func (res *SetSystemBootOptionsParamResponse) Format() string
func (*SetSystemBootOptionsParamResponse) Unpack ¶ added in v0.7.2
func (res *SetSystemBootOptionsParamResponse) Unpack(msg []byte) error
type SetSystemInfoParamRequest ¶ added in v0.7.4
type SetSystemInfoParamRequest struct { ParamSelector SystemInfoParamSelector ParamData []byte }
22.14a Set System Info Parameters Command
func (*SetSystemInfoParamRequest) Command ¶ added in v0.7.4
func (req *SetSystemInfoParamRequest) Command() Command
func (*SetSystemInfoParamRequest) Pack ¶ added in v0.7.4
func (req *SetSystemInfoParamRequest) Pack() []byte
type SetSystemInfoParamResponse ¶ added in v0.7.4
type SetSystemInfoParamResponse struct { }
func (*SetSystemInfoParamResponse) CompletionCodes ¶ added in v0.7.4
func (res *SetSystemInfoParamResponse) CompletionCodes() map[uint8]string
func (*SetSystemInfoParamResponse) Format ¶ added in v0.7.4
func (res *SetSystemInfoParamResponse) Format() string
func (*SetSystemInfoParamResponse) Unpack ¶ added in v0.7.4
func (res *SetSystemInfoParamResponse) Unpack(msg []byte) error
type SetUserAccessRequest ¶
type SetUserAccessRequest struct { EnableChanging bool RestrictedToCallback bool EnableLinkAuth bool EnableIPMIMessaging bool ChannelNumber uint8 UserID uint8 MaxPrivLevel uint8 SessionLimit uint8 }
22.26 Set User Access Command
func (*SetUserAccessRequest) Command ¶
func (req *SetUserAccessRequest) Command() Command
func (*SetUserAccessRequest) Pack ¶
func (req *SetUserAccessRequest) Pack() []byte
type SetUserAccessResponse ¶
type SetUserAccessResponse struct { }
func (*SetUserAccessResponse) CompletionCodes ¶
func (res *SetUserAccessResponse) CompletionCodes() map[uint8]string
func (*SetUserAccessResponse) Format ¶
func (res *SetUserAccessResponse) Format() string
func (*SetUserAccessResponse) Unpack ¶
func (res *SetUserAccessResponse) Unpack(msg []byte) error
type SetUserPasswordRequest ¶
type SetUserPasswordRequest struct { // [5:0] - User ID. 000000b = reserved. (User ID 1 is permanently associated with User 1, the null user name). UserID uint8 // The BMC shall maintain an internal tag that indicates whether // the password was set as a 16-byte or as a 20-byte password. Stored20 bool Operation PasswordOperation Password string }
22.30 Set User Password Command
func (*SetUserPasswordRequest) Command ¶
func (req *SetUserPasswordRequest) Command() Command
func (*SetUserPasswordRequest) Pack ¶
func (req *SetUserPasswordRequest) Pack() []byte
type SetUserPasswordResponse ¶
type SetUserPasswordResponse struct { }
func (*SetUserPasswordResponse) CompletionCodes ¶
func (res *SetUserPasswordResponse) CompletionCodes() map[uint8]string
func (*SetUserPasswordResponse) Format ¶
func (res *SetUserPasswordResponse) Format() string
func (*SetUserPasswordResponse) Unpack ¶
func (res *SetUserPasswordResponse) Unpack(msg []byte) error
type SetUserPayloadAccessOperation ¶ added in v0.7.4
type SetUserPayloadAccessOperation uint8
const ( SetUserPayloadAccessOperationEnable SetUserPayloadAccessOperation = 0x00 SetUserPayloadAccessOperationDisable SetUserPayloadAccessOperation = 0x01 )
type SetUserPayloadAccessRequest ¶ added in v0.7.4
type SetUserPayloadAccessRequest struct { ChannelNumber uint8 UserID uint8 Operation SetUserPayloadAccessOperation PayloadTypeSOL bool PayloadTypeOEM0 bool PayloadTypeOEM1 bool PayloadTypeOEM2 bool PayloadTypeOEM3 bool PayloadTypeOEM4 bool PayloadTypeOEM5 bool PayloadTypeOEM6 bool PayloadTypeOEM7 bool }
24.6 Set User Payload Access Command
func (*SetUserPayloadAccessRequest) Command ¶ added in v0.7.4
func (req *SetUserPayloadAccessRequest) Command() Command
func (*SetUserPayloadAccessRequest) Pack ¶ added in v0.7.4
func (req *SetUserPayloadAccessRequest) Pack() []byte
type SetUserPayloadAccessResponse ¶ added in v0.7.4
type SetUserPayloadAccessResponse struct { }
func (*SetUserPayloadAccessResponse) CompletionCodes ¶ added in v0.7.4
func (res *SetUserPayloadAccessResponse) CompletionCodes() map[uint8]string
func (*SetUserPayloadAccessResponse) Format ¶ added in v0.7.4
func (res *SetUserPayloadAccessResponse) Format() string
func (*SetUserPayloadAccessResponse) Unpack ¶ added in v0.7.4
func (res *SetUserPayloadAccessResponse) Unpack(msg []byte) error
type SetUsernameRequest ¶
type SetUsernameRequest struct { // [5:0] - User ID. 000000b = reserved. (User ID 1 is permanently associated with User 1, the null user name). UserID uint8 // User Name String in ASCII, 16 bytes, max. Strings with fewer than 16 // characters are terminated with a null (00h) character and 00h padded to 16 // bytes. When the string is read back using the Get User Name command, // those bytes shall be returned as 0s. // Here if string length is longer than 16, it would be auto truncated. Username string }
22.28 Set User Name Command
func (*SetUsernameRequest) Command ¶
func (req *SetUsernameRequest) Command() Command
func (*SetUsernameRequest) Pack ¶
func (req *SetUsernameRequest) Pack() []byte
type SetUsernameResponse ¶
type SetUsernameResponse struct {
GUID [16]byte
}
func (*SetUsernameResponse) CompletionCodes ¶
func (res *SetUsernameResponse) CompletionCodes() map[uint8]string
func (*SetUsernameResponse) Format ¶
func (res *SetUsernameResponse) Format() string
func (*SetUsernameResponse) Unpack ¶
func (res *SetUsernameResponse) Unpack(msg []byte) error
type SetWatchdogTimerRequest ¶ added in v0.2.0
type SetWatchdogTimerRequest struct { DontLog bool DontStopTimer bool TimerUse TimerUse PreTimeoutInterrupt PreTimeoutInterrupt TimeoutAction TimeoutAction PreTimeoutIntervalSec uint8 ExpirationFlags uint8 InitialCountdown uint16 }
27.6 Set Watchdog Timer Command
func (*SetWatchdogTimerRequest) Command ¶ added in v0.2.0
func (req *SetWatchdogTimerRequest) Command() Command
func (*SetWatchdogTimerRequest) Pack ¶ added in v0.2.0
func (req *SetWatchdogTimerRequest) Pack() []byte
type SetWatchdogTimerResponse ¶ added in v0.2.0
type SetWatchdogTimerResponse struct { }
func (*SetWatchdogTimerResponse) CompletionCodes ¶ added in v0.2.0
func (res *SetWatchdogTimerResponse) CompletionCodes() map[uint8]string
func (*SetWatchdogTimerResponse) Format ¶ added in v0.2.0
func (res *SetWatchdogTimerResponse) Format() string
func (*SetWatchdogTimerResponse) Unpack ¶ added in v0.2.0
func (res *SetWatchdogTimerResponse) Unpack(msg []byte) error
type SoftwareID ¶
type SoftwareID uint8
5.4 Sensor Owner Identification the "owner" of the sensor. The combination of Sensor Owner ID and Sensor Number uniquely identify a sensor in the system. the Sensor Data Record and SEL information must contain information to identify the "owner" of the sensor.
For management controllers, a Slave Address and LUN identify the owner of a sensor on the IPMB.
For system software, a Software ID identifies the owner of a sensor.
These fields are used in Event Messages, where events from management controllers or the IPMB are identified by an eight-bit field where the upper 7-bits are the Slave Address or System Software ID.
The least significant bit is a 0 if the value represents a Slave Address and a 1 if the value represents a System Software ID. So all Software IDs are odd numbers (because the bit 0 is fixed to 1b), and all slave addresses are even numbers (because bit 0 is fixed to 0b)
5.5 Software IDs (SWIDs)
type SoftwareType ¶
type SoftwareType string
const ( SoftwareTypeBIOS SoftwareType = "BIOS" SoftwareTypeSMIHandler SoftwareType = "SMI Handler" SoftwareTypeSMS SoftwareType = "System Management Software" SoftwareTypeOEM SoftwareType = "OEM" SoftwareTypeRCS SoftwareType = "Remote Console Software" SoftwareTypeTerminalRCS SoftwareType = "Terminal Mode Remote Console Software" SoftwareTypeReserved SoftwareType = "Reserved" )
type SuspendARPsRequest ¶
23.3 Suspend BMC ARPs Command
func (*SuspendARPsRequest) Command ¶
func (req *SuspendARPsRequest) Command() Command
func (*SuspendARPsRequest) Pack ¶
func (req *SuspendARPsRequest) Pack() []byte
type SuspendARPsResponse ¶
func (*SuspendARPsResponse) CompletionCodes ¶
func (res *SuspendARPsResponse) CompletionCodes() map[uint8]string
func (*SuspendARPsResponse) Format ¶
func (res *SuspendARPsResponse) Format() string
func (*SuspendARPsResponse) Unpack ¶
func (res *SuspendARPsResponse) Unpack(msg []byte) error
type SuspendResumePayloadEncryptionRequest ¶ added in v0.7.4
type SuspendResumePayloadEncryptionRequest struct { PayloadType PayloadType PayloadInstance uint8 Operation PayloadEncryptionOperation }
24.3 Suspend/Resume Payload Encryption Command
func (*SuspendResumePayloadEncryptionRequest) Command ¶ added in v0.7.4
func (req *SuspendResumePayloadEncryptionRequest) Command() Command
func (*SuspendResumePayloadEncryptionRequest) Pack ¶ added in v0.7.4
func (req *SuspendResumePayloadEncryptionRequest) Pack() []byte
type SuspendResumePayloadEncryptionResponse ¶ added in v0.7.4
type SuspendResumePayloadEncryptionResponse struct { }
func (*SuspendResumePayloadEncryptionResponse) CompletionCodes ¶ added in v0.7.4
func (res *SuspendResumePayloadEncryptionResponse) CompletionCodes() map[uint8]string
func (*SuspendResumePayloadEncryptionResponse) Format ¶ added in v0.7.4
func (res *SuspendResumePayloadEncryptionResponse) Format() string
func (*SuspendResumePayloadEncryptionResponse) Unpack ¶ added in v0.7.4
func (res *SuspendResumePayloadEncryptionResponse) Unpack(msg []byte) error
type SystemInfo ¶ added in v0.7.1
type SystemInfo struct { SetInProgress SetInProgressState SystemFirmwareVersion string SystemName string PrimaryOSName string OSName string OSVersion string BMCURL string ManagementURL string }
func (*SystemInfo) Format ¶ added in v0.7.1
func (systemInfo *SystemInfo) Format() string
type SystemInfoParamSelector ¶ added in v0.7.1
type SystemInfoParamSelector uint8
const ( SystemInfoParamSelector_SetInProgress SystemInfoParamSelector = 0 SystemInfoParamSelector_SystemFirmwareVersion SystemInfoParamSelector = 1 SystemInfoParamSelector_SystemName SystemInfoParamSelector = 2 SystemInfoParamSelector_PrimaryOSName SystemInfoParamSelector = 3 SystemInfoParamSelector_OSName SystemInfoParamSelector = 4 SystemInfoParamSelector_OSVersion SystemInfoParamSelector = 5 SystemInfoParamSelector_BMCURL SystemInfoParamSelector = 6 SystemInfoParamSelector_ManagementURL SystemInfoParamSelector = 7 )
func (SystemInfoParamSelector) String ¶ added in v0.7.1
func (paramSelector SystemInfoParamSelector) String() string
type SystemInfoParam_BMCURL ¶ added in v0.7.1
func (*SystemInfoParam_BMCURL) Format ¶ added in v0.7.1
func (p *SystemInfoParam_BMCURL) Format() string
func (*SystemInfoParam_BMCURL) Pack ¶ added in v0.7.1
func (p *SystemInfoParam_BMCURL) Pack() []byte
func (*SystemInfoParam_BMCURL) SystemInfoParameter ¶ added in v0.7.1
func (p *SystemInfoParam_BMCURL) SystemInfoParameter() (paramSelector SystemInfoParamSelector, setSelector uint8, blockSelector uint8)
func (*SystemInfoParam_BMCURL) Unpack ¶ added in v0.7.1
func (p *SystemInfoParam_BMCURL) Unpack(data []byte) error
type SystemInfoParam_ManagementURL ¶ added in v0.7.1
func (*SystemInfoParam_ManagementURL) Format ¶ added in v0.7.1
func (p *SystemInfoParam_ManagementURL) Format() string
func (*SystemInfoParam_ManagementURL) Pack ¶ added in v0.7.1
func (p *SystemInfoParam_ManagementURL) Pack() []byte
func (*SystemInfoParam_ManagementURL) SystemInfoParameter ¶ added in v0.7.1
func (p *SystemInfoParam_ManagementURL) SystemInfoParameter() (paramSelector SystemInfoParamSelector, setSelector uint8, blockSelector uint8)
func (*SystemInfoParam_ManagementURL) Unpack ¶ added in v0.7.1
func (p *SystemInfoParam_ManagementURL) Unpack(data []byte) error
type SystemInfoParam_OSName ¶ added in v0.7.1
func (*SystemInfoParam_OSName) Format ¶ added in v0.7.1
func (p *SystemInfoParam_OSName) Format() string
func (*SystemInfoParam_OSName) Pack ¶ added in v0.7.1
func (p *SystemInfoParam_OSName) Pack() []byte
func (*SystemInfoParam_OSName) SystemInfoParameter ¶ added in v0.7.1
func (p *SystemInfoParam_OSName) SystemInfoParameter() (paramSelector SystemInfoParamSelector, setSelector uint8, blockSelector uint8)
func (*SystemInfoParam_OSName) Unpack ¶ added in v0.7.1
func (p *SystemInfoParam_OSName) Unpack(data []byte) error
type SystemInfoParam_OSVersion ¶ added in v0.7.1
func (*SystemInfoParam_OSVersion) Format ¶ added in v0.7.1
func (p *SystemInfoParam_OSVersion) Format() string
func (*SystemInfoParam_OSVersion) Pack ¶ added in v0.7.1
func (p *SystemInfoParam_OSVersion) Pack() []byte
func (*SystemInfoParam_OSVersion) SystemInfoParameter ¶ added in v0.7.1
func (p *SystemInfoParam_OSVersion) SystemInfoParameter() (paramSelector SystemInfoParamSelector, setSelector uint8, blockSelector uint8)
func (*SystemInfoParam_OSVersion) Unpack ¶ added in v0.7.1
func (p *SystemInfoParam_OSVersion) Unpack(data []byte) error
type SystemInfoParam_PrimaryOSName ¶ added in v0.7.1
func (*SystemInfoParam_PrimaryOSName) Format ¶ added in v0.7.1
func (p *SystemInfoParam_PrimaryOSName) Format() string
func (*SystemInfoParam_PrimaryOSName) Pack ¶ added in v0.7.1
func (p *SystemInfoParam_PrimaryOSName) Pack() []byte
func (*SystemInfoParam_PrimaryOSName) SystemInfoParameter ¶ added in v0.7.1
func (p *SystemInfoParam_PrimaryOSName) SystemInfoParameter() (paramSelector SystemInfoParamSelector, setSelector uint8, blockSelector uint8)
func (*SystemInfoParam_PrimaryOSName) Unpack ¶ added in v0.7.1
func (p *SystemInfoParam_PrimaryOSName) Unpack(data []byte) error
type SystemInfoParam_SetInProgress ¶ added in v0.7.1
type SystemInfoParam_SetInProgress struct {
Value SetInProgressState
}
func (*SystemInfoParam_SetInProgress) Format ¶ added in v0.7.1
func (p *SystemInfoParam_SetInProgress) Format() string
func (*SystemInfoParam_SetInProgress) Pack ¶ added in v0.7.1
func (p *SystemInfoParam_SetInProgress) Pack() []byte
func (*SystemInfoParam_SetInProgress) SystemInfoParameter ¶ added in v0.7.1
func (p *SystemInfoParam_SetInProgress) SystemInfoParameter() (paramSelector SystemInfoParamSelector, setSelector uint8, blockSelector uint8)
func (*SystemInfoParam_SetInProgress) Unpack ¶ added in v0.7.1
func (p *SystemInfoParam_SetInProgress) Unpack(data []byte) error
type SystemInfoParam_SystemFirmwareVersion ¶ added in v0.7.1
func (*SystemInfoParam_SystemFirmwareVersion) Format ¶ added in v0.7.1
func (p *SystemInfoParam_SystemFirmwareVersion) Format() string
func (*SystemInfoParam_SystemFirmwareVersion) Pack ¶ added in v0.7.1
func (p *SystemInfoParam_SystemFirmwareVersion) Pack() []byte
func (*SystemInfoParam_SystemFirmwareVersion) SystemInfoParameter ¶ added in v0.7.1
func (p *SystemInfoParam_SystemFirmwareVersion) SystemInfoParameter() (paramSelector SystemInfoParamSelector, setSelector uint8, blockSelector uint8)
func (*SystemInfoParam_SystemFirmwareVersion) Unpack ¶ added in v0.7.1
func (p *SystemInfoParam_SystemFirmwareVersion) Unpack(data []byte) error
type SystemInfoParam_SystemName ¶ added in v0.7.1
func (*SystemInfoParam_SystemName) Format ¶ added in v0.7.1
func (p *SystemInfoParam_SystemName) Format() string
func (*SystemInfoParam_SystemName) Pack ¶ added in v0.7.1
func (p *SystemInfoParam_SystemName) Pack() []byte
func (*SystemInfoParam_SystemName) SystemInfoParameter ¶ added in v0.7.1
func (p *SystemInfoParam_SystemName) SystemInfoParameter() (paramSelector SystemInfoParamSelector, setSelector uint8, blockSelector uint8)
func (*SystemInfoParam_SystemName) Unpack ¶ added in v0.7.1
func (p *SystemInfoParam_SystemName) Unpack(data []byte) error
type SystemInfoParameter ¶ added in v0.7.1
type SystemInfoParameter interface { SystemInfoParameter() (paramSelector SystemInfoParamSelector, setSelector uint8, blockSelector uint8) Parameter }
type SystemInfoParams ¶ added in v0.7.1
type SystemInfoParams struct { SetInProgress *SystemInfoParam_SetInProgress SystemFirmwareVersions []*SystemInfoParam_SystemFirmwareVersion SystemNames []*SystemInfoParam_SystemName PrimaryOSNames []*SystemInfoParam_PrimaryOSName OSNames []*SystemInfoParam_OSName OSVersions []*SystemInfoParam_OSVersion BMCURLs []*SystemInfoParam_BMCURL ManagementURLs []*SystemInfoParam_ManagementURL }
func (*SystemInfoParams) Format ¶ added in v0.7.1
func (systemInfoParams *SystemInfoParams) Format() string
func (*SystemInfoParams) ToSystemInfo ¶ added in v0.7.1
func (systemInfoParams *SystemInfoParams) ToSystemInfo() *SystemInfo
type SystemInterfaceType ¶
type SystemInterfaceType uint8
const ( SystemInterfaceTypeSSIF SystemInterfaceType = 0x00 SystemInterfaceTypeKCS SystemInterfaceType = 0x01 SystemInterfaceTypeSMIC SystemInterfaceType = 0x02 )
type SystemPowerState ¶
type SystemPowerState uint8
see: https://en.wikipedia.org/wiki/Advanced_Configuration_and_Power_Interface#Global_states
func (SystemPowerState) String ¶
func (s SystemPowerState) String() string
type SystemRestartCause ¶
type SystemRestartCause uint8
func (SystemRestartCause) String ¶
func (c SystemRestartCause) String() string
type TimeoutAction ¶ added in v0.2.0
type TimeoutAction uint8
const ( TimeoutActionNoAction TimeoutAction = 0x00 TimeoutActionHardReset TimeoutAction = 0x01 TimeoutActionPowerDown TimeoutAction = 0x02 TimeoutActionPowerCycle TimeoutAction = 0x03 )
func (TimeoutAction) String ¶ added in v0.2.0
func (t TimeoutAction) String() string
type TypeLength ¶
type TypeLength uint8
43.15 Type/Length Byte Format
7:6 00 = Unicode 00b define a Unicode string in the IPMI specification, whereas they specify a binary field in the Platform Management FRU specification. 01 = BCD plus (see below) 10 = 6-bit ASCII, packed 11 = 8-bit ASCII + Latin 1. At least two bytes of data must be present when this type is used. Therefore, the length (number of data bytes) will be >1 if data is present, 0 if data is not present. A length of 1 is reserved. 5 reserved. the bit 5 is reserved in the IPMI specification type/length byte, where it is part of the length field in the Platform Management FRU specification 4:0 length of following data, in characters. 00000b indicates 'none following'. 11111b = reserved.
func (TypeLength) Chars ¶ added in v0.2.0
func (tl TypeLength) Chars(raw []byte) (chars []byte, err error)
Chars decodes the raw bytes to ASCII chars according to the encoding type code of TypeLength
func (TypeLength) Length ¶
func (tl TypeLength) Length() uint8
Length returns the length of bytes occupied that packed the chars. But it is not the length of chars. For BCD plus type, one byte packs two chars.
func (TypeLength) Size ¶ added in v0.2.0
func (tl TypeLength) Size() uint8
Size returns the length of chars.
func (TypeLength) String ¶ added in v0.2.0
func (tl TypeLength) String() string
func (TypeLength) Type ¶
func (tl TypeLength) Type() string
func (TypeLength) TypeCode ¶ added in v0.2.0
func (tl TypeLength) TypeCode() uint8
type UDPClient ¶
type UDPClient struct { // Target Host Host string // Target Port Port int // contains filtered or unexported fields }
UDPClient exposes some common methods for communicating with UDP target addr.
func NewUDPClient ¶
func (*UDPClient) Exchange ¶
Exchange performs a synchronous UDP query. It sends the request, and waits for a reply. Exchange does not retry a failed query. The sent content is read from reader.
func (*UDPClient) LocalIPPort ¶
func (*UDPClient) SetBufferSize ¶
type WarmResetRequest ¶
type WarmResetRequest struct { }
20.3 Warm Reset Command
func (*WarmResetRequest) Command ¶
func (req *WarmResetRequest) Command() Command
func (*WarmResetRequest) Pack ¶
func (req *WarmResetRequest) Pack() []byte
type WarmResetResponse ¶
type WarmResetResponse struct { }
func (*WarmResetResponse) CompletionCodes ¶
func (res *WarmResetResponse) CompletionCodes() map[uint8]string
func (*WarmResetResponse) Format ¶
func (res *WarmResetResponse) Format() string
func (*WarmResetResponse) Unpack ¶
func (res *WarmResetResponse) Unpack(msg []byte) error
type WriteFRUDataRequest ¶
34.3 Write FRU Data Command
func (*WriteFRUDataRequest) Command ¶
func (req *WriteFRUDataRequest) Command() Command
func (*WriteFRUDataRequest) Pack ¶
func (req *WriteFRUDataRequest) Pack() []byte
type WriteFRUDataResponse ¶
type WriteFRUDataResponse struct {
CountWritten uint8
}
func (*WriteFRUDataResponse) CompletionCodes ¶
func (r *WriteFRUDataResponse) CompletionCodes() map[uint8]string
func (*WriteFRUDataResponse) Format ¶
func (res *WriteFRUDataResponse) Format() string
func (*WriteFRUDataResponse) Unpack ¶
func (res *WriteFRUDataResponse) Unpack(msg []byte) error
Source Files
¶
- client.go
- client_auth_code.go
- cmd_activate_dcmi_power_limit.go
- cmd_activate_payload.go
- cmd_activate_session.go
- cmd_add_sel_entry.go
- cmd_alert_immediate.go
- cmd_arm_pef_postpone_timer.go
- cmd_chassis_control.go
- cmd_chassis_identify.go
- cmd_chassis_reset.go
- cmd_clear_message_flags.go
- cmd_clear_sel.go
- cmd_close_session.go
- cmd_cold_reset.go
- cmd_deactivate_payload.go
- cmd_delete_sel_entry.go
- cmd_enable_message_channel_receive.go
- cmd_get_acpi_power_state.go
- cmd_get_auth_code.go
- cmd_get_bmc_global_enables.go
- cmd_get_bt_interface_capabilities.go
- cmd_get_channel_access.go
- cmd_get_channel_authentication_capabilities.go
- cmd_get_channel_cipher_suites.go
- cmd_get_channel_info.go
- cmd_get_channel_oem_payload_info.go
- cmd_get_channel_payload_support.go
- cmd_get_channel_payload_version.go
- cmd_get_chassis_capabilities.go
- cmd_get_chassis_status.go
- cmd_get_command_enables.go
- cmd_get_command_subfunction_enables.go
- cmd_get_command_subfunction_support.go
- cmd_get_command_support.go
- cmd_get_configurable_commands.go
- cmd_get_configurable_commands_subfunctions.go
- cmd_get_dcmi_asset_tag.go
- cmd_get_dcmi_cap_param.go
- cmd_get_dcmi_config_params.go
- cmd_get_dcmi_mgmt_controller_identifier.go
- cmd_get_dcmi_power_limit.go
- cmd_get_dcmi_power_reading.go
- cmd_get_dcmi_sensor_info.go
- cmd_get_dcmi_temperature_readings.go
- cmd_get_dcmi_thermal_limit.go
- cmd_get_device_guid.go
- cmd_get_device_id.go
- cmd_get_device_sdr.go
- cmd_get_device_sdr_info.go
- cmd_get_event_receiver.go
- cmd_get_fru_inventory_area_info.go
- cmd_get_frus.go
- cmd_get_ip_statistics.go
- cmd_get_lan_config_params.go
- cmd_get_last_processed_event_id.go
- cmd_get_message.go
- cmd_get_message_flags.go
- cmd_get_netfn_support.go
- cmd_get_payload_activation_status.go
- cmd_get_payload_instance_info.go
- cmd_get_pef_capabilities.go
- cmd_get_pef_config_params.go
- cmd_get_poh_counter.go
- cmd_get_sdr.go
- cmd_get_sdr_repo_alloc_info.go
- cmd_get_sdr_repo_info.go
- cmd_get_sel_alloc_info.go
- cmd_get_sel_entry.go
- cmd_get_sel_info.go
- cmd_get_sel_time.go
- cmd_get_sel_time_utc_offset.go
- cmd_get_self_test_results.go
- cmd_get_sensor_event_enable.go
- cmd_get_sensor_event_status.go
- cmd_get_sensor_hysteresis.go
- cmd_get_sensor_reading.go
- cmd_get_sensor_reading_factors.go
- cmd_get_sensor_thresholds.go
- cmd_get_sensor_type.go
- cmd_get_sensors.go
- cmd_get_session_challenge.go
- cmd_get_session_info.go
- cmd_get_sol_config_params.go
- cmd_get_supermicro_bios_version.go
- cmd_get_system_boot_options.go
- cmd_get_system_guid.go
- cmd_get_system_info_params.go
- cmd_get_system_interface_capabilities.go
- cmd_get_system_restart_cause.go
- cmd_get_user_access.go
- cmd_get_user_payload_access.go
- cmd_get_username.go
- cmd_get_watchdog_timer.go
- cmd_manufacturing_test_on.go
- cmd_master_write_read.go
- cmd_open_session.go
- cmd_pet_acknowledge.go
- cmd_platform_event_message.go
- cmd_rakp_message_1_2.go
- cmd_rakp_message_3_4.go
- cmd_raw.go
- cmd_read_event_message_buffer.go
- cmd_read_fru_data.go
- cmd_rearm_sensor_events.go
- cmd_reserve_device_sdr_repo.go
- cmd_reserve_sdr_repo.go
- cmd_reserve_sel.go
- cmd_reset_watchdog_timer.go
- cmd_rmcp_ping_request.go
- cmd_send_message.go
- cmd_set_acpi_power_state.go
- cmd_set_bmc_global_enables.go
- cmd_set_channel_access.go
- cmd_set_channel_security_keys.go
- cmd_set_chassis_capabilities.go
- cmd_set_command_enables.go
- cmd_set_command_subfunction_enables.go
- cmd_set_dcmi_asset_tag.go
- cmd_set_dcmi_config_params.go
- cmd_set_dcmi_mgmt_controller_identifier.go
- cmd_set_dcmi_power_limit.go
- cmd_set_dcmi_thermal_limit.go
- cmd_set_event_receiver.go
- cmd_set_front_panel_enables.go
- cmd_set_lan_config_params.go
- cmd_set_last_processed_event_id.go
- cmd_set_pef_config_params.go
- cmd_set_power_cycle_interval.go
- cmd_set_power_restore_policy.go
- cmd_set_sel_time.go
- cmd_set_sel_time_utc_offset.go
- cmd_set_sensor_event_enable.go
- cmd_set_sensor_hysteresis.go
- cmd_set_sensor_reading_and_event_status.go
- cmd_set_sensor_thresholds.go
- cmd_set_sensor_type.go
- cmd_set_session_privilege_level.go
- cmd_set_sol_config_params.go
- cmd_set_system_boot_options.go
- cmd_set_system_boot_options_others.go
- cmd_set_system_info_params.go
- cmd_set_user_access.go
- cmd_set_user_password.go
- cmd_set_user_payload_access.go
- cmd_set_username.go
- cmd_set_watchdog_timer.go
- cmd_sol_activating.go
- cmd_suspend_bmc_arps.go
- cmd_suspend_resume_payload_encryption.go
- cmd_warm_reset.go
- cmd_write_fru_data.go
- errors.go
- helpers.go
- helpers_hmac.go
- interface_lan.go
- interface_system.go
- interface_tool.go
- types_boot_option.go
- types_boot_option_params.go
- types_channel.go
- types_cipher_suite_id.go
- types_command.go
- types_completion_code.go
- types_dcmi.go
- types_dcmi_cap_params.go
- types_dcmi_config_params.go
- types_entity.go
- types_event.go
- types_event_consts.go
- types_fru.go
- types_generator.go
- types_guid.go
- types_ipmb.go
- types_ipmi.go
- types_lan_config.go
- types_lan_config_params.go
- types_netfn.go
- types_oem.go
- types_payload.go
- types_pef.go
- types_pef_params.go
- types_rmcp.go
- types_sdr.go
- types_sdr_compact.go
- types_sdr_full.go
- types_sdr_others.go
- types_sel.go
- types_sensor.go
- types_sensor_event.go
- types_session.go
- types_sol_config_params.go
- types_system_info_params.go
- udpclient.go