Start a Conversation

This post is more than 5 years old

Solved!

Go to Solution

1869

December 15th, 2011 12:00

Run a script in Cisco SAN-OS/NX-OS

Hello,

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

...

...

...

device-alias commit

exit

config t

2 Intern

 • 

20.4K Posts

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

309 Posts

December 16th, 2011 10:00

That works.  Thanks.

2 Intern

 • 

20.4K Posts

September 23rd, 2014 12:00

copy tftp://12.33.33.33/file.txt running-config

20 Posts

September 23rd, 2014 12:00

What command did u use to copy from tftp/scp into running config

2 Intern

 • 

20.4K Posts

October 1st, 2014 20:00

may the force of perl and regex be with you

20 Posts

October 1st, 2014 20:00

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?

20 Posts

October 1st, 2014 22:00

Maybe u too got influenced by Modi's speech at Central park

No Events found!

Top