Now I need to run the same test as a cron job where I need to compare the results with the previous test. Please let me know how can I achieve this. Thank you

I have written a script to perform ping test for few routers. As the test is done before, after maintenance window I am taking the input from user as pre and post and comparing the results after post test is done.

input("please enter pre or post")
if pre or post:
    #some action
if post:
    #compare pre and post results which are already saved as individual files

pre- "SUCCESS RATE IS 0 PERCENT", post- "SUCCESS RATE IS 0 PERCENT" -PASS

pre- "SUCCESS RATE IS 0 PERCENT", post- "SUCCESS RATE IS 20 PERCENT" -FAIL

0 Answers