Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Path: blob/master/lib/rex/proto/ipmi.rb
Views: 11655
# -*- coding: binary -*-123module Rex4module Proto5module IPMI67#8# Move these into an IPMI stack or mixin at some point9#1011#12# Payload types were identified from xCAT-server source code (IPMI.pm)13#14PAYLOAD_IPMI = 015PAYLOAD_SOL = 116PAYLOAD_RMCPPLUSOPEN_REQ = 0x1017PAYLOAD_RMCPPLUSOPEN_REP = 0x1118PAYLOAD_RAKP1 = 0x1219PAYLOAD_RAKP2 = 0x1320PAYLOAD_RAKP3 = 0x1421PAYLOAD_RAKP4 = 0x15222324#25# Payload types were copied from xCAT-server source code (IPMI.pm)26#27RMCP_ERRORS = {281 => "Insufficient resources to create new session (wait for existing sessions to timeout)",292 => "Invalid Session ID", #this shouldn't occur...303 => "Invalid payload type",#shouldn't occur..314 => "Invalid authentication algorithm", #if this happens, we need to enhance our mechanism for detecting supported auth algorithms325 => "Invalid integrity algorithm", #same as above336 => "No matching authentication payload",347 => "No matching integrity payload",358 => "Inactive Session ID", #this suggests the session was timed out while trying to negotiate, shouldn't happen369 => "Invalid role",370xa => "Unauthorised role or privilege level requested",380xb => "Insufficient resources to create a session at the requested role",390xc => "Invalid username length",400xd => "Unauthorized name",410xe => "Unauthorized GUID",420xf => "Invalid integrity check value",430x10 => "Invalid confidentiality algorithm",440x11 => "No cipher suite match with proposed security algorithms",450x12 => "Illegal or unrecognized parameter", #have never observed this, would most likely mean a bug in xCAT or IPMI device46}474849end50end51end525354