cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
940
Views
0
Helpful
4
Replies

can you use the result of a "zone copy" to restore

Bruce Kirkland
Level 1
Level 1

                   If I'm doing major changes to zones/zonesets I always do a

zone copy vsan xxx active-zoneset bootflash:/backup/zoneset-vsanxxx

I have a script that will take this file and re-create the the whole zoneset from scratch. I was told that there is a direct way to accomplish this - somehow copy the bootflash:/backup/zoneset-vsanxxx -> vsan xxx active-zoneset ?

I know the phoney command I just dreamed up does not appear to exist but is there a way to do that via cli ?

1 Accepted Solution

Accepted Solutions

Hello Bruce,

There is other way,

Assuming your zone file on tftp with file name zonetest

you need to modify the file and add "conf t" on the first line, then add "member" before any line with "pwwn"

put back the file to booflash, then run:

mds1# runscript bootflash:zonetest

This will put back the zones

There is no other CLI way

View solution in original post

4 Replies 4

Vu Phan
Cisco Employee
Cisco Employee

hello Bruce,

you can do the command:

zone copy active-zoneset full-zoneset vsan xxx

Then modify the zone from there.

There is no other short cut

unless I'm missing something thats not quite what I had in mind,

I want to be able to restore what was the active zoneset very quickly, like as fast as a copy from a file if possible.

Hello Bruce,

There is other way,

Assuming your zone file on tftp with file name zonetest

you need to modify the file and add "conf t" on the first line, then add "member" before any line with "pwwn"

put back the file to booflash, then run:

mds1# runscript bootflash:zonetest

This will put back the zones

There is no other CLI way

That  is what I have been doing, good to know I'm not crazy for that reason at least - thanks

Review Cisco Networking for a $25 gift card