<?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: script in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/3998706#M750044</link>
    <description>Hi Hari&lt;BR /&gt;It is difficult to understand your problem...&lt;BR /&gt;What is the problem with 'egrep' versus 'sed' ?&lt;BR /&gt; - grep/egrep is used to search for a pattern&lt;BR /&gt; - sed is used for search and change the pattern&lt;BR /&gt;What is it that you want to do?&lt;BR /&gt;&lt;BR /&gt;1) You want to list the filesystems on the root volume group&lt;BR /&gt;  lsvg -l rootvg&lt;BR /&gt;2) You want to skip&lt;BR /&gt; - boot, swap(paging), N/A filesystems&lt;BR /&gt; - and the filesystems /, /usr, /var, /tmp, /home and /opt&lt;BR /&gt;3) You want to do this on "more than 150 servers"&lt;BR /&gt;&lt;BR /&gt;Questions:&lt;BR /&gt;a) Do you have limitations on which commands is available?&lt;BR /&gt;ref. "i need sed instead of egrep"&lt;BR /&gt;b) Do you need to change the output?&lt;BR /&gt;ref. "i need sed instead of egrep"&lt;BR /&gt;- if so... then into what?&lt;BR /&gt;c)How should the output format be?&lt;BR /&gt;example:&lt;BR /&gt;  /legato&lt;BR /&gt;  /users&lt;BR /&gt;  /backup&lt;BR /&gt;  /usr/esm&lt;BR /&gt;or&lt;BR /&gt;  /legato, /users, /backup, /usr/esm&lt;BR /&gt;&lt;BR /&gt;d) Do you want to remotely execute your commands?&lt;BR /&gt;... or why do you mention 150 servers?&lt;BR /&gt;e) What kind of backup program are you using?&lt;BR /&gt;standard unix like dump/rdump, tar or similare or a separate backup software.&lt;BR /&gt;You seam to have Legato installed so I can't see your problem.&lt;BR /&gt;&lt;BR /&gt;hmmm... it's hard to see what we should help you with.&lt;BR /&gt;&lt;BR /&gt;P.S.&lt;BR /&gt;It might be difficult to get help/attention if you don't assign points (see URL)&lt;BR /&gt;&lt;BR /&gt;/2r</description>
    <pubDate>Mon, 21 May 2007 11:11:41 GMT</pubDate>
    <dc:creator>Tor-Arne Nostdal</dc:creator>
    <dc:date>2007-05-21T11:11:41Z</dc:date>
    <item>
      <title>script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/3998694#M750032</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Below is my file-system output I want to know how find and replace from /osxfiles to /osx using sed editor.&lt;BR /&gt;&lt;BR /&gt;Filesystem 1k-blocks Used   Available Used% Mounted on&lt;BR /&gt;/dev/disk9      3121344   1314624    1806720   42%    /osxfiles</description>
      <pubDate>Sun, 13 May 2007 01:25:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/3998694#M750032</guid>
      <dc:creator>Hari Prasad S.R</dc:creator>
      <dc:date>2007-05-13T01:25:15Z</dc:date>
    </item>
    <item>
      <title>Re: script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/3998695#M750033</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I do not know whether I got your question correctly. But from the first look, I think you want as below:&lt;BR /&gt;&lt;BR /&gt;bdf| sed 's/osxfiles/osx/'&lt;BR /&gt;</description>
      <pubDate>Sun, 13 May 2007 01:49:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/3998695#M750033</guid>
      <dc:creator>Rasheed Tamton</dc:creator>
      <dc:date>2007-05-13T01:49:52Z</dc:date>
    </item>
    <item>
      <title>Re: script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/3998696#M750034</link>
      <description>i want to kknow how exactly we can define /osxfiles [/ needs to be included],&lt;BR /&gt;as i have one more like &lt;BR /&gt;&lt;BR /&gt;/sap1/sap to /usr/sap&lt;BR /&gt;&lt;BR /&gt;but i have some of the file systems like /sap1/opt , /sap1/usr.&lt;BR /&gt;&lt;BR /&gt;if i use that other file-systems will also get effected. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;Hari</description>
      <pubDate>Sun, 13 May 2007 21:01:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/3998696#M750034</guid>
      <dc:creator>Hari Prasad S.R</dc:creator>
      <dc:date>2007-05-13T21:01:38Z</dc:date>
    </item>
    <item>
      <title>Re: script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/3998697#M750035</link>
      <description>Not sure I understand but it would help if you could clarify by giving an example.&lt;BR /&gt;&lt;BR /&gt;~thanks</description>
      <pubDate>Sun, 13 May 2007 21:21:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/3998697#M750035</guid>
      <dc:creator>Sandman!</dc:creator>
      <dc:date>2007-05-13T21:21:28Z</dc:date>
    </item>
    <item>
      <title>Re: script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/3998698#M750036</link>
      <description>Just give example:&lt;BR /&gt;&lt;BR /&gt;Like&lt;BR /&gt;present status:&lt;BR /&gt;osxfile&lt;BR /&gt;sap&lt;BR /&gt;&lt;BR /&gt;I need as:&lt;BR /&gt;osx&lt;BR /&gt;usr/sap, etc.&lt;BR /&gt;&lt;BR /&gt;Unless you let us know exactly what you want; it will delay you get a correct solution.&lt;BR /&gt;&lt;BR /&gt;Regards.</description>
      <pubDate>Mon, 14 May 2007 00:11:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/3998698#M750036</guid>
      <dc:creator>Rasheed Tamton</dc:creator>
      <dc:date>2007-05-14T00:11:19Z</dc:date>
    </item>
    <item>
      <title>Re: script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/3998699#M750037</link>
      <description>Hard to see what you're actually up to. This is why the answers is vague. A more direct question could give more accurate answer.&lt;BR /&gt;&lt;BR /&gt;Here's some general comments, but if you're not confident with what you're doing you should be careful.&lt;BR /&gt;-------&lt;BR /&gt;&lt;BR /&gt;You have a mountpoint named /osxfiles&lt;BR /&gt;&lt;BR /&gt;You should not try to change the name of this directory as long as the filesystem is mounted.&lt;BR /&gt;&lt;BR /&gt;Create a new directory named osx&lt;BR /&gt;Make sure there is no process using the /osxfiles filesystem.&lt;BR /&gt;Unmount the filesystem currently mounted on /osxfiles. Then mount it on the new mountpoint(directory) named osx.&lt;BR /&gt;&lt;BR /&gt;mkdir /osx&lt;BR /&gt;umount /osxfiles&lt;BR /&gt;cp -p /etc/fstab /etc/fstab.old&lt;BR /&gt;cat /etc/fstab | sed 's/osxfiles/osx/g' &amp;gt; /etc/fstab.new&lt;BR /&gt;# Inspect the /etc/fstab.new&lt;BR /&gt;more /etc/fstab.new&lt;BR /&gt;# If file is ok, make it the active one&lt;BR /&gt;cat /etc/fstab.new &amp;gt; /etc/fstab&lt;BR /&gt;mount /osx&lt;BR /&gt;&lt;BR /&gt;Find files with string 'osxfiles':&lt;BR /&gt;find / -type f -print | grep -l '/osxfiles'&lt;BR /&gt;NB! This will search through ALL files in your system and report the filename on files containg string '/osxfiles'&lt;BR /&gt;&lt;BR /&gt;To change with sed the string osxfiles into osx in a file you do it like this:&lt;BR /&gt;cat myfile | sed 's/osxfiles/osx/g' | &amp;gt; /tmp/myfile.tmp&lt;BR /&gt;cat /tmp/myfile.tmp &amp;gt; myfile&lt;BR /&gt;&lt;BR /&gt;Search and replace can also be done in 'vi' similarily as with sed.&lt;BR /&gt;example:&lt;BR /&gt;vi myfile&lt;BR /&gt;  :s/osxfiles/osx/g&lt;BR /&gt;  :wq&lt;BR /&gt;&lt;BR /&gt;/Tor-Arne</description>
      <pubDate>Mon, 14 May 2007 07:33:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/3998699#M750037</guid>
      <dc:creator>Tor-Arne Nostdal</dc:creator>
      <dc:date>2007-05-14T07:33:51Z</dc:date>
    </item>
    <item>
      <title>Re: script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/3998700#M750038</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;For each mountpoint you wish to migrate, first create a directory to contain the filesystem, then modify the appropriate entries in /etc/fstab.  Then 'umount &lt;FS&gt;', and 'mount -a' to mount all filesystems.  Alternatively, if you wish to manually mount the filesystems, make sure you mount parent filesytems before their children (e.g. /var before /var/tmp).&lt;BR /&gt;&lt;BR /&gt;PCS&lt;/FS&gt;</description>
      <pubDate>Mon, 14 May 2007 07:50:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/3998700#M750038</guid>
      <dc:creator>spex</dc:creator>
      <dc:date>2007-05-14T07:50:51Z</dc:date>
    </item>
    <item>
      <title>Re: script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/3998701#M750039</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Below is the output of the dbf i just wanted fire backup from this server excluding /,/stand and /tmp. I wanted to do this only with sed editor bcoz same script i will &lt;BR /&gt;put in some 150 servers and the problem is if i give bdf command it will show many &lt;BR /&gt;file-systems and backup should happen for all the file-systems excluding / /stand and /tmp.&lt;BR /&gt;&lt;BR /&gt;$ bdf&lt;BR /&gt;Filesystem          kbytes    used   avail %used Mounted on&lt;BR /&gt;/dev/vg00/lvol3    2097152 1494496  598520   71% /&lt;BR /&gt;/dev/vg00/lvol1     295024   73200  192320   28% /stand&lt;BR /&gt;/dev/vg00/lvol8    2826240 1918640  901648   68% /var&lt;BR /&gt;/dev/vg00/lvol7    1056768 1003352   53144   95% /usr&lt;BR /&gt;/dev/vg00/lvol4      77824   34904   42920   45% /tmp&lt;BR /&gt;/dev/vg01/lvol1    18530304 16975068 1530996   92% /oracle&lt;BR /&gt;/dev/vg00/lvol6    8245248 5311432 2910928   65% /opt&lt;BR /&gt;/dev/vg00/lvol5      20480   10432   10024   51% /home&lt;BR /&gt;&lt;BR /&gt;so can any one tell me how to exclude these file-systems.&lt;BR /&gt;&lt;BR /&gt;currently i have arrived only till. like below&lt;BR /&gt;&lt;BR /&gt;$ bdf | awk '{print $6}'&lt;BR /&gt;Mounted&lt;BR /&gt;/&lt;BR /&gt;/stand&lt;BR /&gt;/var&lt;BR /&gt;/usr&lt;BR /&gt;/tmp&lt;BR /&gt;/oracle&lt;BR /&gt;/opt&lt;BR /&gt;/home</description>
      <pubDate>Mon, 14 May 2007 23:53:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/3998701#M750039</guid>
      <dc:creator>Hari Prasad S.R</dc:creator>
      <dc:date>2007-05-14T23:53:20Z</dc:date>
    </item>
    <item>
      <title>Re: script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/3998702#M750040</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;That means you want to exclude /stand and /tmp from the bdf output - possibly I assume that you are trying a fbackup with a graph file.&lt;BR /&gt;&lt;BR /&gt;bdf|sed 1d| awk '{print $6}'|grep -Ev 'stand|tmp'&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 15 May 2007 00:30:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/3998702#M750040</guid>
      <dc:creator>Rasheed Tamton</dc:creator>
      <dc:date>2007-05-15T00:30:42Z</dc:date>
    </item>
    <item>
      <title>Re: script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/3998703#M750041</link>
      <description>Hi Hari,&lt;BR /&gt;&lt;BR /&gt;If you want to use only awk; then:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;bdf|sed 1d| awk ' $6 !~ /(stand|tmp)/  {print $6}'&lt;BR /&gt;&lt;BR /&gt;Rgds,&lt;BR /&gt;Rasheed Tamton.</description>
      <pubDate>Tue, 15 May 2007 00:42:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/3998703#M750041</guid>
      <dc:creator>Rasheed Tamton</dc:creator>
      <dc:date>2007-05-15T00:42:12Z</dc:date>
    </item>
    <item>
      <title>Re: script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/3998704#M750042</link>
      <description>Creating a list of FS's to know what to backup...&lt;BR /&gt;&lt;BR /&gt;Remember that as a sysadmin one of your 1'st priorities should be to have a good and reliable backup procedure...&lt;BR /&gt;If you are uncomfortable with scripting you should be careful to put to much logic into such. KISS - Keep It Simple Stupid.&lt;BR /&gt;It is better with a good manual procedure than a unreliable automatic procedure.&lt;BR /&gt;&lt;BR /&gt;You should be carefule with using the bdf output as a list for filesystems to do backup of.&lt;BR /&gt;&lt;BR /&gt;The list might be wrong if you have long path/filenames and/or if you have nfs mounted filesystems.&lt;BR /&gt;-----&lt;BR /&gt;An alternative to using 'bdf' is to use 'df'&lt;BR /&gt;See 'man df' and options like '-l' &lt;BR /&gt;This command is also more portable (to f.ex. Linux)&lt;BR /&gt;-----&lt;BR /&gt;Pls. read this link also&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/helptips.do?#33" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/helptips.do?#33&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;/Tor-Arne</description>
      <pubDate>Fri, 18 May 2007 14:02:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/3998704#M750042</guid>
      <dc:creator>Tor-Arne Nostdal</dc:creator>
      <dc:date>2007-05-18T14:02:02Z</dc:date>
    </item>
    <item>
      <title>Re: script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/3998705#M750043</link>
      <description>Hi,&lt;BR /&gt;Sorry for the delay.&lt;BR /&gt;&lt;BR /&gt;Actually i am working in aix environment from i need to take backup of rootdump of more than some 150 servers. Below is the output of the rootvg.&lt;BR /&gt;&lt;BR /&gt;# lsvg -l rootvg &lt;BR /&gt;rootvg: &lt;BR /&gt;LV NAME             TYPE       LPs   PPs   PVs  LV STATE      MOUNT POINT &lt;BR /&gt;hd5                 boot       1     2     2    closed/syncd  N/A &lt;BR /&gt;hd6                 paging     8     16    2    open/syncd    N/A &lt;BR /&gt;hd8                 jfs2log    1     2     2    open/syncd    N/A &lt;BR /&gt;hd4                 jfs2       5     10    2    open/syncd    / &lt;BR /&gt;hd2                 jfs2       36    72    2    open/syncd    /usr &lt;BR /&gt;hd9var              jfs2       16    32    2    open/syncd    /var &lt;BR /&gt;hd3                 jfs2       16    32    2    open/syncd    /tmp &lt;BR /&gt;hd1                 jfs2       1     2     2    open/syncd    /home &lt;BR /&gt;hd10opt             jfs2       1     2     2    open/syncd    /opt &lt;BR /&gt;legato_lv           jfs2       160   320   2    open/syncd    /legato &lt;BR /&gt;paging00            paging     32    32    1    open/syncd    N/A &lt;BR /&gt;paging01            paging     32    32    1    open/syncd    N/A &lt;BR /&gt;user_lv             jfs2       6     6     1    closed/syncd  /users &lt;BR /&gt;backup_lv           jfs2       160   160   1    open/syncd    /backup &lt;BR /&gt;esm_lv              jfs2       4     8     2    open/syncd    /usr/esm &lt;BR /&gt;&lt;BR /&gt;i need to display those file-system except below&lt;BR /&gt; /, /var,/usr,/tmp,/opt and /home &lt;BR /&gt;&lt;BR /&gt;i had comeup with below script.&lt;BR /&gt;&lt;BR /&gt;lsvg -l rootvg | awk '{print $7}' | egrep -v "N/A|L" | sed '/^$/d' | egrep -vx "/|/usr|/var|/tmp|/home|/opt" &lt;BR /&gt;&lt;BR /&gt;output will be displayed as below.&lt;BR /&gt;&lt;BR /&gt;/legato , /users, /backup and /usr/esm&lt;BR /&gt;&lt;BR /&gt;but i need sed script instead of egrep. can anyone helpme on this.&lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;hari&lt;BR /&gt;</description>
      <pubDate>Mon, 21 May 2007 10:02:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/3998705#M750043</guid>
      <dc:creator>Hari Prasad S.R</dc:creator>
      <dc:date>2007-05-21T10:02:14Z</dc:date>
    </item>
    <item>
      <title>Re: script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/3998706#M750044</link>
      <description>Hi Hari&lt;BR /&gt;It is difficult to understand your problem...&lt;BR /&gt;What is the problem with 'egrep' versus 'sed' ?&lt;BR /&gt; - grep/egrep is used to search for a pattern&lt;BR /&gt; - sed is used for search and change the pattern&lt;BR /&gt;What is it that you want to do?&lt;BR /&gt;&lt;BR /&gt;1) You want to list the filesystems on the root volume group&lt;BR /&gt;  lsvg -l rootvg&lt;BR /&gt;2) You want to skip&lt;BR /&gt; - boot, swap(paging), N/A filesystems&lt;BR /&gt; - and the filesystems /, /usr, /var, /tmp, /home and /opt&lt;BR /&gt;3) You want to do this on "more than 150 servers"&lt;BR /&gt;&lt;BR /&gt;Questions:&lt;BR /&gt;a) Do you have limitations on which commands is available?&lt;BR /&gt;ref. "i need sed instead of egrep"&lt;BR /&gt;b) Do you need to change the output?&lt;BR /&gt;ref. "i need sed instead of egrep"&lt;BR /&gt;- if so... then into what?&lt;BR /&gt;c)How should the output format be?&lt;BR /&gt;example:&lt;BR /&gt;  /legato&lt;BR /&gt;  /users&lt;BR /&gt;  /backup&lt;BR /&gt;  /usr/esm&lt;BR /&gt;or&lt;BR /&gt;  /legato, /users, /backup, /usr/esm&lt;BR /&gt;&lt;BR /&gt;d) Do you want to remotely execute your commands?&lt;BR /&gt;... or why do you mention 150 servers?&lt;BR /&gt;e) What kind of backup program are you using?&lt;BR /&gt;standard unix like dump/rdump, tar or similare or a separate backup software.&lt;BR /&gt;You seam to have Legato installed so I can't see your problem.&lt;BR /&gt;&lt;BR /&gt;hmmm... it's hard to see what we should help you with.&lt;BR /&gt;&lt;BR /&gt;P.S.&lt;BR /&gt;It might be difficult to get help/attention if you don't assign points (see URL)&lt;BR /&gt;&lt;BR /&gt;/2r</description>
      <pubDate>Mon, 21 May 2007 11:11:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/3998706#M750044</guid>
      <dc:creator>Tor-Arne Nostdal</dc:creator>
      <dc:date>2007-05-21T11:11:41Z</dc:date>
    </item>
    <item>
      <title>Re: script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/3998707#M750045</link>
      <description>&amp;gt;but i need sed script instead of egrep.&lt;BR /&gt;&lt;BR /&gt;If your problem is that you don't have egrep, you can replace it by grep with multiple -e instead.  Use:&lt;BR /&gt;$ grep -v -e N/A -e L&lt;BR /&gt;&lt;BR /&gt;(Note the "L" above will exclude any file system with "L", do you really want that?)&lt;BR /&gt;&lt;BR /&gt;&amp;gt;lsvg -l rootvg | awk '{print $7}' | egrep -v "N/A|L" | sed '/^$/d' | egrep -vx "/|/usr|/var|/tmp|/home|/opt"&lt;BR /&gt;&lt;BR /&gt;And replace the last egrep with:&lt;BR /&gt;$ grep -vx -e / -e /usr -e /var -e /tmp -e /home -e /opt&lt;BR /&gt;&lt;BR /&gt;And as Tor-Arne asks, there are other issues with what you want with the exact output format.&lt;BR /&gt;</description>
      <pubDate>Mon, 21 May 2007 12:56:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/3998707#M750045</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2007-05-21T12:56:11Z</dc:date>
    </item>
    <item>
      <title>Re: script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/3998708#M750046</link>
      <description>&lt;!--!*#--&gt;imho how about doing it all within a single awk construct w/o sed or (e)grep i.e.&lt;BR /&gt;&lt;BR /&gt;lsvg -l rootvg | awk '&lt;BR /&gt;  NR&amp;gt;2 &amp;amp;&amp;amp; $NF!="N/A" &amp;amp;&amp;amp; $NF!="/" &amp;amp;&amp;amp;&lt;BR /&gt;  $NF!="/var" &amp;amp;&amp;amp; $NF!="/opt" &amp;amp;&amp;amp;&lt;BR /&gt;  $NF!="/usr" &amp;amp;&amp;amp; $NF!="/tmp" &amp;amp;&amp;amp;&lt;BR /&gt;  $NF!="/home" {print $NF}'</description>
      <pubDate>Mon, 21 May 2007 13:45:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/3998708#M750046</guid>
      <dc:creator>Sandman!</dc:creator>
      <dc:date>2007-05-21T13:45:08Z</dc:date>
    </item>
    <item>
      <title>Re: script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/3998709#M750047</link>
      <description>Nice awk construct Sandman :-). I expected a such one to arrive, but I don't believe this is Hari's only problem...&lt;BR /&gt;&lt;BR /&gt;1'st posting: find and replace output from 'osxfiles' to 'osx'&lt;BR /&gt;- if you want to backup the /osxfiles why do you want to change the output?&lt;BR /&gt;&lt;BR /&gt;2'nd posting: hmm...&lt;BR /&gt;   /sap1/sap to /usr/sap&lt;BR /&gt;does he really want to substitute?&lt;BR /&gt;or does he want to find it?&lt;BR /&gt;&lt;BR /&gt;3'rd posting: Output from bdf excluding /, /tmp and /stand&lt;BR /&gt;&lt;BR /&gt;4'th posting: "need sed script"&lt;BR /&gt;But in this posting it is mentioned a bit more about the intention.&lt;BR /&gt; "need to take backup of rootdump"&lt;BR /&gt;this explains also the 'lsvg -l rootvg' command.&lt;BR /&gt;Hari has also skipped using the bdf, but here there is more filesystems excluded (/usr, /var, /home)&lt;BR /&gt;&lt;BR /&gt;If I should pick a guess I would say that Hari need (Hari - please confirm if this is right): "A command to output the local filesystems defined on rootvg which he need to backup"&lt;BR /&gt;&lt;BR /&gt;This is all filesystems except:&lt;BR /&gt;  boot, swap(paging), N/A filesystems&lt;BR /&gt;  and the filesystems /, /usr, /var, /tmp, /home and /opt&lt;BR /&gt;&lt;BR /&gt;So far the command 'lsvg -l rootvg' combined with Sandman's awk should be ok.&lt;BR /&gt;&lt;BR /&gt;But, should the filesystems be listed horisontal or vertical, with or without comma?&lt;BR /&gt;Is this the solution, perhaps only with some small adjustment on output/layout?&lt;BR /&gt;&lt;BR /&gt;-------------&lt;BR /&gt;A more complicated Scenario:&lt;BR /&gt;Or could the intention be to list/backup all "local filesystems" defined on internal disks (i.e. not filesystems defined on SAN). And to complicate it... that there is created more than 1 volume group and with no specific naming convention.&lt;BR /&gt;Server    Local-VG           SAN-VG&lt;BR /&gt;Host1     rootvg &lt;BR /&gt;Host2     rootvg, vg01       vgsan01&lt;BR /&gt;Host3     vgroot             vg01, vg02&lt;BR /&gt;With such a scenario Hari would need a bit more than an awk/grep/sed...&lt;BR /&gt;&lt;BR /&gt;Hari - please try to clearify what you need.&lt;BR /&gt;&lt;BR /&gt;/2r&lt;BR /&gt;</description>
      <pubDate>Mon, 21 May 2007 15:13:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/3998709#M750047</guid>
      <dc:creator>Tor-Arne Nostdal</dc:creator>
      <dc:date>2007-05-21T15:13:07Z</dc:date>
    </item>
    <item>
      <title>Re: script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/3998710#M750048</link>
      <description>&amp;gt;Tor-Arne: should the filesystems be listed horisontal or vertical, with or without comma?&lt;BR /&gt;&lt;BR /&gt;Horizontal vs vertical can be done by a simple:&lt;BR /&gt;$ ... $(&amp;lt; file )&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 21 May 2007 17:25:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/3998710#M750048</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2007-05-21T17:25:23Z</dc:date>
    </item>
    <item>
      <title>Re: script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/3998711#M750049</link>
      <description>Hi Har,&lt;BR /&gt;&lt;BR /&gt;If your LV Name ($1) is consistent across the systems, you can do select the pattern on it as below:&lt;BR /&gt;&lt;BR /&gt;lsvg -l rootvg |awk ' $1 ~ /(legato|user|backup|esm)/ {print $NF}'&lt;BR /&gt;&lt;BR /&gt;or more specific&lt;BR /&gt;lsvg -l rootvg |awk ' $1 ~ /(legato_lv|user_lv|backup_lv|esm_lv)/ {print $NF}'&lt;BR /&gt;&lt;BR /&gt;If you want to get all in one line - use tr&lt;BR /&gt;&lt;BR /&gt;lsvg -l rootvg |awk ' $1 ~ /(legato_lv|user_lv|backup_lv|esm_lv)/ {print $NF}'|tr "\n" " "&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Rasheed Tamton.</description>
      <pubDate>Tue, 22 May 2007 00:41:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/3998711#M750049</guid>
      <dc:creator>Rasheed Tamton</dc:creator>
      <dc:date>2007-05-22T00:41:12Z</dc:date>
    </item>
  </channel>
</rss>

