Intel ZT 7102 TV Video Accessories User Manual


 
Intel
®
NetStructure
TM
ZT 7102 Chassis Management Module
RPC
Technical Product Specification 115
20.3 RPC 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.4 RPC 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().
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
Table 49. FRU Data Items String Response Format (Sheet 2 of 2)
Data Item Description