I need to create many device aliases. How can I run the instructions below in one batch file without copy-n-pasting chunks of a big file into my terminal?
Thanks.
copy run start
device-alias database
device-alias name vmaxXXX-fa8e0 pwwn XX:XX:XX:XX:XX:XX:XX:XX
I want to collect sh fcs data from every switch into a file in one of our servers so that we can query to know if a wwn visible on fabric ......if yes then on which switch and on which port and its device alias if any. Any idea how to accomplish this?
dynamox
11 Legend
•
20419 Posts
•
87439 Points
855
0
Posted December 15th, 2011 13:00
i have not done it with device-aliases but i always do it with fcalias
create a file that starts like this:
config terminal
device-alias name vmaxXXX-fa8e0 pwwn XX:XX:XX:XX:XX:XX:XX:XX
device-alias name vmaxXXX-fa8e0 pwwn XX:XX:XX:XX:XX:XX:XX:XX
device-alias name vmaxXXX-fa8e0 pwwn XX:XX:XX:XX:XX:XX:XX:XX
device-alias name vmaxXXX-fa8e0 pwwn XX:XX:XX:XX:XX:XX:XX:XX
blah blah
device-alias commit
then copy from tftp/scp into running config