Maybe you need to login in 500 differente switches and execute a command. here is the script: