<?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: favourite sysadmin scripts you always keep around.... in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/favourite-sysadmin-scripts-you-always-keep-around/m-p/4844903#M393765</link>
    <description>I hate setting up new users manually so heres a script originally created by my predecessor to do it, but substantially amended by me to ensure that duplicate UID's are not created across our two systems which means we can move the live user directories over to the development system using service guard. (And before anyone suggests it yes I could use NIS but I did'nt want to :@).&lt;BR /&gt;&lt;BR /&gt;The other invaluable script I run everynight is fairly site specific but I would recommend that everyone has one - Its a script to remotely print out all of the necessary information to recreate the system on a different box following a disaster and its proved invaluable many times (at least for recovery tests). Include output from the following to ensure you have enough information.&lt;BR /&gt;&lt;BR /&gt;vgdisplay -v&lt;BR /&gt;bdf&lt;BR /&gt;Your last omniback database backup tape No &lt;BR /&gt;Full list of backup tapes for at least the last month.&lt;BR /&gt;ioscan -fn&lt;BR /&gt;print of /etc/fstab&lt;BR /&gt;ll /dev/vg??/group (saves working out the minor numbers :@) )&lt;BR /&gt;swlist&lt;BR /&gt;sysdef (plus a print out of /stand/system)&lt;BR /&gt;&lt;BR /&gt;Anyone else have any suggestions - I do also regualrly print out the LVMCollect script output mentioned in the earlier posting in this thread as it does come in handy for later reference.</description>
    <pubDate>Mon, 10 Jun 2002 14:26:11 GMT</pubDate>
    <dc:creator>Nick Wickens</dc:creator>
    <dc:date>2002-06-10T14:26:11Z</dc:date>
    <item>
      <title>favourite sysadmin scripts you always keep around....</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/favourite-sysadmin-scripts-you-always-keep-around/m-p/4844855#M393717</link>
      <description>Hi add your scripts for a sharing to this thread..&lt;BR /&gt;top points awarded for TRIED and TESTED scripts!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;swcopy:&lt;BR /&gt;=======&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x9a6150011d20d6118ff40090279cd0f9,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x9a6150011d20d6118ff40090279cd0f9,00.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;bdf in MB:&lt;BR /&gt;==========&lt;BR /&gt;from the forums.. attached&lt;BR /&gt;&lt;BR /&gt;nickel:&lt;BR /&gt;=======&lt;BR /&gt;html collect system info&lt;BR /&gt;&lt;A href="http://www.grc.hp.com/docs/nickel/" target="_blank"&gt;http://www.grc.hp.com/docs/nickel/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Later,&lt;BR /&gt;Bill</description>
      <pubDate>Fri, 15 Feb 2002 08:41:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/favourite-sysadmin-scripts-you-always-keep-around/m-p/4844855#M393717</guid>
      <dc:creator>Bill McNAMARA_1</dc:creator>
      <dc:date>2002-02-15T08:41:20Z</dc:date>
    </item>
    <item>
      <title>Re: favourite sysadmin scripts you always keep around....</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/favourite-sysadmin-scripts-you-always-keep-around/m-p/4844856#M393718</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;This is a script provided by HP in order to get LVM information.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Justo.&lt;BR /&gt;&lt;BR /&gt;PD: good issue!!!</description>
      <pubDate>Fri, 15 Feb 2002 08:50:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/favourite-sysadmin-scripts-you-always-keep-around/m-p/4844856#M393718</guid>
      <dc:creator>Justo Exposito</dc:creator>
      <dc:date>2002-02-15T08:50:06Z</dc:date>
    </item>
    <item>
      <title>Re: favourite sysadmin scripts you always keep around....</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/favourite-sysadmin-scripts-you-always-keep-around/m-p/4844857#M393719</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;one of the favourite sysadmin scripts should be a cleanup script for /tmp /var/tmp and other (application) temporary directories.  As this is server/site specific it's hard to give a standard script.&lt;BR /&gt;&lt;BR /&gt;Another important one is the cfg2html script, which gives you far more information about your server than you ever going to need ;-) (hopefully)&lt;BR /&gt;&lt;A href="http://members.tripod.com/rose_swe/cfg/cfg.html" target="_blank"&gt;http://members.tripod.com/rose_swe/cfg/cfg.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;Thierry.</description>
      <pubDate>Fri, 15 Feb 2002 09:10:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/favourite-sysadmin-scripts-you-always-keep-around/m-p/4844857#M393719</guid>
      <dc:creator>Thierry Poels_1</dc:creator>
      <dc:date>2002-02-15T09:10:53Z</dc:date>
    </item>
    <item>
      <title>Re: favourite sysadmin scripts you always keep around....</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/favourite-sysadmin-scripts-you-always-keep-around/m-p/4844858#M393720</link>
      <description>&lt;BR /&gt;Hi,&lt;BR /&gt;Good examples of script available here.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.introcomp.co.uk/examples/index.html" target="_blank"&gt;http://www.introcomp.co.uk/examples/index.html&lt;/A&gt;</description>
      <pubDate>Fri, 15 Feb 2002 09:13:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/favourite-sysadmin-scripts-you-always-keep-around/m-p/4844858#M393720</guid>
      <dc:creator>Animesh Chakraborty</dc:creator>
      <dc:date>2002-02-15T09:13:48Z</dc:date>
    </item>
    <item>
      <title>Re: favourite sysadmin scripts you always keep around....</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/favourite-sysadmin-scripts-you-always-keep-around/m-p/4844859#M393721</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;My pfsmcd script, many years back. pfsmcd starts the pfs daemons if they have not been started, detects if a CD is already mounted and pfs-mounts the CD (Oracle CD) if it has not been mounted or pfs-unmounts the CD if it has already been mounted. &lt;BR /&gt;&lt;BR /&gt;In addition to root.sh, I had this script added to restricted sam so that the DBA won't come and bother me to mount and unmount Oracle CDs everytime.&lt;BR /&gt;&lt;BR /&gt;Hope this helps. Regards.&lt;BR /&gt;&lt;BR /&gt;Steven Sim Kok Leong&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/ksh&lt;BR /&gt;&lt;BR /&gt;if ps -ae|grep -v grep|grep pfs_mountd &amp;gt; /dev/null 2&amp;gt;/dev/null&lt;BR /&gt;then&lt;BR /&gt;  echo pfs_mountd already started &lt;BR /&gt;else&lt;BR /&gt;  echo Starting pfs_mountd&lt;BR /&gt;  nohup /usr/sbin/pfs_mountd &amp;amp;&lt;BR /&gt;  sleep 5&lt;BR /&gt;fi&lt;BR /&gt;if ps -ae|grep -v grep|grep pfsd &amp;gt; /dev/null 2&amp;gt;/dev/null&lt;BR /&gt;then&lt;BR /&gt;  echo pfsd already started &lt;BR /&gt;else&lt;BR /&gt;  echo Starting pfsd&lt;BR /&gt;  nohup /usr/sbin/pfsd &amp;amp;&lt;BR /&gt;  sleep 5&lt;BR /&gt;fi&lt;BR /&gt;if /sbin/mount|grep /cdrom &amp;gt; /dev/null 2&amp;gt;/dev/null&lt;BR /&gt;then&lt;BR /&gt;  echo Unmounting /cdrom&lt;BR /&gt;  pfs_umount /cdrom &amp;gt; /dev/null 2&amp;gt;/dev/null&lt;BR /&gt;else&lt;BR /&gt;  echo Mounting /cdrom&lt;BR /&gt;  pfs_mount /cdrom &amp;gt; /dev/null 2&amp;gt;/dev/null&lt;BR /&gt;fi</description>
      <pubDate>Fri, 15 Feb 2002 09:18:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/favourite-sysadmin-scripts-you-always-keep-around/m-p/4844859#M393721</guid>
      <dc:creator>Steven Sim Kok Leong</dc:creator>
      <dc:date>2002-02-15T09:18:17Z</dc:date>
    </item>
    <item>
      <title>Re: favourite sysadmin scripts you always keep around....</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/favourite-sysadmin-scripts-you-always-keep-around/m-p/4844860#M393722</link>
      <description>Not a shell script, but a little C program that creates a detailed memory report.</description>
      <pubDate>Fri, 15 Feb 2002 11:48:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/favourite-sysadmin-scripts-you-always-keep-around/m-p/4844860#M393722</guid>
      <dc:creator>Mark van Hassel</dc:creator>
      <dc:date>2002-02-15T11:48:55Z</dc:date>
    </item>
    <item>
      <title>Re: favourite sysadmin scripts you always keep around....</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/favourite-sysadmin-scripts-you-always-keep-around/m-p/4844861#M393723</link>
      <description>Well, &lt;BR /&gt;not a shell script, but a complete reference to UNIX:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://w3.softlookup.com/unix" target="_blank"&gt;http://w3.softlookup.com/unix&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;I am pretty sure you're gonna like chapter 15 Bill :-)&lt;BR /&gt;&lt;BR /&gt;Volker</description>
      <pubDate>Fri, 15 Feb 2002 12:11:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/favourite-sysadmin-scripts-you-always-keep-around/m-p/4844861#M393723</guid>
      <dc:creator>Volker Borowski</dc:creator>
      <dc:date>2002-02-15T12:11:12Z</dc:date>
    </item>
    <item>
      <title>Re: favourite sysadmin scripts you always keep around....</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/favourite-sysadmin-scripts-you-always-keep-around/m-p/4844862#M393724</link>
      <description>Oh dear,&lt;BR /&gt;&lt;BR /&gt;sorry for that link. Came accross it via search engine, and it worked fine, but if you call the link directly, you get a whole lot of commercial popups.&lt;BR /&gt;&lt;BR /&gt;Sorry for that, did not intend to.....&lt;BR /&gt;Volker</description>
      <pubDate>Fri, 15 Feb 2002 12:16:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/favourite-sysadmin-scripts-you-always-keep-around/m-p/4844862#M393724</guid>
      <dc:creator>Volker Borowski</dc:creator>
      <dc:date>2002-02-15T12:16:25Z</dc:date>
    </item>
    <item>
      <title>Re: favourite sysadmin scripts you always keep around....</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/favourite-sysadmin-scripts-you-always-keep-around/m-p/4844863#M393725</link>
      <description>wooo, apparently I should be earning $4000 per week!&lt;BR /&gt;I'm going to have to speak to my boss about that!&lt;BR /&gt;&lt;BR /&gt;15 - Awk, Awk &lt;BR /&gt;oh my God ;)&lt;BR /&gt;&lt;BR /&gt;Later,&lt;BR /&gt;Bill</description>
      <pubDate>Fri, 15 Feb 2002 12:17:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/favourite-sysadmin-scripts-you-always-keep-around/m-p/4844863#M393725</guid>
      <dc:creator>Bill McNAMARA_1</dc:creator>
      <dc:date>2002-02-15T12:17:56Z</dc:date>
    </item>
    <item>
      <title>Re: favourite sysadmin scripts you always keep around....</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/favourite-sysadmin-scripts-you-always-keep-around/m-p/4844864#M393726</link>
      <description>The script thta Jesto has given is great for HP-UX 10.20 machines, but returns an error on HP-UX 11.0 and has some layout issues because of new information that is given by HP-UX 11.0.&lt;BR /&gt;&lt;BR /&gt;Some time ago, i have done the effort to modify the script a very little and to correct the layout issues. For anyone who is interested : feel free to use and enhance it further :</description>
      <pubDate>Fri, 15 Feb 2002 12:18:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/favourite-sysadmin-scripts-you-always-keep-around/m-p/4844864#M393726</guid>
      <dc:creator>Wim Rombauts</dc:creator>
      <dc:date>2002-02-15T12:18:11Z</dc:date>
    </item>
    <item>
      <title>Re: favourite sysadmin scripts you always keep around....</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/favourite-sysadmin-scripts-you-always-keep-around/m-p/4844865#M393727</link>
      <description>There is not much to it, but it always solves the problem of running a script on the last day of the month. Put 28-31 (for days) in your crontab and put this little section in for date determination.&lt;BR /&gt;&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;&lt;BR /&gt;if test `TZ=MET-24 date +%d` = 01&lt;BR /&gt; then&lt;BR /&gt;  exec command&lt;BR /&gt; else&lt;BR /&gt;  exit 1&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;C&lt;BR /&gt;</description>
      <pubDate>Fri, 15 Feb 2002 14:01:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/favourite-sysadmin-scripts-you-always-keep-around/m-p/4844865#M393727</guid>
      <dc:creator>Craig Rants</dc:creator>
      <dc:date>2002-02-15T14:01:01Z</dc:date>
    </item>
    <item>
      <title>Re: favourite sysadmin scripts you always keep around....</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/favourite-sysadmin-scripts-you-always-keep-around/m-p/4844866#M393728</link>
      <description>Can't claim to written this one, but its invaluable notheless...&lt;BR /&gt;&lt;BR /&gt;Produces a map of the lvol locations in vg00 &lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;&lt;BR /&gt;Duncan</description>
      <pubDate>Fri, 15 Feb 2002 14:06:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/favourite-sysadmin-scripts-you-always-keep-around/m-p/4844866#M393728</guid>
      <dc:creator>Duncan Edmonstone</dc:creator>
      <dc:date>2002-02-15T14:06:36Z</dc:date>
    </item>
    <item>
      <title>Re: favourite sysadmin scripts you always keep around....</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/favourite-sysadmin-scripts-you-always-keep-around/m-p/4844867#M393729</link>
      <description>I have two favorite scripts that I keep on all machines.  This one is user_kill&lt;BR /&gt;&lt;BR /&gt;It gets rid of those nasty users who just won't log off when you ask them to in order to do maintenance.  It does keep a few users that you don't accidently want to get rid of.&lt;BR /&gt;&lt;BR /&gt;Tracey</description>
      <pubDate>Fri, 15 Feb 2002 14:11:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/favourite-sysadmin-scripts-you-always-keep-around/m-p/4844867#M393729</guid>
      <dc:creator>Tracey</dc:creator>
      <dc:date>2002-02-15T14:11:20Z</dc:date>
    </item>
    <item>
      <title>Re: favourite sysadmin scripts you always keep around....</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/favourite-sysadmin-scripts-you-always-keep-around/m-p/4844868#M393730</link>
      <description>Here is my second one, it is idle_kill a C program.  It clears out your system those users have been idle for too darn long, you can also provide a list of users to ignore (wouldn't want to knock yourself off, eh?)&lt;BR /&gt;&lt;BR /&gt;The exception list is just a file with contents like:&lt;BR /&gt;&lt;BR /&gt;root&lt;BR /&gt;oracle&lt;BR /&gt;tracey&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Tracey&lt;BR /&gt;</description>
      <pubDate>Fri, 15 Feb 2002 14:15:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/favourite-sysadmin-scripts-you-always-keep-around/m-p/4844868#M393730</guid>
      <dc:creator>Tracey</dc:creator>
      <dc:date>2002-02-15T14:15:28Z</dc:date>
    </item>
    <item>
      <title>Re: favourite sysadmin scripts you always keep around....</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/favourite-sysadmin-scripts-you-always-keep-around/m-p/4844869#M393731</link>
      <description>Hi Bill&lt;BR /&gt;&lt;BR /&gt;A small script to ensure that tapes are never missed.&lt;BR /&gt;&lt;BR /&gt;I have it cronned to run on all servers at 16:00 hrs every day.&lt;BR /&gt;&lt;BR /&gt;Change the Email address to suit &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;-----------------cut here----------------&lt;BR /&gt;#!/bin/sh                                                          &lt;BR /&gt;#############################################                      &lt;BR /&gt;# Check for tape in drive                                          &lt;BR /&gt;# PJFC 2002                                                        &lt;BR /&gt;#############################################                      &lt;BR /&gt;# Check if tape is in Drive (set for correct dev file)             &lt;BR /&gt;if /usr/bin/mt -t /dev/rmt/0m rew 2&amp;gt;/dev/null ; then               &lt;BR /&gt;#############################################                      &lt;BR /&gt;echo "----------------------------" &amp;gt;&amp;gt;/tmp/tape-log                &lt;BR /&gt;date &amp;gt;&amp;gt; /tmp/tape-log                                              &lt;BR /&gt;echo "------     Tape in    ------" &amp;gt;&amp;gt;/tmp/tape-log                &lt;BR /&gt;else                                                               &lt;BR /&gt;#############################################                      &lt;BR /&gt;# Inform if no tape in drive                                       &lt;BR /&gt;echo "----------------------------" &amp;gt;&amp;gt;/tmp/tape-log                &lt;BR /&gt;date &amp;gt;&amp;gt; /tmp/tape-log                                              &lt;BR /&gt;echo "------ TAPE NOT LOADED -----" &amp;gt;&amp;gt;/tmp/tape-log                &lt;BR /&gt;mailx -s "Tape not mounted on N0" paula@avro.co.uk mailx -s "Tape not in on N0" helpdesk@avro.co.uk exit                                                               &lt;BR /&gt;fi                                                                 &lt;BR /&gt;-----------------cut here----------------&lt;BR /&gt;&lt;BR /&gt;The /tmp/tape-log keeps historical data and the /sysadmin/team just contains the words "Unix Support Team".&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Paula</description>
      <pubDate>Fri, 15 Feb 2002 14:17:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/favourite-sysadmin-scripts-you-always-keep-around/m-p/4844869#M393731</guid>
      <dc:creator>Paula J Frazer-Campbell</dc:creator>
      <dc:date>2002-02-15T14:17:39Z</dc:date>
    </item>
    <item>
      <title>Re: favourite sysadmin scripts you always keep around....</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/favourite-sysadmin-scripts-you-always-keep-around/m-p/4844870#M393732</link>
      <description>HI&lt;BR /&gt;Here is the SysInfo script.&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;BR /&gt;Prashant Deshpande.</description>
      <pubDate>Fri, 15 Feb 2002 14:46:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/favourite-sysadmin-scripts-you-always-keep-around/m-p/4844870#M393732</guid>
      <dc:creator>Deshpande Prashant</dc:creator>
      <dc:date>2002-02-15T14:46:03Z</dc:date>
    </item>
    <item>
      <title>Re: favourite sysadmin scripts you always keep around....</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/favourite-sysadmin-scripts-you-always-keep-around/m-p/4844871#M393733</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Here is a script for sending mail, with message body and attachment.&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Shiju</description>
      <pubDate>Fri, 15 Feb 2002 15:16:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/favourite-sysadmin-scripts-you-always-keep-around/m-p/4844871#M393733</guid>
      <dc:creator>Helen French</dc:creator>
      <dc:date>2002-02-15T15:16:15Z</dc:date>
    </item>
    <item>
      <title>Re: favourite sysadmin scripts you always keep around....</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/favourite-sysadmin-scripts-you-always-keep-around/m-p/4844872#M393734</link>
      <description>Hi Bill,&lt;BR /&gt;&lt;BR /&gt;Here is one to find the clock speed of the system.&lt;BR /&gt;&lt;BR /&gt;./mhz&lt;BR /&gt;&lt;BR /&gt;Regds&lt;BR /&gt;</description>
      <pubDate>Fri, 15 Feb 2002 15:23:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/favourite-sysadmin-scripts-you-always-keep-around/m-p/4844872#M393734</guid>
      <dc:creator>Sanjay_6</dc:creator>
      <dc:date>2002-02-15T15:23:27Z</dc:date>
    </item>
    <item>
      <title>Re: favourite sysadmin scripts you always keep around....</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/favourite-sysadmin-scripts-you-always-keep-around/m-p/4844873#M393735</link>
      <description>Here are two scripts that I love; first one uses cpio to copy from one system to another, retaining permissions and ownerships. Second one gives a really nice report on EVERYTHING you might want to know about a system.&lt;BR /&gt;&lt;BR /&gt;RD</description>
      <pubDate>Fri, 15 Feb 2002 16:18:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/favourite-sysadmin-scripts-you-always-keep-around/m-p/4844873#M393735</guid>
      <dc:creator>Richard Darling</dc:creator>
      <dc:date>2002-02-15T16:18:29Z</dc:date>
    </item>
    <item>
      <title>Re: favourite sysadmin scripts you always keep around....</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/favourite-sysadmin-scripts-you-always-keep-around/m-p/4844874#M393736</link>
      <description>I use this to centralize common admin tasks.  It runs on my admin server and executes a command on any of several preset server groups (specified by server.XXX files).&lt;BR /&gt;&lt;BR /&gt;# cat run&lt;BR /&gt;#!/bin/ksh&lt;BR /&gt;##############################################################################&lt;BR /&gt;#&lt;BR /&gt;#       THIS SCRIPT RUNS COMMANDS ON REMOTE SERVERS.  IT EXPECTS TWO&lt;BR /&gt;#               COMMAND LINE PARAMETERS:&lt;BR /&gt;#                       $1 SPECIFIES THE EXTENSION OF THE FILE CONTAINING SERVER&lt;BR /&gt; NAMES&lt;BR /&gt;#                       $2 CONTAINS THE COMMAND STRING TO RUN ON THE REMOTE SERV&lt;BR /&gt;ERS.&lt;BR /&gt;#&lt;BR /&gt;#       CREATED 04/05/00               Alan Riggs&lt;BR /&gt;#&lt;BR /&gt;##############################################################################&lt;BR /&gt;##############################################################################&lt;BR /&gt;#       ESTABLISH ENVIRONMENTAL VARIABLES&lt;BR /&gt;##############################################################################&lt;BR /&gt;FILE_BASE=/home/admin/server&lt;BR /&gt;EXTENSION=$1&lt;BR /&gt;COMMAND=$2&lt;BR /&gt;&lt;BR /&gt;##############################################################################&lt;BR /&gt;#       USAGE STATEMENT:  CHECK FOR EXACTLY TWO COMMAND LINE PARAMETERS&lt;BR /&gt;##############################################################################&lt;BR /&gt;if [ "$#" -ne 2 ]&lt;BR /&gt;then&lt;BR /&gt;        echo "&lt;BR /&gt;usage: run [file extension] [command string]\n&lt;BR /&gt;run will execute the command string on one or more remote servers.&lt;BR /&gt;The script expects a list of servers in $FILE_BASE.[file extension]&lt;BR /&gt;Remember to quote command strings of more than one line.\n "&lt;BR /&gt;        exit 1&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;##############################################################################&lt;BR /&gt;#       RUN THE COMMAND ON THE REMOTE SERVERS&lt;BR /&gt;##############################################################################&lt;BR /&gt;while read SERVER&lt;BR /&gt;do&lt;BR /&gt;        echo "$SERVER"&lt;BR /&gt;        remsh $SERVER -n "$COMMAND"&lt;BR /&gt;done &amp;lt; "$FILE_BASE"."$EXTENSION"</description>
      <pubDate>Fri, 15 Feb 2002 16:20:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/favourite-sysadmin-scripts-you-always-keep-around/m-p/4844874#M393736</guid>
      <dc:creator>Alan Riggs</dc:creator>
      <dc:date>2002-02-15T16:20:09Z</dc:date>
    </item>
  </channel>
</rss>

