Ping to multiple IPs permanently with RPM

In your exam you should always check the connectivity to all your devices, after configuration changes. Just to make sure everything working as expected. You can use RPM Services to send continually pings to the routers in your network. If the ping fails you can check it by an operational mode command or see it in your /var/log/messages.

Example configuration:

services {
    rpm {
        probe R1 {
            test ping-R1 {
                probe-type icmp-ping;
                target address 10.0.1.1;
                test-interval 30;
                thresholds {
                    successive-loss 1;
                }
            }
        }
        probe R2 {
            test ping-R2 {
                probe-type icmp-ping;
                target address 10.0.1.2;
                test-interval 30;
                thresholds { 
                    successive-loss 1;
                }
            }
        }
    }
}

Now your router send every 30 seconds (test-interval) a icmp request (probe-type) to your destinations (target address).

To monitor the operation and even see failures you can use the following commands:

  • show services rpm history-results
  • show services rpm probe-results
  • look in /var/log/messages for PING_TEST_FAILED

 

 

Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert.