<?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 Invoke-NaSsh passing multiple commands to Cisco MDS in Microsoft Virtualization Discussions</title>
    <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Invoke-NaSsh-passing-multiple-commands-to-Cisco-MDS/m-p/126195#M5163</link>
    <description>&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;Working on script to set some standard settings on Cisco MDS switches using the&amp;nbsp;Invoke-NaSsh from the PowerShell Tool kit. I can pass a single command (i.e. SHOW VSAN 1), but passing multiple commands (i.e. CONFIGURATION TERMINAL;SYSTEM DEFAULT SWITCHPORT SHUTDOWN;EXIT), I get a&amp;nbsp;Cmd exec error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can stack the commands in format above with PLINK (PuTTY CLI), but can ot seem to get it work with&amp;nbsp;Invoke-NaSsh&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Current CMD line:&lt;/P&gt;&lt;P&gt;Invoke-NaSsh -name $switchIP -command "configure terminal;system default switchport shutdown;exit" -credential $credentials -ErrorAction SilentlyContinue -WarningAction SilentlyContinue&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 04 Jun 2025 18:05:42 GMT</pubDate>
    <dc:creator>XOMBAC2012</dc:creator>
    <dc:date>2025-06-04T18:05:42Z</dc:date>
    <item>
      <title>Invoke-NaSsh passing multiple commands to Cisco MDS</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Invoke-NaSsh-passing-multiple-commands-to-Cisco-MDS/m-p/126195#M5163</link>
      <description>&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;Working on script to set some standard settings on Cisco MDS switches using the&amp;nbsp;Invoke-NaSsh from the PowerShell Tool kit. I can pass a single command (i.e. SHOW VSAN 1), but passing multiple commands (i.e. CONFIGURATION TERMINAL;SYSTEM DEFAULT SWITCHPORT SHUTDOWN;EXIT), I get a&amp;nbsp;Cmd exec error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can stack the commands in format above with PLINK (PuTTY CLI), but can ot seem to get it work with&amp;nbsp;Invoke-NaSsh&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Current CMD line:&lt;/P&gt;&lt;P&gt;Invoke-NaSsh -name $switchIP -command "configure terminal;system default switchport shutdown;exit" -credential $credentials -ErrorAction SilentlyContinue -WarningAction SilentlyContinue&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 18:05:42 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Invoke-NaSsh-passing-multiple-commands-to-Cisco-MDS/m-p/126195#M5163</guid>
      <dc:creator>XOMBAC2012</dc:creator>
      <dc:date>2025-06-04T18:05:42Z</dc:date>
    </item>
    <item>
      <title>Re: Invoke-NaSsh passing multiple commands to Cisco MDS</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Invoke-NaSsh-passing-multiple-commands-to-Cisco-MDS/m-p/126196#M5164</link>
      <description>&lt;P&gt;The only thing I can say is from my experience is that the stacked commands work for netapp, i'm not sure if they work for cisco.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Dec 2016 19:55:32 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Invoke-NaSsh-passing-multiple-commands-to-Cisco-MDS/m-p/126196#M5164</guid>
      <dc:creator>JGPSHNTAP</dc:creator>
      <dc:date>2016-12-13T19:55:32Z</dc:date>
    </item>
  </channel>
</rss>

