beautypg.com

Response definitions, Response, Status – HP ProLiant DL170e G6 Server User Manual

Page 66

background image

Using XML 66

Response definitions

Every command sent to SL-APM generates a response. The response tells whether the command succeeded

or failed. Some commands generate additional information. The additional information appears in execution

sequence, provided that no errors occurred.
For example, a successful response might appear as follows:

STATUS="0x0000"

MSG="No Error."

>

A fail response might appear as follows:

STATUS="0x0001"

MSG="There has been an error."

>

Response

The tag name indicates that the SL-APM is sending a response to the previous commands back to the client

application. This response indicates the success or failure of the commands that have been sent to the
SL-APM. If an error occurs, the execution stops and the commands that follow it will not be executed. Prior

commands will have been executed up to the point where the error occurred.

Status

The status parameter contains an error number. The number 0x0000 indicates that no error occurred.

Status code

Possible reason

0x0000

No error.

0x0001

General error.

0x0002

Invalid or missing XML header. Every XML must start with SLAMPCL.

0x0003

Login failed.
Wrong username/password.

0x0004

Unknown/unsupported Name Tag that is supported by the SL-APM.

Mismatch Tag.
The hierarchy or syntax that SL-APM might be incorrect.

0x0005

Parsing error to invalid XML (syntax error).

For example, every begin tag must have an end tag. End tags must not have duplicate

attribute values.

0x0006

Unknown attribute for an element tag specified.

0x0007

Required attribute for an element tag specified is missing.

0x0008

The attribute values are missing or have errors.

0x0009

Device specified message error.

For example, the device is not present. Device is already on.

0x000A

The value cannot be blank.

0x000B

The required children tag is missing.