1
0
-1

Im using nmis 9.1 and I have lots of devices reporting "Config Not Saved in NVRAM" but when I log in to the switcehs I see that they are saved so I started poking around at source at github. Is there a reason in network.pl

at line 2003 there is no comparison with configLastSaved and configLastChanged?

if ( $lastchange > $bootchanged and $lastchange > 5000 )

    CommentAdd your comment...

    1 answer

    1.  
      1
      0
      -1

      Hi Fredrick! 

      Well, in that case, that piece of code just tries to check if there was any configuration change made by booting after any reboot. 

      Regards,

      1. Fredrik Karlsson

        Thanks for the reply

        Well I get that is what the comparsion is doing, but the result of the comparision is

        $value = "Config Not Saved in NVRAM";

        Becourse if you change the config and save it. The device will never become "Config Saved in NVRAM" until you restart the device, or am I missing something?

        I think it should be

        if ( ($lastchange > $bootchanged and $lastchange > 5000) &&  ($configLastSaved > $configLastChanged))


      CommentAdd your comment...