I have created a few scripts to change passwords in NX-OS and IOS. The issue is I don't want to have to search through the device list for NX-OS devices and IOS devices when running each script. Is there a way when executing a script to filter by OS version or a way within the script to check for OS version then proceed if its IOS/NX-OS or exit if its not?
↧