<?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>kb.hurricane-ridge.com &#187; Solaris</title>
	<atom:link href="http://kb.hurricane-ridge.com/category/os/solaris/feed" rel="self" type="application/rss+xml" />
	<link>http://kb.hurricane-ridge.com</link>
	<description>My personal - but public - knowledge base</description>
	<lastBuildDate>Mon, 09 Jan 2012 14:49:05 +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>Configuring a Printer on Solaris</title>
		<link>http://kb.hurricane-ridge.com/os/solaris/configuring-a-printer-on-solaris</link>
		<comments>http://kb.hurricane-ridge.com/os/solaris/configuring-a-printer-on-solaris#comments</comments>
		<pubDate>Tue, 02 Mar 2010 00:49:12 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Solaris]]></category>
		<category><![CDATA[jetdirect]]></category>
		<category><![CDATA[lpadmin]]></category>
		<category><![CDATA[printer]]></category>

		<guid isPermaLink="false">http://kb.hurricane-ridge.com/?p=882</guid>
		<description><![CDATA[Adapted from the lpadmin man page, for an HP JetDirect printer: > pfexec lpadmin -p lp01 -v /dev/null -m netstandard -o dest=lp01.example.com:9100 -o protocol=tcp -T PS -I postscript > pfexec lpset -a banner=never lp01 > pfexec lpadmin -d lp01 > pfexec enable lp01 > pfexec accept lp01]]></description>
			<content:encoded><![CDATA[<p>Adapted from the lpadmin man page, for an HP JetDirect printer:</p>
<p><code>> pfexec lpadmin -p lp01 -v /dev/null -m netstandard -o dest=lp01.example.com:9100 -o protocol=tcp -T PS -I postscript<br />
> pfexec lpset -a banner=never lp01<br />
> pfexec lpadmin -d lp01<br />
> pfexec enable lp01<br />
> pfexec accept lp01 </code></p>
]]></content:encoded>
			<wfw:commentRss>http://kb.hurricane-ridge.com/os/solaris/configuring-a-printer-on-solaris/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Services I like to disable on Solaris</title>
		<link>http://kb.hurricane-ridge.com/os/solaris/services-i-like-to-disable-on-solaris</link>
		<comments>http://kb.hurricane-ridge.com/os/solaris/services-i-like-to-disable-on-solaris#comments</comments>
		<pubDate>Sat, 27 Feb 2010 00:47:40 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Solaris]]></category>
		<category><![CDATA[smf]]></category>
		<category><![CDATA[svcadm]]></category>
		<category><![CDATA[svcs]]></category>

		<guid isPermaLink="false">http://kb.hurricane-ridge.com/?p=877</guid>
		<description><![CDATA[YMMV; adjust as you see fit: svcadm disable svc:/network/nfs/mapid:default svcadm disable svc:/network/nfs/cbd:default svcadm disable svc:/network/nfs/status:default svcadm disable svc:/network/nfs/nlockmgr:default svcadm disable svc:/network/rpc/rstat:default svcadm disable svc:/application/x11/xfs:default svcadm disable svc:/network/finger:default svcadm disable svc:/network/ftp:default svcadm disable svc:/network/login:rlogin svcadm disable svc:/network/nfs/rquota:default svcadm disable svc:/network/nfs/client:default svcadm disable svc:/network/rpc/rusers:default svcadm disable svc:/network/rpc/cde-ttdbserver:tcp svcadm disable svc:/network/shell:default svcadm disable svc:/network/telnet:default svcadm disable svc:/network/cde-spc:default svcadm [...]]]></description>
			<content:encoded><![CDATA[<p>YMMV; adjust as you see fit:</p>
<p><code>svcadm disable svc:/network/nfs/mapid:default<br />
svcadm disable svc:/network/nfs/cbd:default<br />
svcadm disable svc:/network/nfs/status:default<br />
svcadm disable svc:/network/nfs/nlockmgr:default<br />
svcadm disable svc:/network/rpc/rstat:default<br />
svcadm disable svc:/application/x11/xfs:default<br />
svcadm disable svc:/network/finger:default<br />
svcadm disable svc:/network/ftp:default<br />
svcadm disable svc:/network/login:rlogin<br />
svcadm disable svc:/network/nfs/rquota:default<br />
svcadm disable svc:/network/nfs/client:default<br />
svcadm disable svc:/network/rpc/rusers:default<br />
svcadm disable svc:/network/rpc/cde-ttdbserver:tcp<br />
svcadm disable svc:/network/shell:default<br />
svcadm disable svc:/network/telnet:default<br />
svcadm disable svc:/network/cde-spc:default<br />
svcadm disable svc:/application/management/seaport:default<br />
svcadm disable svc:/application/management/snmpdx:default<br />
svcadm disable svc:/application/management/dmi:default<br />
svcadm disable svc:/system/webconsole:console<br />
svcadm disable svc:/application/print/ipp-listener:default</code></p>
]]></content:encoded>
			<wfw:commentRss>http://kb.hurricane-ridge.com/os/solaris/services-i-like-to-disable-on-solaris/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>pfexec as sudo replacement</title>
		<link>http://kb.hurricane-ridge.com/os/solaris/pfexec-as-sudo-replacement</link>
		<comments>http://kb.hurricane-ridge.com/os/solaris/pfexec-as-sudo-replacement#comments</comments>
		<pubDate>Fri, 26 Feb 2010 18:22:37 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Solaris]]></category>
		<category><![CDATA[pfexec]]></category>
		<category><![CDATA[sudo]]></category>

		<guid isPermaLink="false">http://kb.hurricane-ridge.com/?p=871</guid>
		<description><![CDATA[To use pfexec similarly to sudo, use &#8220;usermod&#8221; to give the account the &#8220;Primary Administrator&#8221; profile: # usermod -P'Primary Administrator' aleonard &#8220;aleonard&#8221; will now be able to preface commands with &#8220;pfexec&#8221; to run them as root, similar to sudo when configured not to prompt for a password. References: Less known Solaris features: pfexec]]></description>
			<content:encoded><![CDATA[<p>To use pfexec similarly to sudo, use &#8220;usermod&#8221; to give the account the &#8220;Primary Administrator&#8221; profile:</p>
<p><code># usermod -P'Primary Administrator' aleonard</code></p>
<p>&#8220;aleonard&#8221; will now be able to preface commands with &#8220;pfexec&#8221; to run them as root, similar to sudo when configured not to prompt for a password.</p>
<p>References: <a href="http://www.c0t0d0s0.org/archives/4844-Less-known-Solaris-features-pfexec.html">Less known Solaris features: pfexec</a></p>
]]></content:encoded>
			<wfw:commentRss>http://kb.hurricane-ridge.com/os/solaris/pfexec-as-sudo-replacement/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using Sendmail Maps on Solaris</title>
		<link>http://kb.hurricane-ridge.com/os/solaris/using-sendmail-maps-on-solaris</link>
		<comments>http://kb.hurricane-ridge.com/os/solaris/using-sendmail-maps-on-solaris#comments</comments>
		<pubDate>Fri, 26 Feb 2010 18:08:54 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Solaris]]></category>
		<category><![CDATA[mailertable]]></category>
		<category><![CDATA[makemap]]></category>
		<category><![CDATA[sendmail]]></category>

		<guid isPermaLink="false">http://kb.hurricane-ridge.com/?p=868</guid>
		<description><![CDATA[Configure &#8216;/usr/lib/mail/cf/sendmail.mc&#8217; to meet your needs; for example, to use the access_db and mailertable features: divert(0)dnl VERSIONID(`@(#)sendmail.mc 1.11 (Sun) 06/21/04') OSTYPE(`solaris8')dnl DOMAIN(`generic')dnl FEATURE(access_db, `hash -o -T /etc/mail/access') FEATURE(mailertable, `hash -o /etc/mail/mailertable') MAILER(`local')dnl MAILER(`smtp')dnl The new &#8216;sendmail.cf&#8217; can be built in &#8216;/usr/lib/mail/cf/sendmail.mc&#8217; by running &#8216;make&#8217; as root. Copy the new &#8216;sendmail.cf&#8217; file to &#8216;/etc/mail&#8217; and restart [...]]]></description>
			<content:encoded><![CDATA[<p>Configure &#8216;/usr/lib/mail/cf/sendmail.mc&#8217; to meet your needs; for example, to use the access_db and mailertable features:</p>
<p><code>divert(0)dnl<br />
VERSIONID(`@(#)sendmail.mc      1.11 (Sun) 06/21/04')<br />
OSTYPE(`solaris8')dnl<br />
DOMAIN(`generic')dnl<br />
FEATURE(access_db, `hash -o -T<TMPF> /etc/mail/access')<br />
FEATURE(mailertable, `hash -o /etc/mail/mailertable')<br />
MAILER(`local')dnl<br />
MAILER(`smtp')dnl<br />
</code></p>
<p>The new &#8216;sendmail.cf&#8217; can be built in &#8216;/usr/lib/mail/cf/sendmail.mc&#8217; by running &#8216;make&#8217; as root. Copy the new &#8216;sendmail.cf&#8217; file to &#8216;/etc/mail&#8217; and restart sendmail by running:</p>
<p><code># svcadm restart sendmail</code></p>
<p>An example mailertable mail map would be as follows:</p>
<p><code>example.org                smtp:mx.example.org</code></p>
<p>Once your map files are ready, use &#8216;makemap&#8217; to create the database files for each map:</p>
<p><code># makemap -v hash mailertable < mailertable<br />
# makemap -v hash access < access</code></p>
]]></content:encoded>
			<wfw:commentRss>http://kb.hurricane-ridge.com/os/solaris/using-sendmail-maps-on-solaris/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Scan for Hot-Added Devices in Solaris 10</title>
		<link>http://kb.hurricane-ridge.com/os/solaris/scan-for-hot-added-devices-in-solaris-10</link>
		<comments>http://kb.hurricane-ridge.com/os/solaris/scan-for-hot-added-devices-in-solaris-10#comments</comments>
		<pubDate>Tue, 23 Feb 2010 01:13:31 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Solaris]]></category>
		<category><![CDATA[devfsadm]]></category>
		<category><![CDATA[drvconfig]]></category>

		<guid isPermaLink="false">http://kb.hurricane-ridge.com/?p=860</guid>
		<description><![CDATA[Use &#8220;devfsadm&#8221;; from the man page: devfsadm(1M) maintains the /dev namespace. It replaces the previous suite of devfs administration tools including drvconfig(1M), disks(1M), tapes(1M), ports(1M), audlinks(1M), and devlinks(1M). References: Adding a Hard Drive to Solaris 10]]></description>
			<content:encoded><![CDATA[<p>Use &#8220;devfsadm&#8221;; from the man page:</p>
<blockquote><p>devfsadm(1M) maintains the /dev namespace. It  replaces  the previous  suite  of  devfs  administration  tools  including drvconfig(1M), disks(1M), tapes(1M), ports(1M), audlinks(1M), and devlinks(1M).</p></blockquote>
<p>References: <a href="http://www.utahsysadmin.com/2008/02/07/adding-a-hard-drive-to-solaris-10/">Adding a Hard Drive to Solaris 10</a></p>
]]></content:encoded>
			<wfw:commentRss>http://kb.hurricane-ridge.com/os/solaris/scan-for-hot-added-devices-in-solaris-10/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Changing a Solaris Machine&#8217;s IP Address</title>
		<link>http://kb.hurricane-ridge.com/os/solaris/changing-a-solaris-machines-ip-address</link>
		<comments>http://kb.hurricane-ridge.com/os/solaris/changing-a-solaris-machines-ip-address#comments</comments>
		<pubDate>Sat, 12 Dec 2009 00:28:40 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Solaris]]></category>

		<guid isPermaLink="false">http://kb.hurricane-ridge.com/?p=756</guid>
		<description><![CDATA[Edit the following files as appropriate: /etc/hosts /etc/nodename /etc/hostname.&#60;interface&#62; /etc/defaultrouter Reboot to apply the changes, or run: # svcadm restart network/physical]]></description>
			<content:encoded><![CDATA[<p>Edit the following files as appropriate:</p>
<ul>
<li>/etc/hosts</li>
<li>/etc/nodename</li>
<li>/etc/hostname.&lt;interface&gt;</li>
<li>/etc/defaultrouter</li>
</ul>
<p>Reboot to apply the changes, or run:</p>
<p><code># svcadm restart network/physical</code></p>
]]></content:encoded>
			<wfw:commentRss>http://kb.hurricane-ridge.com/os/solaris/changing-a-solaris-machines-ip-address/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>One-liner to clean up ZFS Snapshots</title>
		<link>http://kb.hurricane-ridge.com/os/solaris/one-liner-to-clean-up-zfs-snapshots</link>
		<comments>http://kb.hurricane-ridge.com/os/solaris/one-liner-to-clean-up-zfs-snapshots#comments</comments>
		<pubDate>Fri, 02 Oct 2009 00:25:19 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Solaris]]></category>
		<category><![CDATA[snapshots]]></category>
		<category><![CDATA[zfs]]></category>

		<guid isPermaLink="false">http://kb.hurricane-ridge.com/?p=658</guid>
		<description><![CDATA[Here for my reference; adapt for your convenience: or possibly:]]></description>
			<content:encoded><![CDATA[<p>Here for my reference; adapt for your convenience:</p>
<pre class="brush: plain; light: true; title: ; notranslate"># for snapshot in `zfs list -H -t snapshot -r /opt/datastore | egrep '2009\-0[1-8]' | awk '{print $1}'`; do zfs destroy $snapshot; done
</pre>
<p>or possibly:</p>
<pre class="brush: plain; light: true; title: ; notranslate"># for snapshot in `zfs list -H -t snapshot -r /opt/datastore | egrep '2009\-0[1-8]' | awk '{print $1}'`; do zfs destroy -r $snapshot; done
</pre>
]]></content:encoded>
			<wfw:commentRss>http://kb.hurricane-ridge.com/os/solaris/one-liner-to-clean-up-zfs-snapshots/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using crle on Solaris</title>
		<link>http://kb.hurricane-ridge.com/os/solaris/using-crle-on-solaris</link>
		<comments>http://kb.hurricane-ridge.com/os/solaris/using-crle-on-solaris#comments</comments>
		<pubDate>Fri, 09 Jan 2009 20:12:05 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Solaris]]></category>

		<guid isPermaLink="false">http://kb.hurricane-ridge.com/?p=116</guid>
		<description><![CDATA[The crle command on Solaris is used to configure the runtime linking environment (get it?). If you are seeing errors similar to the following, you may need to look at and adjust your linking environment with crle: ld.so.1: conftest: fatal: libreadline.so.5: open failed: No such file or directory Using crle is straightforward; to view the [...]]]></description>
			<content:encoded><![CDATA[<p>The <code>crle</code> command on Solaris is used to configure the runtime linking environment (get it?).  If you are seeing errors similar to the following, you may need to look at and adjust your linking environment with <code>crle</code>:</p>
<pre><code>ld.so.1: conftest: fatal: libreadline.so.5: open failed: No such file or directory</code></pre>
<p>Using <code>crle</code> is straightforward; to view the current configuration:</p>
<pre><code>&gt; crle

Default configuration file (/var/ld/ld.config) not found
  Default Library Path (ELF):   /lib:/usr/lib  (system default)
  Trusted Directories (ELF):    /lib/secure:/usr/lib/secure  (system default)</code></pre>
<p>Updating the linking environment is also easy; to solve the libreadline.so.5 problem on my system shown above:</p>
<pre><code>&gt; pfexec crle -l /depot/readline-5.2/lib -u</code></pre>
<p>References and more details: <code>crle</code> man page, <a href="http://linuxmafia.com/faq/Admin/ld-lib-path.html">When should I set LD_LIBRARY_PATH?</a>, <a href="http://bwachter.lart.info/solaris/solfaq.html">Some Solaris FAQ</a>, <a href="http://solaris.reys.net/english/2006/04/crle">What would we do without crle?</a></p>
]]></content:encoded>
			<wfw:commentRss>http://kb.hurricane-ridge.com/os/solaris/using-crle-on-solaris/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Managing Solaris Services with SMF</title>
		<link>http://kb.hurricane-ridge.com/os/solaris/managing-solaris-services-with-smf</link>
		<comments>http://kb.hurricane-ridge.com/os/solaris/managing-solaris-services-with-smf#comments</comments>
		<pubDate>Fri, 09 Jan 2009 15:49:49 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Solaris]]></category>
		<category><![CDATA[smf]]></category>

		<guid isPermaLink="false">http://kb.hurricane-ridge.com/?p=113</guid>
		<description><![CDATA[Check the status of a service: &#62; svcs ntp STATE STIME FMRI disabled Feb_27 svc:/network/ntp:default View a service&#8217;s dependencies: &#62; svcs -d ntp STATE STIME FMRI online Feb_27 svc:/network/service:default To see what other services depend on a given service: &#62; svcs -D ntp STATE STIME FMRI online Feb_27 svc:/milestone/multi-user:default To enable a service: &#62; pfexec [...]]]></description>
			<content:encoded><![CDATA[<p>Check the status of a service:</p>
<pre> &gt; svcs ntp
 STATE          STIME    FMRI
 disabled       Feb_27   svc:/network/ntp:default</pre>
<p>View a service&#8217;s dependencies:</p>
<pre> &gt; svcs -d ntp
 STATE          STIME    FMRI
 online         Feb_27   svc:/network/service:default</pre>
<p>To see what other services depend on a given service:</p>
<pre> &gt; svcs -D ntp
 STATE          STIME    FMRI
 online         Feb_27   svc:/milestone/multi-user:default</pre>
<p>To enable a service:</p>
<pre> &gt; pfexec <span class="highlightedSearchTerm">svcadm</span> enable ntp</pre>
<p>To disable a service:</p>
<pre> &gt; pfexec <span class="highlightedSearchTerm">svcadm</span> disable ntp</pre>
<p>To view a service&#8217;s processes:</p>
<pre> &gt; svcs -p ntp
 STATE          STIME    FMRI
 online         12:19:45 svc:/network/ntp:default
                12:19:45     8331 xntpd</pre>
<p>See also <a href="http://www.sun.com/software/solaris/howtoguides/servicemgmthowto.jsp">Easier System Administration with Service Management Facility</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://kb.hurricane-ridge.com/os/solaris/managing-solaris-services-with-smf/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Add a loopback filesystem to a non-global Solaris zone</title>
		<link>http://kb.hurricane-ridge.com/os/solaris/add-lofs-to-a-non-global-solaris-zone</link>
		<comments>http://kb.hurricane-ridge.com/os/solaris/add-lofs-to-a-non-global-solaris-zone#comments</comments>
		<pubDate>Fri, 09 Jan 2009 15:17:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Solaris]]></category>
		<category><![CDATA[zones]]></category>

		<guid isPermaLink="false">http://kb.hurricane-ridge.com/?p=104</guid>
		<description><![CDATA[Use zonecfg to configure the lofs mount; this will work nicely for CDs in addition to ordinary filesystems: # zonecfg -z zone1 zonecfg:zone1&#62; add fs zonecfg:zone1:fs&#62; set dir=/depot zonecfg:zone1:fs&#62; set special=/depot zonecfg:zone1:fs&#62; set type=lofs zonecfg:zone1:fs&#62; add options [nodevices] zonecfg:zone1:fs&#62; end zonecfg:zone1&#62; commit zonecfg:zone1&#62; exit special is the directory from the global zone to mount; dir is the [...]]]></description>
			<content:encoded><![CDATA[<p>Use <code>zonecfg</code> to configure the lofs mount; this will work nicely for CDs in addition to ordinary filesystems:</p>
<pre> # zonecfg -z zone1
 zonecfg:zone1&gt; add fs
 zonecfg:zone1:fs&gt; set dir=/depot
 zonecfg:zone1:fs&gt; set special=/depot
 zonecfg:zone1:fs&gt; set type=lofs
 zonecfg:zone1:fs&gt; add options [nodevices]
 zonecfg:zone1:fs&gt; end
 zonecfg:zone1&gt; commit
 zonecfg:zone1&gt; exit</pre>
<p><code>special</code> is the directory from the global zone to mount; <code>dir</code> is the mount point within the non-global zone.</p>
<p>If adding a CD, while in the &#8220;fs&#8221; configuration mode, change the <code>options</code> to the following:</p>
<pre>zonecfg:zone1:fs&gt; add options [ro,nodevices]</pre>
<p>A reboot of the non-global zone (<code>init 6</code> within the zone) is necessary for the changes to be visible.</p>
<p>All filesystems configured for the zone can be listed as follows:</p>
<pre># zonecfg -z zone1
zonecfg:zone1&gt; info fs
fs:
        dir: /depot
        special: /depot
        raw not specified
        type: lofs
        options: []</pre>
<p>To remove the filesystem from the non-global zone, do the following:</p>
<pre> # zonecfg -z zone1
 zonecfg:zone1&gt; remove fs dir=/mnt
 zonecfg:zone1&gt; commit
 zonecfg:zone1&gt; exit</pre>
<p>Again, a reboot is necessary for the reconfiguration to take effect.</p>
<p>References: <a href="http://forum.java.sun.com/thread.jspa?threadID=5075532&amp;messageID=9275247"></a><a href="http://forum.java.sun.com/thread.jspa?threadID=5075532&amp;messageID=9275247">Sun Developer Network forums</a>, <a href="http://docs.sun.com/app/docs/doc/817-1592/z.admin.ov-2?a=view">File Systems and Non-Global Zones</a> and <a href="http://docs.sun.com/app/docs/doc/817-1592/z.config.ov-17?a=view">Resource Type Properties</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://kb.hurricane-ridge.com/os/solaris/add-lofs-to-a-non-global-solaris-zone/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

