Intel ZT 7102 RPC Sample Code, RPC Usage Examples, FRU Data Items String Response Format Sheet 2

Models: ZT 7102

1 152
Download 152 pages 43.02 Kb
Page 115
Image 115

Intel® NetStructureTMZT 7102 Chassis Management Module

RPC

Table 49. FRU Data Items String Response Format (Sheet 2 of 2)

Data Item

Description

 

 

productserialnumber

Null-terminated string containing the serial number field in the FRU product

area for the location

 

 

 

productrevision

Null-terminated string containing the revision field in the FRU product area

for the location

 

 

 

productmanufacturedatetime

Null-terminated string containing the manufacturer date and time field in the

FRU product area for the location

 

 

 

chassisall

Null-terminated string containing all chassis area FRU information for the

location

 

 

 

chassispartnumber

Null-terminated string containing the part number field in the FRU chassis

area for the location

 

 

 

chassisserialnumber

Null-terminated string containing the serial number field in the FRU chassis

area for the location

 

 

 

chassislocation

Null-terminated string containing the location field in the FRU chassis area

for the location

 

 

 

chassistype

Null-terminated string containing the type field in the FRU chassis area for

the location.

 

 

 

listdataitems

Null-terminated string containing the list of all of the FRU dataitems that can

be queried for the FRU target

 

 

 

20.3RPC Sample Code

Sample code for interfacing with the CMM through RPC is available in the file cli_client.c. The sample code compiles into a command-line executable for use with Linux or a .o file for use with VxWorks. To select the appropriate target, remove the comment from the appropriate #define in the source code.

The sample code first authenticates to the CMM through GetAuthCapability(). When the authentication is successful, the user’s command-line arguments (for Linux) or calling parameters (for VxWorks) are passed to the CMM through ChassisManagementApi(). The return code is then checked and the result is printed to the console.

20.4RPC Usage Examples

Table 50 presents examples of using RPC calls to get and set fields on the CMM. Data returned by RPC calls are returned in the ppvbuffer and uReturnType parameters to ChassisManagementApi().

Technical Product Specification

115

Page 115
Image 115
Intel ZT 7102 manual RPC Sample Code, RPC Usage Examples, FRU Data Items String Response Format Sheet 2, 115