24
Intel® Management Module Installation and User’s Guide
Using the Embedded Web Server Scripting Interface
The Embedded Web Server can be accessed from a scripting language such as Perl or JavaScript.
The client script sends a GET or POST request to the server. The server returns either an HTML
web page or an XML response.
To return an HTML Page, use one of the following formats:
http://hostname/ipmiPage?cmd=xx.xx.xx.xx.xx?onload=functionName
where
xx.xx.xx.xx.xx
is an IPMI 2.0 command in hexadecimal that is supported by the platform
http://hostname/webCmdPage?cmd=getSEL&first=num&last=num&onload=functionName
http://hostname/webCmdPage?cmd=clearSEL&onload=functionName
http://hostname/webCmdPage?cmd=changeVars&subcommand=value&onload=functionName
where
subcommand
is one of the following:
HealthyUpdateRate
=num
WarningUpdateRate
=num
CriticalUpdateRate
=num
UsrUrl1
=url
(on-line help page URL)
UsrVal1
=string
(navigation bar label, the default is “help”)
UsrUrl2
=url
(the default is support.intel.com)
UsrVal2
=string
(navigation bar label, the default is “intel.com”)
3:Hostname
=string
(this only changes an internal web page variable)
3:Domainname
=string
(this only changes an internal web page variable)
The following syntax returns an XML response (
see
Table 3):
http://hostname/ipmiHex?cmd=xx.xx.xx.xx.xx
where
xx
represents one byte (two hex digits) of the IMPI 2.0 command (separate each pair of
hex digits with a period)
Table 3. Web Server Responses
Command Response
ipmiPage
Argument 1 = completion code
Argument 2 = the command that was executed
Argument 3 = the command response
webCmdPage
Argument 1=an error code of 0 or 1 indicates no error
Argument 2=an error string associated with the code
Argument 3= the response data
ipmiHex <ipmiResp
completionCode=”
YY
”>
XX-XX-XX…
</ipmiResp>
(The completion code YY and the returned data bytes XX are defined in the IPMI
specification.)