I have done very little in scripting so I am more then a 'newbe' I need to write a script that will reboot cisco switches/router based on number of days since last reboot. To make it more interesting it should also un-manage the device first so it does not send an unnecessary alerts, save the config incase it was not saves the last time, reboot, then re-manage
How do i do this?