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


NMS_V5ResetChannelStatistics

Description

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

Prototype

NMS_V5_RESULT_T NMS_V5ResetChannelStatistics
(NMS_V5_INTERFACE_ID_T interfaceId,
NMS_V5_CHANNEL_LOCATION_T channel_loc)

interfaceId Interface ID of a provisioned interface.

channel_loc HDLC channel location.

         typedef union _NMS_V5_CHANNEL_LOCATION_T
         {
        struct {
        DWORD  boardNb;
        DWORD  trunkNb;
        DWORD  timeslotNb;          
       } CG;        
}NMS_V5_CHANNEL_LOCATION_T

Return Values

Events

None.

Details

This function resets the statistics for the specified HDLC channel. To reset the statistics, the interface must be provisioned (with NMS_V5ProvisionInterface) and the HDLC channel must be configured on the active variant of the interface.

NMS_V5_CHANNEL_LOCATION_T structure includes the following values:
Parameter

Description

boardNb

Logical board number where an HDLC instance is located.

trunkNb

Logical trunk number associated with the HDLC channel.

timeslotNb

Physical timeslot associated with the HDLC channel.

See Also

NMS_V5GetChannelStatistics

Example

void  ResetChannelStatistics( void )
{
    NMS_V5_RESULT_T              NmsResult;
    DWORD                        InterfaceId;
    NMS_V5_CHANNEL_LOCATION_T    ChannelLocation;

    printf("NMS_V5ResetChannelStatistics:\n");

    /* Get parameters */
    promptdw_nodft("Enter InterfaceId", &InterfaceId);

    printf("Enter channel location:\n");
    GetChannelLocationNMS( &ChannelLocation );

    NmsResult = NMS_V5ResetChannelStatistics (InterfaceId,
                                              ChannelLocation);

    printf ("NMS_V5ResetChannelStatistics:
    Result=%s\n",PRINT_RESULT(NmsResult));
}



Table of Contents Index NMS Glossary Previous Page Next Page (Page 26 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.