
149
APPENDIX C: HDX2000L Library
int Hdx2000LineCommentSet(HGLOBAL hSession, char *szIpAddress, char
*szWriteCommunity, int cc, char *comment);
Changes the comment for a line card (will generate a LIN trap).
hSession Session handler
szIpAddress IP address of the target rack
szWriteCommunity Write community name of the target rack
cc Card slot number (from 1 to 16)
comment New comment for the line card
int Hdx2000LineSpecificSet(HGLOBAL hSession, char *szIpAddress, char
*szWriteCommunity, int cc, int sp);
Changes the specific parameter for a line card (will generate a LIN trap).
hSession Session handler
szIpAddress IP address of the target rack
szWriteCommunity Write community name of the target rack
cc Card slot number (from 1 to 16)
sp Line card specific parameter
int Hdx2000RackGet(HGLOBAL hSession, char *szIpAddress, char
*szReadCommunity);
Initiates a rack status report (will generate FAN, PWR, and VER traps).
hSession Session handler
szIpAddress IP address of the target rack
szReadCommunity Read community name of the target rack
void Hdx2000TrapRead(HGLOBAL hSession, char *szIpAddress, char *szTrap);
Reads a trap description (to be called upon reception of the uTrapMsg
message).
hSession Session handler
szIpAddress IP address of the rack originating the trap
szTrap Trap description
Possible traps are:
COM-ss-ee Communications status with the rack
FAN-ss-nn Fan status
GSW-ss-pp-x.x.x.x Gang switch status
LED-ss-cc-pp-ll-yy LED status
LIN-ss-cc-pa-fc-rc-sp-cm Line card status
PWR-ss-nn Power supply status
SWI-ss-cc-pp-x.x.x.x Switch status
RST-ss Rack boot-up
VER-ss-mmmm-vv.vv Rack model and
version number