Table of Contents Index NMS Glossary Previous Page Next Page (Page 10 of 32 in this chapter) Version


NMS_GR303ResetChannelStatistics

Description

Resets the HDLC channel statistics collected for a specified HDLC channel provisioned on an active interface variant.

Prototype

NMS_GR303_RESULT_T NMS_GR303ResetChannelStatistics
(NMS_GR303_INTERFACE_ID_T interfaceId,
NMS_GR303_CHANNEL_LOCATION_T channel_loc)

interfaceId Interface ID of a provisioned interface.

channel_loc HDLC for which to reset statistics as specified in the following structure:

       typedef union _NMS_GR303_CHANNEL_LOCATION_T
       {
       struct {
       DWORD  boardNb;
       DWORD  trunkNb;
       DWORD  timeslotNb;          
        } CG;        
}NMS_GR303_CHANNEL_LOCATION_T

Return Values

Events

Details

This function resets the channel statistics for the specified HDLC channel. The information in the NMS_GR303_CHANNEL_LOCATION_T structure includes the following:
Parameter

Description

boardNb

Logical board number where an HDLC instance is located.

trunkNb

Logical trunk number associated with the HDLC instance.

timeslotNb

Physical timeslot number associated with the HDLC instance.

See Also

NMS_GR303GetChannelStatistics

Example

void  ResetChannelStatistics( void )
{
 NMS_GR303_RESULT_T        NmsResult;
 DWORD        InterfaceId;
        NMS_GR303_CHANNEL_LOCATION_T         ChannelLocation;

 printf("NMS_GR303ResetChannelStatistics:\n");

 /* Get parameters */
promptdw_nodft("Enter interfaceId", &InterfaceId);
printf("Enter channel location:\n"); GetChannelLocationNMS( &ChannelLocation ); NmsResult = NMS_GR303ResetChannelStatistics (InterfaceId, ChannelLocation); printf ("NMS_GR303ResetChannelStatistics:
Result=%s\n",PRINT_RESULT(NmsResult));
}


Table of Contents Index NMS Glossary Previous Page Next Page (Page 10 of 32 in this chapter) Version


Want to send us feedback on our documentation? Email: Tech_Pubs@nmss.com
Copyright © 2001, NMS Communications Corporation. All rights reserved.