<?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: ftplog in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/ftplog/m-p/3904259#M283522</link>
    <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;The structure Peter posted will let you run a long list of files to transfer into this script, essentially using it as a function.&lt;BR /&gt;&lt;BR /&gt;To add your SMS component, you need two things.&lt;BR /&gt;&lt;BR /&gt;A front end to permit you to essentially re-route an email to SMS and perhaps, based on network needs/secureity an sms relay server that will be permitted to use ports normally closed on corporate lans.&lt;BR /&gt;&lt;BR /&gt;You need to find out what your security situation will permit prior to doing anything about sms.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
    <pubDate>Tue, 28 Nov 2006 05:41:35 GMT</pubDate>
    <dc:creator>Steven E. Protter</dc:creator>
    <dc:date>2006-11-28T05:41:35Z</dc:date>
    <item>
      <title>ftplog</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftplog/m-p/3904257#M283520</link>
      <description>Hi,&lt;BR /&gt;I need a script that can ftp daily from serverA to ServerB and get the ftplog with the time between 0500 - 0600 from /var/log/ftplog. It will send an sms alert if the content of the log indicate "lost connection".&lt;BR /&gt;&lt;BR /&gt;Thank you.</description>
      <pubDate>Mon, 27 Nov 2006 20:22:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftplog/m-p/3904257#M283520</guid>
      <dc:creator>maxpayne</dc:creator>
      <dc:date>2006-11-27T20:22:04Z</dc:date>
    </item>
    <item>
      <title>Re: ftplog</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftplog/m-p/3904258#M283521</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;ftp -n ServerB &amp;lt;&amp;lt; EOF&lt;BR /&gt;user usr passwd&lt;BR /&gt;cd /var/log&lt;BR /&gt;get ftplog&lt;BR /&gt;bye&lt;BR /&gt;EOF&lt;BR /&gt;&lt;BR /&gt;# Define timeframe&lt;BR /&gt;start=`date +"%b %d 05"`&lt;BR /&gt;end==`date +"%b %d 06"`&lt;BR /&gt;# Extract records,look for string, count&lt;BR /&gt;status=`awk "/$start/,/$end/" ftplog | grep -i "lost connection" | wc -l`&lt;BR /&gt;# If we have more than 0 hits&lt;BR /&gt;if [ $status ]&lt;BR /&gt;then&lt;BR /&gt;echo "lost connection" | mailx pager@office.company&lt;BR /&gt;fi</description>
      <pubDate>Tue, 28 Nov 2006 05:22:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftplog/m-p/3904258#M283521</guid>
      <dc:creator>Peter Godron</dc:creator>
      <dc:date>2006-11-28T05:22:44Z</dc:date>
    </item>
    <item>
      <title>Re: ftplog</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftplog/m-p/3904259#M283522</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;The structure Peter posted will let you run a long list of files to transfer into this script, essentially using it as a function.&lt;BR /&gt;&lt;BR /&gt;To add your SMS component, you need two things.&lt;BR /&gt;&lt;BR /&gt;A front end to permit you to essentially re-route an email to SMS and perhaps, based on network needs/secureity an sms relay server that will be permitted to use ports normally closed on corporate lans.&lt;BR /&gt;&lt;BR /&gt;You need to find out what your security situation will permit prior to doing anything about sms.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Tue, 28 Nov 2006 05:41:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftplog/m-p/3904259#M283522</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2006-11-28T05:41:35Z</dc:date>
    </item>
    <item>
      <title>Re: ftplog</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftplog/m-p/3904260#M283523</link>
      <description>Hi,&lt;BR /&gt;Could you please update/close the thread by awarding points to helpful answers and summarising the solution for you.&lt;BR /&gt;This will help resolution of similar problems in the future.</description>
      <pubDate>Thu, 30 Nov 2006 10:45:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftplog/m-p/3904260#M283523</guid>
      <dc:creator>Peter Godron</dc:creator>
      <dc:date>2006-11-30T10:45:51Z</dc:date>
    </item>
  </channel>
</rss>

