SmartMIB Small Solution:

Application Traffic: HTTP Traffic Statistics History


(SM-SmallSol014)

Solution’s SOSL Based management process script:

 

The solution defines the following main module:

 

MainHttpPdTable:

This is the main module that controls and instantiates the ‘HttpPdTrafficTable’  module.

 

MainHttpPdTraffic:

This is the main module that controls and instantiates the ‘HttpPdTraffic1’ and ‘HttpPdTraffic2’ modules.

 

 

The details of the Main modules and the transient Service modules are provided below:

 


 

MODULE MainHttpPdTable ();

DESCRIPTION "http application traffic accounting";

BEGIN

 

            POLL-FREQ

            {

                        MODULE-CALL httpPdTrafficTable ();

                        WAIT (18000);

            };

END

 


 

MODULE MainHttpPdTraffic ();

DESCRIPTION "http application traffic accounting";

BEGIN

 

            MODULE-CALL httpPdTraffic1 ();

 

            POLL-FREQ

            {

                        MODULE-CALL httpPdTraffic2 ();

                        WAIT (6000);

            };

END

 


 

MODULE  httpPdTrafficTable ();

DESCRIPTION "http pd traffic";

BEGIN

 

            ALL-DEV BY DEV                  

            {                 

                        SET-INDEX cnpdAllStatsTable

                            (cnpdAllStatsProtocolName [ifIndex, INT; cnpdAllStatsProtocolsIndex, INT]);

 

                        WITH-INDEX cnpdAllStatsTable

                        {

                                    DEFINE cnpdAllStatsProtocolName DB DISPL;

 

                                    IF (cnpdAllStatsProtocolName ==  “http”)

                                    THEN

                                           STORE-INDEX “HttpPdEnabledIfList”;

                                    ENDIF;

                        };

           };

END

 


 

MODULE  httpPdTraffic1 ();

DESCRIPTION "http pd traffic1";

BEGIN

 

            ALL-DEV BY DEV                  

            {                 

                        WITH-INDEX HttpPdEnabledIfList

                        {

                                    POLL (   cnpdAllStatsInPkts;

                                                cnpdAllStatsOutPkts;

                                                cnpdAllStatsInBytes;

                                                cnpdAllStatsOutBytes;

                                                cnpdAllStatsInBitRate;

                                                cnpdAllStatsOutBitRate   );

                        };

           };

END

 


 

MODULE  httpPdTraffic2 ();

DESCRIPTION "http pd traffic2";

BEGIN

 

            ALL-DEV BY DEV                  

            {                 

                        WITH-INDEX HttpPdEnabledIfList

                        {

                                    DEFINE cnpdAllStatsInPktsT1 INT;

                                    DEFINE cnpdAllStatsOutPktsT1 INT;

                                    DEFINE cnpdAllStatsInBytesT1 INT;

                                    DEFINE cnpdAllStatsOutBytesT1 INT;

 

                                    DEFINE cnpdAllStatsInPkts DB INT;

                                    DEFINE cnpdAllStatsOutPkts DB INT;

                                    DEFINE cnpdAllStatsInBytes DB INT;

                                    DEFINE cnpdAllStatsOutBytes DB INT;

           

                                    cnpdAllStatsInPktsT1 = cnpdAllStatsInPkts;

                                    cnpdAllStatsOutPktsT1 = cnpdAllStatsOutPkts;

                                    cnpdAllStatsInBytesT1 = cnpdAllStatsInBytes;

                                    cnpdAllStatsOutBytesT1 = cnpdAllStatsOutBytes;

 

                                    RMV (    cnpdAllStatsInPkts;

                                                cnpdAllStatsOutPkts;

                                                cnpdAllStatsInBytes;

                                                cnpdAllStatsOutBytes );

           

                                    POLL (   cnpdAllStatsInPkts;

                                                cnpdAllStatsOutPkts;

                                                cnpdAllStatsInBytes;

                                                cnpdAllStatsOutBytes;

                                                cnpdAllStatsInBitRate;

                                                cnpdAllStatsOutBitRate );

           

                                    DEFINE cnpdAllStatsInPktsT2 INT;

                                    DEFINE cnpdAllStatsOutPktsT2 INT;

                                    DEFINE cnpdAllStatsInBytesT2 INT;

                                    DEFINE cnpdAllStatsOutBytesT2 INT;

           

                                    cnpdAllStatsInPktsT2 = cnpdAllStatsInPkts;    

                                    cnpdAllStatsOutPktsT2 = cnpdAllStatsOutPkts;

                                    cnpdAllStatsInBytesT2 = cnpdAllStatsInBytes;

                                    cnpdAllStatsOutBytesT2 = cnpdAllStatsOutBytes;

                       

                                    CounterData(     DeltaCnpdAllStatsInPkts,           

                                                            cnpdAllStatsInPktsT1,    

                                                            cnpdAllStatsInPktsT2      );

 

                                    CounterData(     DeltaCnpdAllStatsOutPkts,         

                                                            cnpdAllStatsOutPktsT1,  

                                                            cnpdAllStatsOutPktsT2    );

 

                                    CounterData(     DeltacnpdAllStatsInBytes ,                     

                                                            cnpdAllStatsInBytesT1,              

                                                            cnpdAllStatsInBytesT2    );

                        };

           };

END

 


HTTP Traffic Statistics History Index Page

Previous Page Page 3/5 Next Page


[Small Solutions], [Professional Solutions], [Security Solutions], [Development Solutions]

[Home], [About], [Solutions Center], [NMS Market], [Products & Services],
[Management Technology], [Technical Support], [Contact us], [Site Map]