<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Cisco SAN MDS Zoning : update device-alias and respective zones. in Server Networking</title>
    <link>https://community.cisco.com/t5/server-networking/cisco-san-mds-zoning-update-device-alias-and-respective-zones/m-p/4765147#M13527</link>
    <description>&lt;P&gt;Hi Dear,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have to modify a device-alias name, and this device-alias name is in use in 100+zones.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't see an option\method to update device-alias name, what I see is I have to delete the device-alias first and then recreate the new device-alias and then update all 100+ zones for the new device alias.&lt;BR /&gt;&lt;BR /&gt;This is definitely time-consuming method, is there a way I can run this via script?&lt;/P&gt;&lt;P&gt;if I copy all the commands in a text file then I copy the file to bootflash, then how to execute the entire script.&amp;nbsp;&lt;/P&gt;&lt;P&gt;it will have multiple commands.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Currently I see it as&amp;nbsp;&lt;/P&gt;&lt;P&gt;for each device-alias name update&lt;/P&gt;&lt;P&gt;Run below set of commands:&lt;/P&gt;&lt;P&gt;1. Config&lt;/P&gt;&lt;P&gt;2.&amp;nbsp;device-alias database ; no device-alias name old_da_name ; device-alias name new_da_name pwwn 50:01:17:78:F9:xx:xx:xx ; device-alias commit&lt;/P&gt;&lt;P&gt;3. update all 100+ zones using below command syntax&lt;/P&gt;&lt;P&gt;zone name zonenamehost1_s3p3 ; member device-alias new_da_name ; no member device-alias old_da_name&lt;/P&gt;&lt;P&gt;zone name zonenamehost2_s3p3 ; member device-alias new_da_name ; no member device-alias old_da_name&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;zone name zonenamehost100+_s3p3 ; member device-alias new_da_name ; no member device-alias old_da_name&lt;/P&gt;&lt;P&gt;4.&amp;nbsp;&lt;SPAN&gt;Also if the zoneset needs to be activated after each zone update, or we can update the zoneset using below command after all zones are updated.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;zoneset activate name FABRIC_A_Zoneset9 vsan 9 ; zone copy active-zoneset full-zoneset vsan 9 ; copy r s&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Repeat all above four commands for each device-alias name update and their respective zones and then activate affected zoneset after multiple zone member update before proceeding with next device-alias&lt;/P&gt;&lt;P&gt;or&amp;nbsp;&lt;/P&gt;&lt;P&gt;Repeat all above four commands for each device-alias name update and their respective zones&lt;/P&gt;&lt;P&gt;and active affected zoneset only once after all zones and all device-aliases are updated&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;Appreciate your support. Kindly advise.&lt;/P&gt;</description>
    <pubDate>Mon, 30 Jan 2023 10:55:49 GMT</pubDate>
    <dc:creator>net4amit</dc:creator>
    <dc:date>2023-01-30T10:55:49Z</dc:date>
    <item>
      <title>Cisco SAN MDS Zoning : update device-alias and respective zones.</title>
      <link>https://community.cisco.com/t5/server-networking/cisco-san-mds-zoning-update-device-alias-and-respective-zones/m-p/4765147#M13527</link>
      <description>&lt;P&gt;Hi Dear,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have to modify a device-alias name, and this device-alias name is in use in 100+zones.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't see an option\method to update device-alias name, what I see is I have to delete the device-alias first and then recreate the new device-alias and then update all 100+ zones for the new device alias.&lt;BR /&gt;&lt;BR /&gt;This is definitely time-consuming method, is there a way I can run this via script?&lt;/P&gt;&lt;P&gt;if I copy all the commands in a text file then I copy the file to bootflash, then how to execute the entire script.&amp;nbsp;&lt;/P&gt;&lt;P&gt;it will have multiple commands.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Currently I see it as&amp;nbsp;&lt;/P&gt;&lt;P&gt;for each device-alias name update&lt;/P&gt;&lt;P&gt;Run below set of commands:&lt;/P&gt;&lt;P&gt;1. Config&lt;/P&gt;&lt;P&gt;2.&amp;nbsp;device-alias database ; no device-alias name old_da_name ; device-alias name new_da_name pwwn 50:01:17:78:F9:xx:xx:xx ; device-alias commit&lt;/P&gt;&lt;P&gt;3. update all 100+ zones using below command syntax&lt;/P&gt;&lt;P&gt;zone name zonenamehost1_s3p3 ; member device-alias new_da_name ; no member device-alias old_da_name&lt;/P&gt;&lt;P&gt;zone name zonenamehost2_s3p3 ; member device-alias new_da_name ; no member device-alias old_da_name&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;zone name zonenamehost100+_s3p3 ; member device-alias new_da_name ; no member device-alias old_da_name&lt;/P&gt;&lt;P&gt;4.&amp;nbsp;&lt;SPAN&gt;Also if the zoneset needs to be activated after each zone update, or we can update the zoneset using below command after all zones are updated.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;zoneset activate name FABRIC_A_Zoneset9 vsan 9 ; zone copy active-zoneset full-zoneset vsan 9 ; copy r s&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Repeat all above four commands for each device-alias name update and their respective zones and then activate affected zoneset after multiple zone member update before proceeding with next device-alias&lt;/P&gt;&lt;P&gt;or&amp;nbsp;&lt;/P&gt;&lt;P&gt;Repeat all above four commands for each device-alias name update and their respective zones&lt;/P&gt;&lt;P&gt;and active affected zoneset only once after all zones and all device-aliases are updated&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;Appreciate your support. Kindly advise.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jan 2023 10:55:49 GMT</pubDate>
      <guid>https://community.cisco.com/t5/server-networking/cisco-san-mds-zoning-update-device-alias-and-respective-zones/m-p/4765147#M13527</guid>
      <dc:creator>net4amit</dc:creator>
      <dc:date>2023-01-30T10:55:49Z</dc:date>
    </item>
  </channel>
</rss>

