<?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 Re: Brocade Scripting of commands in HPE EVA Storage</title>
    <link>https://community.hpe.com/t5/hpe-eva-storage/brocade-scripting-of-commands/m-p/4596566#M43277</link>
    <description>crond?&lt;BR /&gt;&lt;BR /&gt;can you pls give me an example if possible?&lt;BR /&gt;&lt;BR /&gt;Kites</description>
    <pubDate>Tue, 09 Mar 2010 14:52:11 GMT</pubDate>
    <dc:creator>Kites BM</dc:creator>
    <dc:date>2010-03-09T14:52:11Z</dc:date>
    <item>
      <title>Brocade Scripting of commands</title>
      <link>https://community.hpe.com/t5/hpe-eva-storage/brocade-scripting-of-commands/m-p/4596564#M43275</link>
      <description>I wish to run few commands to perform Daily Health checks and this I need to do on some 30 switches ( different models and switch types). Few switches have CLI while other few have GUI and both.&lt;BR /&gt;&lt;BR /&gt;Any way by means of which I can trigger executing my set of commands and try sending any alerts(warnings or errors on each switch) noted to my email Id.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;BMK&lt;BR /&gt;</description>
      <pubDate>Mon, 08 Mar 2010 09:09:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-eva-storage/brocade-scripting-of-commands/m-p/4596564#M43275</guid>
      <dc:creator>Kites BM</dc:creator>
      <dc:date>2010-03-08T09:09:13Z</dc:date>
    </item>
    <item>
      <title>Re: Brocade Scripting of commands</title>
      <link>https://community.hpe.com/t5/hpe-eva-storage/brocade-scripting-of-commands/m-p/4596565#M43276</link>
      <description>No ideal, but as workaround will work: expect+ssh+crond on some unix\linux server.</description>
      <pubDate>Mon, 08 Mar 2010 12:02:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-eva-storage/brocade-scripting-of-commands/m-p/4596565#M43276</guid>
      <dc:creator>Prokopets</dc:creator>
      <dc:date>2010-03-08T12:02:14Z</dc:date>
    </item>
    <item>
      <title>Re: Brocade Scripting of commands</title>
      <link>https://community.hpe.com/t5/hpe-eva-storage/brocade-scripting-of-commands/m-p/4596566#M43277</link>
      <description>crond?&lt;BR /&gt;&lt;BR /&gt;can you pls give me an example if possible?&lt;BR /&gt;&lt;BR /&gt;Kites</description>
      <pubDate>Tue, 09 Mar 2010 14:52:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-eva-storage/brocade-scripting-of-commands/m-p/4596566#M43277</guid>
      <dc:creator>Kites BM</dc:creator>
      <dc:date>2010-03-09T14:52:11Z</dc:date>
    </item>
    <item>
      <title>Re: Brocade Scripting of commands</title>
      <link>https://community.hpe.com/t5/hpe-eva-storage/brocade-scripting-of-commands/m-p/4596567#M43278</link>
      <description>Which switch brands are in use?&lt;BR /&gt;&lt;BR /&gt;There are some Fabric management software that should be able to do that.&lt;BR /&gt;&lt;BR /&gt;-Thank You &lt;BR /&gt;Bharath</description>
      <pubDate>Tue, 09 Mar 2010 21:08:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-eva-storage/brocade-scripting-of-commands/m-p/4596567#M43278</guid>
      <dc:creator>Bharath_Pingali</dc:creator>
      <dc:date>2010-03-09T21:08:14Z</dc:date>
    </item>
    <item>
      <title>Re: Brocade Scripting of commands</title>
      <link>https://community.hpe.com/t5/hpe-eva-storage/brocade-scripting-of-commands/m-p/4596568#M43279</link>
      <description>Kites, i think that it would be better to divide your task by two:&lt;BR /&gt;1) Switch-side scripting: it can be done with expect&lt;BR /&gt;2) Alerts: you can get them via snmp. &lt;BR /&gt;&lt;BR /&gt;1) Your expect script can look like this one (a have no brocade by hand for test but i'm pretty sure that it will work):&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/expect -f&lt;BR /&gt;spawn ssh 1.2.3.4 -l admin&lt;BR /&gt;log_user 1&lt;BR /&gt;match_max 100000&lt;BR /&gt;expect "?*login*"&lt;BR /&gt;send -- "admin\r"&lt;BR /&gt;expect "password:"&lt;BR /&gt;send -- "password\r"&lt;BR /&gt;send -- "\r"&lt;BR /&gt;send -- "switchshow\r"&lt;BR /&gt;expect eof&lt;BR /&gt;&lt;BR /&gt;This script will show you output of switchshow command then you can parse it by grep, for example. If you don't want to have a headache with expect, i recommend you to use autoexpect (&lt;A href="http://expect.nist.gov/doc/autoexpect.pdf)" target="_blank"&gt;http://expect.nist.gov/doc/autoexpect.pdf)&lt;/A&gt; - it "records" your activity and writes a script by itself, so you can just put in in crontab.&lt;BR /&gt;&lt;BR /&gt;2) As for snmp - it's quite simple, you should just find OID in Brocade's MIB (you can download it from switches support page) and configure snmptrapd.conf to receive traps from switch.</description>
      <pubDate>Wed, 10 Mar 2010 08:15:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-eva-storage/brocade-scripting-of-commands/m-p/4596568#M43279</guid>
      <dc:creator>Prokopets</dc:creator>
      <dc:date>2010-03-10T08:15:02Z</dc:date>
    </item>
    <item>
      <title>Re: Brocade Scripting of commands</title>
      <link>https://community.hpe.com/t5/hpe-eva-storage/brocade-scripting-of-commands/m-p/4596569#M43280</link>
      <description>&lt;BR /&gt;Sorry for this late reply.&lt;BR /&gt;&lt;BR /&gt;We have connectivity to switches by ssh and snmp already configured.&lt;BR /&gt;&lt;BR /&gt;I want to know how do I have to schedule connectivity to these switches and send the o/p of commands to my email id.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Kites BM</description>
      <pubDate>Wed, 31 Mar 2010 10:57:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-eva-storage/brocade-scripting-of-commands/m-p/4596569#M43280</guid>
      <dc:creator>Kites BM</dc:creator>
      <dc:date>2010-03-31T10:57:27Z</dc:date>
    </item>
    <item>
      <title>Re: Brocade Scripting of commands</title>
      <link>https://community.hpe.com/t5/hpe-eva-storage/brocade-scripting-of-commands/m-p/4596570#M43281</link>
      <description>Kites, your approximate plan can look like this:&lt;BR /&gt;&lt;BR /&gt;1) write script using expect (or autoexpect)&lt;BR /&gt;2) write another script which executes first one, redirects it's output to temporary file and mails it (it will look like this: cat output_file.log | mail -s 'Subject' mail@domain.com)&lt;BR /&gt;3) edit crontab file (depending you unix\linux version syntax may me little different, but "man cron" helps you) and place there your second script there&lt;BR /&gt;&lt;BR /&gt;Well... At least, this way is simple :)</description>
      <pubDate>Wed, 31 Mar 2010 11:06:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-eva-storage/brocade-scripting-of-commands/m-p/4596570#M43281</guid>
      <dc:creator>Prokopets</dc:creator>
      <dc:date>2010-03-31T11:06:30Z</dc:date>
    </item>
    <item>
      <title>Re: Brocade Scripting of commands</title>
      <link>https://community.hpe.com/t5/hpe-eva-storage/brocade-scripting-of-commands/m-p/4596571#M43282</link>
      <description>&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;I would really love to follow those 3 steps above,but its on win OS that we have ssh (putty)connectivity to those switches.&lt;BR /&gt;&lt;BR /&gt;Any way to get it done on Win OS??&lt;BR /&gt;&lt;BR /&gt;Kites</description>
      <pubDate>Wed, 31 Mar 2010 11:13:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-eva-storage/brocade-scripting-of-commands/m-p/4596571#M43282</guid>
      <dc:creator>Kites BM</dc:creator>
      <dc:date>2010-03-31T11:13:39Z</dc:date>
    </item>
    <item>
      <title>Re: Brocade Scripting of commands</title>
      <link>https://community.hpe.com/t5/hpe-eva-storage/brocade-scripting-of-commands/m-p/4596572#M43283</link>
      <description>Windows?!&lt;BR /&gt;Well... There's at least two ways to upgrade this three steps with step 0) &lt;BR /&gt;- install cygwin (&lt;A href="http://www.cygwin.com/)" target="_blank"&gt;http://www.cygwin.com/)&lt;/A&gt; on your windows PC.&lt;BR /&gt;- use coLinux (&lt;A href="http://www.colinux.org/)" target="_blank"&gt;http://www.colinux.org/)&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Actually, both this ways are little pervert and in theory you can try to use WSH, but in this case i cannot give you any advise as i have nearly no experience with it and i'm not sure that putty can redirect it's output. Anyway, you can at least look at WSH (&lt;A href="http://msdn.microsoft.com/en-us/library/9bbdkx3k%28VS.85%29.aspx)" target="_blank"&gt;http://msdn.microsoft.com/en-us/library/9bbdkx3k%28VS.85%29.aspx)&lt;/A&gt; until you'll begin to do something with cygwin or colinux.</description>
      <pubDate>Wed, 31 Mar 2010 11:23:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-eva-storage/brocade-scripting-of-commands/m-p/4596572#M43283</guid>
      <dc:creator>Prokopets</dc:creator>
      <dc:date>2010-03-31T11:23:49Z</dc:date>
    </item>
    <item>
      <title>Re: Brocade Scripting of commands</title>
      <link>https://community.hpe.com/t5/hpe-eva-storage/brocade-scripting-of-commands/m-p/4596573#M43284</link>
      <description>&lt;BR /&gt;Well, sorry for the late reply.&lt;BR /&gt;&lt;BR /&gt;further to make it happen I tried my bit of efforts ( didn't find time for this long)&lt;BR /&gt;&lt;BR /&gt;&amp;gt;I installed putty.exe on windows server&lt;BR /&gt;&amp;gt;I created batch file and scheduled it to run daily at once&lt;BR /&gt;&lt;BR /&gt;The contents of the batch file are &lt;BR /&gt;&lt;BR /&gt;" putty.exe -ssh -v username@hostname -pw &lt;PASSWORD&gt; -m D:\commands.dat"&lt;BR /&gt;&lt;BR /&gt;&amp;gt;I put my set of switch-commands to be run in commands.dat file on location D:&lt;BR /&gt;&lt;BR /&gt;All is well ....I now want to well organize and capture the output of each command. Send this collected output to a file on D:&lt;BR /&gt;&lt;BR /&gt;Any comments on how I can do this?&lt;BR /&gt;&lt;BR /&gt;Of course, the batch file contents shows the login password - which I believe can be encrypted.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Kites&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/PASSWORD&gt;</description>
      <pubDate>Fri, 30 Apr 2010 10:12:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-eva-storage/brocade-scripting-of-commands/m-p/4596573#M43284</guid>
      <dc:creator>Kites BM</dc:creator>
      <dc:date>2010-04-30T10:12:03Z</dc:date>
    </item>
    <item>
      <title>Re: Brocade Scripting of commands</title>
      <link>https://community.hpe.com/t5/hpe-eva-storage/brocade-scripting-of-commands/m-p/4596574#M43285</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;you could create a Putty Session, saving the IP-Address of the switch and the File name for logging.&lt;BR /&gt;If you have a look at the logging options in Putty, you can use characters to specify the date, time and hostname.&lt;BR /&gt;e.g. set the log file to D:\logs\&amp;amp;Y&amp;amp;M&amp;amp;D_&amp;amp;H.txt&lt;BR /&gt;That would create a logfile in D:\logs called (for today on host "switch1") 20100430_switch1.txt&lt;BR /&gt;&lt;BR /&gt;Then call Putty via command line:&lt;BR /&gt;putty.exe -load "session-name" and include your other parameters &lt;BR /&gt;&lt;BR /&gt;Hope that helps&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Stephen</description>
      <pubDate>Fri, 30 Apr 2010 11:11:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-eva-storage/brocade-scripting-of-commands/m-p/4596574#M43285</guid>
      <dc:creator>Stephen Kebbell</dc:creator>
      <dc:date>2010-04-30T11:11:55Z</dc:date>
    </item>
    <item>
      <title>Re: Brocade Scripting of commands</title>
      <link>https://community.hpe.com/t5/hpe-eva-storage/brocade-scripting-of-commands/m-p/4596575#M43286</link>
      <description>&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;This works.&lt;BR /&gt;&lt;BR /&gt;The output of the file appears in unordered fashion. I wanted to make it look pretty as shown on cmd prompt of the switch.&lt;BR /&gt;&lt;BR /&gt;also I want to put breaks( introduce new lines) between any 2 commands so that the output captured is seen neatly&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 30 Apr 2010 11:59:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-eva-storage/brocade-scripting-of-commands/m-p/4596575#M43286</guid>
      <dc:creator>Kites BM</dc:creator>
      <dc:date>2010-04-30T11:59:20Z</dc:date>
    </item>
    <item>
      <title>Re: Brocade Scripting of commands</title>
      <link>https://community.hpe.com/t5/hpe-eva-storage/brocade-scripting-of-commands/m-p/4596576#M43287</link>
      <description>What did you select for logging?&lt;BR /&gt;Printable output or All session output.&lt;BR /&gt;&lt;BR /&gt;I use "All session output", and it comes out fine, with tabs and everything. &lt;BR /&gt;Not sure about the line breaks, though.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Stephen</description>
      <pubDate>Fri, 30 Apr 2010 12:56:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-eva-storage/brocade-scripting-of-commands/m-p/4596576#M43287</guid>
      <dc:creator>Stephen Kebbell</dc:creator>
      <dc:date>2010-04-30T12:56:17Z</dc:date>
    </item>
    <item>
      <title>Re: Brocade Scripting of commands</title>
      <link>https://community.hpe.com/t5/hpe-eva-storage/brocade-scripting-of-commands/m-p/4596577#M43288</link>
      <description>FYI: There is a fabric watch license/application you can use for this as well.</description>
      <pubDate>Tue, 04 May 2010 10:44:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-eva-storage/brocade-scripting-of-commands/m-p/4596577#M43288</guid>
      <dc:creator>Johan Guldmyr</dc:creator>
      <dc:date>2010-05-04T10:44:27Z</dc:date>
    </item>
  </channel>
</rss>

