<?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 data collection script needed in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/data-collection-script-needed/m-p/2794822#M80656</link>
    <description>Hi there,&lt;BR /&gt;&lt;BR /&gt;I'd like to have a script which will copy collected data from one server to my admin server. I have to submit the output from a check script to HP.&lt;BR /&gt;I looked up and tried several recommended scripts in the forum, but I couldn't get them to work.&lt;BR /&gt;&lt;BR /&gt;I would like to use a file containing all machine names.&lt;BR /&gt;&lt;BR /&gt;something like&lt;BR /&gt;&lt;BR /&gt;#############&lt;BR /&gt;for server in server_list.txt&lt;BR /&gt;do&lt;BR /&gt;remsh server rcp -p collected_data_file admin_server:/collection_dir/&lt;BR /&gt;done&lt;BR /&gt;</description>
    <pubDate>Tue, 27 Aug 2002 09:51:47 GMT</pubDate>
    <dc:creator>Ferdinand_2</dc:creator>
    <dc:date>2002-08-27T09:51:47Z</dc:date>
    <item>
      <title>data collection script needed</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/data-collection-script-needed/m-p/2794822#M80656</link>
      <description>Hi there,&lt;BR /&gt;&lt;BR /&gt;I'd like to have a script which will copy collected data from one server to my admin server. I have to submit the output from a check script to HP.&lt;BR /&gt;I looked up and tried several recommended scripts in the forum, but I couldn't get them to work.&lt;BR /&gt;&lt;BR /&gt;I would like to use a file containing all machine names.&lt;BR /&gt;&lt;BR /&gt;something like&lt;BR /&gt;&lt;BR /&gt;#############&lt;BR /&gt;for server in server_list.txt&lt;BR /&gt;do&lt;BR /&gt;remsh server rcp -p collected_data_file admin_server:/collection_dir/&lt;BR /&gt;done&lt;BR /&gt;</description>
      <pubDate>Tue, 27 Aug 2002 09:51:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/data-collection-script-needed/m-p/2794822#M80656</guid>
      <dc:creator>Ferdinand_2</dc:creator>
      <dc:date>2002-08-27T09:51:47Z</dc:date>
    </item>
    <item>
      <title>Re: data collection script needed</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/data-collection-script-needed/m-p/2794823#M80657</link>
      <description>Try running the following from your admin server&lt;BR /&gt;&lt;BR /&gt;for server in `cat server_list.txt`&lt;BR /&gt;do&lt;BR /&gt;rcp -p $server:collected_data_file /collection_dir&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;You'll just need to put in the full path to your collected data file.  I assume that the files have unique names so that they don't overwrite one another when you copy them to your admin server.&lt;BR /&gt;&lt;BR /&gt;Chris</description>
      <pubDate>Tue, 27 Aug 2002 09:56:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/data-collection-script-needed/m-p/2794823#M80657</guid>
      <dc:creator>Chris Wilshaw</dc:creator>
      <dc:date>2002-08-27T09:56:06Z</dc:date>
    </item>
    <item>
      <title>Re: data collection script needed</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/data-collection-script-needed/m-p/2794824#M80658</link>
      <description>Thanks Chris,&lt;BR /&gt;but  &lt;BR /&gt;Doesn't the collection_dir need a machine name to copy to? &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 27 Aug 2002 10:24:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/data-collection-script-needed/m-p/2794824#M80658</guid>
      <dc:creator>Ferdinand_2</dc:creator>
      <dc:date>2002-08-27T10:24:19Z</dc:date>
    </item>
    <item>
      <title>Re: data collection script needed</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/data-collection-script-needed/m-p/2794825#M80659</link>
      <description>&lt;BR /&gt;rcp -rp $server:/directory/to/copy RECEIVINGhostname:/directory2put_itin&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;ie: If I am on serverA and I want to copy files from serverK to serverU, I would do this:&lt;BR /&gt;&lt;BR /&gt;[serverA:root]# rcp -rp serverK:/var/datafiles serverU:/var/collectionpoint&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
      <pubDate>Tue, 27 Aug 2002 10:36:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/data-collection-script-needed/m-p/2794825#M80659</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2002-08-27T10:36:07Z</dc:date>
    </item>
    <item>
      <title>Re: data collection script needed</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/data-collection-script-needed/m-p/2794826#M80660</link>
      <description>and I could do from serverA:&lt;BR /&gt;&lt;BR /&gt;rcp -rp serverK:/var/datafiles serverA:/var/collectionpoint&lt;BR /&gt;&lt;BR /&gt;OR&lt;BR /&gt;&lt;BR /&gt;rcp -rp serverK:/var/datafiles /var/collectionpoint &lt;BR /&gt;&lt;BR /&gt;OR&lt;BR /&gt;&lt;BR /&gt;cd /var/collectionpoint&lt;BR /&gt;rcp -rp serverK:/var/datafiles .&lt;BR /&gt;&lt;BR /&gt;OR&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;cd /var/collectionpoint&lt;BR /&gt;rcp -rp serverK:/var/datafiles serverA:.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
      <pubDate>Tue, 27 Aug 2002 10:38:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/data-collection-script-needed/m-p/2794826#M80660</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2002-08-27T10:38:20Z</dc:date>
    </item>
    <item>
      <title>Re: data collection script needed</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/data-collection-script-needed/m-p/2794827#M80661</link>
      <description>Here is the script it runs from the admin server and will work as long as you have remsh access to the other servers.&lt;BR /&gt;&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;exec &amp;gt; /home/richard/bin/nick.txt 2&amp;gt; /home/richard/bin/nick_err.txt&lt;BR /&gt;echo 'starting time'&lt;BR /&gt;date&lt;BR /&gt;REMOTES=/home/richard/cron/hostnames1&lt;BR /&gt;for REMOTE in $(cat $REMOTES)&lt;BR /&gt;do&lt;BR /&gt;echo '#####################'&lt;BR /&gt;rcp -p -r root@${REMOTE}:/path/to/data/you/want.*  /path/on/admin/server&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;Ok here is how you get the script to work.&lt;BR /&gt;&lt;BR /&gt;exec &amp;gt; /home/richard/bin/nick.txt 2&amp;gt; /home/richard/bin/nick_err.txt&lt;BR /&gt;This will produce a log with error and output. Change the path to where you want the script to log or comment this part out if you dont care about logs.&lt;BR /&gt;&lt;BR /&gt;REMOTES=/home/richard/cron/hostnames1&lt;BR /&gt;the hostnames1 file is a file with a list of hostnames or IPaddress you want to get the information from change this to the path where you want to run the script from. the file should look like this:&lt;BR /&gt;&lt;BR /&gt;hosta&lt;BR /&gt;hostb&lt;BR /&gt;hostc&lt;BR /&gt;&lt;BR /&gt;rcp -p -r root@${REMOTE}:/path/to/data/you/want.*  /path/on/admin/server&lt;BR /&gt;This command goes out to the "remote" host from the hostnames list and goes to the &lt;BR /&gt;path of the data you want and puts it in the path on the admin server.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;~Richard</description>
      <pubDate>Tue, 27 Aug 2002 13:54:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/data-collection-script-needed/m-p/2794827#M80661</guid>
      <dc:creator>someone_4</dc:creator>
      <dc:date>2002-08-27T13:54:10Z</dc:date>
    </item>
    <item>
      <title>Re: data collection script needed</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/data-collection-script-needed/m-p/2794828#M80662</link>
      <description>Thanks very much for all your input. It is all really appriciated.&lt;BR /&gt;&lt;BR /&gt;I have printed this stuff and will keep it in my little admin library.&lt;BR /&gt;&lt;BR /&gt;I didn't give out any 10's because I didn't want to close the tread.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;:wq!&lt;BR /&gt;cd pub&lt;BR /&gt;more beer&lt;BR /&gt;</description>
      <pubDate>Wed, 28 Aug 2002 05:41:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/data-collection-script-needed/m-p/2794828#M80662</guid>
      <dc:creator>Ferdinand_2</dc:creator>
      <dc:date>2002-08-28T05:41:29Z</dc:date>
    </item>
  </channel>
</rss>

