upgrade agent after server reconfigured