<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-19755180</id><updated>2011-04-22T04:26:34.388+01:00</updated><title type='text'>Technotes</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://ps258.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/19755180/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://ps258.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Peter</name><uri>http://www.blogger.com/profile/12481014669799278537</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>52</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-19755180.post-6394714817112571307</id><published>2008-08-25T10:45:00.000+01:00</published><updated>2008-08-25T10:47:08.970+01:00</updated><title type='text'>Using linux as a serial console</title><content type='html'>&lt;pre&gt;[pstubbs@burpless ~]$ sudo cat /proc/tty/driver/serial&lt;br /&gt;serinfo:1.0 driver revision:&lt;br /&gt;0: uart:16550A port:000003F8 irq:4 tx:0 rx:0 CTS|DSR|CD&lt;br /&gt;1: uart:unknown port:000002F8 irq:3&lt;br /&gt;2: uart:unknown port:000003E8 irq:4&lt;br /&gt;3: uart:unknown port:000002E8 irq:3&lt;br /&gt;[pstubbs@burpless ~]$ cat /dev/ttyS0&lt;br /&gt;cat: /dev/ttyS0: Permission denied&lt;br /&gt;[pstubbs@burpless ~]$ sudo cat /dev/ttyS0&lt;br /&gt;&lt;br /&gt;[pstubbs@burpless ~]$ sudo cu -l ttyS0 -9600&lt;br /&gt;Connected.&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/19755180-6394714817112571307?l=ps258.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ps258.blogspot.com/feeds/6394714817112571307/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=19755180&amp;postID=6394714817112571307' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/19755180/posts/default/6394714817112571307'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/19755180/posts/default/6394714817112571307'/><link rel='alternate' type='text/html' href='http://ps258.blogspot.com/2008/08/using-linux-as-serial-console.html' title='Using linux as a serial console'/><author><name>Peter</name><uri>http://www.blogger.com/profile/12481014669799278537</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-19755180.post-4070135404822846266</id><published>2008-07-11T15:50:00.002+01:00</published><updated>2008-07-11T15:52:20.486+01:00</updated><title type='text'>find the EBN names for EMC devices in a device group</title><content type='html'>This script will list all the EBN (Veritas enclosure based names) for the disks in the named EMC device group&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;#!/usr/bin/ksh&lt;br /&gt;&lt;br /&gt;PATH=/usr/sbin:/usr/bin:/usr/ccs/bin:/usr/ucb:/usr/proc/bin:/usr/platform/SUNW,Sun-Fire-15000/sbin:/etc/vx/bin:/usr/local/bin:/usr/local/sbin:/usr/storapi/bin&lt;br /&gt;&lt;br /&gt;# list the character devices in the given EMC device groups&lt;br /&gt;[[ $# -lt 1 ]] &amp;&amp; echo "[FATAL]Must give one or more EMC device groups" &amp;&amp; exit 1&lt;br /&gt;[[ $(uname -s) != 'SunOS' ]] &amp;&amp; echo "[FATAL]Only works on Solaris" &amp;&amp; exit 1&lt;br /&gt;&lt;br /&gt;# show the emc device names that correspond to each of the devices in an EMC device group&lt;br /&gt;dev_groups="$@"&lt;br /&gt;# work through the given EMC device groups&lt;br /&gt;for _dev_group in $dev_groups&lt;br /&gt;do&lt;br /&gt;    # save the Symmetrix ID of the device group so that we get the right disks later&lt;br /&gt;    _sym_enc_id=$(symdg show $_dev_group | grep 'Symmetrix ID' | awk '{print $NF}')&lt;br /&gt;    for _sym_dev in $(symdg show $_dev_group | grep 'DEV[0-9]' | awk '{print $3}')&lt;br /&gt;    do&lt;br /&gt;        # find the disks with both device id and Symmetrix ID that match.&lt;br /&gt;        for _rdev in $(syminq -symmids | nawk -v sd=$_sym_dev -v se=$_sym_enc_id '{if (NF&gt;3 &amp;&amp; match($(NF-1), "[0-9A-E][0-9A-E][0-9A-E]"sd"[0-9A-E][0-9A-E][0-9A-E]") &amp;&amp; $(NF-3) == se ) {print $1; exit}}')&lt;br /&gt;        do&lt;br /&gt;            _base_dev=${_rdev##*/} # basename $_rdev&lt;br /&gt;            _emc_path=$(vxdisk path | grep $_base_dev | awk '{print $2}')&lt;br /&gt;            echo $_dev_group $_sym_enc_id $_sym_dev $_emc_path&lt;br /&gt;        done&lt;br /&gt;    done&lt;br /&gt;done&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/19755180-4070135404822846266?l=ps258.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ps258.blogspot.com/feeds/4070135404822846266/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=19755180&amp;postID=4070135404822846266' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/19755180/posts/default/4070135404822846266'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/19755180/posts/default/4070135404822846266'/><link rel='alternate' type='text/html' href='http://ps258.blogspot.com/2008/07/find-ebn-names-for-emc-devices-in.html' title='find the EBN names for EMC devices in a device group'/><author><name>Peter</name><uri>http://www.blogger.com/profile/12481014669799278537</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-19755180.post-5210993168854743919</id><published>2008-07-11T15:19:00.002+01:00</published><updated>2008-07-11T15:24:50.645+01:00</updated><title type='text'>How to sleep until an hour has elapsed.</title><content type='html'>Let say you want to run a script and then run another one an hour after the current one &lt;em&gt;started&lt;/em&gt;&lt;br /&gt;# in the first script&lt;br /&gt;# save the current time&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;awk 'BEGIN { srand(); printf("%d\n", srand()+3610)}' &gt; /tmp/start_time&lt;br /&gt;&lt;/pre&gt;&lt;pre&gt; &lt;/pre&gt;&lt;br /&gt;# in the second script&lt;br /&gt;# sleep until the rest of the hour has passed.&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;ONE_HOUR_LATER=$(cat /tmp/lstart_time)&lt;br /&gt;SLEEP_TIME=$(awk -v ohl=$ONE_HOUR_LATER 'BEGIN { srand(); printf("%d\n", ohl-srand())}')&lt;br /&gt;sleep $SLEEP_TIME&lt;br /&gt;&lt;/pre&gt;&lt;pre&gt; &lt;/pre&gt;&lt;br /&gt;The trick is that srand will return the seconds since the epoch on it's first call. Yes it's in the man page, but on solaris it seems to be the second call. Beware!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/19755180-5210993168854743919?l=ps258.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ps258.blogspot.com/feeds/5210993168854743919/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=19755180&amp;postID=5210993168854743919' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/19755180/posts/default/5210993168854743919'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/19755180/posts/default/5210993168854743919'/><link rel='alternate' type='text/html' href='http://ps258.blogspot.com/2008/07/how-to-sleep-until-hour-has-elapsed.html' title='How to sleep until an hour has elapsed.'/><author><name>Peter</name><uri>http://www.blogger.com/profile/12481014669799278537</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-19755180.post-3354279977681504653</id><published>2008-07-09T11:34:00.002+01:00</published><updated>2008-07-09T11:37:31.904+01:00</updated><title type='text'>Who's logged on when 'w' or 'who' won't work</title><content type='html'>Sometime you can't use 'w' or 'who' to see who's logged on. Some dodgy tools don't update 'wtmp' when they spawn a shell for a connecting user. Opsware is such a tool. In such cases you need to find processes with controlling terminals to see who's logged on&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;HPUX &amp; Solaris&lt;/li&gt;&lt;/ul&gt;&lt;pre&gt;ps -ef | egrep 'pts/[0-9a-z]' | grep -v $$&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;AIX (less than perfect, but a start)&lt;/li&gt;&lt;/ul&gt;&lt;pre&gt;ps -efo pid,ppid,user,tty,args | awk '$4!="-" {print}' grep -v $$&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;I have not idea how to communicate with them once you find them since wall won't work :~(&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/19755180-3354279977681504653?l=ps258.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ps258.blogspot.com/feeds/3354279977681504653/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=19755180&amp;postID=3354279977681504653' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/19755180/posts/default/3354279977681504653'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/19755180/posts/default/3354279977681504653'/><link rel='alternate' type='text/html' href='http://ps258.blogspot.com/2008/07/whos-logged-on-when-w-or-who-wont-work.html' title='Who&apos;s logged on when &apos;w&apos; or &apos;who&apos; won&apos;t work'/><author><name>Peter</name><uri>http://www.blogger.com/profile/12481014669799278537</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-19755180.post-7801765936090804590</id><published>2008-06-10T13:44:00.005+01:00</published><updated>2008-07-09T11:44:57.211+01:00</updated><title type='text'>Using korn shell functions with xargs</title><content type='html'>It's not easy to call fuctions with xargs. Even when they're exported they can't be invoked by xargs.  But there's a way using eval like this.&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;#!/bin/ksh&lt;br /&gt;function myecho_function&lt;br /&gt;{&lt;br /&gt; echo In myecho_function&lt;br /&gt; echo $@&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;OLDIFS=$IFS&lt;br /&gt;IFS='&lt;br /&gt;'&lt;br /&gt;&lt;br /&gt;for line in $(find ~ -type f -print | xargs echo myecho_function)&lt;br /&gt;do&lt;br /&gt; # this will call the function the minumum number times&lt;br /&gt; eval $line&lt;br /&gt;done&lt;br /&gt;&lt;br /&gt;IFS=$OLDIFS&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/19755180-7801765936090804590?l=ps258.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ps258.blogspot.com/feeds/7801765936090804590/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=19755180&amp;postID=7801765936090804590' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/19755180/posts/default/7801765936090804590'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/19755180/posts/default/7801765936090804590'/><link rel='alternate' type='text/html' href='http://ps258.blogspot.com/2008/06/using-korn-shell-functions-with-xargs.html' title='Using korn shell functions with xargs'/><author><name>Peter</name><uri>http://www.blogger.com/profile/12481014669799278537</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-19755180.post-115884485603110837</id><published>2006-09-21T14:20:00.000+01:00</published><updated>2006-09-21T14:20:56.033+01:00</updated><title type='text'>HP/UX kernel building</title><content type='html'>Kernel building on UX 10.x&lt;br /&gt;&lt;ol&gt;&lt;br /&gt;&lt;li&gt;cd /stand/build&lt;/li&gt;&lt;br /&gt;&lt;li&gt;Create a new system file from the running kernel. &lt;p&gt;&lt;tt&gt;/usr/lbin/sysadm/system_prep -s /stand/build/system&lt;/tt&gt;&lt;/p&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;Edit the kernel with the planned changes. &lt;p&gt;&lt;tt&gt;vi /stand/build/system&lt;/tt&gt;&lt;/p&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;Build the new kernel. &lt;p&gt;&lt;tt&gt;/usr/sbin/mk_kernel -s /stand/build/system&lt;/tt&gt;&lt;/p&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;Copy the old system and vmunix files so if anything goes wrong, the system can be booted from the old kernel.&lt;pre&gt;cp /stand/system /stand/system.prev&lt;br /&gt;cp /stand/build/system /stand/system&lt;br /&gt;cp /stand/vmunix /stand/vmunix.prev&lt;br /&gt;mv /stand/build/vmunix_test /stand/vmunix&lt;/pre&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;Reboot the system from the new kernel. &lt;p&gt;&lt;tt&gt;shutdown -r&lt;/tt&gt;&lt;/p&gt;&lt;/li&gt;&lt;br /&gt;&lt;/ol&gt;&lt;p&gt;&lt;br /&gt;Kernel building on UX 11.xx&lt;br /&gt;&lt;ol&gt;&lt;br /&gt;&lt;li&gt;cd /stand/build&lt;/li&gt;&lt;br /&gt;&lt;li&gt;Create a new system file from the running kernel. &lt;p&gt;&lt;tt&gt;/usr/lbin/sysadm/system_prep -s /stand/build/system&lt;/tt&gt;&lt;/p&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;Edit the kernel with the planned changes. &lt;p&gt;&lt;tt&gt;vi /stand/build/system&lt;/tt&gt;&lt;/p&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;Build the new kernel. &lt;p&gt;&lt;tt&gt;/usr/sbin/mk_kernel -s /stand/build/system&lt;/tt&gt;&lt;/p&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;Copy the old system and vmunix files so if anything goes wrong, the system can be booted from the old kernel.&lt;pre&gt;cp /stand/system /stand/system.prev&lt;br /&gt;cp /stand/vmunix /stand/vmunix.prev&lt;br /&gt;rm -rf /stand/dlkm.vmunix.prev&lt;br /&gt;cp -R /stand/dlkm /stand/dlkm.vmunix.prev&lt;br /&gt;cp /stand/build/system /stand/system&lt;/pre&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;Move the new system file and new kernel into place, ready to be used when rebooting the system. &lt;p&gt;&lt;pre&gt;mv /stand/build/system /stand/system&lt;br /&gt;kmupdate /stand/build/vmunix_test&lt;/pre&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;Reboot the system from the new kernel. &lt;p&gt;&lt;tt&gt;shutdown -r&lt;/tt&gt;&lt;/p&gt;&lt;/li&gt;&lt;br /&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/19755180-115884485603110837?l=ps258.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ps258.blogspot.com/feeds/115884485603110837/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=19755180&amp;postID=115884485603110837' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/19755180/posts/default/115884485603110837'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/19755180/posts/default/115884485603110837'/><link rel='alternate' type='text/html' href='http://ps258.blogspot.com/2006/09/hpux-kernel-building.html' title='HP/UX kernel building'/><author><name>Peter</name><uri>http://www.blogger.com/profile/12481014669799278537</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-19755180.post-115884479185047401</id><published>2006-09-21T14:17:00.001+01:00</published><updated>2006-09-21T14:19:51.850+01:00</updated><title type='text'>Installing an ignite boot helper</title><content type='html'>installing a &lt;b&gt;Ignite boot helper&lt;/b&gt; &lt;pre&gt;swinstall -s ignite:/swdepot/Ignite/IgniteUX Ignite-UX.MinimumRuntime&lt;br /&gt;/opt/ignite/bin/instl_adm -t &amp;lt;IgniteServerIP&amp;gt;&lt;br /&gt;/opt/ignite/bin/instl_adm -d&lt;br /&gt;vim /etc/opt/ignite/instl_boottab&lt;/pre&gt;&lt;br /&gt;    Itanium systems don't use &lt;tt&gt;/etc/opt/ignite/instl_boottab&lt;/tt&gt; but have to use &lt;tt&gt;/etc/bootptab&lt;/tt&gt; So on such systems edit &lt;tt&gt;/etc/bootptab&lt;/tt&gt;. Then edit &lt;tt&gt;/etc/inetd.conf&lt;/tt&gt; to activate &lt;tt&gt;bootps&lt;/tt&gt; and &lt;t&gt;tftpd&lt;/tt&gt;, run &lt;tt&gt;inetd -c&lt;/tt&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/19755180-115884479185047401?l=ps258.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ps258.blogspot.com/feeds/115884479185047401/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=19755180&amp;postID=115884479185047401' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/19755180/posts/default/115884479185047401'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/19755180/posts/default/115884479185047401'/><link rel='alternate' type='text/html' href='http://ps258.blogspot.com/2006/09/installing-ignite-boot-helper.html' title='Installing an ignite boot helper'/><author><name>Peter</name><uri>http://www.blogger.com/profile/12481014669799278537</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-19755180.post-115884465012216191</id><published>2006-09-21T14:17:00.000+01:00</published><updated>2006-09-21T14:17:30.123+01:00</updated><title type='text'>YUM update source on whitebox/Centos/RHEL</title><content type='html'>Changing the YUM update source on whitebox. Edit &lt;tt&gt;/etc/yum.conf&lt;/tt&gt; and &lt;tt&gt;/etc/sysconfig/rhn/sources&lt;/tt&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/19755180-115884465012216191?l=ps258.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ps258.blogspot.com/feeds/115884465012216191/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=19755180&amp;postID=115884465012216191' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/19755180/posts/default/115884465012216191'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/19755180/posts/default/115884465012216191'/><link rel='alternate' type='text/html' href='http://ps258.blogspot.com/2006/09/yum-update-source-on.html' title='YUM update source on whitebox/Centos/RHEL'/><author><name>Peter</name><uri>http://www.blogger.com/profile/12481014669799278537</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-19755180.post-115884459294709087</id><published>2006-09-21T14:15:00.000+01:00</published><updated>2006-09-21T14:16:32.946+01:00</updated><title type='text'>IPv6 on SLES 9</title><content type='html'>&lt;ul&gt;&lt;br /&gt; &lt;li&gt;The 'IPv6-in-IPv4' tunnel is done by the network interface &lt;tt&gt;sit0&lt;/tt&gt;. It can be configured with the &lt;tt&gt;/sbin/ip&lt;/tt&gt; command as per the &lt;a href="http://www.tldp.org/HOWTO/Linux+IPv6-HOWTO/conf-ipv6-in-ipv4-point-to-point-tunnels.html"&gt;Linux IPv6 HOWTO&lt;/a&gt;&lt;/li&gt;&lt;br /&gt; &lt;li&gt;You can see the tunnels with &lt;tt&gt;/sbin/ip -6 tunnel show&lt;/tt&gt;&lt;/li&gt;&lt;br /&gt; &lt;li&gt;You can see the IPv6 routing table with &lt;tt&gt;/sbin/route -A inet6 &lt;/tt&gt;&lt;/li&gt;&lt;br /&gt;    &lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/19755180-115884459294709087?l=ps258.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ps258.blogspot.com/feeds/115884459294709087/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=19755180&amp;postID=115884459294709087' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/19755180/posts/default/115884459294709087'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/19755180/posts/default/115884459294709087'/><link rel='alternate' type='text/html' href='http://ps258.blogspot.com/2006/09/ipv6-on-sles-9.html' title='IPv6 on SLES 9'/><author><name>Peter</name><uri>http://www.blogger.com/profile/12481014669799278537</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-19755180.post-115884447434052524</id><published>2006-09-21T14:13:00.000+01:00</published><updated>2006-09-21T14:14:34.340+01:00</updated><title type='text'>SAM log viewer</title><content type='html'>To see what &lt;a href="http://docs.hp.com/en/B2355-90692/sam.1M.html"&gt;sam&lt;/a&gt; been doing use &lt;a href="http://docs.hp.com/en/B2355-90690/samlog_viewer.1.html"&gt;/usr/sam/bin/samlog_viewer&lt;/a&gt; or read &lt;tt&gt;/var/sam/log/samlog&lt;/tt&gt; by hand.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/19755180-115884447434052524?l=ps258.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ps258.blogspot.com/feeds/115884447434052524/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=19755180&amp;postID=115884447434052524' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/19755180/posts/default/115884447434052524'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/19755180/posts/default/115884447434052524'/><link rel='alternate' type='text/html' href='http://ps258.blogspot.com/2006/09/sam-log-viewer.html' title='SAM log viewer'/><author><name>Peter</name><uri>http://www.blogger.com/profile/12481014669799278537</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-19755180.post-115884440182848704</id><published>2006-09-21T14:11:00.000+01:00</published><updated>2006-09-21T14:13:21.830+01:00</updated><title type='text'></title><content type='html'>When a system is running in trusted mode, even the root account can be locked out to network access. To unlock it simply log in as root on the console. If not run &lt;tt&gt;modprpw -k root&lt;/tt&gt;. To take a system out of trusted mode run &lt;a href="http://docs.hp.com/en/B2355-90692/sam.1M.html"&gt;sam&lt;/a&gt; or &lt;pre&gt;/usr/sbin/audsys -f&lt;br /&gt;/usr/lbin/tsconvert -r&lt;/pre&gt;and to re-trust it &lt;a href="http://docs.hp.com/en/B2355-90692/sam.1M.html"&gt;sam&lt;/a&gt; and enter trusted mode. The option to 'untrust' a system is in the action menu on most of the applets in the sam area 'Auditing and Security'&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/19755180-115884440182848704?l=ps258.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ps258.blogspot.com/feeds/115884440182848704/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=19755180&amp;postID=115884440182848704' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/19755180/posts/default/115884440182848704'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/19755180/posts/default/115884440182848704'/><link rel='alternate' type='text/html' href='http://ps258.blogspot.com/2006/09/when-system-is-running-in-trusted-mode.html' title=''/><author><name>Peter</name><uri>http://www.blogger.com/profile/12481014669799278537</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-19755180.post-115884427643861945</id><published>2006-09-21T14:10:00.004+01:00</published><updated>2008-04-30T09:26:16.334+01:00</updated><title type='text'>Unix 'tree'</title><content type='html'>Not much use, but clever. This will print a directory listing similar to the windows/dos '&lt;a href="http://www.centerkey.com/tree/"&gt;tree&lt;/a&gt;' command&lt;pre&gt;ls -R &amp;#124; grep ":" &amp;#124; sed -e 's/://' -e 's/[^-][^\/]*\//--/g' -e 's/^/ /' -e 's/-//'&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/19755180-115884427643861945?l=ps258.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ps258.blogspot.com/feeds/115884427643861945/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=19755180&amp;postID=115884427643861945' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/19755180/posts/default/115884427643861945'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/19755180/posts/default/115884427643861945'/><link rel='alternate' type='text/html' href='http://ps258.blogspot.com/2006/09/unix-tree.html' title='Unix &apos;tree&apos;'/><author><name>Peter</name><uri>http://www.blogger.com/profile/12481014669799278537</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-19755180.post-115884422804600975</id><published>2006-09-21T14:10:00.000+01:00</published><updated>2006-09-21T14:10:28.046+01:00</updated><title type='text'>Cache Directory Tagging</title><content type='html'>&lt;a href="http://www.brynosaurus.com/cachedir/spec.html"&gt;Cache Directory Tagging Standard&lt;/a&gt; defines a standard way of marking directories to be excluded from backup/searches/indexing etc. It ties nicely into the gtar option &lt;a href="http://www.gnu.org/software/tar/manual/html_mono/tar.html#SEC100"&gt;--exclude-caches&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/19755180-115884422804600975?l=ps258.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ps258.blogspot.com/feeds/115884422804600975/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=19755180&amp;postID=115884422804600975' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/19755180/posts/default/115884422804600975'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/19755180/posts/default/115884422804600975'/><link rel='alternate' type='text/html' href='http://ps258.blogspot.com/2006/09/cache-directory-tagging.html' title='Cache Directory Tagging'/><author><name>Peter</name><uri>http://www.blogger.com/profile/12481014669799278537</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-19755180.post-115884414439080132</id><published>2006-09-21T14:08:00.000+01:00</published><updated>2006-09-21T14:09:04.390+01:00</updated><title type='text'>Update a system to the stable branch of OpenBSD</title><content type='html'>To update the system source to the stable branch of OpenBSD run this&lt;pre&gt;#!/bin/sh&lt;br /&gt;&lt;br /&gt;export CVS_RSH=/usr/bin/ssh&lt;br /&gt;#export CVSROOT=anoncvs@anoncvs.de.openbsd.org:/cvs&lt;br /&gt;export CVSROOT=anoncvs@anoncvs.no.openbsd.org:/cvs&lt;br /&gt;VERSION=`uname -a | awk &lt;br /&gt;        # initial get&lt;br /&gt;        cd /usr; cvs checkout -P -rOPENBSD_${VERSION} src&lt;br /&gt;else&lt;br /&gt;        # update&lt;br /&gt;        cd /usr/src&lt;br /&gt;        cvs -q up -rOPENBSD_${VERSION} -Pd&lt;br /&gt;fi&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/19755180-115884414439080132?l=ps258.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ps258.blogspot.com/feeds/115884414439080132/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=19755180&amp;postID=115884414439080132' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/19755180/posts/default/115884414439080132'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/19755180/posts/default/115884414439080132'/><link rel='alternate' type='text/html' href='http://ps258.blogspot.com/2006/09/update-system-to-stable-branch-of.html' title='Update a system to the stable branch of OpenBSD'/><author><name>Peter</name><uri>http://www.blogger.com/profile/12481014669799278537</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-19755180.post-115884407218413951</id><published>2006-09-21T13:58:00.000+01:00</published><updated>2006-09-21T14:07:52.183+01:00</updated><title type='text'>Fast shutdown except when Oracle's running</title><content type='html'>To shutdown labs in a hurry, this command will immediatly halt anything not running oracle and cleanly shutdown oracle&lt;pre&gt;ps -ef | grep [o]ra || /usr/sbin/reboot -qh; init 0; tail -f /etc/rc.log&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/19755180-115884407218413951?l=ps258.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ps258.blogspot.com/feeds/115884407218413951/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=19755180&amp;postID=115884407218413951' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/19755180/posts/default/115884407218413951'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/19755180/posts/default/115884407218413951'/><link rel='alternate' type='text/html' href='http://ps258.blogspot.com/2006/09/fast-shutdown-except-when-oracles.html' title='Fast shutdown except when Oracle&apos;s running'/><author><name>Peter</name><uri>http://www.blogger.com/profile/12481014669799278537</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-19755180.post-115884339574169236</id><published>2006-09-21T13:52:00.003+01:00</published><updated>2008-05-07T13:31:51.452+01:00</updated><title type='text'>To find the processor architecture on HP/UX</title><content type='html'>&lt;ul&gt;&lt;br /&gt;&lt;li&gt;To find the processor architecture on UX&lt;br /&gt;&lt;pre&gt;print 'selclass qualifier cpu;info;wait;infolog' | /usr/sbin/cstm | grep 'CPU Module'&lt;/pre&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;Processor speed&lt;br /&gt;&lt;pre&gt;print itick_per_usec/D | adb -k /stand/vmunix /dev/kmem&lt;/pre&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;How much memory is in my system?&lt;br /&gt;&lt;pre&gt;grep Physical /var/adm/syslog/syslog.log&lt;/pre&gt;or&lt;pre&gt;print 'memory_installed_in_machine/D' | adb -k /stand/vmunix /dev/kmem | perl -nle '/(\d+)/&amp;amp;print$1*4,"k"'&lt;/pre&gt;or&lt;pre&gt;print memory_installed_in_machine/D  | adb -k /stand/vmunix /dev/kmem&lt;/pre&gt;or&lt;pre&gt;print 'selclass qualifier memory;info;wait;infolog' | /usr/sbin/cstm | grep 'Total Configured'&lt;/pre&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;What's my system's serial number?&lt;pre&gt;print 'selclass qualifier system;info;wait;infolog' | /usr/sbin/cstm | grep 'System Serial Number'&lt;/pre&gt;&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/19755180-115884339574169236?l=ps258.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ps258.blogspot.com/feeds/115884339574169236/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=19755180&amp;postID=115884339574169236' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/19755180/posts/default/115884339574169236'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/19755180/posts/default/115884339574169236'/><link rel='alternate' type='text/html' href='http://ps258.blogspot.com/2006/09/to-find-processor-architecture-on-hpux.html' title='To find the processor architecture on HP/UX'/><author><name>Peter</name><uri>http://www.blogger.com/profile/12481014669799278537</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-19755180.post-115884315832407911</id><published>2006-09-21T13:50:00.000+01:00</published><updated>2006-09-21T13:52:38.326+01:00</updated><title type='text'>Profiling a Perl script</title><content type='html'>When profiling a script using&lt;br /&gt;&lt;strong&gt;export PERL5OPT=-d:Dprof&lt;/strong&gt; You need to unset &lt;strong&gt;PERL5OPT&lt;/strong&gt; before running profiling a script because that's a perl script too and it will overwrite your &lt;strong&gt;tmon.out&lt;/strong&gt; and wreck the results. Only use &lt;strong&gt;PERL5OPT&lt;/strong&gt; if you can't invoke perl directly with &lt;strong&gt;-d:Dprof&lt;/strong&gt; as with inquest.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/19755180-115884315832407911?l=ps258.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ps258.blogspot.com/feeds/115884315832407911/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=19755180&amp;postID=115884315832407911' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/19755180/posts/default/115884315832407911'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/19755180/posts/default/115884315832407911'/><link rel='alternate' type='text/html' href='http://ps258.blogspot.com/2006/09/profiling-perl-script.html' title='Profiling a Perl script'/><author><name>Peter</name><uri>http://www.blogger.com/profile/12481014669799278537</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-19755180.post-115884299520210223</id><published>2006-09-21T13:48:00.000+01:00</published><updated>2006-09-21T13:49:55.203+01:00</updated><title type='text'>Changing the hostname on SLES 9.0</title><content type='html'>You can change the hostname on a SLES system without being disconnected using &lt;strong&gt;yast2 dns&lt;/strong&gt; Intuitive isn't it?&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/19755180-115884299520210223?l=ps258.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ps258.blogspot.com/feeds/115884299520210223/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=19755180&amp;postID=115884299520210223' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/19755180/posts/default/115884299520210223'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/19755180/posts/default/115884299520210223'/><link rel='alternate' type='text/html' href='http://ps258.blogspot.com/2006/09/changing-hostname-on-sles-90.html' title='Changing the hostname on SLES 9.0'/><author><name>Peter</name><uri>http://www.blogger.com/profile/12481014669799278537</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-19755180.post-115884285343289712</id><published>2006-09-21T13:43:00.000+01:00</published><updated>2006-09-21T13:48:13.810+01:00</updated><title type='text'>Perl regex to parse out the swinstall.hosts from /.sw/defaults.hosts</title><content type='html'>&lt;p&gt;Perl regex to parse out the swinstall.hosts from /.sw/defaults.hosts The string can be like this&lt;/p&gt;&lt;p&gt;swinstall.hosts = {ws01 s003 s002 s001 a7altsrv a7server}&lt;/p&gt;&lt;p&gt;or&lt;/p&gt;&lt;p&gt;swinstall.hosts = {&lt;br /&gt;s004&lt;br /&gt;s001sdb1&lt;br /&gt;s003&lt;br /&gt;s002p1&lt;br /&gt;s002&lt;br /&gt;ws01&lt;br /&gt;s001p1&lt;br /&gt;s001&lt;br /&gt;a7server&lt;br /&gt;}&lt;/p&gt;&lt;p&gt;Ie. The code needs to deal with line breaks&lt;/p&gt;&lt;p&gt;&lt;pre&gt;undef $/;&lt;br /&gt;open(DH, "&amp;lt;/.sw/defaults.hosts") or die "unable to open default.hosts\n";&lt;br /&gt;$file = &amp;lt;dh&amp;gt;;&lt;br /&gt;close(DH);&lt;br /&gt;$file =~ m/&lt;br /&gt;  swinstall\.hosts # Match the beginning of the hosts we want&lt;br /&gt;  (?:.*?) # followed by a space or not. Minimal match&lt;br /&gt;  =       # followed by an '='&lt;br /&gt;  (?:.*?) # followed by a space or not. Minimal match&lt;br /&gt;  {       # followed by the open brace to begin the list of hosts&lt;br /&gt;  (.*?)   # followed by some characters which are the &lt;br /&gt;          # hostnames saved into a back reference&lt;br /&gt;  } # followed by the close brace&lt;br /&gt; /six;&lt;br /&gt;print $1 . "\n";&lt;/pre&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/19755180-115884285343289712?l=ps258.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ps258.blogspot.com/feeds/115884285343289712/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=19755180&amp;postID=115884285343289712' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/19755180/posts/default/115884285343289712'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/19755180/posts/default/115884285343289712'/><link rel='alternate' type='text/html' href='http://ps258.blogspot.com/2006/09/perl-regex-to-parse-out-swinstallhosts.html' title='Perl regex to parse out the swinstall.hosts from /.sw/defaults.hosts'/><author><name>Peter</name><uri>http://www.blogger.com/profile/12481014669799278537</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-19755180.post-115884259138600021</id><published>2006-09-21T13:40:00.000+01:00</published><updated>2006-09-21T13:43:11.386+01:00</updated><title type='text'>To create a tape SD depot</title><content type='html'>&lt;p&gt;To create a tape depot&lt;/p&gt;&lt;p&gt;&lt;strong&gt;swpackage -x autoselect_dependencies=false -x autoselect_dependencies=false -x media_type=tape -s /swdepot/depot package,r=revision @ /tmp/file.depot&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;To register and list the depot&lt;br /&gt;&lt;strong&gt;swreg -l depot -x run_as_superuser=false /tmp/file.depot&lt;br /&gt;swlist -l fileset -s /tmp/file.depot&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;To unregister the depot&lt;br /&gt;&lt;strong&gt;swreg -l depot -u /tmp/file.depot&lt;/strong&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/19755180-115884259138600021?l=ps258.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ps258.blogspot.com/feeds/115884259138600021/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=19755180&amp;postID=115884259138600021' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/19755180/posts/default/115884259138600021'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/19755180/posts/default/115884259138600021'/><link rel='alternate' type='text/html' href='http://ps258.blogspot.com/2006/09/to-create-tape-sd-depot.html' title='To create a tape SD depot'/><author><name>Peter</name><uri>http://www.blogger.com/profile/12481014669799278537</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-19755180.post-115884243124199262</id><published>2006-09-21T13:38:00.000+01:00</published><updated>2006-09-21T13:40:31.243+01:00</updated><title type='text'>xauth, su and sudo with ssh X tunneling</title><content type='html'>Some xauth notes to su from root but keep the same ssh tunnel for X11&lt;br /&gt;# save the MIT-MAGIC-COOKIE for the current X display to a file (/tmp/xauth.out)&lt;br /&gt;&lt;strong&gt;xauth extract /tmp/xauth.out $DISPLAY&lt;br /&gt;&lt;/strong&gt;# save the DISPLAY variable to a file (remember env is lost)&lt;br /&gt;&lt;strong&gt;echo $DISPLAY &gt; /tmp/DISPLAY&lt;br /&gt;&lt;/strong&gt;# make sure the su'd id can read the files&lt;br /&gt;&lt;strong&gt;chmod 666 /tmp/xauth.out /tmp/DISPLAY&lt;br /&gt;&lt;/strong&gt;# su&lt;br /&gt;&lt;strong&gt;su - oracle&lt;/strong&gt;&lt;br /&gt;# setup a new XAUTHORITY file&lt;br /&gt;&lt;strong&gt;export XAUTHORITY=/tmp/xauth&lt;/strong&gt;&lt;br /&gt;# load DISPLAY&lt;br /&gt;&lt;strong&gt;export DISPLAY=$(cat /tmp/DISPLAY)&lt;br /&gt;&lt;/strong&gt;# Load the MIT-MAGIC-COOKIE for root's display&lt;br /&gt;&lt;strong&gt;xauth merge /tmp/xauth.out&lt;br /&gt;&lt;/strong&gt;# run the X application&lt;br /&gt;&lt;strong&gt;/usr/bin/X11/xclock&lt;/strong&gt;&lt;br /&gt;Or as a single command&lt;br /&gt;&lt;strong&gt;xauth extract /tmp/xauth.out $DISPLAY; echo $DISPLAY &gt; /tmp/DISPLAY; \&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;chmod 666 /tmp/xauth.out /tmp/DISPLAY; su - oracle -c \ &lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;"export XAUTHORITY=/tmp/xauth; export DISPLAY=$(cat /tmp/DISPLAY); \&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;xauth merge /tmp/xauth.out ; /usr/bin/X11/xclock"&lt;/strong&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/19755180-115884243124199262?l=ps258.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ps258.blogspot.com/feeds/115884243124199262/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=19755180&amp;postID=115884243124199262' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/19755180/posts/default/115884243124199262'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/19755180/posts/default/115884243124199262'/><link rel='alternate' type='text/html' href='http://ps258.blogspot.com/2006/09/xauth-su-and-sudo-with-ssh-x-tunneling.html' title='xauth, su and sudo with ssh X tunneling'/><author><name>Peter</name><uri>http://www.blogger.com/profile/12481014669799278537</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-19755180.post-115884224730633833</id><published>2006-09-21T13:35:00.000+01:00</published><updated>2006-09-21T13:37:27.306+01:00</updated><title type='text'>HP SmartArray RAID Controller Family config</title><content type='html'>&lt;p&gt;# remove the old LV (use sam or whatever)&lt;br /&gt;# save the current config details&lt;br /&gt;&lt;strong&gt;sautil /dev/ciss4 &gt; /tmp/current_config&lt;br /&gt;&lt;/strong&gt;# delete all the config on the array&lt;br /&gt;&lt;strong&gt;saconfig /dev/ciss4 -D all&lt;/strong&gt;&lt;br /&gt;# create the new raid&lt;br /&gt;&lt;strong&gt;saconfig /dev/ciss4 -R 5 -p 1:0 -p 1:1 -p 1:2 -p 1:3 -p 1:4 -p 1:5 -p 1:8 -p 1:9 -p 1:10 -p 1:11 -p 1:12 -p 1:13 -p 1:14 -p 1:15&lt;br /&gt;ioscan&lt;br /&gt;insf -e&lt;/strong&gt;&lt;br /&gt;# Create the new LV. Don't forget to allow for largefiles! &lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/19755180-115884224730633833?l=ps258.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ps258.blogspot.com/feeds/115884224730633833/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=19755180&amp;postID=115884224730633833' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/19755180/posts/default/115884224730633833'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/19755180/posts/default/115884224730633833'/><link rel='alternate' type='text/html' href='http://ps258.blogspot.com/2006/09/hp-smartarray-raid-controller-family.html' title='HP SmartArray RAID Controller Family config'/><author><name>Peter</name><uri>http://www.blogger.com/profile/12481014669799278537</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-19755180.post-115884210798220996</id><published>2006-09-21T13:33:00.000+01:00</published><updated>2006-09-21T13:35:07.983+01:00</updated><title type='text'>Cisco IP accounting info</title><content type='html'>IP accounting information can be gleaned from the cisco routers with these commands.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;router(config)# interface&lt;br /&gt;router(config-if)# ip accounting&lt;br /&gt;router(config)# ip accounting-threshold 10000&lt;br /&gt;router# show ip accounting&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Accounting can be reset with&lt;br /&gt;&lt;strong&gt;router# clear ip accounting&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;It's best not to leave the accounting configured when it's not needed.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/19755180-115884210798220996?l=ps258.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ps258.blogspot.com/feeds/115884210798220996/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=19755180&amp;postID=115884210798220996' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/19755180/posts/default/115884210798220996'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/19755180/posts/default/115884210798220996'/><link rel='alternate' type='text/html' href='http://ps258.blogspot.com/2006/09/cisco-ip-accounting-info.html' title='Cisco IP accounting info'/><author><name>Peter</name><uri>http://www.blogger.com/profile/12481014669799278537</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-19755180.post-115884198214192540</id><published>2006-09-21T13:32:00.000+01:00</published><updated>2006-09-21T13:33:02.143+01:00</updated><title type='text'>RDP to the console</title><content type='html'>You can connect to the console of Windows systems using&lt;br /&gt;&lt;strong&gt;mstsc /console /v:hostname or IP &lt;/strong&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/19755180-115884198214192540?l=ps258.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ps258.blogspot.com/feeds/115884198214192540/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=19755180&amp;postID=115884198214192540' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/19755180/posts/default/115884198214192540'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/19755180/posts/default/115884198214192540'/><link rel='alternate' type='text/html' href='http://ps258.blogspot.com/2006/09/rdp-to-console.html' title='RDP to the console'/><author><name>Peter</name><uri>http://www.blogger.com/profile/12481014669799278537</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-19755180.post-115884192820960046</id><published>2006-09-21T13:30:00.000+01:00</published><updated>2006-09-21T13:32:08.210+01:00</updated><title type='text'>YOU server setup notes</title><content type='html'>YOU server setup notes&lt;br /&gt;To setup a new YOU server start yast2 to do a YOU sync using official credentials which will put all the patches into &lt;strong&gt;/var/lib/YaST2/you/mnt/&lt;/strong&gt;.&lt;br /&gt;If you want to snapshot that directory, it has to be copied/moved to another place and &lt;strong&gt;/etc/apache2/conf.d/you_server.conf&lt;/strong&gt; should be copied and modified share the new location. The YOU server (httpd) should be restarted for the changes to be activated. Use yast2 for this&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/19755180-115884192820960046?l=ps258.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ps258.blogspot.com/feeds/115884192820960046/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=19755180&amp;postID=115884192820960046' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/19755180/posts/default/115884192820960046'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/19755180/posts/default/115884192820960046'/><link rel='alternate' type='text/html' href='http://ps258.blogspot.com/2006/09/you-server-setup-notes.html' title='YOU server setup notes'/><author><name>Peter</name><uri>http://www.blogger.com/profile/12481014669799278537</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-19755180.post-115884168783964422</id><published>2006-09-21T13:27:00.000+01:00</published><updated>2006-09-21T13:28:07.843+01:00</updated><title type='text'>To tune SCSI cards on HP/UX</title><content type='html'>To tune SCSI cards on HP/UX go into the &lt;a href="http://docs.hp.com/en/5990-8170A/ch04s14.html"&gt;BCH&lt;/a&gt; (Boot Console Handler) SERvice menu and use the SCSI command.&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;&lt;strong&gt;Service Menu: Enter command &gt; help scsi&lt;br /&gt;------- SCSI Help -------------------------------------------------------------&lt;br /&gt;SCSI displays the SCSI controller parameters. SCSI is also&lt;br /&gt;used to set parameters for a SCSI controller at a specified path.&lt;br /&gt;These parameters are used by the operating system SCSI driver.&lt;br /&gt;If a parameter is set to Unknown or a path is not in the table,&lt;br /&gt;a firmware suggested SCSI controller parameter is used by the&lt;br /&gt;SCSI driver. The firmware suggested value for the initiator id is 7.&lt;br /&gt;An exception is for the termination. If the SCSI card does not support&lt;br /&gt;SCSI Parameters, then the TERM setting will be displayed as UNKNOWN.&lt;br /&gt;In this case, the termination is not programmatically controlled.&lt;br /&gt;SCSI Display all SCSI controller parms&lt;br /&gt;SCSI &lt;path&gt; Display SCSI control parms specific path&lt;br /&gt;SCSI &lt;path&gt; INIT &lt;id&gt; Set initiator id for specified path&lt;br /&gt;SCSI &lt;path&gt; RATE &lt;rate&gt; Set transfer rate for specified path&lt;br /&gt;SCSI &lt;path&gt; TERM &lt;term&gt; Set auto term for specified path&lt;br /&gt;SCSI &lt;path&gt; WIDTH &lt;width&gt; Set bus width for specified path.&lt;br /&gt;SCSI &lt;path&gt; DEFAULT Set a specific path to use default parms&lt;br /&gt;SCSI DEFAULT Set SCSI devices to use default parms.&lt;br /&gt;&lt;path&gt; is in I/O notation, such as 1/2/3/4 (SBA/LBA/DEV./FUNC.)&lt;br /&gt;&lt;id&gt; is an integer in the range 0..15 Default: 7&lt;br /&gt;&lt;rate&gt; = SLOW, FAST, ULTRA, ULTRA2, ULTRA160, ULTRA320,&lt;br /&gt;or NOLIMIT (where NOLIMIT means use max) Default: max&lt;br /&gt;&lt;width&gt; is either 0, 8, or 16 (where 0 means use max) Default: max&lt;br /&gt;&lt;term&gt; is either ON, OFF, or DEFAULT Default: ON&lt;br /&gt;Short Command for SCSI: SCSI&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/19755180-115884168783964422?l=ps258.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ps258.blogspot.com/feeds/115884168783964422/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=19755180&amp;postID=115884168783964422' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/19755180/posts/default/115884168783964422'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/19755180/posts/default/115884168783964422'/><link rel='alternate' type='text/html' href='http://ps258.blogspot.com/2006/09/to-tune-scsi-cards-on-hpux.html' title='To tune SCSI cards on HP/UX'/><author><name>Peter</name><uri>http://www.blogger.com/profile/12481014669799278537</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-19755180.post-115884162295270605</id><published>2006-09-21T13:25:00.000+01:00</published><updated>2006-09-21T13:27:02.953+01:00</updated><title type='text'>HP/UX Page Deallocation Table</title><content type='html'>&lt;p&gt;When bit errors occur in the memory of HP/UX systems the error is logged in the PDT (Page Deallocation Table). To see the PDT boot the system to the &lt;a href="http://docs.hp.com/en/5990-8170A/ch04s14.html"&gt;BCH&lt;/a&gt; (Boot Console Handler), go into the SERvice menu and then PDT. The HP guy said that finding a couple of dozen on older machines is normal and doesn't matter although the table is much smaller on them. The RPs have 3000 slots and the systems of the vintage of D's only have 128. &lt;/p&gt;&lt;p&gt;&lt;span style="font-family:courier new;"&gt;&lt;strong&gt;Service Menu: Enter command &gt; help PDT&lt;br /&gt;---- PDT Help ----------------------------------------------------------------&lt;br /&gt;PDT will display the contents of the Page Deallocation Table.&lt;br /&gt;PDT CLEAR will clear the Page Deallocation Table and then hard&lt;br /&gt;boot the system. The PDT CLEAR command will cause memory to be&lt;br /&gt;reconfigured when the system is rebooted.&lt;br /&gt;PDT     Display PDT contents&lt;br /&gt;PDT     CLEAR Clear the PDT&lt;br /&gt;NOTE:   When the CLEAR command is executed the user is first&lt;br /&gt;        queried before proceeding to clear the PDT.&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;This information is also available from STM (xstm and cstm) (thanks Dave!) &lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/19755180-115884162295270605?l=ps258.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ps258.blogspot.com/feeds/115884162295270605/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=19755180&amp;postID=115884162295270605' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/19755180/posts/default/115884162295270605'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/19755180/posts/default/115884162295270605'/><link rel='alternate' type='text/html' href='http://ps258.blogspot.com/2006/09/hpux-page-deallocation-table.html' title='HP/UX Page Deallocation Table'/><author><name>Peter</name><uri>http://www.blogger.com/profile/12481014669799278537</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-19755180.post-115884138453868495</id><published>2006-09-21T13:17:00.000+01:00</published><updated>2006-09-21T13:24:44.783+01:00</updated><title type='text'>Some HP/UX LVM notes</title><content type='html'>&lt;ul&gt;&lt;li&gt;To make volume groups by hand&lt;br /&gt;&lt;strong&gt;mkdir /dev/vg01 /dev/vg02&lt;br /&gt;/usr/sbin/mknod /dev/vg01/group c 64 0x010000&lt;br /&gt;/usr/sbin/mknod /dev/vg02/group c 64 0x020000&lt;/strong&gt;&lt;/li&gt;&lt;li&gt;Create physical volumes&lt;br /&gt;&lt;strong&gt;/usr/sbin/pvcreate /dev/rdsk/c5t0d0&lt;br /&gt;/usr/sbin/pvcreate /dev/rdsk/c6t0d0&lt;/strong&gt;&lt;/li&gt;&lt;li&gt;Add the disks to the volume groups (remember to make sure the max extents per disk are large enough for future larger disks, it can't be changed in the future)&lt;br /&gt;&lt;strong&gt;/usr/sbin/vgcreate -e 15000 /dev/vg01 /dev/dsk/c5t0d0&lt;br /&gt;/usr/sbin/vgcreate -e 15000 /dev/vg02 /dev/dsk/c6t0d0&lt;/strong&gt;&lt;/li&gt;&lt;li&gt;Create some logical volumes&lt;br /&gt;&lt;strong&gt;/usr/sbin/lvcreate -L 23436 -s y /dev/vg01&lt;br /&gt;/usr/sbin/lvcreate -L 2604 -s y /dev/vg01&lt;br /&gt;/usr/sbin/lvcreate -L 23436 -s y /dev/vg02&lt;br /&gt;/usr/sbin/lvcreate -L 2604 -s y /dev/vg02&lt;/strong&gt;&lt;/li&gt;&lt;li&gt;To recreate /etc/lvmtab&lt;br /&gt;&lt;strong&gt;mv /etc/lvmtab /etc/lvmtab.old&lt;br /&gt;vgscan -av&lt;/strong&gt;&lt;/li&gt;&lt;li&gt;To import disks into a volume group with&lt;br /&gt;&lt;strong&gt;vgimport -v /dev/vg01 /dev/dsk/c4t5d0 /dev/dsk/c4t12d0&lt;br /&gt;&lt;/strong&gt;don't worry if you get the disks wrong. vgimport checks the disk to see if they are all in the same LV you might be able to find which disks belong in which VG from &lt;strong&gt;strings /etc/lvmtab&lt;/strong&gt; but only if they've been on that system before. &lt;/li&gt;&lt;li&gt;Net recovery does these things to import VG's after a recovery&lt;br /&gt;&lt;strong&gt;/usr/sbin/vgimport -v -m /etc/lvmconf/vg01.mapfile /dev/vg01 /dev/dsk/c3t15d0&lt;br /&gt;/usr/sbin/vgchange -a r vg01&lt;br /&gt;test -d /dev/vg00 &amp;&amp;amp; /usr/sbin/vgcfgbackup /dev/vg00&lt;br /&gt;test -d /dev/vg01 &amp;&amp;amp; /usr/sbin/vgcfgbackup /dev/vg01&lt;/strong&gt;&lt;/li&gt;&lt;li&gt;this will create the map file for use in the above&lt;br /&gt;&lt;strong&gt;/usr/sbin/vgexport -p -m /etc/lvmconf/vg01.mapfile /dev/vg01&lt;/strong&gt;&lt;/li&gt;&lt;li&gt;if restoring a vg config to a new disk (make sure the SCSI ID is the same)&lt;br /&gt;&lt;strong&gt;vgcfgrestore -n /dev/&lt;vgname&gt; /dev/dsk/&lt;disk&gt;&lt;br /&gt;&lt;/strong&gt;then activate the VG&lt;br /&gt;&lt;strong&gt;vgchange -a y &lt;vgname&gt;&lt;/strong&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/19755180-115884138453868495?l=ps258.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ps258.blogspot.com/feeds/115884138453868495/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=19755180&amp;postID=115884138453868495' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/19755180/posts/default/115884138453868495'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/19755180/posts/default/115884138453868495'/><link rel='alternate' type='text/html' href='http://ps258.blogspot.com/2006/09/some-hpux-lvm-notes.html' title='Some HP/UX LVM notes'/><author><name>Peter</name><uri>http://www.blogger.com/profile/12481014669799278537</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-19755180.post-115875948243284164</id><published>2006-09-20T14:37:00.000+01:00</published><updated>2006-09-20T14:38:02.433+01:00</updated><title type='text'>Calculate pi</title><content type='html'>&lt;p&gt;Sum this &lt;strong&gt;i = 0 -&gt; infinity&lt;/strong&gt; to calculate pi. It will calculate one Hex digit of pi every iteration.&lt;/p&gt;&lt;p&gt;&lt;strong&gt;pi=((4/((8*i)+1))-(2/((8*i)+4)) - (1/((8*i)+5))-(1/((8*i)+6)))/(16^i)&lt;/strong&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/19755180-115875948243284164?l=ps258.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ps258.blogspot.com/feeds/115875948243284164/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=19755180&amp;postID=115875948243284164' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/19755180/posts/default/115875948243284164'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/19755180/posts/default/115875948243284164'/><link rel='alternate' type='text/html' href='http://ps258.blogspot.com/2006/09/calculate-pi.html' title='Calculate pi'/><author><name>Peter</name><uri>http://www.blogger.com/profile/12481014669799278537</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-19755180.post-115875938289051332</id><published>2006-09-20T14:35:00.000+01:00</published><updated>2006-09-20T14:36:48.686+01:00</updated><title type='text'>Update initrd</title><content type='html'>&lt;p&gt;To update the contents of the SLES 9.0 initrd. &lt;/p&gt;&lt;p&gt;&lt;strong&gt;mv initrd initrd.gz&lt;br /&gt;gunzip initrd.gz&lt;br /&gt;mount -o loop /tmp/initrd /mnt&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;Edit&lt;strong&gt; /mnt/info&lt;/strong&gt; as needed&lt;/p&gt;&lt;p&gt;&lt;strong&gt;cd /tmp&lt;br /&gt;umount /mnt&lt;br /&gt;gzip -9 initrd&lt;br /&gt;mv initrd.gz initrd&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;Put the initrd back into place to build the install CD&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/19755180-115875938289051332?l=ps258.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ps258.blogspot.com/feeds/115875938289051332/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=19755180&amp;postID=115875938289051332' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/19755180/posts/default/115875938289051332'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/19755180/posts/default/115875938289051332'/><link rel='alternate' type='text/html' href='http://ps258.blogspot.com/2006/09/update-initrd.html' title='Update initrd'/><author><name>Peter</name><uri>http://www.blogger.com/profile/12481014669799278537</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-19755180.post-115875923100714002</id><published>2006-09-20T14:32:00.000+01:00</published><updated>2006-09-20T14:34:26.036+01:00</updated><title type='text'>rsync to preserve hard links</title><content type='html'>&lt;strong&gt;rsync --partial --delete -Pav -H host:/&lt;em&gt;path&lt;/em&gt;&lt;path&gt; /&lt;em&gt;path&lt;path&gt;&lt;/em&gt;&lt;/strong&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/19755180-115875923100714002?l=ps258.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ps258.blogspot.com/feeds/115875923100714002/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=19755180&amp;postID=115875923100714002' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/19755180/posts/default/115875923100714002'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/19755180/posts/default/115875923100714002'/><link rel='alternate' type='text/html' href='http://ps258.blogspot.com/2006/09/rsync-to-preserve-hard-links.html' title='rsync to preserve hard links'/><author><name>Peter</name><uri>http://www.blogger.com/profile/12481014669799278537</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-19755180.post-115875905241585095</id><published>2006-09-20T14:11:00.000+01:00</published><updated>2006-09-20T14:31:42.656+01:00</updated><title type='text'>To build mkcdrec for use in the labs</title><content type='html'>&lt;p&gt;To build &lt;a href="http://mkcdrec.ota.be/"&gt;mkcdrec&lt;/a&gt; for use in the labs. Get the source RPM and install it onto a SLES system with gcc installed. Install the source RPM, then extract the tar ball under /usr/src/packages/SOURCE. &lt;/p&gt;&lt;p&gt;&lt;strong&gt;cd /usr/src/packages/SOURCE&lt;br /&gt;tar xzvf mkCDrec_v0.8.5.tar.gz&lt;br /&gt;cd mkcdrec&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;Change the file Config.sh with the following&lt;/p&gt;&lt;p&gt;&lt;strong&gt;CHECK_BAD_BLOCKS="-c"&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;EXCLUDE_LIST=&lt;/strong&gt; Make it what ever you want&lt;/p&gt;&lt;p&gt;&lt;strong&gt;AUTODR="y"&lt;br /&gt;INITRDSIZE=8192&lt;br /&gt;LINUX_KERNEL="/boot/vmlinuz"&lt;br /&gt;MAXCDSIZE=700000&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;Extract mkCDrec_v0.7.9_utils.tar.gz into the mkcdrec directory&lt;/p&gt;&lt;p&gt;&lt;strong&gt;cd /usr/src/packages/SOURCE/mkcdrec/&lt;br /&gt;tar xzvf /tmp/mkCDrec_v0.7.9_utils.tar.gz&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;Fix a crazy scsi disk major number problem&lt;/p&gt;&lt;p&gt;&lt;strong&gt;cd /var/opt/mkcdrec/scripts&lt;br /&gt;perl -i.old -pe 's/major=65/major=8/g' clone-dsk.sh make_common.sh restore-fs.sh&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;Create a source tarball named with the Version: number below&lt;/p&gt;&lt;p&gt;&lt;strong&gt;cd /usr/src/packages/SOURCES&lt;br /&gt;tar czvf mkCDrec_v0.8.5_TSD.tar.gz mkcdreci&lt;br /&gt;rm -rf mkcdrec&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;Alter the SPEC file to mark the build as a custom one&lt;/p&gt;&lt;p&gt;&lt;strong&gt;cd /usr/src/packages/SPECS/&lt;br /&gt;vim mkcdrec.spec&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;Change &lt;strong&gt;Version: v0.8.5&lt;/strong&gt; to &lt;strong&gt;Version: v0.8.5_TSD&lt;/strong&gt; or something. Here's a diff of the changes I made to get it working&lt;/p&gt;&lt;p&gt;&lt;strong&gt;8c8&lt;br /&gt;&lt;&gt; Version: v0.8.5_TSD&lt;br /&gt;90a91&lt;br /&gt;&gt; mkdir -p $RPM_BUILD_ROOT%{_prefix}/utilities&lt;br /&gt;130a132,134&lt;br /&gt;&gt; for fname in `find utilities -type f`; do&lt;br /&gt;&gt; install -m 755 $fname $RPM_BUILD_ROOT%{_prefix}/utilities&lt;br /&gt;&gt; done&lt;br /&gt;182a187&lt;br /&gt;&gt; %{_prefix}/utilities&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;Then rebuild the binary package&lt;/p&gt;&lt;p&gt;&lt;strong&gt;cd /usr/src/packages&lt;br /&gt;rpmbuild -bb SPECS/mkcdrec.spec&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;The resulting binary backage will be in &lt;strong&gt;/usr/src/packages/RPMS/i586/ &lt;/strong&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/19755180-115875905241585095?l=ps258.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ps258.blogspot.com/feeds/115875905241585095/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=19755180&amp;postID=115875905241585095' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/19755180/posts/default/115875905241585095'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/19755180/posts/default/115875905241585095'/><link rel='alternate' type='text/html' href='http://ps258.blogspot.com/2006/09/to-build-mkcdrec-for-use-in-labs.html' title='To build mkcdrec for use in the labs'/><author><name>Peter</name><uri>http://www.blogger.com/profile/12481014669799278537</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-19755180.post-114802185079529614</id><published>2006-05-19T07:55:00.000+01:00</published><updated>2006-09-20T14:32:46.886+01:00</updated><title type='text'>A SUN E4000: Clock board TOD does not match TOD on any IO board</title><content type='html'>A SUN E4000 was giving the warning "&lt;strong&gt;Clock board TOD does not match TOD on any IO board&lt;/strong&gt;" at boot time. This is easily fixed with the OpenBoot command "&lt;strong&gt;copy-clock-tod-to-io-boards&lt;/strong&gt;"&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/19755180-114802185079529614?l=ps258.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ps258.blogspot.com/feeds/114802185079529614/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=19755180&amp;postID=114802185079529614' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/19755180/posts/default/114802185079529614'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/19755180/posts/default/114802185079529614'/><link rel='alternate' type='text/html' href='http://ps258.blogspot.com/2006/05/sun-e4000-clock-board-tod-does-not.html' title='A SUN E4000: Clock board TOD does not match TOD on any IO board'/><author><name>Peter</name><uri>http://www.blogger.com/profile/12481014669799278537</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-19755180.post-114356057981256455</id><published>2006-03-28T16:41:00.000+01:00</published><updated>2006-03-28T16:42:59.813+01:00</updated><title type='text'>building grubby for SLES9</title><content type='html'>grubby is part of mkinitrd-3.5.13-WB1 on RHE/WB etc. Grab the srpm from linux7 and extract the .tgz. To get grubby to build you need to add &lt;strong&gt;&lt;span style="font-family:courier new;font-size:85%;"&gt;#include &lt;stdio.h&gt;&lt;/span&gt;&lt;/strong&gt; in &lt;strong&gt;&lt;span style="font-family:courier new;font-size:85%;"&gt;grubby.c&lt;/span&gt;&lt;/strong&gt; then build and install the &lt;a href="http://directory.fsf.org/libs/popt.html"&gt;popt&lt;/a&gt; library. Then it just builds. Once it's built, recompile it with&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="font-family:courier new;font-size:85%;"&gt;cc -o grubby grubby.o mount_by_label.o -Wl,-Bstatic -lpopt -Wall -DVERSION=\"3.5.13\"&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;to make it statically linked, &lt;strong&gt;&lt;span style="font-family:courier new;font-size:85%;"&gt;strip&lt;/span&gt;&lt;/strong&gt; it, then copy it to where every it's needed.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/19755180-114356057981256455?l=ps258.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ps258.blogspot.com/feeds/114356057981256455/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=19755180&amp;postID=114356057981256455' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/19755180/posts/default/114356057981256455'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/19755180/posts/default/114356057981256455'/><link rel='alternate' type='text/html' href='http://ps258.blogspot.com/2006/03/building-grubby-for-sles9.html' title='building grubby for SLES9'/><author><name>Peter</name><uri>http://www.blogger.com/profile/12481014669799278537</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-19755180.post-114356041469949223</id><published>2006-03-28T16:35:00.000+01:00</published><updated>2006-03-28T16:40:14.703+01:00</updated><title type='text'>recovering from a change in device paths under HP/UX</title><content type='html'>Added a NIC to an HP/UX system and had to move the HSC SCSI card as a consequence. This meant that the device paths to the NIKE RAID array changed and the volume groups didn't mount on reboot. We had to import the volume groups like this&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="font-family:courier new;font-size:85%;"&gt;depot # strings lvmtab&lt;br /&gt;/dev/vg00&lt;br /&gt;wV60?{&lt;br /&gt;/dev/dsk/c2t6d0&lt;br /&gt;/dev/swdepot&lt;br /&gt;wV60@&lt;br /&gt;/dev/dsk/c3t0d0&lt;br /&gt;/dev/tmp&lt;br /&gt;wV60@&lt;br /&gt;/dev/dsk/c3t0d1&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;The VG 'swdepot' was on /dev/dsk/c3t0d0 and tmp was on /dev/dsk/c3t0d1. To see where they've moved to&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;font-size:85%;"&gt;&lt;strong&gt;depot # ioscan -funC disk&lt;br /&gt;Class I H/W Path Driver S/W State H/W Type Description&lt;br /&gt;=====================================================================&lt;br /&gt;disk 3 8/4.0.0 sdisk CLAIMED DEVICE DGC C2300WDR5&lt;br /&gt;                          /dev/dsk/c4t0d0 /dev/rdsk/c4t0d0&lt;br /&gt;disk 4 8/4.0.1 sdisk CLAIMED DEVICE DGC C2300WDR5&lt;br /&gt;                         /dev/dsk/c4t0d1 /dev/rdsk/c4t0d1&lt;br /&gt;disk 0 8/16/5.6.0 sdisk CLAIMED DEVICE SEAGATE ST34573N&lt;br /&gt;                               /dev/dsk/c2t6d0 /dev/rdsk/c2t6d0&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Because the old volume groups are in &lt;span style="font-family:courier new;font-size:85%;"&gt;&lt;strong&gt;/etc/lvmtab&lt;/strong&gt;&lt;/span&gt; it needs to be moved aside&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="font-family:courier new;font-size:85%;"&gt;depot # mv /etc/lvmtab /etc/lvmtab.OLD&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Import the volume groups with&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="font-family:courier new;font-size:85%;"&gt;depot # vgimport swdepot /dev/dsk/c4t0d0&lt;br /&gt;depot # vgimport tmp /dev/dsk/c4t0d1&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Then activate them with&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;font-size:85%;"&gt;&lt;strong&gt;vgchange -a y swdepot&lt;br /&gt;vgchange -a y tmp&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Recreate &lt;strong&gt;&lt;span style="font-family:courier new;font-size:85%;"&gt;/etc/lvmtab&lt;/span&gt;&lt;/strong&gt; with &lt;strong&gt;&lt;span style="font-family:courier new;font-size:85%;"&gt;vgscan -av&lt;/span&gt;&lt;/strong&gt; and mount them or reboot.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/19755180-114356041469949223?l=ps258.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ps258.blogspot.com/feeds/114356041469949223/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=19755180&amp;postID=114356041469949223' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/19755180/posts/default/114356041469949223'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/19755180/posts/default/114356041469949223'/><link rel='alternate' type='text/html' href='http://ps258.blogspot.com/2006/03/recovering-from-change-in-device-paths.html' title='recovering from a change in device paths under HP/UX'/><author><name>Peter</name><uri>http://www.blogger.com/profile/12481014669799278537</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-19755180.post-114356008180664099</id><published>2006-03-28T16:31:00.000+01:00</published><updated>2006-03-28T16:34:41.806+01:00</updated><title type='text'>Extending a logical volume on HP/UX</title><content type='html'>Extended the /depot volume on depot_host with the following commands&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;depot_host:user$ sudo lvextend -L 24000 /dev/vg01/lvol1&lt;br /&gt;depot_host:user$ lvdisplay /dev/vg01/lvol1&lt;br /&gt;depot_host:user$ bc&lt;br /&gt;24000*1024&lt;br /&gt;24576000&lt;br /&gt;depot_host:user$ sudo fsadm -F vxfs -b 24576000 /depot&lt;/strong&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/19755180-114356008180664099?l=ps258.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ps258.blogspot.com/feeds/114356008180664099/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=19755180&amp;postID=114356008180664099' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/19755180/posts/default/114356008180664099'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/19755180/posts/default/114356008180664099'/><link rel='alternate' type='text/html' href='http://ps258.blogspot.com/2006/03/extending-logical-volume-on-hpux.html' title='Extending a logical volume on HP/UX'/><author><name>Peter</name><uri>http://www.blogger.com/profile/12481014669799278537</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-19755180.post-114355990281348430</id><published>2006-03-28T16:30:00.000+01:00</published><updated>2006-03-28T16:31:42.813+01:00</updated><title type='text'>Creating an ignite image for the Itanium.</title><content type='html'>Creating an ignite image for the Itanium. I ignited it to the Foundation OE without the platform patches and without any of our post-install scripts. Then&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;rcp 10.0.0.102:/opt/ignite/data/scripts/make_sys_image /tmp&lt;br /&gt;init 1&lt;br /&gt;/tmp/make_sys_image -l 2 -s local -m c -c g -n UX1123_0304_64bit.gz&lt;br /&gt;rcp /var/tmp/UX1123_0304_64bit.gz 10.0.0.102:/swdepot/Images&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;It puts the image in /var/tmp&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/19755180-114355990281348430?l=ps258.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ps258.blogspot.com/feeds/114355990281348430/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=19755180&amp;postID=114355990281348430' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/19755180/posts/default/114355990281348430'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/19755180/posts/default/114355990281348430'/><link rel='alternate' type='text/html' href='http://ps258.blogspot.com/2006/03/creating-ignite-image-for-itanium.html' title='Creating an ignite image for the Itanium.'/><author><name>Peter</name><uri>http://www.blogger.com/profile/12481014669799278537</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-19755180.post-114355983436991400</id><published>2006-03-28T16:28:00.000+01:00</published><updated>2006-03-28T16:30:34.370+01:00</updated><title type='text'>Lan booting the rx2600 Itanium system</title><content type='html'>Lan booting the rx2600 Itanium system. Go to the EFI shell and issue the command &lt;strong&gt;lanboot select.&lt;/strong&gt; This will give the choice of which ethernet interface to use. I believe that the default it the gigabit interface or the one that's got a link, but it will show the MAC address for each of them at this stage. It requires that there be a dhcp/bootp and tftp server in broadcast range. There's good help on the &lt;a href="http://www.software.hp.com/products/IUX/faq.html"&gt;Ignite FAQ&lt;/a&gt;. Particularly the entry on &lt;a href="http://www.software.hp.com/products/IUX/faq.html#d0e3256"&gt;PXE-E16 errors&lt;/a&gt; Ensure that there's an entry in &lt;strong&gt;/etc/bootptab &lt;/strong&gt;like this&lt;br /&gt;&lt;br /&gt;ignite-defaults:   ht=ethernet:   hn:   bf=/opt/ignite/boot/nbp.efi:   bs=48&lt;br /&gt;&lt;br /&gt;test4:   tc=ignite-defaults:   ha=00306EF34BAA:   sm=255.255.255.0:   gw=10.224.0.1:   ip=10.224.0.234&lt;br /&gt;&lt;br /&gt;test5:   tc=ignite-defaults:   ha=00306EF3FB21:   sm=255.255.255.0:   gw=10.224.0.1:   ip=10.224.0.235&lt;br /&gt;&lt;br /&gt;Here I've added both the cards in a particular system.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/19755180-114355983436991400?l=ps258.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ps258.blogspot.com/feeds/114355983436991400/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=19755180&amp;postID=114355983436991400' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/19755180/posts/default/114355983436991400'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/19755180/posts/default/114355983436991400'/><link rel='alternate' type='text/html' href='http://ps258.blogspot.com/2006/03/lan-booting-rx2600-itanium-system.html' title='Lan booting the rx2600 Itanium system'/><author><name>Peter</name><uri>http://www.blogger.com/profile/12481014669799278537</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-19755180.post-114355968539047998</id><published>2006-03-28T16:27:00.000+01:00</published><updated>2006-03-28T16:28:05.390+01:00</updated><title type='text'>booting from an IDE cd-rom on a HP RP3410</title><content type='html'>Booting rp3410s&lt;br /&gt;&lt;strong&gt;sea IPL&lt;/strong&gt;&lt;br /&gt;doesn't find a bootable disk even when there's a CD in the drive. Just &lt;strong&gt;search&lt;/strong&gt; and &lt;strong&gt;boot&lt;/strong&gt;. The CD is an IDE device so that might be why.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/19755180-114355968539047998?l=ps258.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ps258.blogspot.com/feeds/114355968539047998/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=19755180&amp;postID=114355968539047998' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/19755180/posts/default/114355968539047998'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/19755180/posts/default/114355968539047998'/><link rel='alternate' type='text/html' href='http://ps258.blogspot.com/2006/03/booting-from-ide-cd-rom-on-hp-rp3410.html' title='booting from an IDE cd-rom on a HP RP3410'/><author><name>Peter</name><uri>http://www.blogger.com/profile/12481014669799278537</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-19755180.post-114355960993892372</id><published>2006-03-28T16:25:00.000+01:00</published><updated>2006-03-28T16:26:49.940+01:00</updated><title type='text'></title><content type='html'>To get sd commands working on a system without a network you would&lt;br /&gt;&lt;ul&gt;&lt;li&gt;boot to single user mode (press any key within 10 seconds -&gt; bo pri isl -&gt; interact with ipl yes -&gt; hpux -is) &lt;/li&gt;&lt;li&gt;mount -a &lt;/li&gt;&lt;li&gt;touch /var/adm/sw/standalone &lt;/li&gt;&lt;li&gt;vi /etc/hosts (127.0.0.1 {hostname} loopback &lt;/li&gt;&lt;li&gt;mv /etc/resolv.conf /etc/resolv.conf.sav &lt;/li&gt;&lt;li&gt;mv /etc/nsswitch.conf /etc/nsswitch.conf.sav &lt;/li&gt;&lt;li&gt;/sbin/init.d/hostname start &lt;/li&gt;&lt;li&gt;/sbin/init.d/net.init start &lt;/li&gt;&lt;li&gt;/sbin/init.d/net start &lt;/li&gt;&lt;li&gt;/usr/sbin/swagentd &amp;amp; &lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/19755180-114355960993892372?l=ps258.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ps258.blogspot.com/feeds/114355960993892372/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=19755180&amp;postID=114355960993892372' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/19755180/posts/default/114355960993892372'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/19755180/posts/default/114355960993892372'/><link rel='alternate' type='text/html' href='http://ps258.blogspot.com/2006/03/to-get-sd-commands-working-on-system.html' title=''/><author><name>Peter</name><uri>http://www.blogger.com/profile/12481014669799278537</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-19755180.post-114355953989881206</id><published>2006-03-28T16:24:00.000+01:00</published><updated>2006-03-28T16:25:39.896+01:00</updated><title type='text'>Multiple putty keys</title><content type='html'>If you have 2 or more shortcuts to keys in your start menu you end up with 2 putty agents running. The solution is to start the agent with the two keys and remove the shortcuts to the other keys. Create a new shortcut with something like this as the command line&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;"C:\Program Files\PuTTY\pageant.exe" \putty.PPK \labs.PPK&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Or similar&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/19755180-114355953989881206?l=ps258.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ps258.blogspot.com/feeds/114355953989881206/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=19755180&amp;postID=114355953989881206' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/19755180/posts/default/114355953989881206'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/19755180/posts/default/114355953989881206'/><link rel='alternate' type='text/html' href='http://ps258.blogspot.com/2006/03/multiple-putty-keys.html' title='Multiple putty keys'/><author><name>Peter</name><uri>http://www.blogger.com/profile/12481014669799278537</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-19755180.post-114355946059315173</id><published>2006-03-28T16:23:00.001+01:00</published><updated>2006-03-28T16:24:20.593+01:00</updated><title type='text'>HP/UX ntp man page errors</title><content type='html'>The man page for ntpq on HP-UX says that "delay", "offset" and "disp" are displayed in seconds. They are actually displayed in milliseconds.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/19755180-114355946059315173?l=ps258.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ps258.blogspot.com/feeds/114355946059315173/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=19755180&amp;postID=114355946059315173' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/19755180/posts/default/114355946059315173'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/19755180/posts/default/114355946059315173'/><link rel='alternate' type='text/html' href='http://ps258.blogspot.com/2006/03/hpux-ntp-man-page-errors.html' title='HP/UX ntp man page errors'/><author><name>Peter</name><uri>http://www.blogger.com/profile/12481014669799278537</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-19755180.post-114355941944268447</id><published>2006-03-28T16:23:00.000+01:00</published><updated>2006-03-28T16:23:39.443+01:00</updated><title type='text'>HP B-132 workstations and 10/100 NICs</title><content type='html'>B132s with serial numbers less than 3630908000 can't take 5509 100Mb ethernet card without a backplane update.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/19755180-114355941944268447?l=ps258.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ps258.blogspot.com/feeds/114355941944268447/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=19755180&amp;postID=114355941944268447' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/19755180/posts/default/114355941944268447'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/19755180/posts/default/114355941944268447'/><link rel='alternate' type='text/html' href='http://ps258.blogspot.com/2006/03/hp-b-132-workstations-and-10100-nics.html' title='HP B-132 workstations and 10/100 NICs'/><author><name>Peter</name><uri>http://www.blogger.com/profile/12481014669799278537</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-19755180.post-114355936029806795</id><published>2006-03-28T16:22:00.000+01:00</published><updated>2006-03-28T16:22:40.300+01:00</updated><title type='text'>HP G-Class memory fault code</title><content type='html'>A FLT 705A on a G-Class means that the memory in slot 5A is faulty. In this case the stick had died and needed to be replaced&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/19755180-114355936029806795?l=ps258.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ps258.blogspot.com/feeds/114355936029806795/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=19755180&amp;postID=114355936029806795' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/19755180/posts/default/114355936029806795'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/19755180/posts/default/114355936029806795'/><link rel='alternate' type='text/html' href='http://ps258.blogspot.com/2006/03/hp-g-class-memory-fault-code.html' title='HP G-Class memory fault code'/><author><name>Peter</name><uri>http://www.blogger.com/profile/12481014669799278537</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-19755180.post-114355923405980089</id><published>2006-03-28T16:20:00.000+01:00</published><updated>2006-03-28T16:20:34.060+01:00</updated><title type='text'>Cisco unnumbered loopback</title><content type='html'>Cisco allows you to assign an IP address to the loop back and use that with the IP unknumbered interfaces. The advantage is that the loopback never goes down. I don't think we can use it since we'd need an IP address for the loopback and for the ethernet (you can only use IP un-numbered on serial links) and we'd need to publish the route to the loopback via OSPF as well. See these pages &lt;a href="http://lists.linux-ha.org/pipermail/linux-ha/1998-December/003488.html"&gt;1&lt;/a&gt; &lt;a href="http://www.cisco.com/warp/public/701/20.html"&gt;2&lt;/a&gt; for more info.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/19755180-114355923405980089?l=ps258.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ps258.blogspot.com/feeds/114355923405980089/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=19755180&amp;postID=114355923405980089' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/19755180/posts/default/114355923405980089'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/19755180/posts/default/114355923405980089'/><link rel='alternate' type='text/html' href='http://ps258.blogspot.com/2006/03/cisco-unnumbered-loopback.html' title='Cisco unnumbered loopback'/><author><name>Peter</name><uri>http://www.blogger.com/profile/12481014669799278537</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-19755180.post-114355918627963168</id><published>2006-03-28T16:19:00.000+01:00</published><updated>2006-03-28T16:19:46.280+01:00</updated><title type='text'>SD and NIS</title><content type='html'>Because sd commands are a bit strange you need the NIS tokens in /etc/passwd &lt;strong&gt;(+::-2:600001:::)&lt;/strong&gt; and /etc/group &lt;strong&gt;(+:*:*)&lt;/strong&gt; if you use NIS accounts.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/19755180-114355918627963168?l=ps258.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ps258.blogspot.com/feeds/114355918627963168/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=19755180&amp;postID=114355918627963168' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/19755180/posts/default/114355918627963168'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/19755180/posts/default/114355918627963168'/><link rel='alternate' type='text/html' href='http://ps258.blogspot.com/2006/03/sd-and-nis.html' title='SD and NIS'/><author><name>Peter</name><uri>http://www.blogger.com/profile/12481014669799278537</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-19755180.post-114355910461277353</id><published>2006-03-28T16:12:00.000+01:00</published><updated>2006-03-28T16:18:24.616+01:00</updated><title type='text'>to multisite a VOB</title><content type='html'>&lt;strong&gt;multitool rename replica:original@/projects/VOB-name replica:region@/projects/VOB-name&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;multitool chreplica -host rgyserv /projects/VOB-name&lt;br /&gt;multitool mkreplica -export -fship -work /tmp/vob_sync remote-vob-server:remote-region@/projects/VOB-name&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;multitool mkreplica -import \&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;        -nc \&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;        -workdir /tmp/vob_sync_x \&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;        -options noauto \&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;        -preserve \&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;        -public -password pass\&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;        -tag /projects/VOB-name \&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;        -vob /data/path/VOB-name.vbs \&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;        -host vob-server.com \&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;        -hpath /data/path/VOB-name.vbs \&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;        -gpath /data/path/VOB-name.vbs \&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;        packetname&lt;br /&gt;remote-host# ct lsvob -long /projects/VOB-name&lt;/strong&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/19755180-114355910461277353?l=ps258.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ps258.blogspot.com/feeds/114355910461277353/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=19755180&amp;postID=114355910461277353' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/19755180/posts/default/114355910461277353'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/19755180/posts/default/114355910461277353'/><link rel='alternate' type='text/html' href='http://ps258.blogspot.com/2006/03/to-multisite-vob.html' title='to multisite a VOB'/><author><name>Peter</name><uri>http://www.blogger.com/profile/12481014669799278537</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-19755180.post-114355870403407444</id><published>2006-03-28T16:08:00.000+01:00</published><updated>2006-03-28T16:11:44.036+01:00</updated><title type='text'>Cisco router filtering example</title><content type='html'>This is a router config set that will add filters to ethernet0. Something like it will be applied to the top level router in the to improve secuirty&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;config terminal&lt;br /&gt;!&lt;br /&gt;! make sure the DNS is setup&lt;br /&gt;ip domain-name domain.name.com&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;ip name-server xx.xx.x.xx&lt;br /&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;!&lt;br /&gt;! for lab-bb&lt;br /&gt;! interface FastEthernet0/0&lt;br /&gt;!&lt;br /&gt;interface ethernet 0&lt;br /&gt;no ip access-group 110 in&lt;br /&gt;no ip access-group 110 out&lt;br /&gt;exit&lt;br /&gt;!&lt;br /&gt;no access-list 110&lt;br /&gt;!&lt;br /&gt;! allow ssh to labgw (192.196.15.5)&lt;br /&gt;access-list 110 permit tcp any host labgw eq 22&lt;br /&gt;access-list 110 deny tcp any any eq 22&lt;br /&gt;!&lt;br /&gt;! allow ftp to &lt;/strong&gt;&lt;a href="ftp://ftp.britain.agilent.com"&gt;&lt;strong&gt;ftpserv&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt; (192.196.15.6)&lt;br /&gt;access-list 110 permit tcp any host &lt;/strong&gt;&lt;a href="ftp://ftp.britain.agilent.com"&gt;&lt;strong&gt;ftpserv&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt; eq 21&lt;br /&gt;access-list 110 deny tcp any any eq 21&lt;br /&gt;!&lt;br /&gt;! block rexec&lt;br /&gt;access-list 110 deny tcp any any eq 512&lt;br /&gt;!&lt;br /&gt;! block rlogin&lt;br /&gt;access-list 110 deny tcp any any eq 513&lt;br /&gt;!&lt;br /&gt;!block rcmd&lt;br /&gt;access-list 110 deny tcp any any eq 514&lt;br /&gt;!&lt;br /&gt;!block telnet&lt;br /&gt;access-list 110 deny tcp any any eq 23&lt;br /&gt;!&lt;br /&gt;! allow everything not explicitly denied.&lt;br /&gt;access-list 110 permit ip any any&lt;br /&gt;!&lt;br /&gt;!&lt;br /&gt;interface ethernet 0&lt;br /&gt;ip access-group 110 out&lt;br /&gt;exit&lt;/strong&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/19755180-114355870403407444?l=ps258.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ps258.blogspot.com/feeds/114355870403407444/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=19755180&amp;postID=114355870403407444' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/19755180/posts/default/114355870403407444'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/19755180/posts/default/114355870403407444'/><link rel='alternate' type='text/html' href='http://ps258.blogspot.com/2006/03/cisco-router-filtering-example.html' title='Cisco router filtering example'/><author><name>Peter</name><uri>http://www.blogger.com/profile/12481014669799278537</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-19755180.post-114355844962778958</id><published>2006-03-28T16:05:00.000+01:00</published><updated>2006-03-28T16:07:29.630+01:00</updated><title type='text'>Creating an SD depot for a non-root user</title><content type='html'>Added a depot to dsgdepot for a user. The commands were&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;swcopy -s /data/nsg/stuff/SWPackage/Depot/stuff_Alpha.depot @ dsgdepot:/mnt1/depot/NSG/Ergo&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;swacl -l depot -M user:nlittle:rwit @ dsgdepot:/mnt1/depot/NSG/Stuff&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;He will have to build his tape depot with the&lt;br /&gt;&lt;strong&gt;-x run_as_superuser=true&lt;/strong&gt;&lt;br /&gt;And then add that to the swcopy command to be able to do things on his own.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/19755180-114355844962778958?l=ps258.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ps258.blogspot.com/feeds/114355844962778958/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=19755180&amp;postID=114355844962778958' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/19755180/posts/default/114355844962778958'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/19755180/posts/default/114355844962778958'/><link rel='alternate' type='text/html' href='http://ps258.blogspot.com/2006/03/creating-sd-depot-for-non-root-user.html' title='Creating an SD depot for a non-root user'/><author><name>Peter</name><uri>http://www.blogger.com/profile/12481014669799278537</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-19755180.post-114355832331035503</id><published>2006-03-28T16:04:00.000+01:00</published><updated>2006-03-28T16:05:23.310+01:00</updated><title type='text'>Router config</title><content type='html'>I had a lot of trouble getting a router to work. I will have to remember that Cisco routers don't actually bring an interface up unless it's has a link. If you only connect the un-numbered interface on a router and not the numbered you can't ping the numbered since it doesn't exist until it's up.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/19755180-114355832331035503?l=ps258.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ps258.blogspot.com/feeds/114355832331035503/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=19755180&amp;postID=114355832331035503' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/19755180/posts/default/114355832331035503'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/19755180/posts/default/114355832331035503'/><link rel='alternate' type='text/html' href='http://ps258.blogspot.com/2006/03/router-config.html' title='Router config'/><author><name>Peter</name><uri>http://www.blogger.com/profile/12481014669799278537</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-19755180.post-114355809794193469</id><published>2006-03-28T16:00:00.000+01:00</published><updated>2006-03-28T16:01:38.070+01:00</updated><title type='text'>HP/UX make net recovery</title><content type='html'>The net recovery service doesn't work on UX 10.20. You get “&lt;strong&gt;warning: ignoring unknown keyword architecture at line xxx&lt;/strong&gt;” it might be fixable by installing an appropriate version of the ignite client on the probe, but it might not! 10.20 isn't supported so that makes it harder to get answers from HP.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/19755180-114355809794193469?l=ps258.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ps258.blogspot.com/feeds/114355809794193469/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=19755180&amp;postID=114355809794193469' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/19755180/posts/default/114355809794193469'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/19755180/posts/default/114355809794193469'/><link rel='alternate' type='text/html' href='http://ps258.blogspot.com/2006/03/hpux-make-net-recovery.html' title='HP/UX make net recovery'/><author><name>Peter</name><uri>http://www.blogger.com/profile/12481014669799278537</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-19755180.post-113424566795045369</id><published>2005-12-10T20:13:00.000Z</published><updated>2005-12-10T20:14:27.963Z</updated><title type='text'>Initial Post</title><content type='html'>Intention is to post technical notes for future reference.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/19755180-113424566795045369?l=ps258.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ps258.blogspot.com/feeds/113424566795045369/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=19755180&amp;postID=113424566795045369' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/19755180/posts/default/113424566795045369'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/19755180/posts/default/113424566795045369'/><link rel='alternate' type='text/html' href='http://ps258.blogspot.com/2005/12/initial-post.html' title='Initial Post'/><author><name>Peter</name><uri>http://www.blogger.com/profile/12481014669799278537</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
