OpenAutomation Knowledge Base

C_FILESTART type size time mode chk name

Explanation

Initiates upload of a file to the chassis. This parameter should be followed by a sequence og C_FILEDATA parameters to provide the file content, and finally a C_FILEFINISHto commit the new file to the chassis.

Summary

set only, value types: HHHH,HHHH,HHHH,HHHH,HHHH,S

Parameters

type: little-endian integer as four hex bytes, the file type, should be 1.

size: little-endian integer as four hex bytes, the number of bytes in the file.

time: little-endian integer as four hex bytes, the Linux date+time of the file.

mode: little-endian integer as four hex bytes, the Linux permisions of the file.

chk: little-endian integer as four hex bytes, the checksum of the file.

name: string, the name and location of the file, as a full path.

Example

C_FILESTART 0x01000000 … 0xF9B1A073 ”/xbin/xenaserver”

C_FILEDATA offset databytes

Explanation

Uploads a fragment of a file to the chassis.

Summary

set only, value types: I,H*

Parameters

offset: integer, the position within the file. databytes: hex bytes, the data content of a section of the file.

Example

C_FILEDATA 10240 0x11FC3344…………43AB

C_FILEFINISH magic

Explanation

Completes upload of a file to the chassis. After validation it will replace any existing file with the same name.

Summary

set only, value type: I

Parameters

magic: integer, must be the special value -1480937026.

Example

C_FILEFINISH -1480937026