SmartMIB Small Solution:

Higher Level OSPF Area Metrics


(SM-SmallSol018)

Solution’s SOSL Based management process script:

 

The solution defines the following main modules:

 

MainOspfMIBTables:

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

 

MainOspfAreaLsaChecksum:

This is the main module that controls and instantiates the ‘OspfAreaLsaChecksum1’ and the ‘OspfAreaLsaChecksum2’ modules.

 

 

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

 


 

MODULE MainOspfMIBTables ();

DESCRIPTION "Interface INVENTORY information";

BEGIN

            POLL-FREQ

            {

                        MODULE-CALL OspfMibTables();

 

                        WAIT (12000);

            };

END

 


 

MODULE MainOspfAreaLsaChecksum ();

DESCRIPTION "Normal Speed Interfaces Process";

BEGIN

 

            ALL-DEV BY DEV

            {

                        MODULE-CALL OspfAreaLsaChecksum1 (DEV);

            };

 

            POLL-FREQ

            {

                        WAIT (3000);

 

                        ALL-DEV BY DEV

                        {

                                    MODULE-CALL OspfAreaLsaChecksum2 (DEV);

                        };

            };

END

 


 

MODULE OspfMibTables ();

DESCRIPTION "Interface INVENTORY information";

BEGIN              

            ALL-DEV BY DEV

            {

                        DEFINE ospfAdminStat    DB DISPL;

 

                        ospfAdminStat = POLL (ospfAdminStat);

 

                        IF (ospfAdminStat == 1)     

                        THEN    

                                    SET-INDEX ospfAreaTable (ospfAreaId [ospfAreaId, IP] );

                        ENDIF;

            };

END

 


 

MODULE OspfAreaLsaChecksum1 ();

DESCRIPTION "OSPF LSA DB Checksum Process";

BEGIN

 

            ALL-DEV BY DEV                  

            {

                                WITH-INDEX ospfAreaTable

                                {

                                        POLL (ospfSpfRuns; ospfAreaLSACksumSum);

                                };

 

                                POLL (   ipOutNoRoutes;

                                            ipRoutingDiscards;

                                            ipInAddrErrors);                                   

            };

END

 


 

MODULE OspfAreaLsaChecksum2 ();

DESCRIPTION "OSPF LSA DB Checksum Process";

BEGIN

 

            ALL-DEV BY DEV                  

            { 

                        WITH-INDEX ospfAreaTable

                        {

                                    DEFINE DevAreaCKSUM_COUNT  INT;

                                    DEFINE DevAreaCKSUM_COUNTdb DB INT;

 

                                    DevAreaCKSUM_COUNT = 0;

 

                                    DEFINE ospfSpfRunsT1 MAP INT;

                                    DEFINE AreaLSACksumSumT1 MAP INT;

 

                                    DEFINE ospfSpfRuns DB INT;

                                    DEFINE AreaLSACksumSum DB INT;

                                               

                                    ospfSpfRunsT1 = ospfSpfRuns;

                                    AreaLSACksumSumT1 = AreaLSACksumSum;                                      

 

                                    RMV (ospfSpfRuns; ospfAreaLSACksumSum);

 

                                    POLL (ospfSpfRuns; ospfAreaLSACksumSum);

 

                                    AreaLSACksumSumT2 = AreaLSACksumSum;

 

                                    IF (AreaLSACksumSumT1 != AreaLSACksumSumT2)

                                    THEN

                       

                                                #############################################

                                                # MSG ("OSPF Area LSA DB Changed on Area @1 on device @2",

                                                #              ospfAreaTable, DEV);

                                                #############################################

 

                                                DevAreaCKSUM_COUNT = DevAreaCKSUM_COUNT +1;

                                                DevAreaCKSUM_COUNTdb = DevAreaCKSUM_COUNT;

 

                                                ospfSpfRunsT2   = ospfSpfRuns;

 

                                                CounterData (    DeltaOspfSpfRuns,

                                                                        ospfSpfRunsT1,

                                                                        ospfSpfRunsT2    );

                                    ENDIF;

                        };

 

                        DEFINE ipOutNoRoutesT1 MAP INT;

                        DEFINE ipRoutingDiscardsT1 MAP INT;

                        DEFINE ipInAddrErrorsT1 MAP INT;

             

                        DEFINE ipOutNoRoutes DB INT;

                        DEFINE ipRoutingDiscards DB INT;

                        DEFINE ipInAddrErrors DB INT;

 

                        ipOutNoRoutesT2 = ipOutNoRoutes;

                        ipRoutingDiscardsT2 = ipRoutingDiscards;                 

                        ipInAddrErrorsT2 = ipInAddrErrors;

                       

                        RMV (ipOutNoRoutes; ipRoutingDiscards; ipInAddrErrors);

                        POLL (ipOutNoRoutes; ipRoutingDiscards; ipInAddrErrors);

 

                        DEFINE ipOutNoRoutesT2 MAP INT;

                        DEFINE ipRoutingDiscardsT2 MAP INT;

                        DEFINE ipInAddrErrorsT2 MAP INT;

 

                        ipOutNoRoutesT2 = ipOutNoRoutes;

                        ipRoutingDiscardsT2 = ipRoutingDiscards;                 

                        ipInAddrErrorsT2 = ipInAddrErrors;

 

                        DEFINE ipTotalErrors DB INT;

 

                        CounterData (    DeltaIpOutNoRoutes,

                                                ipOutNoRoutesT1,

                                                ipOutNoRoutesT2);

 

                        CounterData (   DeltaIpRoutingDiscards,

                                               ipRoutingDiscardsT1,

                                               ipRoutingDiscardsT2);

 

                        CounterData (    DeltaIpInAddrErrors,

                                                ipInAddrErrorsT1,

                                                ipInAddrErrorsT2);

 

                        ipTotalErrors =    DeltaIpOutNoRoutes +

                                                DeltaIpRoutingDiscards +

                                                DeltaIpInAddrErrors;

 

            };

END

 


Higher Level OSPF Area Metrics Index Page

Previous Page Page 4/6 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]