<?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: Methods for exporting statistics and/or flow data in Application Networking</title>
    <link>https://community.cisco.com/t5/application-networking/methods-for-exporting-statistics-and-or-flow-data/m-p/127925#M1502</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess you could always run the "showtech" script on the CSS via command scheduler and make sure you dump it to disk. Then you could have another command scheduler grab the output (stored in /log/showtech.out) and ftp it off the CSS. The "script play showtech" has alot of useful infomation including "flow stats"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe ??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pete Knoops&lt;/P&gt;&lt;P&gt;Cisco Systems &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Feb 2003 15:21:20 GMT</pubDate>
    <dc:creator>pknoops</dc:creator>
    <dc:date>2003-02-04T15:21:20Z</dc:date>
    <item>
      <title>Methods for exporting statistics and/or flow data</title>
      <link>https://community.cisco.com/t5/application-networking/methods-for-exporting-statistics-and-or-flow-data/m-p/127924#M1501</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone come up with a good way to retrieve statistics (flow information in particular) from the CSS platform?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an application owner who would like to periodically log information on service state and flow data.  I suppose a telnet script or something of that nature would work, but I'd like to avoid giving command line access for something like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would rather use a script or some other function that would result in the CSS exporting the data rather than having an outside process hit the CSS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 03 Feb 2003 16:50:49 GMT</pubDate>
      <guid>https://community.cisco.com/t5/application-networking/methods-for-exporting-statistics-and-or-flow-data/m-p/127924#M1501</guid>
      <dc:creator>d.parks</dc:creator>
      <dc:date>2003-02-03T16:50:49Z</dc:date>
    </item>
    <item>
      <title>Re: Methods for exporting statistics and/or flow data</title>
      <link>https://community.cisco.com/t5/application-networking/methods-for-exporting-statistics-and-or-flow-data/m-p/127925#M1502</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess you could always run the "showtech" script on the CSS via command scheduler and make sure you dump it to disk. Then you could have another command scheduler grab the output (stored in /log/showtech.out) and ftp it off the CSS. The "script play showtech" has alot of useful infomation including "flow stats"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe ??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pete Knoops&lt;/P&gt;&lt;P&gt;Cisco Systems &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Feb 2003 15:21:20 GMT</pubDate>
      <guid>https://community.cisco.com/t5/application-networking/methods-for-exporting-statistics-and-or-flow-data/m-p/127925#M1502</guid>
      <dc:creator>pknoops</dc:creator>
      <dc:date>2003-02-04T15:21:20Z</dc:date>
    </item>
    <item>
      <title>Re: Methods for exporting statistics and/or flow data</title>
      <link>https://community.cisco.com/t5/application-networking/methods-for-exporting-statistics-and-or-flow-data/m-p/127926#M1503</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Pete,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think a showtech might be overkill since I really only need the output from "show flow {ip address}", but this gives me an idea.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think I'll dig through the showtech script and see if I can use the file manipulation function(s) to write my own script.  Perhaps a multipurpose version that will allow me to specify the command I want to run, filename, and destination for the output...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Dominic&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Feb 2003 15:27:23 GMT</pubDate>
      <guid>https://community.cisco.com/t5/application-networking/methods-for-exporting-statistics-and-or-flow-data/m-p/127926#M1503</guid>
      <dc:creator>d.parks</dc:creator>
      <dc:date>2003-02-04T15:27:23Z</dc:date>
    </item>
    <item>
      <title>Re: Methods for exporting statistics and/or flow data</title>
      <link>https://community.cisco.com/t5/application-networking/methods-for-exporting-statistics-and-or-flow-data/m-p/127927#M1504</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Eureka!  I've created a script that accepts a command, FTP record, and destination filename.  The script executes the command directing output to a temporary file.  The file FTP'd to the server and then deleted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By running this script with the command scheduler, I can regularly export statistics from the CSS to a host as needed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!&lt;/P&gt;&lt;P&gt;! Filename: ftplogger&lt;/P&gt;&lt;P&gt;!&lt;/P&gt;&lt;P&gt;! Description:&lt;/P&gt;&lt;P&gt;!&lt;/P&gt;&lt;P&gt;!	This script will execute a given command, (must be a&lt;/P&gt;&lt;P&gt;!	single word command so use an alias if needed), direct the 	&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;!	output to a temporary file, and then copy the file to a&lt;/P&gt;&lt;P&gt;!	given FTP record.&lt;/P&gt;&lt;P&gt;!&lt;/P&gt;&lt;P&gt;!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!&lt;/P&gt;&lt;P&gt;!no echo&lt;/P&gt;&lt;P&gt;expert&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if ${ARGS}[#] "NEQ" "3"&lt;/P&gt;&lt;P&gt;	echo "usage: ftplogger \'command ftprecord filename\'"&lt;/P&gt;&lt;P&gt;	exit script 1&lt;/P&gt;&lt;P&gt;endbranch&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set command "${ARGS}[1]"&lt;/P&gt;&lt;P&gt;echo "Command issued is ${command}"&lt;/P&gt;&lt;P&gt;set ftprecord "${ARGS}[2]"&lt;/P&gt;&lt;P&gt;echo "FTP record requested is ${ftprecord}"&lt;/P&gt;&lt;P&gt;set ftpfile "${ARGS}[3]"&lt;/P&gt;&lt;P&gt;echo "FTP destination filename is ${ftpfile}"&lt;/P&gt;&lt;P&gt;set outfile "&amp;gt;&amp;gt; log/ftplogger.tmp"&lt;/P&gt;&lt;P&gt;echo "Temporary output file is log/ftplogger.tmp"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!&lt;/P&gt;&lt;P&gt;!Issue command and log to the local temporary file&lt;/P&gt;&lt;P&gt;!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;no terminal more&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;${command} ${outfile}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;terminal more&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!&lt;/P&gt;&lt;P&gt;!Copy temporary file to the FTP server&lt;/P&gt;&lt;P&gt;!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;copy log ftplogger.tmp ftp ${ftprecord} ${ftpfile}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!&lt;/P&gt;&lt;P&gt;!Delete temporary file&lt;/P&gt;&lt;P&gt;!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear log ftplogger.tmp&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;no expert&lt;/P&gt;&lt;P&gt;exit script 0&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Feb 2003 22:37:55 GMT</pubDate>
      <guid>https://community.cisco.com/t5/application-networking/methods-for-exporting-statistics-and-or-flow-data/m-p/127927#M1504</guid>
      <dc:creator>d.parks</dc:creator>
      <dc:date>2003-02-04T22:37:55Z</dc:date>
    </item>
    <item>
      <title>Re: Methods for exporting statistics and/or flow data</title>
      <link>https://community.cisco.com/t5/application-networking/methods-for-exporting-statistics-and-or-flow-data/m-p/127928#M1505</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you please explain how to run the script.  I (hope you don't mind) copied the script into my CSS and tried to run it with the "script play" command.  All I got was  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CSSNDC_Extl# script play ftp_script &lt;/P&gt;&lt;P&gt;usage: ftplogger "command ftprecord filename"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Obviously I need to input something!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Tony Barnett&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Feb 2003 06:03:21 GMT</pubDate>
      <guid>https://community.cisco.com/t5/application-networking/methods-for-exporting-statistics-and-or-flow-data/m-p/127928#M1505</guid>
      <dc:creator>barnettt</dc:creator>
      <dc:date>2003-02-12T06:03:21Z</dc:date>
    </item>
    <item>
      <title>Re: Methods for exporting statistics and/or flow data</title>
      <link>https://community.cisco.com/t5/application-networking/methods-for-exporting-statistics-and-or-flow-data/m-p/127929#M1506</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tony,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You'll need to pass 3 parameters in order, enclosed in quotes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. The command you want to execute, (It has to be one word, so you may need an alias.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. The FTP record name for the FTP server where you want the file to go.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. The filename that you want the output to appear as on the FTP server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I ran into some issues when trying to use this with cmd-sched.  The biggest issue is that I couldn't pass arguements due to the extra set of quotation marks required.  To get around this, I had to simplify the script to just use hard-coded variables instead of arguments.  The downside to this is that I'll need to create a new script for each specific use...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's one example of issuing a "show flow" command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!&lt;/P&gt;&lt;P&gt;! Filename: ftplogflow&lt;/P&gt;&lt;P&gt;!&lt;/P&gt;&lt;P&gt;! Description:&lt;/P&gt;&lt;P&gt;!&lt;/P&gt;&lt;P&gt;!	This script will execute a given command, direct&lt;/P&gt;&lt;P&gt;!	the output to a temporary file, and then copy the&lt;/P&gt;&lt;P&gt;!	file to a given FTP record.&lt;/P&gt;&lt;P&gt;!&lt;/P&gt;&lt;P&gt;!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!&lt;/P&gt;&lt;P&gt;!no echo&lt;/P&gt;&lt;P&gt;expert&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set cmdstr "flows 10.32.0.48"&lt;/P&gt;&lt;P&gt;set ftprecord "ace"&lt;/P&gt;&lt;P&gt;set ftpfile "flowinfo.txt"&lt;/P&gt;&lt;P&gt;set outfile "&amp;gt;&amp;gt; log/ftplogger.tmp"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;echo "Command issued is ${cmdstr}"&lt;/P&gt;&lt;P&gt;echo "FTP record requested is ${ftprecord}"&lt;/P&gt;&lt;P&gt;echo "FTP destination filename is ${ftpfile}"&lt;/P&gt;&lt;P&gt;echo "Temporary output file is ${outfile}"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!&lt;/P&gt;&lt;P&gt;!Timestamp the output file&lt;/P&gt;&lt;P&gt;!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;show clock ${outfile}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!&lt;/P&gt;&lt;P&gt;!Issue command and log to the local temporary file&lt;/P&gt;&lt;P&gt;!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;no terminal more&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;show ${cmdstr} ${outfile}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;terminal more&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!&lt;/P&gt;&lt;P&gt;!Copy temporary file to the FTP server&lt;/P&gt;&lt;P&gt;!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;copy log ftplogger.tmp ftp ${ftprecord} ${ftpfile}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!&lt;/P&gt;&lt;P&gt;!Delete temporary file&lt;/P&gt;&lt;P&gt;!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear log ftplogger.tmp&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;no expert&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;exit script 0&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Feb 2003 14:00:54 GMT</pubDate>
      <guid>https://community.cisco.com/t5/application-networking/methods-for-exporting-statistics-and-or-flow-data/m-p/127929#M1506</guid>
      <dc:creator>d.parks</dc:creator>
      <dc:date>2003-02-12T14:00:54Z</dc:date>
    </item>
    <item>
      <title>Re: Methods for exporting statistics and/or flow data</title>
      <link>https://community.cisco.com/t5/application-networking/methods-for-exporting-statistics-and-or-flow-data/m-p/127930#M1507</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the response.  The info is very much appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Tony&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Feb 2003 21:41:13 GMT</pubDate>
      <guid>https://community.cisco.com/t5/application-networking/methods-for-exporting-statistics-and-or-flow-data/m-p/127930#M1507</guid>
      <dc:creator>barnettt</dc:creator>
      <dc:date>2003-02-13T21:41:13Z</dc:date>
    </item>
  </channel>
</rss>

