<?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>Sys-Admin Information&#039;s &#187; Eriek Regandono</title>
	<atom:link href="http://sysinfo.bascomp.org/author/red/feed/" rel="self" type="application/rss+xml" />
	<link>http://sysinfo.bascomp.org</link>
	<description></description>
	<lastBuildDate>Fri, 23 Apr 2010 09:43:23 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Show Locking Proccess</title>
		<link>http://sysinfo.bascomp.org/2008/01/show-locking-proccess/</link>
		<comments>http://sysinfo.bascomp.org/2008/01/show-locking-proccess/#comments</comments>
		<pubDate>Mon, 21 Jan 2008 06:36:06 +0000</pubDate>
		<dc:creator>Eriek Regandono</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Scripting]]></category>

		<guid isPermaLink="false">http://sysinfo.bascomp.org/2008/01/21/show-locking-proccess/</guid>
		<description><![CDATA[
SQL&#62; SELECT s1.username &#124;&#124; '@' &#124;&#124; s1.machine&#124;&#124; ' ( SID=' &#124;&#124; s1.sid &#124;&#124; ' )  is blocking '&#124;&#124; s2.username &#124;&#124; '@' &#124;&#124; s2.machine &#124;&#124; ' ( SID=' &#124;&#124; s2.sid &#124;&#124; ' ) ' AS blocking_status, s1.SQL_ID
FROM v$lock l1, v$session s1, v$lock l2, v$session s2
WHERE s1.sid=l1.sid AND s2.sid=l2.sid
AND l1.BLOCK=1 AND l2.request &#62; 0
AND l1.id1 = [...]]]></description>
			<content:encoded><![CDATA[
<div class="wp_syntax"><div class="code"><pre class="sql" style="font-family:monospace;">SQL<span style="color: #66cc66;">&gt;</span> <span style="color: #993333; font-weight: bold;">SELECT</span> s1<span style="color: #66cc66;">.</span>username <span style="color: #66cc66;">||</span> <span style="color: #ff0000;">'@'</span> <span style="color: #66cc66;">||</span> s1<span style="color: #66cc66;">.</span>machine<span style="color: #66cc66;">||</span> <span style="color: #ff0000;">' ( SID='</span> <span style="color: #66cc66;">||</span> s1<span style="color: #66cc66;">.</span>sid <span style="color: #66cc66;">||</span> <span style="color: #ff0000;">' )  is blocking '</span><span style="color: #66cc66;">||</span> s2<span style="color: #66cc66;">.</span>username <span style="color: #66cc66;">||</span> <span style="color: #ff0000;">'@'</span> <span style="color: #66cc66;">||</span> s2<span style="color: #66cc66;">.</span>machine <span style="color: #66cc66;">||</span> <span style="color: #ff0000;">' ( SID='</span> <span style="color: #66cc66;">||</span> s2<span style="color: #66cc66;">.</span>sid <span style="color: #66cc66;">||</span> <span style="color: #ff0000;">' ) '</span> <span style="color: #993333; font-weight: bold;">AS</span> blocking_status<span style="color: #66cc66;">,</span> s1<span style="color: #66cc66;">.</span>SQL_ID
<span style="color: #993333; font-weight: bold;">FROM</span> v$lock l1<span style="color: #66cc66;">,</span> v$session s1<span style="color: #66cc66;">,</span> v$lock l2<span style="color: #66cc66;">,</span> v$session s2
<span style="color: #993333; font-weight: bold;">WHERE</span> s1<span style="color: #66cc66;">.</span>sid<span style="color: #66cc66;">=</span>l1<span style="color: #66cc66;">.</span>sid <span style="color: #993333; font-weight: bold;">AND</span> s2<span style="color: #66cc66;">.</span>sid<span style="color: #66cc66;">=</span>l2<span style="color: #66cc66;">.</span>sid
<span style="color: #993333; font-weight: bold;">AND</span> l1<span style="color: #66cc66;">.</span>BLOCK<span style="color: #66cc66;">=</span><span style="color: #cc66cc;">1</span> <span style="color: #993333; font-weight: bold;">AND</span> l2<span style="color: #66cc66;">.</span>request <span style="color: #66cc66;">&gt;</span> <span style="color: #cc66cc;">0</span>
<span style="color: #993333; font-weight: bold;">AND</span> l1<span style="color: #66cc66;">.</span>id1 <span style="color: #66cc66;">=</span> l2<span style="color: #66cc66;">.</span>id1
<span style="color: #993333; font-weight: bold;">AND</span> l2<span style="color: #66cc66;">.</span>id2 <span style="color: #66cc66;">=</span> l2<span style="color: #66cc66;">.</span>id2;</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://sysinfo.bascomp.org/2008/01/show-locking-proccess/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>kill sesion oracle in windows</title>
		<link>http://sysinfo.bascomp.org/2007/11/kill-sesion-oracle-in-windows/</link>
		<comments>http://sysinfo.bascomp.org/2007/11/kill-sesion-oracle-in-windows/#comments</comments>
		<pubDate>Thu, 15 Nov 2007 11:39:46 +0000</pubDate>
		<dc:creator>Eriek Regandono</dc:creator>
				<category><![CDATA[Oracle]]></category>

		<guid isPermaLink="false">http://sysinfo.bascomp.org/2007/11/15/kill-sesion-oracle-in-windows/</guid>
		<description><![CDATA[path:     .../Oracle Home/bin/orakill.exe    or   find manually
command: orakill &#60;sid&#62; &#60;spid&#62;
example:  C:\Oracle9\bin\orakill ORCL 2760
]]></description>
			<content:encoded><![CDATA[<p>path:     .../Oracle Home/bin/orakill.exe    or   find manually<br />
command: <code><strong>orakill &lt;sid&gt; &lt;spid&gt;</strong></code><br />
example:  C:\Oracle9\bin\orakill ORCL 2760</p>
]]></content:encoded>
			<wfw:commentRss>http://sysinfo.bascomp.org/2007/11/kill-sesion-oracle-in-windows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Copy Tape to Tape</title>
		<link>http://sysinfo.bascomp.org/2007/08/copy-tape-to-tape/</link>
		<comments>http://sysinfo.bascomp.org/2007/08/copy-tape-to-tape/#comments</comments>
		<pubDate>Tue, 21 Aug 2007 06:25:36 +0000</pubDate>
		<dc:creator>Eriek Regandono</dc:creator>
				<category><![CDATA[Solaris]]></category>
		<category><![CDATA[Tape]]></category>

		<guid isPermaLink="false">http://sysinfo.bascomp.org/2007/08/21/copy-tape-to-tape/</guid>
		<description><![CDATA[The " tcopy " tility used to copies the magnetic tape  mounted  on  the tape  drive  specified  by  the  source  argument.  Simply, the " tcopy " used for copies one tape to another tape.
Rewind the tape first
# mt -f /dev/rmt/0 rewind
# mt -f /dev/rmt/1 rewind
And [...]]]></description>
			<content:encoded><![CDATA[<p>The " <strong>tcopy</strong> " tility used to copies the magnetic tape  mounted  on  the tape  drive  specified  by  the  source  argument.  Simply, the " <strong>tcopy</strong> " used for copies one tape to another tape.</p>
<p>Rewind the tape first<br />
<code># mt -f /dev/rmt/0 rewind</code><br />
<code># mt -f /dev/rmt/1 rewind</code></p>
<p>And then " <strong>tcopy</strong> "<br />
<code># tcopy /dev/rmt/0 /dev/rmt/1</code></p>
<p>Note<br />
rmt = raw magnetic tape device</p>
]]></content:encoded>
			<wfw:commentRss>http://sysinfo.bascomp.org/2007/08/copy-tape-to-tape/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Shutdown Oracle</title>
		<link>http://sysinfo.bascomp.org/2007/07/shutdown-oracle/</link>
		<comments>http://sysinfo.bascomp.org/2007/07/shutdown-oracle/#comments</comments>
		<pubDate>Wed, 18 Jul 2007 06:51:44 +0000</pubDate>
		<dc:creator>Eriek Regandono</dc:creator>
				<category><![CDATA[Oracle]]></category>

		<guid isPermaLink="false">http://sysinfo.bascomp.org/2007/07/18/shutdown-oracle/</guid>
		<description><![CDATA[$ su - oracle
SQL&#62; sqlplus /nolog
SQL&#62; connect / as sysdba
SQL&#62; shutdown immediate
If No Response
SQL&#62; shutdown abort
Monitoring Instance when restart database
$ tail -f $ORACLE_HOME/admin/bdump/alert_$ORACLE_SID.log
]]></description>
			<content:encoded><![CDATA[<p><code>$ su - oracle</code><br />
<code>SQL&gt; sqlplus /nolog</code><br />
<code>SQL&gt; connect / as sysdba</code><br />
<code>SQL&gt; shutdown immediate</code></p>
<p>If No Response</p>
<p><code>SQL&gt; shutdown abort</code></p>
<p>Monitoring Instance when restart database</p>
<p><code>$ tail -f $ORACLE_HOME/admin/bdump/alert_$ORACLE_SID.log</code></p>
]]></content:encoded>
			<wfw:commentRss>http://sysinfo.bascomp.org/2007/07/shutdown-oracle/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Performance Monitoring Commands</title>
		<link>http://sysinfo.bascomp.org/2007/07/performance-monitoring/</link>
		<comments>http://sysinfo.bascomp.org/2007/07/performance-monitoring/#comments</comments>
		<pubDate>Thu, 05 Jul 2007 17:02:00 +0000</pubDate>
		<dc:creator>Eriek Regandono</dc:creator>
				<category><![CDATA[AIX]]></category>

		<guid isPermaLink="false">http://sysinfo.bascomp.org/2007/07/05/performance-monitoring/</guid>
		<description><![CDATA[ Monitoring Commands
nmon
vmstat
iostat
sar
topas
nmon
svmon
filemon
rmss

nmon
More info bout nmon
http://www-128.ibm.com/developerworks/aix/library/au-analyze_aix/
vmstat
The vmstat command is useful for obtaining an overall picture of CPU, paging, and memory usage.
 $ vmstat 5 2
System Configuration: lcpu=2 mem=8192MB
kthr     memory             page          [...]]]></description>
			<content:encoded><![CDATA[<p> Monitoring Commands<br />
nmon<br />
vmstat<br />
iostat<br />
sar<br />
topas<br />
nmon<br />
svmon<br />
filemon<br />
rmss</p>
<p><span id="more-14"></span><br />
<strong>nmon</strong><br />
More info bout nmon<br />
http://www-128.ibm.com/developerworks/aix/library/au-analyze_aix/</p>
<p><strong>vmstat</strong><br />
The vmstat command is useful for obtaining an overall picture of CPU, paging, and memory usage.</p>
<blockquote><p> $ <strong>vmstat 5 2</strong><br />
System Configuration: lcpu=2 mem=8192MB<br />
kthr     memory             page              faults        cpu<br />
----- ----------- ------------------------ ------------ -----------<br />
r  b   avm   fre  re  pi  po  fr   sr  cy  in   sy  cs us sy id wa<br />
1  1 287340   317   0   0   0 124  261   0 265  261 122  2  0 97  0<br />
0  0 287344   313   0   0   0   0    0   0 228  491  76  0  0 99  0</p></blockquote>
<p>Remember that the first report from the vmstat command displays cumulative activity since the last system boot. The second report shows activity for the first 5-second interval.</p>
<p><strong>iostat</strong><br />
The iostat command is the fastest way to get a first impression, whether or not the system has a disk I/O-bound performance problem. This tool also reports CPU statistics.</p>
<blockquote><p> Flags -a  Specifies adapter throughput report.<br />
-d  Specifies drive report only.<br />
-m Specifies statistics for paths.<br />
-t  Specifies tty/cpu report only.<br />
-z Resets the disk input/output statistics.</p>
<p>$ <code>iostat 2 2</code><br />
System configuration: lcpu=2 disk=20</p>
<p>tty:      tin         tout   avg-cpu:  % user    % sys     % idle    % iowait<br />
0.0          1.0               1.9      0.4       97.5       0.3</p>
<p>Disks:        % tm_act     Kbps      tps    Kb_read   Kb_wrtn<br />
hdisk1           0.8     133.9      12.7   1221182814  13264883<br />
hdisk0           1.1     148.9       6.5   913739775  459468711<br />
hdisk8           0.0       0.0       0.0          0         0</p></blockquote>
<p><strong>svmon</strong><br />
The svmon command provides a more in-depth analysis of memory usage. It is more informative, but also more intrusive, than the vmstat and ps commands. The svmon command captures a snapshot of the current state of memory.<br />
The memory consumption is reported using the inuse, free, pin, virtual and paging space counters.</p>
<ul>
<li>The <em>inuse</em> counter represents the number of used frames.</li>
<li>The <em>free</em> counter represents the number of free frames from all memory pools.</li>
<li>The <em>pin</em> counter represents the number of pinned frames, that is, frames that cannot be swapped.</li>
<li>The <em>virtual</em> counter represents the number of pages allocated in the system virtual space.</li>
<li>The <em>paging space</em> counter represents the number of pages reserved or used on paging spaces.</li>
</ul>
<blockquote><p> Flags<br />
-G   Global report<br />
-U   User report<br />
-P   Process report<br />
-i   To define intervel and number of intervels. eg. -i 1 5</p></blockquote>
<p>A memory leak can be detected with the svmon command, by looking for processes whose working segment continually grows. A leak in a kernel segment can be caused by an mbuf leak or by a device driver, kernel extension, or even the kernel. To determine if a segment is growing, use the svmon command with the -i option to look at a process or a group of processes and see if any segment continues to grow.</p>
<blockquote><p>  # <code>svmon -P 13548 -i 1 2</code><br />
Pid                         Command        Inuse        Pin      Pgsp  Virtual 64-bit Mthrd LPage 13548                       pacman         8535        2178      847     8533      N     N     NVsid     Esid Type  Description          LPage Inuse    Pin  Pgsp  Virtual0       0 work  kernel seg               -   4375   2176   847     437548412       2 work  process private          -   <strong>2357     2    0    2357</strong>6c01b       d work  shared library text      -   1790      0     0     1790</p>
<p>4c413       f work  shared library data      -     <strong>11     0    0      11</strong></p>
<p>3040c       1 pers  code,/dev/prodlv:4097    -      2      0     -        -</p>
<p>ginger :svmon -P 13548 -i 1 3</p>
<p>Pid                         Command        Inuse        Pin      Pgsp  Virtual 64-bit Mthrd LPage</p>
<p>13548                       pacman         8589         2178       847  8587      N     N     N</p>
<p>Vsid     Esid Type  Description          LPage  Inuse    Pin  Pgsp  Virtual</p>
<p>0        0 work  kernel seg               -   4375   2176   847     4375</p>
<p>48412       2 work  process private          -   <strong>2411     2    0    2411</strong></p>
<p>6c01b       d work  shared library text      -   1790      0     0     1790</p>
<p>4c413       f work  shared library data      -     <strong>11     0    0      11</strong></p>
<p>3040c       1 pers  code,/dev/prodlv:4097    -      2      0     -        -</p></blockquote>
<p><strong>filemon</strong><br />
The <strong>filemon</strong> command monitor a trace for file system and IO system events and reports performance statistics for files, virtual memory segments, logical volumes and physical volumes. <strong>filemon</strong> is useful to those whose applications are believed to be disk-bound and want to know where and why.<br />
<strong>filemon</strong> command shows the load on different disks, logical volumes and files in a great detail.<br />
<strong>trcstop</strong> command is used to stop the filemon monitoring.<br />
The syntax of filemon command is</p>
<blockquote><p> filemon [-o output_file] [-O levels] [-u] [-v]<br />
-O [lv | pv | vm | If | all ]<br />
(If - Logical file level, vm - Virtual memory level, lv - lv level)<br />
-u Reports on files that were opened prior to the start of the trace daemon</p></blockquote>
<p>If the output file is not specified, the output is sent to standard output.<br />
To start the filemon monitoring for 1 min.</p>
<blockquote><p> # <code>filemon -uo filemon.out -O all ; sleep 60; trcstop</code></p></blockquote>
<p>To find out the most active Logical Volumes</p>
<blockquote><p> # <code>awk '/Most Active Logical Volumes/,/^$/' filemon.out</code><br />
Most Active Logical Volumes-------------------------------------------------<br />
util  #rblk  #wblk   KB/s  volume                   description<br />
------------------------------------------------------------------------<br />
0.04   4208      0   34.9  /dev/paging00            paging</p>
<p>0.04   4000      0   33.2  /dev/hd6                 paging</p>
<p>0.01   1680  11408  108.6  /dev/oralvr32            /oracle/R32</p>
<p>0.00      0    264    2.2  /dev/hd8                 jfs2log</p></blockquote>
<p>To find out most active Files</p>
<blockquote><p> # <code>awk '/Most Active Files/,/^$/' filemon.out</code></p></blockquote>
<p>To find out most active physical Volumes</p>
<blockquote><p>  # <code>awk '/Most Active Physical Volumes/,/^$/' filemon.out</code></p></blockquote>
<p><strong>rmss</strong><br />
The <strong>rmss</strong> command provides you with a means to simulate different sizes of real memory that are smaller than your actual machine, without having to extract and replace memory boards or reconfigure memory using logical partitions.<br />
To change the memory size to 500 MB</p>
<blockquote><p>  # <code>rmss -c 500 </code><br />
Simulated memory size changed to 500 Mb.</p></blockquote>
<p>To reset the memory size to the real memory size of the machine, enter:</p>
<blockquote><p>   # <code>rmss -r </code></p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://sysinfo.bascomp.org/2007/07/performance-monitoring/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Get WWN of Fibre cards</title>
		<link>http://sysinfo.bascomp.org/2007/07/get-wwn-of-fibre-cards/</link>
		<comments>http://sysinfo.bascomp.org/2007/07/get-wwn-of-fibre-cards/#comments</comments>
		<pubDate>Thu, 05 Jul 2007 16:58:19 +0000</pubDate>
		<dc:creator>Eriek Regandono</dc:creator>
				<category><![CDATA[*Nix]]></category>
		<category><![CDATA[Fibre Channel]]></category>
		<category><![CDATA[Solaris]]></category>
		<category><![CDATA[wwn]]></category>

		<guid isPermaLink="false">http://sysinfo.bascomp.org/2007/07/05/get-wwn-of-fibre-cards/</guid>
		<description><![CDATA[A World Wide Name (WWN) or World Wide Identifier (WWID) is a unique identifier in a Fibre Channel or Serial Attached SCSI storage network. Each WWN is an 8-byte number derived from an IEEE OUI (for the first 3 bytes) and vendor-supplied information (for the rest) ... quote from wiki 
To get your wwn at [...]]]></description>
			<content:encoded><![CDATA[<p>A World Wide Name (WWN) or World Wide Identifier (WWID) is a unique identifier in a Fibre Channel or Serial Attached SCSI storage network. Each WWN is an 8-byte number derived from an IEEE OUI (for the first 3 bytes) and vendor-supplied information (for the rest) ...<a href="http://en.wikipedia.org/wiki/World_Wide_Name"> <em>quote from wiki</em> </a></p>
<p><strong>To get your wwn at your Solaris machine, you can use this command</strong></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> prtpicl <span style="color: #660033;">-v</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> wwn
:node-wwn      <span style="color: #000000;">50</span>  01  04  f0  00  5f  0a  <span style="color: #000000;">85</span>
:port-wwn      <span style="color: #000000;">50</span>  01  04  f0  00  5f  0a  <span style="color: #000000;">83</span>
:node-wwn    <span style="color: #000000;">50</span>  06  0e  <span style="color: #000000;">80</span>  04  2a  b0  04</pre></div></div>

<p>or</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> luxadm <span style="color: #660033;">-e</span> port
<span style="color: #000000; font-weight: bold;">/</span>devices<span style="color: #000000; font-weight: bold;">/</span>ssm<span style="color: #000000; font-weight: bold;">@</span><span style="color: #000000;">0</span>,<span style="color: #000000;">0</span><span style="color: #000000; font-weight: bold;">/</span>pci<span style="color: #000000; font-weight: bold;">@</span><span style="color: #000000;">18</span>,<span style="color: #000000;">700000</span><span style="color: #000000; font-weight: bold;">/</span>SUNW,qlc<span style="color: #000000; font-weight: bold;">@</span><span style="color: #000000;">2</span><span style="color: #000000; font-weight: bold;">/</span>fp<span style="color: #000000; font-weight: bold;">@</span><span style="color: #000000;">0</span>,<span style="color: #000000;">0</span>:devctl            CONNECTED
<span style="color: #000000; font-weight: bold;">/</span>devices<span style="color: #000000; font-weight: bold;">/</span>ssm<span style="color: #000000; font-weight: bold;">@</span><span style="color: #000000;">0</span>,<span style="color: #000000;">0</span><span style="color: #000000; font-weight: bold;">/</span>pci<span style="color: #000000; font-weight: bold;">@</span><span style="color: #000000;">18</span>,<span style="color: #000000;">700000</span><span style="color: #000000; font-weight: bold;">/</span>SUNW,qlc<span style="color: #000000; font-weight: bold;">@</span><span style="color: #000000;">1</span><span style="color: #000000; font-weight: bold;">/</span>fp<span style="color: #000000; font-weight: bold;">@</span><span style="color: #000000;">0</span>,<span style="color: #000000;">0</span>:devctl            CONNECTED
<span style="color: #000000; font-weight: bold;">/</span>devices<span style="color: #000000; font-weight: bold;">/</span>ssm<span style="color: #000000; font-weight: bold;">@</span><span style="color: #000000;">0</span>,<span style="color: #000000;">0</span><span style="color: #000000; font-weight: bold;">/</span>pci<span style="color: #000000; font-weight: bold;">@</span><span style="color: #000000;">18</span>,<span style="color: #000000;">600000</span><span style="color: #000000; font-weight: bold;">/</span>fibre-channel<span style="color: #000000; font-weight: bold;">@</span><span style="color: #000000;">1</span><span style="color: #000000; font-weight: bold;">/</span>fp<span style="color: #000000; font-weight: bold;">@</span><span style="color: #000000;">0</span>,<span style="color: #000000;">0</span>:devctl       CONNECTED
<span style="color: #000000; font-weight: bold;">/</span>devices<span style="color: #000000; font-weight: bold;">/</span>ssm<span style="color: #000000; font-weight: bold;">@</span><span style="color: #000000;">0</span>,<span style="color: #000000;">0</span><span style="color: #000000; font-weight: bold;">/</span>pci<span style="color: #000000; font-weight: bold;">@</span><span style="color: #000000;">18</span>,<span style="color: #000000;">700000</span><span style="color: #000000; font-weight: bold;">/</span>SUNW,qlc<span style="color: #000000; font-weight: bold;">@</span><span style="color: #000000;">2</span>,<span style="color: #000000;">1</span><span style="color: #000000; font-weight: bold;">/</span>fp<span style="color: #000000; font-weight: bold;">@</span><span style="color: #000000;">0</span>,<span style="color: #000000;">0</span>:devctl          NOT CONNECTED
<span style="color: #000000; font-weight: bold;">/</span>devices<span style="color: #000000; font-weight: bold;">/</span>ssm<span style="color: #000000; font-weight: bold;">@</span><span style="color: #000000;">0</span>,<span style="color: #000000;">0</span><span style="color: #000000; font-weight: bold;">/</span>pci<span style="color: #000000; font-weight: bold;">@</span><span style="color: #000000;">18</span>,<span style="color: #000000;">700000</span><span style="color: #000000; font-weight: bold;">/</span>SUNW,qlc<span style="color: #000000; font-weight: bold;">@</span><span style="color: #000000;">1</span>,<span style="color: #000000;">1</span><span style="color: #000000; font-weight: bold;">/</span>fp<span style="color: #000000; font-weight: bold;">@</span><span style="color: #000000;">0</span>,<span style="color: #000000;">0</span>:devctl          NOT CONNECTED</pre></div></div>

<p>And then grab one of the luxadm output</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> luxadm <span style="color: #660033;">-e</span> dump_map <span style="color: #000000; font-weight: bold;">/</span>devices<span style="color: #000000; font-weight: bold;">/</span>ssm<span style="color: #000000; font-weight: bold;">@</span><span style="color: #000000;">0</span>,<span style="color: #000000;">0</span><span style="color: #000000; font-weight: bold;">/</span>pci<span style="color: #000000; font-weight: bold;">@</span><span style="color: #000000;">18</span>,<span style="color: #000000;">700000</span><span style="color: #000000; font-weight: bold;">/</span>SUNW,qlc<span style="color: #000000; font-weight: bold;">@</span><span style="color: #000000;">2</span><span style="color: #000000; font-weight: bold;">/</span>fp<span style="color: #000000; font-weight: bold;">@</span><span style="color: #000000;">0</span>,<span style="color: #000000;">0</span>:devctl
Pos  Port_ID Hard_Addr Port WWN         Node WWN         Type
<span style="color: #000000;">0</span>    <span style="color: #000000;">10000</span>   <span style="color: #000000;">0</span>         200400a0b818aad4 200400a0b818aad3 0x0  <span style="color: #7a0874; font-weight: bold;">&#40;</span>Disk device<span style="color: #7a0874; font-weight: bold;">&#41;</span>
<span style="color: #000000;">1</span>    <span style="color: #000000;">10300</span>   <span style="color: #000000;">0</span>         200500a0b818aad4 200400a0b818aad3 0x0  <span style="color: #7a0874; font-weight: bold;">&#40;</span>Disk device<span style="color: #7a0874; font-weight: bold;">&#41;</span>
<span style="color: #000000;">2</span>    <span style="color: #000000;">20000</span>   <span style="color: #000000;">0</span>         200400a0b818aad5 200400a0b818aad3 0x0  <span style="color: #7a0874; font-weight: bold;">&#40;</span>Disk device<span style="color: #7a0874; font-weight: bold;">&#41;</span>
<span style="color: #000000;">3</span>    <span style="color: #000000;">20300</span>   <span style="color: #000000;">0</span>         200500a0b818aad5 200400a0b818aad3 0x0  <span style="color: #7a0874; font-weight: bold;">&#40;</span>Disk device<span style="color: #7a0874; font-weight: bold;">&#41;</span>
<span style="color: #000000;">4</span>    <span style="color: #000000;">20900</span>   <span style="color: #000000;">0</span>         210000e08b829a76 200000e08b829a76 0x1f <span style="color: #7a0874; font-weight: bold;">&#40;</span>Unknown Type,Host Bus Adapter<span style="color: #7a0874; font-weight: bold;">&#41;</span></pre></div></div>

<p><strong>At your HP-UX machine, you can use this command</strong></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> fcmsutil <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>td9
Vendor ID is = 0x001254
Device ID is = 0x001159
XL2 Chip Revision No is = <span style="color: #000000;">2.3</span>
PCI Sub-system Vendor ID is = 0x05103c
PCI Sub-system ID is = 0x01128c
Topology = PTTOPT_FABRIC
Link Speed = 2Gb
Local N_Port_id is = 0x0a1650
N_Port Node World Wide Name = 0x50060b000023c458
N_Port Port World Wide Name = 0x50060b000023c459
Driver state = ONLINE
Hardware Path is = <span style="color: #000000;">0</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">0</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">14</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">0</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">0</span>
Number of Assisted IOs = <span style="color: #000000;">32763725</span>
Number of Active Login Sessions = <span style="color: #000000;">2</span>
Dino Present on Card = NO
Maximum Frame Size = <span style="color: #000000;">2048</span>
Driver Version = <span style="color: #000000; font-weight: bold;">@</span><span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #666666; font-style: italic;">#) libtd.a HP Fibre Channel Tachyon TL/TS/XL2 Driver B.11.11.12 PATCH_11.11 (PHSS_31326) /ux/kern/kisu/TL/src/common/wsio/td_glue.c: Sep 5 2005, 10:14:40</span></pre></div></div>

<p><strong>At your Linux machine, used this..</strong></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #c20cb9; font-weight: bold;">cat</span> <span style="color: #000000; font-weight: bold;">/</span>proc<span style="color: #000000; font-weight: bold;">/</span>scsi<span style="color: #000000; font-weight: bold;">/</span>qla2xxx<span style="color: #000000; font-weight: bold;">/*</span> <span style="color: #000000; font-weight: bold;">|</span><span style="color: #c20cb9; font-weight: bold;">grep</span> port<span style="color: #000000; font-weight: bold;">|</span><span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #660033;">-v</span> port-<span style="color: #000000;">0</span>
scsi-qla0-adapter-port=210000145e254fca;
scsi-qla0-port-<span style="color: #000000;">1</span>=50060160b021b712:500601683021b712:018100:<span style="color: #000000;">82</span>;
scsi-qla1-adapter-port=210000145e254fcb;
scsi-qla1-port-<span style="color: #000000;">1</span>=50060160b021b712:500601693021b712:018100:<span style="color: #000000;">82</span>;</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://sysinfo.bascomp.org/2007/07/get-wwn-of-fibre-cards/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>System Startup and Shutdown</title>
		<link>http://sysinfo.bascomp.org/2007/07/system-startup-and-shutdown/</link>
		<comments>http://sysinfo.bascomp.org/2007/07/system-startup-and-shutdown/#comments</comments>
		<pubDate>Wed, 04 Jul 2007 04:03:04 +0000</pubDate>
		<dc:creator>Eriek Regandono</dc:creator>
				<category><![CDATA[HPUX]]></category>
		<category><![CDATA[System Properties]]></category>

		<guid isPermaLink="false">http://sysinfo.bascomp.org/2007/07/04/system-startup-and-shutdown/</guid>
		<description><![CDATA[System boot process:

Power on
PDC executes CPU, Memory and other tests
PDC initialize the console to display messages
Looks for Primary boot path
It loads and executes Initial System Loader (ISL). Roll of boot ROM ends.
ISL loads the secondary system loader called "hpux". It resides on boot area of the disk
"hpux" loads "/stand/vmunix" into memory and hands control over [...]]]></description>
			<content:encoded><![CDATA[<p><strong>System boot process:</strong></p>
<blockquote>
<li>Power on</li>
<li>PDC executes CPU, Memory and other tests</li>
<li>PDC initialize the console to display messages</li>
<li>Looks for Primary boot path</li>
<li>It loads and executes Initial System Loader (ISL). Roll of boot ROM ends.</li>
<li><a href="http://docs.hp.com/en/32650-90907/ch03s01.html">ISL</a> loads the secondary system loader called "hpux". It resides on boot area of the disk</li>
<li>"hpux" loads "/stand/vmunix" into memory and hands control over to kernel</li>
<li>Kernel loads the device drivers</li>
<li>Swapper process started. It has process ID 0. It manages memory for swapping in and out. It schedules all other process. Its first job is to startup the init process.</li>
<li>/sbin/pre_init_rc getting executed. It checks and repairs root file system.</li>
<li>/sbin/init started. Process ID is 1.</li>
<p>It refers /etc/inittab. It does the following.<br />
1. read the /etc/inittab for default run level<br />
2. ioinitrc - It invokes insf command with -e option to find any new devices.<br />
3. bcheckrc - activates LVM and run fsck on file systems if required.<br />
4. /sbin/rc - It brings the system to the default run level. This script is run whenever the system moves from to a higher one or vice versa.<br />
5. /usr/bin/getty</p></blockquote>
<p><span id="more-9"></span></p>
<p><strong>To add a program to the startup time:</strong></p>
<blockquote><p>1. Execution script for starting and stopping is installed in /sbin/init.d directory<br />
2. Configuration files are placed in /etc/rc.config.d directory<br />
3. If script is to be run on run level 2, place a link to the execution script at /sbin/rc2.d directory</p></blockquote>
<p>HP-UX boot disk has a boot area. The files in this area are in the <a href="http://www.docs.hp.com/en/B9106-90011/lif.4.html">LIF</a> format.<br />
Important parts of the boot area are</p>
<blockquote><p>1. ISL: Initial program loader<br />
2. hpux: Secondary system loader<br />
3. AUTO: contains hpux utility name and arguments to be passed to the hpux utility<br />
4. LIF volume header that identifies LIF volume<br />
5. File containing hp-ux volume name</p></blockquote>
<p><strong><a href="http://docs.hp.com/en/32650-90907/ch03s01.html">ISL</a> Commands:</strong></p>
<blockquote><p>ISL&gt; hpux show autofile # To view the contents of AUTO file</p>
<p>ISL&gt; hpux -is boot # To boot the system in the single user mode</p>
<p>ISL&gt; hpux -lq boot # To ignore quorum and boot</p>
<p>ISL&gt; hpux -lm boot # To boot in the maintenance mode</p>
<p>ISL&gt; hpux -ll /stand # To list the files in the /stand directory</p></blockquote>
<p><strong>HPUX Commands:</strong></p>
<p>setboot command is used to view or change the boot path in a running system<br />
To set the primary path to scsi.1.0 and auto boot on</p>
<p># <strong>setboot -p scsi.1.0 -b on</strong></p>
<p>To create an area on the boot disk for a LIF volume, boot utilities and BDRA</p>
<p># <strong>pvcreate -B /dev/rdsk/c0t0d0</strong></p>
<p>To place the boot utilities on the boot disk:</p>
<p>#  <strong>mkboot  /dev/rdsk/c0t0d0</strong></p>
<p>To add an AUTO file in boot area:</p>
<p># <strong>mkboot -a "hpux (52.3.0;0)/stand/vmunix" /dev/rdsk/c0t0d0</strong></p>
<p>To List the contents of LIF volume</p>
<p># <strong>lifls -l /dev/dsk/c0t0d0</strong></p>
<p>lifcp command is used to copy files to or from the LIF volume<br />
To copy the contents of AUTO file to file1</p>
<p># <strong>lifcp /dev/rdsk/c0t0d0:AUTO file1</strong>  # Copies the contents of AUTO file to file1.</p>
<p>*c n v from http://sys-admin.net/wiki/HP-UX/Startup</p>
]]></content:encoded>
			<wfw:commentRss>http://sysinfo.bascomp.org/2007/07/system-startup-and-shutdown/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Show Information On HP-UX Machine</title>
		<link>http://sysinfo.bascomp.org/2007/07/infomation/</link>
		<comments>http://sysinfo.bascomp.org/2007/07/infomation/#comments</comments>
		<pubDate>Tue, 03 Jul 2007 12:37:25 +0000</pubDate>
		<dc:creator>Eriek Regandono</dc:creator>
				<category><![CDATA[HPUX]]></category>

		<guid isPermaLink="false">http://sysinfo.bascomp.org/2007/07/03/infomation/</guid>
		<description><![CDATA[This optional software, you must install Ignite-UX, work only in HP-UX 11.11 n later
And only root
# print_manifest &#124; more
System Information
Your Hewlett-Packard 9000 computer has software installed and
configured as follows.
The system was created January 09, 2003, 12:10:05 SST.
It was created with Ignite-UX revision B.4.1.61.
-------------------------------------------------------------
NOTE: You should retain this information for future reference.
-------------------------------------------------------------
Serial number: XXXXXXXXX
Order number:  [...]]]></description>
			<content:encoded><![CDATA[<p>This optional software, you must install Ignite-UX, work only in HP-UX 11.11 n later<br />
And only root</p>
<p><code># print_manifest | more</code></p>
<blockquote><p>System Information</p>
<p>Your Hewlett-Packard 9000 computer has software installed and<br />
configured as follows.</p>
<p>The system was created January 09, 2003, 12:10:05 SST.<br />
It was created with Ignite-UX revision B.4.1.61.</p>
<p>-------------------------------------------------------------<br />
NOTE: You should retain this information for future reference.<br />
-------------------------------------------------------------<br />
Serial number: XXXXXXXXX<br />
Order number:  XXXXXXXX~XXX~XXXX</p>
<p>System Hardware</p>
<p>Model:              9000/800/rp7410<br />
Main Memory:        16376 MB<br />
Processors:         4<br />
OS mode:            64 bit<br />
LAN hardware ID:    0x00306E47C21B<br />
Software ID:        Z3e10656fcb112572<br />
Partition ID:       Z3e10656fcb1c2125_P0<br />
Keyboard Language:  USB_PS2_DIN_US_English</p>
<p>Storage devices                  HW Path      Interface</p>
<p>(some output removed for brevity)</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://sysinfo.bascomp.org/2007/07/infomation/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
