<?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 This discussion has been in Storage Networking</title>
    <link>https://community.cisco.com/t5/storage-networking/multiple-pipe-search/m-p/2500792#M8563</link>
    <description>&lt;P&gt;This discussion has been reposted from Top Contributors to the &lt;A href="https://supportforums.cisco.com/community/5636/storage-networking"&gt;Storage Networking&lt;/A&gt; community.&lt;/P&gt;</description>
    <pubDate>Sat, 01 Aug 2015 01:43:28 GMT</pubDate>
    <dc:creator>rosaho</dc:creator>
    <dc:date>2015-08-01T01:43:28Z</dc:date>
    <item>
      <title>multiple pipe search</title>
      <link>https://community.cisco.com/t5/storage-networking/multiple-pipe-search/m-p/2500789#M8560</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I want to search for a wwn in show fcns database detail command&lt;BR /&gt;switch# show fcns database | include fc:58&lt;BR /&gt;0x830045 &amp;nbsp; &amp;nbsp;N &amp;nbsp; &amp;nbsp; xx:xx:xx:xx:xx:xx:fc:58 (HP)&amp;nbsp;&lt;/P&gt;&lt;P&gt;However this command does not give me the rest of the important details which would be normally mentioned as listed below.&lt;/P&gt;&lt;P&gt;VSAN:1 &amp;nbsp; &amp;nbsp; FCID:0x690000&lt;BR /&gt;------------------------&lt;BR /&gt;port-wwn (vendor) &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; :10:00:00:0d:ec:af:fe:05 (Cisco)&lt;BR /&gt;node-wwn &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;:20:00:00:0d:ec:af:fe:00&lt;BR /&gt;class &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; :2,3&lt;BR /&gt;node-ip-addr &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;:0.0.0.0&lt;BR /&gt;ipa &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; :ff ff ff ff ff ff ff ff&lt;BR /&gt;fc4-types:fc4_features &amp;nbsp; &amp;nbsp; &amp;nbsp;:ipfc&lt;BR /&gt;symbolic-port-name &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;:&lt;BR /&gt;symbolic-node-name &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;:&lt;BR /&gt;port-type &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; :N&lt;BR /&gt;port-ip-addr &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;:192.180.1.5&lt;BR /&gt;fabric-port-wwn &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; :22:00:00:0d:ec:af:fe:02&lt;BR /&gt;hard-addr &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; :0x000000&lt;BR /&gt;permanent-port-wwn (vendor) :00:00:00:00:00:00:00:00&lt;BR /&gt;connected interface &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; :Not Available&lt;BR /&gt;switch name (IP address) &amp;nbsp; &amp;nbsp;:switch (ip addr)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to search multiple things which will still allow me to include the important details like switch ip and name etc.&lt;/P&gt;&lt;P&gt;Any help is much appreciated&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jun 2014 10:46:43 GMT</pubDate>
      <guid>https://community.cisco.com/t5/storage-networking/multiple-pipe-search/m-p/2500789#M8560</guid>
      <dc:creator>jayeshhalarnekar</dc:creator>
      <dc:date>2014-06-16T10:46:43Z</dc:date>
    </item>
    <item>
      <title>DisclaimerThe Author of this</title>
      <link>https://community.cisco.com/t5/storage-networking/multiple-pipe-search/m-p/2500790#M8561</link>
      <description>&lt;P&gt;&lt;SPAN style="font-size:8px"&gt;&lt;EM&gt;&lt;STRONG&gt;Disclaimer&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size:8px"&gt;&lt;EM&gt;The Author of this posting offers the information contained within this posting without consideration and with the reader's understanding that there's no implied or expressed suitability or fitness for any purpose. Information provided is for informational purposes only and should not be construed as rendering professional advice of any kind. Usage of this posting's information is solely at reader's own risk.&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size:8px"&gt;&lt;EM&gt;&lt;STRONG&gt;Liability Disclaimer&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size:8px"&gt;&lt;EM&gt;In no event shall Author be liable for any damages whatsoever (including, without limitation, damages for loss of use, data or profit) arising out of the use or inability to use the posting's information even if Author has been advised of the possibility of such damage.&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Posting&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Many Cisco devices support regular expressions.&amp;nbsp; An or match might be something like:&lt;/P&gt;&lt;P&gt;show something | inc abc|xyx&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jun 2014 11:05:44 GMT</pubDate>
      <guid>https://community.cisco.com/t5/storage-networking/multiple-pipe-search/m-p/2500790#M8561</guid>
      <dc:creator>Joseph W. Doherty</dc:creator>
      <dc:date>2014-06-16T11:05:44Z</dc:date>
    </item>
    <item>
      <title>Thanks Joseph</title>
      <link>https://community.cisco.com/t5/storage-networking/multiple-pipe-search/m-p/2500791#M8562</link>
      <description>&lt;P&gt;Thanks Joseph&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jul 2014 02:46:25 GMT</pubDate>
      <guid>https://community.cisco.com/t5/storage-networking/multiple-pipe-search/m-p/2500791#M8562</guid>
      <dc:creator>jayeshhalarnekar</dc:creator>
      <dc:date>2014-07-22T02:46:25Z</dc:date>
    </item>
    <item>
      <title>This discussion has been</title>
      <link>https://community.cisco.com/t5/storage-networking/multiple-pipe-search/m-p/2500792#M8563</link>
      <description>&lt;P&gt;This discussion has been reposted from Top Contributors to the &lt;A href="https://supportforums.cisco.com/community/5636/storage-networking"&gt;Storage Networking&lt;/A&gt; community.&lt;/P&gt;</description>
      <pubDate>Sat, 01 Aug 2015 01:43:28 GMT</pubDate>
      <guid>https://community.cisco.com/t5/storage-networking/multiple-pipe-search/m-p/2500792#M8563</guid>
      <dc:creator>rosaho</dc:creator>
      <dc:date>2015-08-01T01:43:28Z</dc:date>
    </item>
    <item>
      <title>Re: multiple pipe search</title>
      <link>https://community.cisco.com/t5/storage-networking/multiple-pipe-search/m-p/3837028#M11624</link>
      <description>&lt;P&gt;Example For IOS-XR&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;show bgp vrf ALL neighbors | in "vrf | hold time: | Hold time is"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Apr 2019 17:26:52 GMT</pubDate>
      <guid>https://community.cisco.com/t5/storage-networking/multiple-pipe-search/m-p/3837028#M11624</guid>
      <dc:creator>hfarias</dc:creator>
      <dc:date>2019-04-11T17:26:52Z</dc:date>
    </item>
    <item>
      <title>Re: multiple pipe search</title>
      <link>https://community.cisco.com/t5/storage-networking/multiple-pipe-search/m-p/3873280#M11639</link>
      <description>&lt;P&gt;Besides using the pipe '|' as an OR function, I often use the 'p' for previous lines and 'n' for next lines.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;HQSAN14# show fcns database detail | inc &lt;STRONG&gt;i&lt;/STRONG&gt; 50:00:09:73:a8:06:c4:dd &lt;STRONG&gt;p&lt;/STRONG&gt; 3 &lt;STRONG&gt;n&lt;/STRONG&gt; 11&lt;BR /&gt;------------------------&lt;BR /&gt;VSAN:20 FCID:0x100141&lt;BR /&gt;------------------------&lt;BR /&gt;port-wwn (vendor) :50:00:09:73:a8:06:c4:dd (EMC)&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;[SYM0933-APPLICATION-4DP29]&lt;BR /&gt;node-wwn :50:00:09:73:a8:06:c7:ff&lt;BR /&gt;class :3&lt;BR /&gt;node-ip-addr :0.0.0.0&lt;BR /&gt;ipa :ff ff ff ff ff ff ff ff&lt;BR /&gt;fc4-types:fc4_features :scsi-fcp:both 253&lt;BR /&gt;symbolic-port-name :SYMMETRIX::000197800933::SAF-4d1d::FC::5977_952+::EMUL B90F0000 59DD3921 CA7F8C 12.20.16 09:16&lt;BR /&gt;symbolic-node-name :SYMMETRIX::000197800933::FC::5977_952+&lt;BR /&gt;port-type :N&lt;BR /&gt;port-ip-addr :0.0.0.0&lt;BR /&gt;fabric-port-wwn :22:4d:00:de:fb:18:b5:80&lt;BR /&gt;hard-addr :0x000000&lt;BR /&gt;permanent-port-wwn (vendor) :50:00:09:73:a8:06:c4:dd (EMC)&lt;BR /&gt;connected interface :fc10/13&lt;BR /&gt;switch name (IP address) :HQSAN14 (192.168.102.160)&lt;BR /&gt;------------------------&lt;BR /&gt;VSAN:20 FCID:0x100160&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2019 17:40:07 GMT</pubDate>
      <guid>https://community.cisco.com/t5/storage-networking/multiple-pipe-search/m-p/3873280#M11639</guid>
      <dc:creator>mooneyj@aafes.com</dc:creator>
      <dc:date>2019-06-14T17:40:07Z</dc:date>
    </item>
    <item>
      <title>Re: multiple pipe search</title>
      <link>https://community.cisco.com/t5/storage-networking/multiple-pipe-search/m-p/3888478#M11648</link>
      <description>&lt;P&gt;Ancient post, but I'll pile on with a new comment too.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In Nexus you can use grep and return the lines before or after the match:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This returns the fcns database entry line for Server 1 and the following 2 lines (notice the -A)&lt;/P&gt;
