SmartMIB Small Solution:

OSPF Topology Wide LSA Database Change Detection


(SM-SmallSol019)

Solution’s SOSL Based management process script:

 

The solution defines the following main module:

 

MainOspfLsaChecksum:

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

 

 

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

 


 

MODULE MainOspfLsaChecksum ();

DESCRIPTION "Normal Speed Interfaces Process";

BEGIN

 

            POLL-FREQ

            {

                        MODULE-CALL OspfLsaChecksum ();

                        WAIT (600);

            };

END

 


 

MODULE OspfLsaChecksum ();

DESCRIPTION "OSPF LSA DB Checksum Process";

BEGIN

 

            DEFINE LSACksumSumVar1 MAP INT;

            DEFINE LSACksumSumVar2 MAP INT;

 

            DEFINE LSACksumSumVar INT;

 

            DEFINE RoundCount MAP INT;

            DEFINE DevCKSUM_COUNT DB INT;

 

            LSACksumSumVar1 = 0;

            LSACksumSumVar2 = 0;

            LSACksumSumVar = 0; 

            RoundCount = 0;

            DevCKSUM_COUNT = 0;

 

            ALL-DEV BY DEV                  

            {

                        DEFINE ospfAdminStat    INT;

 

                        ospfAdminStat = POLL (ospfAdminStat);

 

                        IF (ospfAdminStat == 1)

                        THEN    

                                    IF (RoundCount == 0)

                                    THEN

                                                LSACksumSumVar1= POLL (ospfExternLSACksumSum);

                                                LSACksumSumVar = LSACksumSumVar1;

                                    ENDIF;

 

                                    IF (RoundCount != 0)

                                    THEN

                                                LSACksumSumVar2 = POLL (ospfExternLSACksumSum);

  

                                                IF (LSACksumSumVar != LSACksumSumVar2)

                                                THEN

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

                                                            # THE Overall OSPF LSA Database has changed

                                                            # across the OSPF Topology                        

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

 

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

                                                            # MSG ("OSPF LSA DB Change detected across

                                                            #                 ospf topology");

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

 

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

                                                            # An email notification could be generated to    

                                                            #       alert the administrator(s) about this change

                                                            #      

                                                            #  MAIL("Administrator@your_organization.net",

                                                            #          " OspfLsaChecksum@smartmib.com",

                                                            #          " OSPF LSA DB Change Alert",

                                                            #          “Device @1 OSPF LSA DB Change detected

                                                            #                         across ospf topology ", DEV);

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

                                                ENDIF;

 

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

                                                # The same piece of information could also be monitored per

                                                # OSPF device as well. This helps in homing in on the particular

                                                # device to detect if a particular device is causing the topology

                                                # wide recalculation!

                                                #     IF (LSACksumSumVar2 != LSACksumSumVar1)

                                                #     THEN

                                                #          MSG ("OSPF LSA DB Changed on device @1", DEV);

                                                #          DevCKSUM_COUNT = DevCKSUM_COUNT + 1;

                                                #          LSACksumSumVar1 = LSACksumSumVar2;        

                                                #     ENDIF;       

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

                                    ENDIF;

                        ENDIF;

 

                        RoundCount = RoundCount + 1;

                       

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

                        # The process polls each device every 1 minute

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

 

                        WAIT (600);

            };

END

 


OSPF Topology Wide LSA Database Change Detection 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]