Intel MPCMM0001 Uživatelský manuál Strana 175

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 281
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 174
MPCMM0001 Chassis Management Module Software Technical Product Specification 175
Remote Procedure Calls (RPC)
19.2.1 GetAuthCapability()
The following is the calling syntax for GetAuthCapability():
int GetAuthCapability(
char* pszCMMHost,
char* pszUserName,
char* pszPassword
);
Parameters
pszCMMHost:[in] IP Address or hostname of CMM
pszUserName:[in] A valid CMM user name
pszPassword:[in] Password corresponding to pszUserName
Return Value
>0 Authentication successful. The return value is the authentication code.
-1 Invalid username / password combination.
E_RPC_INIT_FAILRPC initialization failure.
E_RPC_COMM_FAILRPC communication failure.
GetAuthCapability is used to authenticate the calling application with the remote CMM. The
remote CMM will not respond to RPC communications until the application has successfully
authenticated. To authenticate, the application will need to pass the CMM’s current IP address,
username and password to GetAuthCapability(). The default username and password are ‘root’ and
‘cmmrootpass’. When the authentication is successful, GetAuthCapability() will return an
authentication code for use with all further RPC communication.
Note: Clients will need to re-authenticate to the CMM whenever the CMM is reset. Re-authentication is
necessary when ChassisManagementApi() returns E_ECMM_SVR_AUTH_CODE_FAIL.
19.2.2 ChassisManagementApi()
The following is the calling syntax for ChassisManagementApi():
int ChassisManagementApi(
char* pszCMMHost,
int nAuthCode,
unsigned int uCmdCode,
unsigned char* pszLocation,
unsigned char* pszTarget,
unsigned char * pszDataItem,
unsigned char * pszSetData,
void ** ppvbuffer,
unsigned int * uReturnType
);
Zobrazit stránku 174
1 2 ... 170 171 172 173 174 175 176 177 178 179 180 ... 280 281

Komentáře k této Příručce

Žádné komentáře