&lt;P&gt;#sh fcns database | grep -A 2 "Server1"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This returns the fcns database entry line for Server 1 and the 2 lines before the match (notice the -B)&lt;/P&gt;
&lt;P&gt;#sh fcns database | grep -B 2 "Server1"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I particularity like this when I'm looking at the flogi database, because there are 2 lines for every entry (at least on the N5K platform).&lt;/P&gt;
&lt;P&gt;#sh flogi database | grep -A 1 "Server1"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kinda the same as mooneyj's post above.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I wish that IOS-XE would've stolen this. It's a very useful feature. Cough cough....&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2019 13:24:53 GMT</pubDate>
      <guid>https://community.cisco.com/t5/storage-networking/multiple-pipe-search/m-p/3888478#M11648</guid>
      <dc:creator>Brandon Rumer (Cisco)</dc:creator>
      <dc:date>2019-07-11T13:24:53Z</dc:date>
    </item>
    <item>
      <title>Re: multiple pipe search</title>
      <link>https://community.cisco.com/t5/storage-networking/multiple-pipe-search/m-p/4746240#M12372</link>
      <description>&lt;P&gt;Just tested the following and it worked.&lt;/P&gt;&lt;P&gt;show chassis detail | egrep "Model|Power| Serial"&lt;/P&gt;</description>
      <pubDate>Wed, 28 Dec 2022 18:42:42 GMT</pubDate>
      <guid>https://community.cisco.com/t5/storage-networking/multiple-pipe-search/m-p/4746240#M12372</guid>
      <dc:creator>RubenBurciaga38708</dc:creator>
      <dc:date>2022-12-28T18:42:42Z</dc:date>
    </item>
  </channel>
</rss>

