<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Unix Sysadmin &#187; Operating System</title>
	<atom:link href="http://www.sysadmindayph.com/blog/category/operating-system/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sysadmindayph.com/blog</link>
	<description>SysAdmin Blog, TechTips and Reviews</description>
	<lastBuildDate>Fri, 27 Jan 2012 04:36:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Solaris Kernel Patching Recommended Patch</title>
		<link>http://www.sysadmindayph.com/blog/solaris-kernel-patching-recommended-patch/</link>
		<comments>http://www.sysadmindayph.com/blog/solaris-kernel-patching-recommended-patch/#comments</comments>
		<pubDate>Tue, 27 Apr 2010 05:48:25 +0000</pubDate>
		<dc:creator>elizar</dc:creator>
				<category><![CDATA[Operating System]]></category>
		<category><![CDATA[Solaris]]></category>
		<category><![CDATA[Solaris 10]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[10_recommended patch]]></category>
		<category><![CDATA[breaking mirror]]></category>
		<category><![CDATA[howto kernel patch]]></category>
		<category><![CDATA[kernel patch]]></category>
		<category><![CDATA[solaris kernel patching]]></category>

		<guid isPermaLink="false">http://www.sysadmindayph.com/blog/?p=223</guid>
		<description><![CDATA[Here&#8217;s another Kernel patching of Solaris. I know there are tons of this type of post in the internet but another reference for the one who needs it, is I guess ok. To be honest, this is the steps that really made me understood the steps and procedure and the concept behind the 10_Recommended patch &#8230; <a href="http://www.sysadmindayph.com/blog/solaris-kernel-patching-recommended-patch/">Continue reading</a>]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s another Kernel patching of Solaris. I know there are tons of this type of post in the internet but another reference for the one who needs it, is I guess ok.</p>
<p>To be honest, this is the steps that really made me understood the steps and procedure and the concept behind the 10_Recommended patch for solaris kernel.</p>
<p><span id="more-223"></span></p>
<p>So, here it is:</p>
<p><strong>Check Boot Disk</strong></p>
<p>This step is to check which disks are the member of the boot mirror. We can say that this is the check disk mirror / disk membership step</p>
<p><code><br />
# df -h /<br />
Filesystem             size   used  avail capacity  Mounted on<br />
/dev/md/dsk/d0          33G   7.3G    25G    23%    /<br />
#<br />
# metastat -c d0<br />
d0               m   33GB d10 d20<br />
    d10          s   33GB c1t0d0s0<br />
    d20          s   33GB c1t1d0s0</p>
<p></code></p>
<p>As you can see, there are two disk that comprise the boot mirror (d0), 33GB c1t0d0s0 and c1t1d0s0, which is named d10 and d20 respectively</p>
<p><strong>Check which disk is booting up</strong></p>
<p>In this step, we will determine which of the disk are the one being use as the boot default boot disk.</p>
<p>Usually it&#8217;s the default &#8216;disk&#8217; or &#8216;disk0&#8242;, but there are times, very rare, that &#8216;disk1&#8242; is set as the default boot disk.</p>
<p>To know which disk is the one that boot up the system, you can use the eeprom command in the system shell:</p>
<p><code><br />
# eeprom boot-device<br />
boot-device=disk0<br />
</code></p>
<p>In this case, it&#8217;s the most common disk that is used as the boot disk &#8211; disk0. That means, when can detach the other disk as backup just in case the patching screw up.</p>
<p><strong>Check The Bootability of the Backup Disk</strong></p>
<p>Prior to patching, check if the other disk is booting. This is a precaution. Just in case the patching went sour, we know that we can always revert to a good disk, revert to the previous good booting condition of the server.</p>
<p>Since from the previous step, we know that the default boot disk is &#8216;disk0&#8242;, we will switch to &#8216;disk1&#8242; and try to reboot the server and see if it will come up.</p>
<p>Now, there are two ways to set the value of the &#8216;boot-device&#8217; paramter of the server. You can either set it at the system shell, or through the Boot PROM, depending on where you are at the moment.</p>
<p>Now, set the default boot disk to &#8216;disk1&#8242;</p>
<p><code><a href="http://docs.sun.com/app/docs/doc/819-2379/bootdevice-change?a=view">eeprom boot-device=disk1</a></code></p>
<p>or</p>
<p><code><a href="http://docs.sun.com/app/docs/doc/805-7228/6j6q7uepp?a=view">set boot-device=disk1</a></code></p>
<p>After setting it up, reboot the server:</p>
<p>init 0 then boot </p>
<p>or </p>
<p>init 6</p>
<p>If you&#8217;re successfull, you just  booted on the &#8216;other half&#8217; of the bootdisk.</p>
<p>Now, don&#8217;t forget to switch back to disk0 !!!</p>
<p>Next, (optional&#8230; can differ from company to company)</p>
<p><code># untar the patch file<br />
cd /var/tmp<br />
rm -rf PatchDir<br />
mkdir PatchDir<br />
mv S10KernelUpdate4.0.tar.gz PatchDir<br />
cd PatchDir<br />
gunzip -c S10KernelUpdate4.0.tar.gz|tar xf -</code></p>
<p><strong>Splitting the Mirror</strong></p>
<p>The next steps are the meat of the procedure. This is the patching of the kernel itself.. But of course, after checking the boot disk &#8211; whether the both disks are good- it&#8217;s time to break the mirror and patch one disk.</p>
<p>sync;metadeatch</p>
<p>detach the backup disk</p>
<p>metadetach d0 d20</p>
<p># mount the detached root file system to root and modify these</p>
<p>mount /dev/dsk/c1t1d0s0 /mnt</p>
<p>vi /mnt/etc/vfstab<br />
vi /mnt/etc/system</p>
<p>Modifying vsfstab and /etc/system of the detached disk will make sure that if the patching fail, we can alyas boot up to the backup disk.</p>
<p><strong>Start Patching</strong></p>
<p># go to single user mode<br />
sync;sync;init 0</p>
<p>init -s</p>
<p>Rebooting with command: boot -s<br />
Boot device: /pci@8,600000/SUNW,qlc@4/fp@0,0/disk@0,0  File and args: -s<br />
SunOS Release 5.10 Version Generic_141414-02 64-bit<br />
Copyright 1983-2009 Sun Microsystems, Inc.  All rights reserved.<br />
Use is subject to license terms.</p>
<p>&#8230; You then follow the ReadMe document that comes with the Patch here.</p>
<p>Once the patching is done, you&#8217;ll see the difference of the patch level of the kernel.</p>
<p>Boot device: disk0  File and args:<br />
SunOS Release 5.10 Version Generic_<strong>142900</strong>-02 64-bit<br />
Copyright 1983-2009 Sun Microsystems, Inc.  All rights reserved.<br />
Use is subject to license terms.</p>
<p>Optional<br />
=&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
For more installation messages refer to the installation logfile:<br />
  /var/sadm/install_data/PMGT:_TLP-Set_Solaris_10_SOE_S10KernelUpdate4.1_A1_04_27_10</p>
<p>Use &#8216;/usr/bin/showrev -p&#8217; or &#8216;/usr/sbin/patchadd -p&#8217; to verify<br />
installed patch-ids.<br />
Refer to individual patch README files for more patch detail.<br />
Rebooting the system is usually necessary after installation.<br />
svc.startd: The system is coming down.  Please wait.<br />
svc.startd: 20 system services are now being stopped.</p>
<p>!!! Please read the logfile for any required action before rebooting !<br />
&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>reboot:! for the bank, it&#8217;s automatic</p>
<p>If all is good, you can reattach the other disk</p>
<p>metattach d0 d20</p>
<p>And you&#8217;re done.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sysadmindayph.com/blog/solaris-kernel-patching-recommended-patch/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>KSH Script Basics &#124; Special Shell Variables</title>
		<link>http://www.sysadmindayph.com/blog/ksh-script-basics-special-shell-variables/</link>
		<comments>http://www.sysadmindayph.com/blog/ksh-script-basics-special-shell-variables/#comments</comments>
		<pubDate>Fri, 23 Apr 2010 02:57:31 +0000</pubDate>
		<dc:creator>elizar</dc:creator>
				<category><![CDATA[Commands]]></category>
		<category><![CDATA[Script]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[Solaris]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[if else]]></category>
		<category><![CDATA[if else if]]></category>
		<category><![CDATA[ksh shell]]></category>
		<category><![CDATA[ksh shell script]]></category>
		<category><![CDATA[shell script]]></category>
		<category><![CDATA[special shell variable]]></category>

		<guid isPermaLink="false">http://www.sysadmindayph.com/blog/?p=221</guid>
		<description><![CDATA[Just deleted tons of stale, unsused user accounts. Here are some KSH shell basics and special shell variable. I need to Google them up myself to get reminded that &#8216;$?&#8217; is the output variable for script execution. That is, it&#8217;s 0 for successful execution and 1 if there is any error. Special shell variables There &#8230; <a href="http://www.sysadmindayph.com/blog/ksh-script-basics-special-shell-variables/">Continue reading</a>]]></description>
			<content:encoded><![CDATA[<p>Just deleted tons of stale, unsused user accounts. Here are some KSH shell basics and special shell variable. I need to Google them up myself to get reminded that &#8216;$?&#8217; is the output variable for script execution. That is, it&#8217;s 0 for successful execution and 1 if there is any error.</p>
<p><span id="more-221"></span></p>
<p>Special shell variables<br />
There are some variables which are set internally by the shell and which are available to the user:</p>
<p>Name          Description<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
$1 &#8211; $9       these variables are the positional parameters.</p>
<p>$0            the name of the command currently being executed.</p>
<p>$#            the number of positional arguments given to this<br />
              invocation of the shell.</p>
<p>$?            the exit status of the last command executed is<br />
              given as a decimal string.  When a command<br />
              completes successfully, it returns the exit status<br />
              of 0 (zero), otherwise it returns a non-zero exit<br />
              status.</p>
<p>$$            the process number of this shell &#8211; useful for<br />
              including in filenames, to make them unique.</p>
<p>$!            the process id of the last command run in<br />
              the background.</p>
<p>$-            the current options supplied to this invocation<br />
              of the shell.</p>
<p>$*            a string containing all the arguments to the<br />
              shell, starting at $1.</p>
<p>$@            same as above, except when quoted.</p>
<p><strong>Branching</strong><br />
<code>if then fi<br />
if [[ $value -eq 7 ]];then<br />
   print "$value is 7"<br />
fi</code><br />
or:</p>
<p><code>if [[ $value -eq 7 ]]<br />
then<br />
   print "$value is 7"<br />
fi</code>or:</p>
<p><code>if [[ $value -eq 7 ]];then print "$value is 7";fi</p>
<p>if then else fi<br />
if [[ $name = "John" ]];then<br />
   print "Your welcome, ${name}."<br />
else<br />
   print "Good bye, ${name}!"<br />
fi</code></p>
<p><code>if then elif then else fi<br />
if [[ $name = "John" ]];then<br />
   print "Your welcome, ${name}."<br />
elif [[ $name = "Hanna" ]];then<br />
   print "Hello, ${name}, who are you?"<br />
else<br />
   print "Good bye, ${name}!"<br />
fi</code></p>
<p><code>case esac<br />
case $var in<br />
   john|fred) print $invitation;;<br />
   martin)    print $declination;;<br />
   *)         print "Wrong name...";;<br />
esac</code></p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p><strong>Looping Command Syntax for Scripts</strong></p>
<p><code>while do done<br />
while [[ $count -gt 0 ]];do<br />
   print "\$count is $count"<br />
   (( count -= 1 ))<br />
done</code><br />
<code>until do done<br />
until [[ $answer = "yes" ]];do<br />
   print -n "Please enter \"yes\": "<br />
   read answer<br />
   print ""<br />
done</code><br />
<code>for var in list do done<br />
for foo in $(ls);do<br />
   if [[ -d $foo ]];then<br />
      print "$foo is a directory"<br />
   else<br />
      print "$foo is not a directory"<br />
   fi<br />
done</code><br />
continue&#8230;break<br />
One can skip the rest of a loop and directly go to the next iteration with: &#8220;continue&#8221;. </p>
<p><code>while read line<br />
do<br />
   if [[ $line = *.gz ]];then<br />
      continue<br />
   else<br />
      print $line<br />
   fi<br />
done</code><br />
One can also prematurely leave a loop with: &#8220;break&#8221;. </p>
<p><code>while read line;do<br />
   if [[ $line = *!(.c) ]];then<br />
      break<br />
   else<br />
      print $line<br />
   fi<br />
done</code></p>
<p>http://www.well.ox.ac.uk/~johnb/comp/unix/ksh.html</p>
<p>Removing accounts from predefine list:</p>
<p><code>#!/bin/ksh</p>
<p>for each in `cat ./list-a`<br />
do<br />
  grep -i $each  /etc/passwd<br />
    if [[ $? -eq 1 ]]; then<br />
        echo "$each does not exists."<br />
        sleep 2<br />
        continue;<br />
    else<br />
        echo "$each exists"<br />
        echo "Deleting account.. "<br />
        sleep 2<br />
        userdel $each<br />
        echo "$each deleted"<br />
        sleep 5<br />
     fi</p>
<p>done</code></p>
<p>Or course, the sleep there is just for aesthetic.. I want to see the screen</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sysadmindayph.com/blog/ksh-script-basics-special-shell-variables/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>getfacl and setfacl &#8211; Unix Access Control (acl) Tool</title>
		<link>http://www.sysadmindayph.com/blog/getfacl-and-setfacl-unix-access-control-acl-tool/</link>
		<comments>http://www.sysadmindayph.com/blog/getfacl-and-setfacl-unix-access-control-acl-tool/#comments</comments>
		<pubDate>Wed, 17 Mar 2010 14:12:06 +0000</pubDate>
		<dc:creator>elizar</dc:creator>
				<category><![CDATA[Commands]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Operating System]]></category>
		<category><![CDATA[Solaris]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[access list]]></category>
		<category><![CDATA[acl]]></category>
		<category><![CDATA[getfacl]]></category>
		<category><![CDATA[setfacl]]></category>

		<guid isPermaLink="false">http://www.sysadmindayph.com/blog/?p=194</guid>
		<description><![CDATA[Today&#8217;s topic is all about Access List&#8230; For Unix and Unix-like system, the usual command to set the file permission is the &#8216;chmod&#8217; command. However there are instances that we need more flexibility in giving access and control for files and folders. Get it? Access and Control? In this situation, there is a file utility &#8230; <a href="http://www.sysadmindayph.com/blog/getfacl-and-setfacl-unix-access-control-acl-tool/">Continue reading</a>]]></description>
			<content:encoded><![CDATA[<p>Today&#8217;s topic is all about <strong>Access List</strong>&#8230; For Unix and Unix-like system, the usual command to set the file permission is the &#8216;chmod&#8217; command. However there are instances that we need more flexibility in giving access and control for files and folders. Get it? Access and Control? In this situation, there is a file utility built in Unix called &#8216;<strong>getfacl</strong>&#8216; and &#8216;<strong>setfacl</strong>&#8216;.</p>
<p><strong><br />
getfacl</strong> is a file utility for viewing the access control list information associated with a file or directory.</p>
<p>For a memory aid, you can think of &#8216;getfacl&#8217; as &#8220;<strong>G</strong>et <strong>F</strong>ile <strong>ACL</strong>&#8220;.. ACL being Access Control List.</p>
<p>Access control lists are extended attributes added to most major file systems in the 2.6 kernel to improve ability to control the access of files. They allow permissions to be set for individual groups and users and not just the owning user, owning group, and all other users.</p>
<p><strong>setfacl</strong> is a command that allows you to set the Access Control List information for a file or directory.</p>
<p>Access control lists are extended attributes added to most major file systems in the 2.6 kernel to improve ability to control the access of files. They allow permissions to be set for individual groups and users and not just the owning user, owning group, and all other users.</p>
<p>You can read man pages for both <a href="http://www.unix.com/man-page/All/1/getfacl/">getfacl</a> and <a href="http://www.unix.com/man-page/All/1/setfacl/">setfacl</a> for more information.</p>
<p>getfacl and setfacl example&#8230;.</p>
<p>Here&#8217;s an example of using the basic funtion of getfacl and setfacl</p>
<p># getfacl</p>
<p>#setfacl</p>
<p>setfacl -m default:user::rwx,default:group::r-x,default:other:r-x,default:mask:rwx /u06/OneSource/datapump_dbdump</p>
<p>setfacl -m default:user:rcodapp1:r-x,default:group:r-x,default:other:&#8212;,default:mas:rwx /u06/OneSouce/datapump_dbdump</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sysadmindayph.com/blog/getfacl-and-setfacl-unix-access-control-acl-tool/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Unlock locked user account in HP-UX</title>
		<link>http://www.sysadmindayph.com/blog/unlock-locked-user-account-in-hp-ux/</link>
		<comments>http://www.sysadmindayph.com/blog/unlock-locked-user-account-in-hp-ux/#comments</comments>
		<pubDate>Thu, 15 Oct 2009 12:54:42 +0000</pubDate>
		<dc:creator>elizar</dc:creator>
				<category><![CDATA[HP-UX]]></category>
		<category><![CDATA[Operating System]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[hpux]]></category>
		<category><![CDATA[lock user]]></category>
		<category><![CDATA[modprpw]]></category>

		<guid isPermaLink="false">http://www.sysadmindayph.com/blog/?p=170</guid>
		<description><![CDATA[I know nothing about HP UX (yeah, except SAM). That&#8217;s why, just now, when there&#8217;s a request to just make a trace route from an HPUX server to another server, I have to login and do execute the command. I couldn&#8217;t log in as my user id so i logged in as root instead from &#8230; <a href="http://www.sysadmindayph.com/blog/unlock-locked-user-account-in-hp-ux/">Continue reading</a>]]></description>
			<content:encoded><![CDATA[<p>I know nothing about HP UX (yeah, except SAM). That&#8217;s why, just now, when there&#8217;s a request to just make a trace route from an HPUX server to another server, I have to login and do execute the command. I couldn&#8217;t log in as my user id so i logged in as root instead from the console.</p>
<p>I check grep&#8217;d my account the walah! It was there! I reset the password, open an ssh terminal and tried to login. unsuccessful, that&#8217;s why i knew then that it is locked.</p>
<p>Here&#8217;s how to unlock a locked user account in HP UX in command line.</p>
<blockquote><p><span><span style="color: #434343;">In HP-UX 11.xx if user account is locked, you can unlock the account by running SAM. But running SAM takes some time usually 2-3 minutes on heavily loaded HP-UX servers. You can unlock the locked user account from command line by running following command: </span></span></p>
<p><span style="color: #434343;">1. Login as root or use sudo from your account, if there is no <strong>sudo</strong> installed just use <strong>su – root :</strong> </span></p>
<div style="margin-left: 26pt;">
<table style="border-collapse: collapse;" border="0">
<colgroup>
<col style="width: 522px;"></col>
</colgroup>
<tbody>
<tr>
<td style="border: 0.5pt dotted; padding-left: 7px; padding-right: 7px;">
<p style="margin-left: 18pt;"><span style="color: #434343; font-family: Courier New;">$sudo su – </span></p>
<p style="margin-left: 18pt;"><span style="color: #434343; font-family: Courier New;">*******</span></p>
</td>
</tr>
</tbody>
</table>
</div>
<p><span style="color: #434343;"><span style="font-family: Courier New;">2.</span> Run this command to unlock the locked HP-UX user account:<span style="font-family: Courier New;"> </span></span></p>
<div style="margin-left: 26pt;">
<table style="border-collapse: collapse;" border="0">
<colgroup>
<col style="width: 522px;"></col>
</colgroup>
<tbody style="font-family: courier new;">
<tr>
<td style="border: 0.5pt dotted; padding-left: 7px; padding-right: 7px;"><span style="color: #434343;">#</span><span style="color: black;">/usr/lbin/modprpw –l –k johnm</span></td>
</tr>
</tbody>
</table>
</div>
<p><span style="font-family: Arial; color: black;">Running modprpw will unlock the locked user account in HP-UX from command line.without running SAM </span></p>
<p><span style="font-family: Arial; color: black;">NOTE: modprpw is HP-UX command only and wouldn&#8217;t work in Solaris,AIX and any Linux servers </span></p></blockquote>
<p>That info was &#8216;borrowed&#8217; from <a href="http://sysdigg.blogspot.com/2007/12/how-to-unlock-locked-user-account-in-hp.html" rel="nofollow">here</a>&#8230;. thanks!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sysadmindayph.com/blog/unlock-locked-user-account-in-hp-ux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Send Break on SPARC Enterprise T5120 &#8211; Send Break on ILOM</title>
		<link>http://www.sysadmindayph.com/blog/send-break-on-sparc-enterprise-t5120-send-break-on-ilom/</link>
		<comments>http://www.sysadmindayph.com/blog/send-break-on-sparc-enterprise-t5120-send-break-on-ilom/#comments</comments>
		<pubDate>Thu, 15 Oct 2009 09:06:20 +0000</pubDate>
		<dc:creator>elizar</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Operating System]]></category>
		<category><![CDATA[Solaris]]></category>
		<category><![CDATA[Solaris 10]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[alom]]></category>
		<category><![CDATA[console]]></category>
		<category><![CDATA[ilom]]></category>
		<category><![CDATA[sp console]]></category>
		<category><![CDATA[sparc enterprise]]></category>
		<category><![CDATA[t5120]]></category>

		<guid isPermaLink="false">http://www.sysadmindayph.com/blog/?p=169</guid>
		<description><![CDATA[Send Break on SPARC Enterprise T5120 &#8211; well it for the T5000 series I guess, the newer ones. Or &#8220;Sending Break onan ILOM.. &#8220;-&#62;&#8221; = ILOM &#8220;sc&#62;&#8221; = ALOM .. and since this particular server has the &#8220;-&#62;&#8221; prompt we&#8217;re using the ILOM. From ILOM to Solaris: -&#62; start /SP/console From ALOM to Solaris: sc&#62; &#8230; <a href="http://www.sysadmindayph.com/blog/send-break-on-sparc-enterprise-t5120-send-break-on-ilom/">Continue reading</a>]]></description>
			<content:encoded><![CDATA[<p>Send Break on SPARC Enterprise T5120 &#8211; well it for the T5000 series I guess, the newer ones. Or &#8220;Sending Break onan ILOM..</p>
<blockquote><p>&#8220;-&gt;&#8221;    = ILOM<br />
&#8220;sc&gt;&#8221;  = ALOM</p></blockquote>
<p>.. and since this particular server has the &#8220;-&gt;&#8221; prompt we&#8217;re using the ILOM.</p>
<p>From ILOM to Solaris:<br />
-&gt; start /SP/console</p>
<p>From ALOM to Solaris:<br />
sc&gt; console</p>
<p>And of course.. Enter &#8220;#.&#8221; to return to ALOM / ILOM !!</p>
<p><strong>Send Break on ILOM</strong></p>
<p><span style="color: red;">set /HOST send_break_action=break</span><br />
and then<br />
<span style="color: red;">start /SP/console</span></p>
<p>c)ontinue, s)ync, r)eset? s</p>
<p>bada bing! bada boom!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sysadmindayph.com/blog/send-break-on-sparc-enterprise-t5120-send-break-on-ilom/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Building ZFS Mirrored File System Example</title>
		<link>http://www.sysadmindayph.com/blog/building-zfs-mirrored-file-system-example/</link>
		<comments>http://www.sysadmindayph.com/blog/building-zfs-mirrored-file-system-example/#comments</comments>
		<pubDate>Tue, 16 Sep 2008 17:24:39 +0000</pubDate>
		<dc:creator>elizar</dc:creator>
				<category><![CDATA[Operating System]]></category>
		<category><![CDATA[Solaris 10]]></category>
		<category><![CDATA[ZFS]]></category>
		<category><![CDATA[create mirror]]></category>
		<category><![CDATA[zfs build]]></category>
		<category><![CDATA[zfs mirror disk]]></category>

		<guid isPermaLink="false">http://www.sysadmindayph.com/blog/?p=103</guid>
		<description><![CDATA[I&#8217;ve writted something about the Zeta file system before&#8230; It&#8217;s like some sort of an intro to the filesystem. This post will be the first of series of post in configuring ZFS on a test machine, a Sun-Fire-V240 running Solaris 10. # uname -a SunOS sedm3205 5.10 Generic_137111-04 sun4u sparc SUNW,Sun-Fire-V240 Anyhow, first topic will &#8230; <a href="http://www.sysadmindayph.com/blog/building-zfs-mirrored-file-system-example/">Continue reading</a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve writted something about the Zeta file system before&#8230; It&#8217;s like some sort of an intro to the filesystem.</p>
<p>This post will be the first of series of post in configuring ZFS on a test machine, a Sun-Fire-V240 running Solaris 10.</p>
<blockquote><p># uname -a<br />
SunOS sedm3205 5.10 Generic_137111-04 sun4u sparc SUNW,Sun-Fire-V240</p></blockquote>
<p>Anyhow, first topic will be how to create/build, test, destroy and recreate a mirrored ZFS disk (or file based). Most of the ZFS commands we&#8217;ll be using are:</p>
<ul>
<li>zpool</li>
<li>zcreate</li>
</ul>
<p>That&#8217;s it!</p>
<p><strong>Creating the ZFS Mirror</strong></p>
<p>We&#8217;ll create two kinds of mirrored partition, one is file based and the other was is physical 175GB disk.</p>
<p><span id="more-103"></span></p>
<p>Here&#8217;s for the file based&#8230; first create two 150M files:</p>
<blockquote><p># mkfile 150m /home/elizar/disk1 ; mkfile 150m /home/elizar/disk2</p></blockquote>
<p>Once that&#8217;s done, go ahead and create the Mirrored volume:</p>
<blockquote><p># zpool create file-mirror mirror /home/elizar/disk1 /home/elizar/disk2</p></blockquote>
<p>After that command you&#8217;ll now have a new mirrored disk/partition mounted on the root called file-mirror</p>
<p># zpool status file-mirror<br />
pool: file-mirror<br />
state: ONLINE<br />
scrub: resilver completed with 0 errors on Tue Sep 16 17:04:13 2008<br />
config:</p>
<p>NAME                                    STATE     READ WRITE CKSUM<br />
file-mirror                             ONLINE       0     0     0<br />
mirror                                ONLINE       0     0     0<br />
/export/home/x120008/zfs-lab/disk2  ONLINE       0     0     0<br />
/export/home/x120008/zfs-lab/disk1  ONLINE       0     0     0</p>
<p>errors: No known data errors<br />
We&#8217;ll try and break the mirror the next time!</p>
<p>http://flux.org.uk/howto/solaris/zfs_tutorial_01</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sysadmindayph.com/blog/building-zfs-mirrored-file-system-example/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Watch-Net and Watch-Net-All Diagnostics</title>
		<link>http://www.sysadmindayph.com/blog/watch-net-and-watch-net-all-diagnostics/</link>
		<comments>http://www.sysadmindayph.com/blog/watch-net-and-watch-net-all-diagnostics/#comments</comments>
		<pubDate>Mon, 08 Sep 2008 18:52:17 +0000</pubDate>
		<dc:creator>elizar</dc:creator>
				<category><![CDATA[Jumpstart]]></category>
		<category><![CDATA[Operating System]]></category>
		<category><![CDATA[Solaris]]></category>
		<category><![CDATA[Solaris 10]]></category>
		<category><![CDATA[burnaby]]></category>
		<category><![CDATA[canada]]></category>
		<category><![CDATA[obp]]></category>
		<category><![CDATA[openboot prom]]></category>
		<category><![CDATA[watch-net]]></category>
		<category><![CDATA[watch-net-all]]></category>

		<guid isPermaLink="false">http://www.sysadmindayph.com/blog/?p=101</guid>
		<description><![CDATA[This is the first post regarding the On-site training to make MNL SAs up to speed to support the company&#8217;s production servers. This week&#8217;s topic&#8230; building the server through Jumpstarting (yeah, solaris sparc servers). Watch-Net and Watch-Net-All Diagnostics The watch-net and watch-net-all diagnostics monitor Ethernet packets on the Ethernet interfaces connected to the system. Good &#8230; <a href="http://www.sysadmindayph.com/blog/watch-net-and-watch-net-all-diagnostics/">Continue reading</a>]]></description>
			<content:encoded><![CDATA[<p>This is the first post regarding the On-site training to make MNL SAs up to speed to support the company&#8217;s production servers.</p>
<p>This week&#8217;s topic&#8230; building the server through Jumpstarting (yeah, solaris sparc servers).</p>
<p><strong>Watch-Net and Watch-Net-All Diagnostics</strong></p>
<p>The watch-net and watch-net-all diagnostics monitor Ethernet packets on the Ethernet interfaces connected to the system. Good packets received by the system are indicated by a period (.). Errors such as the framing error and the cyclic redundancy check (CRC) error are indicated with an &#8220;X&#8221; and an associated error description. The watch-net diagnostic is initialized by typing the watch-net command at the ok prompt and the watch-net-all diagnostic is initialized by typing the watch-net-all command at the ok prompt. The following code example identifies the watch-net diagnostic output message. Example 4-3 identifies the watch-net-all diagnostic output message.</p>
<pre class="PROGRAMLISTING">ok <tt class="USERINPUT"><strong>watch-net</strong></tt>
Hme register test --- succeeded.
Internal loopback test -- succeeded.
Transceiver check  -- Using Onboard Transceiver - Link Up.
passed
Using Onboard Transceiver - Link Up.
Looking for Ethernet Packets.
'.' is a Good Packet.  'X' is
a Bad Packet.
Type any key to stop.
..................................................
................................................................
................................................................
........................................................

ok <tt class="USERINPUT"><strong>watch-net-all</strong></tt>
/pci@1f,0/pci@1,1/network@1,1
Hme register test --- succeeded.
Internal loopback test -- succeeded.
Transceiver check  -- Using Onboard Transceiver - Link Up.
passed
Using Onboard Transceiver - Link Up.
Looking for Ethernet Packets.
'.' is a Good Packet.  'X' is
a Bad Packet.
Type any key to stop.
........
................................................................
................................................................
................................................................
....................................
ok
ok</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.sysadmindayph.com/blog/watch-net-and-watch-net-all-diagnostics/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Configure Virtual Hosting in Apache Web Server</title>
		<link>http://www.sysadmindayph.com/blog/configure-virtual-hosting-in-apache-web-server/</link>
		<comments>http://www.sysadmindayph.com/blog/configure-virtual-hosting-in-apache-web-server/#comments</comments>
		<pubDate>Tue, 19 Aug 2008 12:59:32 +0000</pubDate>
		<dc:creator>elizar</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Installation]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[Web Hosting]]></category>
		<category><![CDATA[web server]]></category>
		<category><![CDATA[multiple domain]]></category>
		<category><![CDATA[shared server]]></category>
		<category><![CDATA[virtual host]]></category>

		<guid isPermaLink="false">http://www.sysadmindayph.com/blog/?p=90</guid>
		<description><![CDATA[When we say or mention the word Web Server, the first thing that comes to our mind is Apache, right? (if you don&#8217;t then what are you doing here reading this? ) Apache is the most well known open source web server there is! Open source?? Make that the most wildly used webserver on the &#8230; <a href="http://www.sysadmindayph.com/blog/configure-virtual-hosting-in-apache-web-server/">Continue reading</a>]]></description>
			<content:encoded><![CDATA[<p>When we say or mention the word Web Server, the first thing that comes to our mind is Apache, right? (if you don&#8217;t then what are you doing here reading this? <img src='http://www.sysadmindayph.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> )</p>
<p>Apache is the most well known open source web server there is! Open source?? Make that the most wildly used webserver  on the internet, period!</p>
<p>It is believed (and i know they made a survey or study about it) that Apache takes 90% of all web servers in the internet. Most web hosting company, and I&#8217;ve once worked in one, use Apache.</p>
<p>This post will talk about how to setup Apache for Virtual Hosting</p>
<p><span id="more-90"></span></p>
<p>Setting Up A Virtual Host in Apache</p>
<p>create a completely seperate document root, cgi-bin directory, and logfile directory for each host. You can place these beneath the standard Debian prefix of /var/www or you may use a completely different root</p>
<blockquote>
<pre>root@irony:~# mkdir /home/www

root@irony:~# mkdir /home/www/www.example.com
root@irony:~# mkdir /home/www/www.example.com/htdocs
root@irony:~# mkdir /home/www/www.example.com/cgi-bin
root@irony:~# mkdir /home/www/www.example.com/logs

root@irony:~# mkdir /home/www/www.example.net
root@irony:~# mkdir /home/www/www.example.net/htdocs
root@irony:~# mkdir /home/www/www.example.net/logs
root@irony:~# mkdir /home/www/www.example.net/cgi-bin

root@irony:~# mkdir /home/www/www.example.org
root@irony:~# mkdir /home/www/www.example.org/htdocs
root@irony:~# mkdir /home/www/www.example.org/logs

root@irony:~# mkdir /home/www/www.example.org/cgi-bin</pre>
</blockquote>
<p>NEt<br />
Here we&#8217;ve setup three different directory trees, one for each site. If you wanted to have identical content it might make sense to only create one, and then use symbolic links instead.</p>
<p>The next thing to do is to enable virtual hosts in your Apache configuration. The simplest way to do this is to create a file called /etc/apache2/conf.d/virtual.conf and include the following content in it:</p>
<blockquote>
<pre>#
#  We're running multiple virtual hosts.
#
Nameserver *

NameVirtualHost *</pre>
</blockquote>
<p>(When Apache starts up it reads the contents of all files included in /etc/apache2/conf.d, and files you create here won&#8217;t get trashed on package upgrades.)</p>
<p>Once we&#8217;ve done this we can create the individual host configuration files. The Apache2 setup you&#8217;ll find on Debian GNU/Linux includes two directories for locating your site configuration files:</p>
<p>/etc/apache2/sites-available</p>
<p>This contains configuration files for sites which are available but not necessarily enabled.<br />
/etc/apache2/sites-enabled</p>
<p>This directory contains site files which are enabled.</p>
<p>As with the conf.d directory each configuration file in the sites-enabled directory is loaded when the server starts &#8211; whilst the files in sites-available are completely ignored.</p>
<p>You are expected to create your host configuration files in /etc/apache2/sites-available, then create a symbolic link to those files in the sites-enabled directory &#8211; this will cause them to be actually loaded/read.</p>
<p>Rather than actually messing around with symbolic links the Debian package includes two utility commands a2ensite and a2dissite which will do the necessary work for you as we will demonstrate shortly.</p>
<p>Lets start with a real example. Create /etc/apache2/sites-available/www.example.com with the following contents:</p>
<blockquote>
<pre>#
#  Example.com (/etc/apache2/sites-available/www.example.com)
#
&lt;VirtualHost *&gt;
ServerAdmin webmaster@example.com
ServerName  www.example.com
ServerAlias example.com

# Indexes + Directory Root.
DirectoryIndex index.html
DocumentRoot /home/www/www.example.com/htdocs/

# CGI Directory
ScriptAlias /cgi-bin/ /home/www/www.example.com/cgi-bin/
&lt;Location /cgi-bin&gt;
Options +ExecCGI
&lt;/Location&gt;

# Logfiles
ErrorLog  /home/www/www.example.com/logs/error.log
CustomLog /home/www/www.example.com/logs/access.log combined

&lt;/VirtualHost&gt;</pre>
</blockquote>
<p>ow we&#8217;ve got:</p>
<ul>
<li>Three directories which can be used to contain our content.</li>
<li>Three directories which can be used to contain our logfiles.</li>
<li>Three directories which can be used to contain our dynamic CGI scripts.</li>
<li>Three configuration files which are being ignored by Apache.</li>
</ul>
<p>To enable the sites simply run:</p>
<pre>root@irony:~# a2ensite www.example.com
Site www.example.com installed; run /etc/init.d/apache2 reload to enable.

root@irony:~# a2ensite www.example.net
Site www.example.net installed; run /etc/init.d/apache2 reload to enable.

root@irony:~# a2ensite www.example.org
Site www.example.org installed; run /etc/init.d/apache2 reload to enable.</pre>
<p>This will now create the symbolic links so that <tt>/etc/apache2/sites-enabled/www.example.org</tt>, etc, now exist and will be read.</p>
<p>Once we&#8217;ve finished our setup we can restart, or reload, the webserver as the output above instructed us to do with:</p>
<pre>root@irony:~# /etc/init.d/apache2 reload
Reloading web server config...done.
root@irony:~#</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.sysadmindayph.com/blog/configure-virtual-hosting-in-apache-web-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>All About Arlo Gilbert</title>
		<link>http://www.sysadmindayph.com/blog/all-about-arlo-gilbert/</link>
		<comments>http://www.sysadmindayph.com/blog/all-about-arlo-gilbert/#comments</comments>
		<pubDate>Mon, 28 Apr 2008 12:07:24 +0000</pubDate>
		<dc:creator>elizar</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://www.sysadmindayph.com/blog/?p=76</guid>
		<description><![CDATA[Who in heaven is Arlo Gilbert? Yep, using &#8216;heaven&#8217; is perfect for describing this man for he do sometimes tries to conquer heaven. He&#8217;s into planes you see. Anyway, you&#8217;re probably Googling about Arlo Gilbert as you read this post. Well, let me save you a few minutes and introduce you to Mr. Gilbert in &#8230; <a href="http://www.sysadmindayph.com/blog/all-about-arlo-gilbert/">Continue reading</a>]]></description>
			<content:encoded><![CDATA[<p>Who in heaven is <strong>Arlo Gilbert</strong>? Yep, using &#8216;heaven&#8217; is perfect for describing this man for he do sometimes tries to conquer heaven. He&#8217;s into planes you see. <img src='http://www.sysadmindayph.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Anyway, you&#8217;re probably Googling about <em><a title="arlo gilbert" href="http://www.arlogilbert.com/" target="_blank">Arlo Gilbert</a></em> as you read this post. Well, let me save you a few minutes and introduce you to Mr. Gilbert in one fast minute.</p>
<p>He is the following:</p>
<ul>
<li>The Man is from Austin, Texas</li>
<li>Arlo Gilbert is a high school drop out&#8230; and a proud one (don&#8217;t do that boys and girls)</li>
<li>A family man! So there&#8217;s a Mrs. Gilbert and two little Arlo Gilberts (daughters)</li>
</ul>
<p>The reason why we feature this brilliant man is that he has successfully launched online startups and been doing it for 10 years now. Remember, high school dropout and no training in marketing or any business related studies&#8230; Brilliant indeed.</p>
<p>What caught my attention while reading his &#8216;About&#8217; page was his current project &#8211; the iCall. It&#8217;s a VOIP startup company. I was wondering if iCall was developed by <a title="arlo gilbert" href="http://elizar.palad.info/blog/this-arlo-gilbert-dude">Arlo Gilbert</a> or if it uses <a href="http://www.sysadmindayph.com/blog/asterisk-overview-an-open-source-voip-application/">Asterisk</a>?</p>
<p>.</p>
<p>.</p>
<p>.</p>
<p><a href="http://tekkenphilippines.com">Tekken Philippines</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sysadmindayph.com/blog/all-about-arlo-gilbert/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>vi Search and Replace&#8230; The Basics, Dummy&#8217;s Reference</title>
		<link>http://www.sysadmindayph.com/blog/vi-search-and-replace-the-basics-dummys-reference/</link>
		<comments>http://www.sysadmindayph.com/blog/vi-search-and-replace-the-basics-dummys-reference/#comments</comments>
		<pubDate>Wed, 12 Mar 2008 22:18:04 +0000</pubDate>
		<dc:creator>elizar</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Solaris]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://www.sysadmindayph.com/blog/vi-search-and-replace-the-basics-dummys-reference/</guid>
		<description><![CDATA[Yep, this is a dummy&#8217;s reference&#8230; I keep on forgetting the syntax so I might as well put it here for my own reference&#8230; vi is the one, if not the most popular text editor available for a System Administrator on a UNIX and UNIX-like machines. It has two modes, command and editor mode. Here &#8230; <a href="http://www.sysadmindayph.com/blog/vi-search-and-replace-the-basics-dummys-reference/">Continue reading</a>]]></description>
			<content:encoded><![CDATA[<p>Yep, this is a dummy&#8217;s reference&#8230; I keep on forgetting the syntax so I might as well put it here for my own reference&#8230; <img src='http://www.sysadmindayph.com/blog/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>vi is the one, if not the most popular text editor available for a System Administrator on a UNIX and UNIX-like machines.</p>
<p>It has two modes, command and editor mode.</p>
<p>Here are some syntax in using the Search and Replace in &#8216;vi&#8217;.</p>
<p>Search:</p>
<p>The most basic and most easily remembered command for searching is vi is <em>slash </em>or &#8216;/&#8217; followed by the character being searched. That&#8217;s for forward searching. For backward, vi use &#8216;?&#8217; followed by the string being searched.</p>
<p>To go to the next occurrance of the string being searched, vi use &#8216;n&#8217; command. Doesn&#8217;t matter if your searching forward (from up, down) or backward, from down to top.</p>
<p>Example:</p>
<p>(you have to be in command mode&#8230; press ESC first)</p>
<p>/<em>search_string</em></p>
<p>?<em>search_string</em></p>
<p><strong>Search and Replace</strong></p>
<p>For search and replace, use the syntax</p>
<p>:%s/original/replaced/g</p>
<p>Make sense?<br />
Any command that begins with a &#8220;<tt>:</tt>&#8221; is called a line mode command and performs its duty on the line the cursor is currently on.</p>
<p>The above syntax serves my purpose now&#8230; If I want to replace text in certain ranges.. <a href="http://unix.t-a-y-l-o-r.com/VBsr.html">syntax can be found here</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sysadmindayph.com/blog/vi-search-and-replace-the-basics-dummys-reference/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

