<?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>Sun Solaris System Admin &#187; Solaris 10</title>
	<atom:link href="http://www.sunsolarisadmin.com/category/solaris-10/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sunsolarisadmin.com</link>
	<description>Sun Solaris HowTo's Tips Tricks Tutorials</description>
	<lastBuildDate>Wed, 21 Sep 2011 19:57:59 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<image>
<link>http://www.sunsolarisadmin.com</link>
<url>http://www.sunsolarisadmin.com/wp-content/mbp-favicon/favicon.ico</url>
<title>Sun Solaris System Admin</title>
</image>
		<item>
		<title>Missing memory in Solaris 10 with ZFS</title>
		<link>http://www.sunsolarisadmin.com/solaris-10/missing-memory-in-solaris-10-with-zfs/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=missing-memory-in-solaris-10-with-zfs</link>
		<comments>http://www.sunsolarisadmin.com/solaris-10/missing-memory-in-solaris-10-with-zfs/#comments</comments>
		<pubDate>Wed, 21 Sep 2011 19:56:18 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Solaris 10]]></category>
		<category><![CDATA[Solaris 11]]></category>
		<category><![CDATA[ZFS]]></category>
		<category><![CDATA[Adaptive Replacement Cache]]></category>
		<category><![CDATA[ARC]]></category>
		<category><![CDATA[kstat]]></category>
		<category><![CDATA[mdb]]></category>

		<guid isPermaLink="false">http://www.sunsolarisadmin.com/?p=157</guid>
		<description><![CDATA[Ever wondered all the precious memory installed on your server has gone? Among many other reasons, if you are running Solaris 10 and use ZFS file system then there may be your answer. ZFS Adaptive Replacement Cache (ARC) tends to use up to 75% of the installed physical memory on servers with 4GB or less <a href='http://www.sunsolarisadmin.com/solaris-10/missing-memory-in-solaris-10-with-zfs/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p><div style="float: left"><script type="text/javascript"><!--
google_ad_client = "pub-6220434432369569";
/* sunsoladm_336x280_post */
google_ad_slot = "5048319182";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>Ever wondered all the precious memory installed on your server has gone? Among many other reasons, if you are running Solaris 10 and use ZFS file system then there may be your answer.</p>
<p><span id="more-157"></span></p>
<p>ZFS Adaptive Replacement Cache (ARC) tends to use up to 75% of the installed physical memory on servers with 4GB or less and upto everything except 1GB of memory on servers with more than 4GB of memory to cache data in a bid to improve performance.</p>
<p>This can significantly affect performance on mission critical servers running Databases etc.</p>
<p>To identify how much memory uses:</p>

<div class="wp_syntax"><div class="code"><pre class="language" style="font-family:monospace;"># kstat -m zfs | grep size
&nbsp;
        data_size                       18935877120
        hdr_size                        66041496
        l2_hdr_size                     0
        l2_size                         0
        other_size                      11310112
        size                            19013228728</pre></div></div>

<p>Here &#8220;<span style="color: #ff0000;">19013228728</span>&#8221; (approx 18G) indicates the total memory used by ZFS.</p>
<p>Alternatively, the following mdb command show ZFS ARC usage:</p>

<div class="wp_syntax"><div class="code"><pre class="language" style="font-family:monospace;"># echo &quot;::arc&quot; | mdb -k|grep size
size                      =      2048 MB
hdr_size                  =  12493584
data_size                 = 2048608256
other_size                =  86475456
l2_size                   =         0
l2_hdr_size               =         0</pre></div></div>

<p>It makes sense to cap the maximum ZFS ARC can use on servers where memory requirement for other services is more memory.</p>
<p>To set the maximum limit for ZFS ARC, edit /etc/system file and add the following line</p>

<div class="wp_syntax"><div class="code"><pre class="language" style="font-family:monospace;">set zfs:zfs_arc_max=2147483648</pre></div></div>

<p>where <span style="color: #ff0000;">2147483648</span> restricts the usage to a maximum of 2GB physical memory. Unfortunately, this requires a reboot for the setting to take effect and cannot be dynamically changed.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sunsolarisadmin.com/solaris-10/missing-memory-in-solaris-10-with-zfs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>List LUNs attached to HBA/Disk controllers in Solaris 10</title>
		<link>http://www.sunsolarisadmin.com/solaris-10/list-luns-attached-to-hbadisk-controllers-in-solaris-10/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=list-luns-attached-to-hbadisk-controllers-in-solaris-10</link>
		<comments>http://www.sunsolarisadmin.com/solaris-10/list-luns-attached-to-hbadisk-controllers-in-solaris-10/#comments</comments>
		<pubDate>Tue, 20 Sep 2011 20:16:59 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Solaris 10]]></category>
		<category><![CDATA[cfgadm]]></category>
		<category><![CDATA[fcinfo]]></category>
		<category><![CDATA[hba]]></category>
		<category><![CDATA[LUN]]></category>
		<category><![CDATA[oraHBA]]></category>
		<category><![CDATA[SAN]]></category>

		<guid isPermaLink="false">http://www.sunsolarisadmin.com/?p=143</guid>
		<description><![CDATA[As a system administrator, every now and then you may come across situations wherein your SAN admin presents you some storage (LUNS) and you can&#8217;t find where the hell has it gone. The following are some of the ways to list the LUNS presented on a controller or all the controllers on the server. 1. <a href='http://www.sunsolarisadmin.com/solaris-10/list-luns-attached-to-hbadisk-controllers-in-solaris-10/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p><div style="float: left"><script type="text/javascript"><!--
google_ad_client = "pub-6220434432369569";
/* sunsoladm_336x280_post */
google_ad_slot = "5048319182";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>As a system administrator, every now and then you may come across situations wherein your SAN admin presents you some storage (LUNS) and you can&#8217;t find where the hell has it gone. The following are some of the ways to list the LUNS presented on a controller or all the controllers on the server.<br />
<span id="more-143"></span></p>
<p><span style="text-decoration: underline;"><strong>1. Using fcinfo</strong></span></p>
<p>In Solaris 10, you can use the &#8220;fcinfo&#8221; utility which is a 2 step process to identify the Luns presented to the server.</p>
<p>1. Find the HBA port WWN number on the server:</p>

<div class="wp_syntax"><div class="code"><pre class="language" style="font-family:monospace;"># fcinfo hba-port</pre></div></div>

<p>This command will show the HBA Port WWN among other information like the Node WWN, Device name, manufacturer, firmware, driver details etc.</p>

<div class="wp_syntax"><div class="code"><pre class="language" style="font-family:monospace;">root@myserver:/root # fcinfo hba-port
HBA Port WWN: 21000022ff0553e9
OS Device Name: /dev/cfg/c5
Manufacturer: QLogic Corp.
Model: 371-4324-02
Firmware Version: 05.03.02
FCode/BIOS Version: BIOS: 2.02; fcode: 2.03; EFI: 2.01;
Serial Number: 0402R00-1102885753
Driver Name: qlc
Driver Version: 3.00p
Type: L-port
State: online
Supported Speeds: 2Gb 4Gb 8Gb
Current Speed: 4Gb
Node WWN: 20000022ff0553e9</pre></div></div>

<p>Here <span style="color: #ff0000;">21000022ff0553e9</span> is the WWN number for the HBA port.</p>
<p>2. List SCSI targets for the remote port attached to the HBA port attached to the above.</p>

<div class="wp_syntax"><div class="code"><pre class="language" style="font-family:monospace;"># fcinfo -sl -p HBA-Port-WWN</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="language" style="font-family:monospace;">root@myserver:/root # fcinfo remote-port -sl -p 21000022ff0553e9
Remote Port WWN: 202400a0b8744072
Active FC4 Types:
SCSI Target: yes
Node WWN: 200400a0b8744072
Link Error Statistics:
Link Failure Count: 1
Loss of Sync Count: 2
Loss of Signal Count: 72
Primitive Seq Protocol Error Count: 0
Invalid Tx Word Count: 0
Invalid CRC Count: 0
LUN: 0
Vendor: SUN
Product: LCSM100_F
OS Device Name: /dev/rdsk/c5t202400A0B8744072d0s2
LUN: 2 Vendor: SUN
Product: LCSM100_F
OS Device Name: /dev/rdsk/c5t202400A0B8744072d2s2
LUN: 31 Vendor: SUN
Product: Universal Xport
OS Device Name: /dev/rdsk/c5t202400A0B8744072d31s2</pre></div></div>

<p>Here, LUN0 and LUN2 are the actual disks and LUN31 is the Command device for the Storage controller</p>
<p><span style="text-decoration: underline;"><strong>2. Using cfgadm</strong></span></p>
<p>You can also find the above information using the &#8220;cfgadm&#8221; utility. One of the following commands should reveal the LUNS attached to the controller. Although the later works only on Solaris 10.</p>

<div class="wp_syntax"><div class="code"><pre class="language" style="font-family:monospace;"># cfgadm -al -o show_FCP_dev c5
&nbsp;
or
&nbsp;
# cfgadm -al -o show_SCSI_LUNS c5</pre></div></div>

<p>where c5 is the controller. If you do not mentioned the controller, it then displays for every single disk controller on the server.</p>

<div class="wp_syntax"><div class="code"><pre class="language" style="font-family:monospace;">root@myserver:/root # cfgadm -al -o show_FCP_dev c5
Ap_Id Type Receptacle Occupant Condition
c5 fc-private connected configured unknown
c5::202400a0b8744072,0 disk connected configured unknown
c5::202400a0b8744072,2 disk connected configured unknown
c5::202400a0b8744072,31 disk connected configured unknown</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="language" style="font-family:monospace;">root@myserver:/root # cfgadm -al -o show_SCSI_LUN c5
Ap_Id Type Receptacle Occupant Condition
c5 fc-private connected configured unknown
c5::202400a0b8744072,0 disk connected configured unknown
c5::202400a0b8744072,2 disk connected configured unknown
c5::202400a0b8744072,31 disk connected configured unknown</pre></div></div>

<p>Share your thoughts, if you know more ways of doing this.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sunsolarisadmin.com/solaris-10/list-luns-attached-to-hbadisk-controllers-in-solaris-10/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mount an ISO image in a Solaris Zone</title>
		<link>http://www.sunsolarisadmin.com/solaris-10/mount-an-iso-image-in-a-solaris-zone/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=mount-an-iso-image-in-a-solaris-zone</link>
		<comments>http://www.sunsolarisadmin.com/solaris-10/mount-an-iso-image-in-a-solaris-zone/#comments</comments>
		<pubDate>Fri, 02 Sep 2011 22:00:15 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Solaris 10]]></category>
		<category><![CDATA[Zones]]></category>
		<category><![CDATA[global zone]]></category>
		<category><![CDATA[guest zone]]></category>
		<category><![CDATA[ISO]]></category>
		<category><![CDATA[zones]]></category>

		<guid isPermaLink="false">http://www.sunsolarisadmin.com/?p=136</guid>
		<description><![CDATA[There is no direct way to mount an ISO image onto a Solaris Zone. However, you can mount an ISO image onto the global zone (the server which hosts the zone) and then present it onto the guest zone. Attach a Block Device sunsolaris# lofiadm -a /export/software/iso_image.iso /dev/lofi/1 Mount the ISO Image block device sunsolaris# <a href='http://www.sunsolarisadmin.com/solaris-10/mount-an-iso-image-in-a-solaris-zone/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p><!--adsense-->There is no direct way to mount an ISO image onto a Solaris Zone. However, you can mount an ISO image onto the global zone (the server which hosts the zone) and then present it onto the guest zone.</p>
<p><span id="more-136"></span></p>
<p><span style="text-decoration: underline;"><strong>Attach a Block Device</strong></span></p>
<blockquote><p>sunsolaris# lofiadm -a /export/software/iso_image.iso</p>
<p><strong></strong> /dev/lofi/1</p></blockquote>
<p><span style="text-decoration: underline;"><strong>Mount the ISO Image block device</strong></span></p>
<blockquote><p>sunsolaris# mount -F hsfs -o ro /dev/lofi/1 /mnt</p></blockquote>
<p><span style="text-decoration: underline;"><strong>Mount the mounted ISO image to the Guest zone</strong></span></p>
<blockquote><p>sunsolaris# mount -F lofs /mnt /zones/myzone/root/mnt</p></blockquote>
<p>Where <strong>/zones/myzone/root</strong> is the root of the Zone. The files should now be visible under<strong> /mnt</strong> on the guest zone.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sunsolarisadmin.com/solaris-10/mount-an-iso-image-in-a-solaris-zone/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>tcpdrop &#8211; Drop TCP connections in Solaris</title>
		<link>http://www.sunsolarisadmin.com/solaris-7/tcpdrop-drop-tcp-connections-in-solaris/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=tcpdrop-drop-tcp-connections-in-solaris</link>
		<comments>http://www.sunsolarisadmin.com/solaris-7/tcpdrop-drop-tcp-connections-in-solaris/#comments</comments>
		<pubDate>Mon, 08 Nov 2010 22:07:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Networking]]></category>
		<category><![CDATA[Solaris 10]]></category>
		<category><![CDATA[Solaris 7]]></category>
		<category><![CDATA[Solaris 8]]></category>
		<category><![CDATA[Solaris 9]]></category>
		<category><![CDATA[Sun X86 platform]]></category>
		<category><![CDATA[solaris]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[sun]]></category>
		<category><![CDATA[tcp]]></category>
		<category><![CDATA[tcp drop]]></category>

		<guid isPermaLink="false">http://www.sunsolarisadmin.com/?p=118</guid>
		<description><![CDATA[tcpdrop is a free utility to drop an established TCP connection in Sun solaris. It is a port of the tcpdrop utility from FreeBSD and openBSD. tcpdrop doesn&#8217;t do what it says on the tin and nothing more but does it very well. tcpdrop works in Solaris 10,9,8 Let&#8217;s put it to work. tcpdrop solaris <a href='http://www.sunsolarisadmin.com/solaris-7/tcpdrop-drop-tcp-connections-in-solaris/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p><!--adsense-->tcpdrop is a free utility to drop an established TCP connection in Sun solaris. It is a port of the tcpdrop utility from FreeBSD and openBSD. tcpdrop doesn&#8217;t do what it says on the tin and nothing more but does it very well. tcpdrop works in Solaris 10,9,8</p>
<p><span id="more-118"></span></p>
<p>Let&#8217;s put it to work. tcpdrop solaris package is available for download from www.sunfreeware.com. Click one of the following links for Solaris 10 for x86 or SPARC.</p>
<p><strong><a title="Download tcpdrop for SPARC" href="ftp://ftp.sunfreeware.com/pub/freeware/sparc/10/tcpdrop_solaris-20080516-sol10-sparc-local.gz" target="_blank">tcpdrop (Solaris 10 &#8211; SPARC)</a></strong></p>
<p><strong><a title="tcpdrop for Solaris 10 x86" href="ftp://ftp.sunfreeware.com/pub/freeware/intel/10/tcpdrop_solaris-20080516-sol10-x86-local.gz" target="_blank">tcpdrop (Solaris 10 &#8211; x86)</a></strong></p>
<p>Once downloaded unzip and install tcpdrop as follows:</p>
<blockquote>
<div id="_mcePaste"># gunzip tcpdrop_solaris-20080516-sol10-x86-local.gz</div>
<div></div>
<div># pkgadd -d tcpdrop_solaris-20080516-sol10-x86-local</div>
<div id="_mcePaste">The following packages are available:</div>
<div id="_mcePaste">1  SMCtcpdr     tcpdrop_solaris</div>
<div id="_mcePaste">(x86) 20080516</div>
<div id="_mcePaste">Select package(s) you wish to process (or &#8216;all&#8217; to process</div>
<div id="_mcePaste">all packages). (default: all) [?,??,q]:</div>
<div id="_mcePaste">Processing package instance &lt;SMCtcpdr&gt; from &lt;/root/tcpdrop_solaris-20080516-sol10-x86-local&gt;</div>
<div id="_mcePaste">tcpdrop_solaris(x86) 20080516</div>
<div id="_mcePaste">Ceri Davies</div>
<div id="_mcePaste">Using &lt;/usr/local&gt; as the package base directory.</div>
<div id="_mcePaste">## Processing package information.</div>
<div id="_mcePaste">## Processing system information.</div>
<div id="_mcePaste">2 package pathnames are already properly installed.</div>
<div id="_mcePaste">## Verifying disk space requirements.</div>
<div id="_mcePaste">## Checking for conflicts with packages already installed.</div>
<div id="_mcePaste">## Checking for setuid/setgid programs.</div>
<div id="_mcePaste"></div>
<div>Installing tcpdrop_solaris as &lt;SMCtcpdr&gt;</div>
<div id="_mcePaste">## Installing part 1 of 1.</div>
<div id="_mcePaste">/usr/local/bin/tcpdrop</div>
<div id="_mcePaste">/usr/local/doc/tcpdrop/OPENSOLARIS.LICENSE</div>
<div id="_mcePaste">/usr/local/doc/tcpdrop/README</div>
<div id="_mcePaste">/usr/local/man/man8/tcpdrop.8</div>
<div id="_mcePaste">[ verifying class &lt;none&gt; ]</div>
<div id="_mcePaste">Installation of &lt;SMCtcpdr&gt; was successful.</div>
</blockquote>
<div></div>
<p>I&#8217;m testing on Solaris 10 9/10 (x86).</p>
<blockquote><p># cat /etc/release<br />
Oracle Solaris 10 9/10 s10x_u9wos_14a X86<br />
Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.<br />
Assembled 11 August 2010</p></blockquote>
<p>I&#8217;ve established two ssh connections to the server.</p>
<blockquote><p># netstat -an|grep EST<br />
192.168.1.66.22      192.168.1.65.49980   15872     51 49640      0 ESTABLISHED<br />
192.168.1.66.22      192.168.1.65.50050   16640      0 49640      0 ESTABLISHED</p></blockquote>
<p>Add <strong><em>/usr/local/bin</em></strong> to the PATH environment variable if it isn&#8217;t already there.</p>
<p>To drop a connection, the syntax for tcpdrop is</p>
<blockquote><p># tcpdrop &lt;server address&gt; &lt;server listening port&gt; &lt;client address&gt; &lt;client source port&gt;</p></blockquote>
<p>In our case, to disconnect the 2nd connection,</p>
<blockquote><p># tcpdrop 192.168.1.66 22 192.168.1.65 50050<br />
192.168.1.66:22 &lt;-&gt; 192.168.1.65:50050: dropped</p></blockquote>
<p>where</p>
<p><span style="color: #ff0000;">192.168.1.66</span> is the local server IP</p>
<p><span style="color: #ff0000;">22</span> is the TCP port SSH server that we are listening for a connection</p>
<p><span style="color: #ff0000;">192.168.1.65</span> is the client IP</p>
<p><span style="color: #ff0000;">50050</span> is the source port of the clients ssh connection.</p>
<p>Let&#8217;s check netstat now:</p>
<blockquote><p>#  netstat -an|grep EST<br />
192.168.1.66.22      192.168.1.65.49980   16896     67 49640      0 ESTABLISHED</p></blockquote>
<p>There it is the connection is dropped!</p>
<p><a href="http://www.sunsolarisadmin.com/wp-content/uploads/2010/11/tcpdrop2.png"><img class="alignnone size-medium wp-image-124" title="tcpdrop2" src="http://www.sunsolarisadmin.com/wp-content/uploads/2010/11/tcpdrop2-300x189.png" alt="" width="300" height="189" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sunsolarisadmin.com/solaris-7/tcpdrop-drop-tcp-connections-in-solaris/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Install Sybase Perl module in Solaris 10</title>
		<link>http://www.sunsolarisadmin.com/solaris-10/install-sybase-perl-module-in-solaris-10/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=install-sybase-perl-module-in-solaris-10</link>
		<comments>http://www.sunsolarisadmin.com/solaris-10/install-sybase-perl-module-in-solaris-10/#comments</comments>
		<pubDate>Thu, 15 Oct 2009 22:01:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Package Management]]></category>
		<category><![CDATA[Solaris 10]]></category>
		<category><![CDATA[chain]]></category>
		<category><![CDATA[cpan]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[dbd::sybase]]></category>
		<category><![CDATA[dbi]]></category>
		<category><![CDATA[make]]></category>
		<category><![CDATA[perl]]></category>
		<category><![CDATA[perl5]]></category>
		<category><![CDATA[solaris]]></category>
		<category><![CDATA[solaris10]]></category>
		<category><![CDATA[sparc]]></category>
		<category><![CDATA[sun]]></category>
		<category><![CDATA[sybase]]></category>
		<category><![CDATA[x86]]></category>

		<guid isPermaLink="false">http://www.sunsolarisadmin.com/?p=96</guid>
		<description><![CDATA[Installing Perl modules in Sun Solaris is not as straight forward but is not very difficult as well.  Perl module installations in Sun Solaris needs GNU Make rather than the default make tool installed. And, requires using perlgcc to build the Makefile.PL than the default perl binary. Installing Sybase Perl Module requires the following preinstalled <a href='http://www.sunsolarisadmin.com/solaris-10/install-sybase-perl-module-in-solaris-10/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p><!--adsense-->Installing Perl modules in Sun Solaris is not as straight forward but is not very difficult as well.  Perl module installations in Sun Solaris needs GNU Make rather than the default make tool installed. And, requires using perlgcc to build the Makefile.PL than the default perl binary.</p>
<p><span id="more-96"></span></p>
<p>Installing Sybase Perl Module requires the following preinstalled</p>
<p>1. Sybase Server/Client already installed on your server<br />
2. GNU Make</p>
<p><span style="text-decoration: underline;"><strong>Install GNU Make</strong></span></p>
<p>Assuming you have already installed Sybase Server/Client on your system, lets download and install GNU Make.</p>
<p>GNU Make package can be downloaded from sunfreeware.com website. At the time of writing, the version available for download is Make 3.81</p>
<p><a title="Download GNU Make in Solaris 10 SPARC" href="ftp://ftp.sunfreeware.com/pub/freeware/sparc/10/make-3.81-sol10-sparc-local.gz" target="_blank">Download GNU Make for Solaris 10 (SPARC)</a></p>
<p><a title="Download GNU Make in Solaris 10 x86" href="ftp://ftp.sunfreeware.com/pub/freeware/intel/10/make-3.81-sol10-x86-local.gz" target="_blank">Download Make for Solaris 10 (x86)</a></p>
<p><em><span style="text-decoration: underline;"><strong>Unzip and Install GNU Make</strong></span></em></p>
<p>From the directory where the file is downloaded</p>
<blockquote><p><strong># gunzip make-3.81-sol10-x86-local.gz<br />
# pkgadd -d make-3.81-sol10-x86-local</strong></p></blockquote>
<p>This should install &#8220;make&#8221; under <strong>/usr/local/bin</strong></p>
<blockquote><p><strong># which make<br />
/usr/local/bin/make</strong></p></blockquote>
<p>Download Perl Modules from <a title="CPAN" href="www.cpan.org" target="_blank">www.cpan.org</a>. The modules we are interested in are</p>
<p>1. <a title="Perl DBI module" href="http://search.cpan.org/CPAN/authors/id/T/TI/TIMB/DBI-1.609.tar.gz" target="_blank">DBI (Database Independent Interface for Perl)</a></p>
<p>2. <a title="Perl DBD::Sybase module" href="http://search.cpan.org/CPAN/authors/id/M/ME/MEWP/DBD-Sybase-1.09.tar.gz" target="_blank">DBD::Sybase (Sybase database Driver for the DBI module)</a></p>
<p><em>NOTE: I find in Solaris 10 Update 6, DBI module is already installed which means we only need to install DBD::Sybase module.</em></p>
<p>To verify either of the modules is already installed on the system,</p>
<p>For DBI, file <em><strong>DBI.pm</strong></em> should exist under</p>
<blockquote><p><em><strong>x86</strong></em></p>
<p>/usr/perl5/vendor_perl/5.8.4/i86pc-solaris-64int/DBI.pm</p>
<p><em><strong>SPARC</strong></em></p>
<p>/usr/perl5/site_perl/5.8.4/sun4-solaris-64int/DBI.pm</p></blockquote>
<p>For <em><strong>DBD::Sybase</strong></em></p>
<blockquote><p><em><strong>x86</strong></em></p>
<p>/usr/perl5/site_perl/5.8.4/i86pc-solaris-64int/DBD/Sybase.pm</p>
<p><em><strong>SPARC</strong></em></p>
<p>/usr/perl5/site_perl/5.8.4/sun4-solaris-64int/DBD/Sybase.pm</p></blockquote>
<p>Now, assuming both these modules are not installed</p>
<p><span style="text-decoration: underline;"><strong>Install Perl DBI Module</strong></span></p>
<p>Download the DBI Module from <a title="Perl DBI module download" href="http://search.cpan.org/CPAN/authors/id/T/TI/TIMB/DBI-1.609.tar.gz" target="_blank">here</a></p>
<p>From the download directory,</p>
<blockquote><p><strong># gunzip DBI-1.609.tar.gz<br />
# tar -xvf DBI-1.609.tar<br />
# cd DBI-1.609</strong></p></blockquote>
<p>The above steps should (g)unzip, untar the downloaded source files.</p>
<p>Export <strong>$SYBASE</strong> &amp; <strong>$LD_LIBRARY_PATH</strong> environment variables. We have the Sybase client installed under</p>
<p><strong>/opt/sybase/oc15.0-EBF16084/OCS-15_0</strong></p>
<p>which means the libraries exist under</p>
<p><strong>/opt/sybase/oc15.0-EBF16084/OCS-15_0/lib</strong></p>
<blockquote><p><strong># export SYBASE=/opt/sybase/oc15.0-EBF16084/OCS-15_0<br />
# export LD_LIBRARY_PATH=/opt/sybase/oc15.0-EBF16084/OCS-15_0/lib:$LD_LIBRARY_PATH<br />
</strong></p></blockquote>
<p>If this step is skipped, the following error comes up in the next step:</p>
<p><span style="color: #ff0000;"><strong>Can&#8217;t find the lib directory under /export/home/sybase! at Makefile.PL line 118, &lt;IN&gt; line 44.</strong></span></p>
<p>Now comes the tricky bit, use /usr/perl5/bin/perlgcc instead of default perl as follows:</p>
<blockquote><p><strong># /usr/perl5/bin/perlgcc Makefile.PL</strong></p></blockquote>
<p>Let&#8217;s now compile and install using GNU Make from source directory</p>
<blockquote><p><strong># /usr/local/bin/make<br />
# /usr/local/bin/make test<br />
# /usr/local/bin/make install<br />
</strong></p></blockquote>
<p>To make sure the install compelted successfully. Check if the DBI.pm file exists as shown earlier.</p>
<p><span style="text-decoration: underline;"><strong>Install Perl DBD::Sybase module</strong></span></p>
<p>Download DBD::Sybase perl module from <a title="Download DBD::Sybase Perl module" href="http://search.cpan.org/CPAN/authors/id/M/ME/MEWP/DBD-Sybase-1.09.tar.gz" target="_blank">here</a>.</p>
<p>From the downloaded directory:</p>
<blockquote><p><strong># gunzip DBD-Sybase-1.09.tar.gz<br />
# tar -xvf DBD-Sybase-1.09.tar<br />
# cd DBD-Sybase-1.09</strong></p></blockquote>
<p>The above should (g)unzip, untar the downloaded file and change into the source directory.</p>
<p>Export the <strong>$SYBASE &amp; $LD_LIBRARY_PATH</strong> environment variables if you have already not done so.</p>
<blockquote><p><strong># export SYBASE=/opt/sybase/oc15.0-EBF16084/OCS-15_0<br />
# export LD_LIBRARY_PATH=/opt/sybase/oc15.0-EBF16084/OCS-15_0/lib:$LD_LIBRARY_PATH</strong></p></blockquote>
<p>Run perlgcc against the Makefile.PL as follows:</p>
<blockquote><p><strong># /usr/perl5/bin/perlgcc Makefile.PL</strong></p></blockquote>
<p>Select the default CHAIN mode or modify as required, then enter the Sybase Server, a Sybase Username and password and a Database as and when promted. This will allow the installation test connection. Make sure this DB connection is updated in the Sybase &#8220;interfaces&#8221; file.</p>
<p><em>NOTE: Once the installation is completed. Either the PWD file created by this procedure or the entire Source directory should be deleted as the PWD file will contain these DB access details. Also, it is advisable to provide a test DB access detail rather than a live environment.<br />
</em><br />
Let&#8217;s now compile and install using GNU Make from source directory</p>
<blockquote><p><strong># /usr/local/bin/make</strong></p></blockquote>
<p>Now, re-export <strong>$SYBASE</strong> as follows:</p>
<p><strong># export SYBASE=/opt/sybase/oc15.0-EBF16084</strong></p>
<p><em>[NOTE: This may vary in your environment]</em></p>
<blockquote><p><strong># /usr/local/bin/make test<br />
# /usr/local/bin/make install</strong></p></blockquote>
<p>This should install the Sybase Perl module. To confirm the installation was successful, look for Sybase.pm as explained earlier.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sunsolarisadmin.com/solaris-10/install-sybase-perl-module-in-solaris-10/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>dladm &#8211; Display Link status,speed,duplex,statistics,MTU</title>
		<link>http://www.sunsolarisadmin.com/solaris-10/dladm-display-link-statusspeedduplexstatisticsmtu/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=dladm-display-link-statusspeedduplexstatisticsmtu</link>
		<comments>http://www.sunsolarisadmin.com/solaris-10/dladm-display-link-statusspeedduplexstatisticsmtu/#comments</comments>
		<pubDate>Fri, 19 Jun 2009 18:45:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Networking]]></category>
		<category><![CDATA[Solaris 10]]></category>
		<category><![CDATA[aggregation]]></category>
		<category><![CDATA[bytes]]></category>
		<category><![CDATA[dladm]]></category>
		<category><![CDATA[duplex]]></category>
		<category><![CDATA[link speed]]></category>
		<category><![CDATA[link status]]></category>
		<category><![CDATA[mtu]]></category>
		<category><![CDATA[nxge]]></category>
		<category><![CDATA[packets]]></category>
		<category><![CDATA[speed]]></category>
		<category><![CDATA[statistics]]></category>
		<category><![CDATA[sun]]></category>

		<guid isPermaLink="false">http://www.sunsolarisadmin.com/?p=78</guid>
		<description><![CDATA[In the past we have to mess around with the NDD commands and stats tools like kstat to find the network link status, speed, duplex information in Sun Solaris. With Solaris 10, this has become much easier with the dladm utility. dladm is the admin utility for Data-Link Interface which helps to display informarthe like <a href='http://www.sunsolarisadmin.com/solaris-10/dladm-display-link-statusspeedduplexstatisticsmtu/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p><!--adsense-->In the past we have to mess around with the NDD commands and stats tools like kstat to find the network link status, speed, duplex information in Sun Solaris. With Solaris 10, this has become much easier with the dladm utility.</p>
<p><strong>dladm</strong> is the admin utility for Data-Link Interface which helps to display informarthe like Link Status (UP/DOWN), Speed, Duplex, MTU, VLAN Tagged and crucially statistics of network traffic on each of the interfaces historically as well as in real time. dladm can also configure and admin Link Aggregation on multiple NICs which we will not focus here.<br />
<span id="more-78"></span><br />
<span style="text-decoration: underline;"><strong>Show Link Status/Speed/Duplex</strong></span></p>
<blockquote><p><strong># dladm show-dev</strong><br />
nxge0           link: down      speed: 0     Mbps       duplex: unknown<br />
nxge1           link: down      speed: 0     Mbps       duplex: unknown<br />
nxge2           link: up        speed: 1000  Mbps       duplex: full<br />
nxge3           link: up        speed: 1000  Mbps       duplex: full</p></blockquote>
<p>As you can see above the &#8220;<strong>show-dev</strong>&#8221; option lists all the network interfaces with Link Status (UP/DOWN), current speed in Mbps and Duplex (Half/Full)</p>
<p><span style="text-decoration: underline;"><strong>Show Link Status</strong></span></p>
<blockquote><p><strong># dladm show-link</strong><br />
nxge0           type: non-vlan  mtu: 1500       device: nxge0<br />
nxge1           type: non-vlan  mtu: 1500       device: nxge1<br />
nxge2           type: non-vlan  mtu: 1500       device: nxge2<br />
nxge3           type: non-vlan  mtu: 1500       device: nxge3</p></blockquote>
<p>Here<strong> &#8220;show-link&#8221;</strong> option reveals the MTU and the VLAN tagging detail on each of the interfaces on the system.</p>
<p><span style="text-decoration: underline;"><strong>Show Stats of all Interfaces for all time</strong></span></p>
<blockquote><p><strong># dladm show-dev -s</strong><br />
ipackets  rbytes         ierrors opackets        obytes      oerrors<br />
nxge0           0         0           0       0         0           0<br />
nxge1           0         0           0       0         0           0<br />
nxge2           179625752557169463759657      581104982 3964684165410<br />
nxge3           22240891  1834257868  0       5198483   395084708   0</p></blockquote>
<p>The <strong>&#8220;-s&#8221;</strong> option along with <strong>&#8220;show-dev&#8221;</strong> or <strong>&#8220;show-link&#8221;</strong> displays network traffic statistics including Input/Output packets, input/output errors.</p>
<p><span style="text-decoration: underline;"><strong>Stats in real-time</strong></span></p>
<p>To show the stats of a particular interface in real-time use the<strong> &#8220;-i&#8221; </strong>option which is the interval in seconds. The first line shows again historic stats and later on the real-time information for every &#8220;n&#8221; seconds (5 seconds in our example)</p>
<blockquote><p><strong># dladm show-link -s -i 5 nxge2</strong><br />
ipackets  rbytes         ierrors opackets        obytes      oerrors<br />
nxge2           179637824757173944575957      581119516 3964706801670<br />
ipackets  rbytes         ierrors opackets        obytes      oerrors<br />
nxge2           961       319105             0       150       17874       0<br />
ipackets  rbytes         ierrors opackets        obytes      oerrors<br />
nxge2           887       263850             0       117       16505       0</p></blockquote>
<p>If we fail to mention the interface then it takes the default interface (1st in the list). As you can see from the example below, we see stats for nxge0 which is not connected.</p>
<blockquote><p><strong># dladm show-link -s -i 5</strong><br />
ipackets  rbytes         ierrors opackets        obytes      oerrors<br />
nxge0           0         0           0       0         0           0<br />
ipackets  rbytes         ierrors opackets        obytes      oerrors<br />
nxge0           0         0           0       0         0           0</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.sunsolarisadmin.com/solaris-10/dladm-display-link-statusspeedduplexstatisticsmtu/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>PCP script to find open TCP ports and PIDs related in Solaris</title>
		<link>http://www.sunsolarisadmin.com/solaris-8/pcp-script-to-find-open-tcp-ports-and-pids-related-in-solaris/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=pcp-script-to-find-open-tcp-ports-and-pids-related-in-solaris</link>
		<comments>http://www.sunsolarisadmin.com/solaris-8/pcp-script-to-find-open-tcp-ports-and-pids-related-in-solaris/#comments</comments>
		<pubDate>Tue, 12 May 2009 22:35:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Networking]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[Solaris 10]]></category>
		<category><![CDATA[Solaris 8]]></category>
		<category><![CDATA[Solaris 9]]></category>
		<category><![CDATA[pcp]]></category>
		<category><![CDATA[PID]]></category>
		<category><![CDATA[solaris]]></category>
		<category><![CDATA[sun]]></category>
		<category><![CDATA[TCP port]]></category>

		<guid isPermaLink="false">http://www.sunsolarisadmin.com/?p=69</guid>
		<description><![CDATA[PCP is a very useful security and adminitration script that can help you quickly find Processes (PIDs) having particular TCP Port(s) open, TCP ports open by specific PIDs or even list all the TCP Ports open by all PIDs running on your system. The PCP script works on Solaris 10/9/8 and can be downloaded from <a href='http://www.sunsolarisadmin.com/solaris-8/pcp-script-to-find-open-tcp-ports-and-pids-related-in-solaris/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p><!--adsense-->PCP is a very useful security and adminitration script that can help you quickly find Processes (PIDs) having particular TCP Port(s) open, TCP ports open by specific PIDs or even list all the TCP Ports open by all PIDs running on your system.</p>
<p><span id="more-69"></span><br />
The PCP script works on Solaris 10/9/8 and can be downloaded from <a title="PCP Script download" href="http://www.unix.ms/pcp/pcp.txt" target="_blank">here</a>. Simply save the pcp.txt file to your Solaris Server as a Shell scripts (say pcp.sh) and change permissions to execute.</p>
<blockquote><p><strong># chmod 755 pcp.sh</strong></p></blockquote>
<p><span style="text-decoration: underline;"><strong>PIDs for TCP Port</strong></span></p>
<p>Run PCP with <strong>&#8220;-p&#8221;</strong> option to show the PIDs of processes having a TCP port (say Port 22)</p>
<p><img class="alignnone size-full wp-image-70" title="pcp1" src="http://www.sunsolarisadmin.com/wp-content/uploads/2009/05/pcp1.png" alt="pcp1" width="471" height="194" /></p>
<p>For instance, to find PIDs opening TCP port 22.</p>
<p><span style="text-decoration: underline;"><strong>TCP Ports open by PIDs</strong></span></p>
<p>Run PCP with <strong>&#8220;-P&#8221;</strong> option to show the TCP ports open by specific PID</p>
<p>For instance, here I try to find the TCP ports open by PID 18805</p>
<p><img class="alignnone size-full wp-image-72" title="pcp3" src="http://www.sunsolarisadmin.com/wp-content/uploads/2009/05/pcp3.png" alt="pcp3" width="468" height="223" /></p>
<p><span style="text-decoration: underline;"><strong>All PIDs for all open TCP Ports</strong></span></p>
<p>Use the <strong>&#8220;-a&#8221;</strong> option to list all TCP ports open with all the PIDs</p>
<p><img class="alignnone size-full wp-image-71" title="pcp2" src="http://www.sunsolarisadmin.com/wp-content/uploads/2009/05/pcp2.png" alt="pcp2" width="464" height="458" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sunsolarisadmin.com/solaris-8/pcp-script-to-find-open-tcp-ports-and-pids-related-in-solaris/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Enable/Disable IP Forwarding in Solaris 10 without reboot</title>
		<link>http://www.sunsolarisadmin.com/solaris-10/enabledisable-ip-forwarding-in-solaris-10-without-reboot/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=enabledisable-ip-forwarding-in-solaris-10-without-reboot</link>
		<comments>http://www.sunsolarisadmin.com/solaris-10/enabledisable-ip-forwarding-in-solaris-10-without-reboot/#comments</comments>
		<pubDate>Thu, 24 Apr 2008 17:00:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Networking]]></category>
		<category><![CDATA[Solaris 10]]></category>
		<category><![CDATA[ifconfig]]></category>
		<category><![CDATA[IP-Forwarding]]></category>
		<category><![CDATA[ipv4]]></category>
		<category><![CDATA[ipv6]]></category>
		<category><![CDATA[routeadm]]></category>
		<category><![CDATA[router]]></category>

		<guid isPermaLink="false">http://www.sunsolarisadmin.com/solaris-10/enabledisable-ip-forwarding-in-solaris-10-without-reboot/</guid>
		<description><![CDATA[IP packet forwarding is the process of routing packets between network interfaces on one system. A packet arriving on one network interface and addressed to a host on a different network is forwarded to the appropriate interface. In Solaris 10, IP Forwarding can be enabled or disabled using the routeadm &#38; ifconfig commands as against <a href='http://www.sunsolarisadmin.com/solaris-10/enabledisable-ip-forwarding-in-solaris-10-without-reboot/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p><!--adsense--><br />
IP packet forwarding is the process of routing packets between network interfaces on one system. A packet arriving on one network interface and addressed to a host on a different network is forwarded to the appropriate interface.</p>
<p>In Solaris 10, IP Forwarding can be enabled or disabled using the routeadm &amp; ifconfig commands as against the ndd commands in Solaris 9 and earlier. The advantage is the change dynamic and real-time and the change persist across reboot unlike the ndd command.</p>
<p><span id="more-46"></span></p>
<p><strong><u>Enable/Disable IP Forwarding globally</u></strong> </p>
<p>To globally enable IP Forwarding in Solaris 10 use the routeadm command as follows:</p>
<p><strong>In IPv4</strong></p>
<blockquote><p><strong>solaris10# routeadm -e ipv4-forwarding</strong></p></blockquote>
<p><strong>In IPv6</strong></p>
<blockquote><p><strong>solaris10# routeadm -e ipv6-forwarding</strong></p></blockquote>
<p>The switches &#8220;-e&#8221; enables IP Forwarding.</p>
<p><strong>To disable IP Forwarding</strong></p>
<p>In IPv4</p>
<blockquote><p><strong>solaris10# routeadm -d ipv4-forwarding</strong></p></blockquote>
<p>In IPv6</p>
<blockquote><p><strong>solaris10# routeadm -d ipv6-forwarding</strong></p></blockquote>
<p>The switches &#8220;-d&#8221; enables IP Forwarding.</p>
<p>After the change run the following command for the changes to take effect.</p>
<blockquote>
<blockquote><p><strong>solaris10# routeadm -u</strong></p></blockquote>
</blockquote>
<p><strong><u>Enable/Disable IP Forwarding per interface</u></strong> </p>
<p>To enable IP Forwarding on a specific interface (say ce0) using the ifconfig command</p>
<p>In IPv4</p>
<blockquote><p><strong>solaris10# ifconfig ce0 router</strong></p></blockquote>
<p>In IPv6</p>
<blockquote><p><strong>solaris10# ifconfig ce0 inet6 router</strong></p></blockquote>
<p>To disable IP Forwarding for an interface (say ce0)</p>
<p>In IPv4</p>
<blockquote><p><strong>solaris10# ifconfig ce0 -router</strong></p></blockquote>
<p>In IPv6</p>
<blockquote><p><strong>solaris10# ifconfig ce0 inet6 -router</strong></p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.sunsolarisadmin.com/solaris-10/enabledisable-ip-forwarding-in-solaris-10-without-reboot/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Control/Modify dhcpagent configuration in Sun Solaris</title>
		<link>http://www.sunsolarisadmin.com/solaris-8/controlmodify-dhcpagent-configuration-in-sun-solaris/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=controlmodify-dhcpagent-configuration-in-sun-solaris</link>
		<comments>http://www.sunsolarisadmin.com/solaris-8/controlmodify-dhcpagent-configuration-in-sun-solaris/#comments</comments>
		<pubDate>Sat, 22 Mar 2008 19:39:12 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Networking]]></category>
		<category><![CDATA[Solaris 10]]></category>
		<category><![CDATA[Solaris 8]]></category>
		<category><![CDATA[Solaris 9]]></category>
		<category><![CDATA[broadcast-address]]></category>
		<category><![CDATA[dhcp]]></category>
		<category><![CDATA[dhcpagent]]></category>
		<category><![CDATA[dnsdomain]]></category>
		<category><![CDATA[dnsserver]]></category>
		<category><![CDATA[hostname]]></category>
		<category><![CDATA[netmask]]></category>
		<category><![CDATA[router]]></category>
		<category><![CDATA[solaris]]></category>
		<category><![CDATA[sun]]></category>

		<guid isPermaLink="false">http://www.sunsolarisadmin.com/solaris-8/controlmodify-dhcpagent-configuration-in-sun-solaris/</guid>
		<description><![CDATA[Do you you DHCP to get the IP Address for your Solaris Server or workstation then its worth understanding what your DHCP Agent by default requests for from the DHCP server and help avoid certain network issues like &#8220;unknown&#8221; hostname issue as I&#8217;ve descrbed here. The DHCP Agent by default requests for the Subnet Mask <a href='http://www.sunsolarisadmin.com/solaris-8/controlmodify-dhcpagent-configuration-in-sun-solaris/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p><!--adsense--><br />
Do you you DHCP to get the IP Address for your Solaris Server or workstation then its worth understanding what your DHCP Agent by default requests for from the DHCP server and help avoid certain network issues like &#8220;unknown&#8221; hostname issue as I&#8217;ve descrbed <a href="http://www.sunsolarisadmin.com/solaris-8/fix-no-hostname-when-using-dhcp-in-sun-solaris-8910/" title="Fix Unknown Hostname issue in Solaris DHCP" target="_blank">here</a>.</p>
<p>The DHCP Agent by default requests for the</p>
<blockquote><p><strong>Subnet Mask</strong></p>
<p><strong>Default Router</strong></p>
<p><strong>Hostname</strong></p>
<p><strong>DNS Domain</strong></p>
<p><strong>Broadcast Address</strong></p>
<p><strong>Encapsulated Vendor Option (vendor specific information as described in <a href="http://www.faqs.org/rfcs/rfc2132.html" title="RFC 2132" target="_blank">RFC 2132</a>)</strong></p></blockquote>
<p><span id="more-43"></span><br />
The DHCP Agent config file is</p>
<blockquote><p><strong>/etc/default/dhcpagent</strong></p></blockquote>
<p>In the file look for the line</p>
<blockquote><p><strong>PARAM_REQUEST_LIST=1,3,6,12,15,28,43</strong></p></blockquote>
<p>This is the line that defines what is being requested for from the DHCP Server. Here, each number stands for one of the above mentioned parameters where</p>
<blockquote><p><strong>1</strong> = subnet mask</p>
<p><strong>3</strong> = Default Router</p>
<p><strong>6</strong> = DNS Server</p>
<p><strong>12</strong> = hostname</p>
<p><strong>15</strong> = DNS Domain Name</p>
<p><strong>28</strong> = broadcast address</p>
<p><strong>43</strong> = Encapsulated Vendor options</p></blockquote>
<p>If you decide to not request for any of the above parameters then all you need to do is to remove the corresponding number from the <strong>PARAM_REQUEST_LIST</strong>. Let&#8217;s say you do not want to request for the hostname then simply remove the number &#8220;3&#8243; and the &#8220;,&#8221; that follows so it looks as follows</p>
<blockquote><p><strong>PARAM_REQUEST_LIST=1,6,12,15,28,43</strong></p></blockquote>
<p>Once done,save the file. The next time the system restarts the hostname is not requested for from the DHCP Server.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sunsolarisadmin.com/solaris-8/controlmodify-dhcpagent-configuration-in-sun-solaris/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Fix: No hostname when using DHCP in Sun Solaris 8/9/10</title>
		<link>http://www.sunsolarisadmin.com/solaris-8/fix-no-hostname-when-using-dhcp-in-sun-solaris-8910/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=fix-no-hostname-when-using-dhcp-in-sun-solaris-8910</link>
		<comments>http://www.sunsolarisadmin.com/solaris-8/fix-no-hostname-when-using-dhcp-in-sun-solaris-8910/#comments</comments>
		<pubDate>Sat, 22 Mar 2008 19:15:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Networking]]></category>
		<category><![CDATA[Solaris 10]]></category>
		<category><![CDATA[Solaris 8]]></category>
		<category><![CDATA[Solaris 9]]></category>
		<category><![CDATA[dhcp]]></category>
		<category><![CDATA[dhcpagent]]></category>
		<category><![CDATA[hostname]]></category>
		<category><![CDATA[hosts]]></category>
		<category><![CDATA[nodename]]></category>
		<category><![CDATA[solaris]]></category>
		<category><![CDATA[sun]]></category>

		<guid isPermaLink="false">http://www.sunsolarisadmin.com/solaris-8/fix-no-hostname-when-using-dhcp-in-sun-solaris-8910/</guid>
		<description><![CDATA[If you are using DHCP to receive IP Address for your Sun Solaris system, you may end up with no hostname assigned to the system. This can be confirmed when there is no hostname at the prompt or if the output for the command &#8220;hostname&#8221; is as follows: # hostname unknown or the /etc/hosts file <a href='http://www.sunsolarisadmin.com/solaris-8/fix-no-hostname-when-using-dhcp-in-sun-solaris-8910/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p><!--adsense--><br />
If you are using DHCP to receive IP Address for your Sun Solaris system, you may end up with no hostname assigned to the system. This can be confirmed when there is no hostname at the prompt or if the output for the command &#8220;hostname&#8221; is as follows:</p>
<blockquote><p><strong># hostname<br />
</strong>unknown</p>
<p>or the /etc/hosts file has an entry as follows:</p>
<p><strong># cat /etc/hosts<br />
</strong>#<br />
# Internet host table<br />
#<br />
127.0.0.1       localhost<br />
192.168.0.3     unknown # Added by DHCP</p></blockquote>
<p><span id="more-42"></span><br />
This happens when the DHCP server doesn&#8217;t provide a hostname for your server. Most of the DHCP Servers or routers acting as a DHCP Server doesn&#8217;t provide a hostname and Solaris DHCP agent relies on the DHCP server for its hostname.</p>
<p>To fix this problem, edit the dhcpagent config and set it not to request a Hostname from the DHCP server and then add a hostname to the /etc/hosts &amp; /etc/nodename file.</p>
<p><u><strong>Edit DHCPAGENT config</strong></u></p>
<p><strong><em>[For Solaris 10, this is not required as setting the hostname in /etc/nodename overrides the hostname provided by the DHCP Server. Move onto the next step]</em></strong></p>
<p>Edit the dhcpagent config file /etc/default/dhcpagent with your favorite editor</p>
<blockquote><p><strong># vi /etc/default/dhcpagent</strong></p>
<p>and look for</p>
<p>PARAM_REQUEST_LIST=1,3,6,12,15,28,43</p>
<p>and remove the Parameter &#8220;12&#8243; from the above to look as follows:</p>
<p>PARAM_REQUEST_LIST=1,3,6,15,28,43</p>
<p>and save the file.</p></blockquote>
<p>Now, add the hostname to the /etc/nodename &amp; /etc/hosts as follows</p>
<blockquote><p><strong># vi /etc/nodename</strong></p></blockquote>
<p>and add the hostname you want it to have (solarisserver for me)</p>
<blockquote><p><strong># cat /etc/nodename</strong><br />
solarisserver</p></blockquote>
<p>and edit the /etc/hosts file</p>
<blockquote><p><strong># vi /etc/hosts</strong></p></blockquote>
<p>and add the line similar to the following</p>
<blockquote><p><strong>192.168.0.3     solarisserver loghost</strong></p></blockquote>
<p>Now,reboot the server and you should be all fine with hostname set for the system.</p>
<p><strong># init 6</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sunsolarisadmin.com/solaris-8/fix-no-hostname-when-using-dhcp-in-sun-solaris-8910/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss>

