<?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>Linux Admin Steps Into Management &#187; Solaris</title>
	<atom:link href="http://yonitg.com/category/solaris/feed/" rel="self" type="application/rss+xml" />
	<link>http://yonitg.com</link>
	<description></description>
	<lastBuildDate>Fri, 02 Jul 2010 13:28:29 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Solaris 10 Service Management</title>
		<link>http://yonitg.com/solaris-10-service-management/</link>
		<comments>http://yonitg.com/solaris-10-service-management/#comments</comments>
		<pubDate>Wed, 10 Mar 2010 22:59:38 +0000</pubDate>
		<dc:creator>yonitg</dc:creator>
				<category><![CDATA[IT management]]></category>
		<category><![CDATA[Solaris]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[sys admin]]></category>

		<guid isPermaLink="false">http://yonitg.com/?p=433</guid>
		<description><![CDATA[Under the Solaris 10 system &#8211; or the open Solaris as well, the service management have been upgraded, and there are great new tools to handle the sysadmin work on the services. The long detailed explanation can be found here: Solaris Service Management Facility &#8211; Quickstart Guide But for the fast paced sysadmin &#8211; here [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://yonitg.com/blog/wp-content/uploads/2010/03/solaris_ready.gif"><img class="alignnone size-full wp-image-435" title="solaris_ready" src="http://yonitg.com/blog/wp-content/uploads/2010/03/solaris_ready.gif" alt="solaris 10" width="170" height="116" /></a></p>
<p>Under the Solaris 10 system &#8211; or the open Solaris as well,<br />
the service management have been upgraded, and there are great new tools to handle the sysadmin<br />
work on the services.</p>
<p>The long detailed explanation can be found here:<br />
<a title="Solaris 10 and opensolaris service management" href="http://www.sun.com/bigadmin/content/selfheal/smf-quickstart.jsp" target="_blank">Solaris Service Management Facility &#8211; Quickstart Guide</a></p>
<p>But for the fast paced sysadmin &#8211; here is the short version <img src='http://yonitg.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><span id="more-433"></span>To see the detailed boot sequence with all the services notices use:</p>
<blockquote><p>boot -m verbose</p></blockquote>
<h3>Stopping and starting services</h3>
<p>stop a running service as well as make sure it wont come back after booting the server:</p>
<blockquote><p>svcadm disable service_name</p></blockquote>
<p>Bring the service back up and make sure it starts after boot as well:</p>
<blockquote><p>svcadm enable service_name</p></blockquote>
<p>The new and improved services system will also watch over the service, and restart it if it suddenly stop.<br />
but don&#8217;t worry &#8211; if the service loops and can&#8217;t start, after a couple of time the SMF will stop trying to bring it up, and will send you an error for the service.</p>
<p>To stop or start the service temporarily without impacting the startup status of the service use:</p>
<blockquote><p>svcadm -t enable/disable service_name</p></blockquote>
<h3>Getting information about the services</h3>
<p>List all active services:</p>
<blockquote><p>svcs</p></blockquote>
<p>List all available services:</p>
<blockquote><p>svcs -a</p></blockquote>
<p>List all failing services:</p>
<blockquote><p>svcs -x</p></blockquote>
<p>to get more details on a specific failing service, use:</p>
<blockquote><p>svcs -x service_name</p></blockquote>
<p>to add verbosity to the svcs commands just add &#8220;-v&#8221;</p>
<p>the services logs are located at:<br />
/var/svc/log<br />
or:<br />
/etc/svc/volatile</p>
<p>List all the processes this service is running, even if they have a different name:</p>
<blockquote><p>svcs -p service_name</p></blockquote>
<h3>Viewing Dependencies</h3>
<p>List all the services this service is depended upon, if any of these services fails, our service will fail too:</p>
<blockquote><p>svcs -d service_name</p></blockquote>
<p>List all the services that depend on our service, if our service fails, they will fail too:</p>
<blockquote><p>svcs -D service_name</p></blockquote>
<h3>Service Names</h3>
<p>the explanation for the service names im taking straight from the <a title="Sun Bigadmin" href="http://www.sun.com/bigadmin/content/selfheal/smf-quickstart.jsp" target="_blank">SUN bigadmin site</a>:</p>
<blockquote><p>Solaris uses a URI string called an <strong>FMRI</strong> (<em>Fault Managed Resource Identifier</em>) to identify system objects for which advanced fault and resource management capabilities are provided.  Services managed by SMF are assigned FMRI strings prefixed with the scheme name &#8220;<code>svc</code>&#8220;, as shown in the following examples for the Solaris service <code>syslogd(1M)</code>:</p>
<ul>
<li><code> svc://localhost/system/system-log:default </code></li>
<li><code> svc:/system/system-log:default </code></li>
<li><code> system/system-log:default </code></li>
</ul>
<p>Notice that these <strong>service FMRIs</strong> used by SMF can be expressed in three ways: first as an absolute path including a location path such as &#8220;<code>localhost</code>&#8220;; second as a path relative to the local machine; and third as simply the service identifier with the string prefixes implied. The SMF administrator tools described in the rest of this document typically describe services using the third form, as they are assumed to be operating on local services.  Other management tools that operate on multiple types of resources or across machine boundaries may use one of the other forms to describe services.  The SMF tools in the current release of Solaris can only manage services on the local host.</p></blockquote>
<h3>Solaris RunLevel</h3>
<p>There are no longer run levels setting on the Solaris server, now this is called milestones.<br />
Milestones are a group of services, which defines a state the server is in &#8211; just like single user, or multi user.<br />
you can bring the server into a specific milestone with:</p>
<blockquote><p><code>svcadm milestone milestone/single-user:default</code></p></blockquote>
<p>to permanently set the server in a specific mile stone , use:</p>
<blockquote><p><code>svcadm milestone -d milestone/single-user:default</code></p></blockquote>
<p>and again &#8211; to list what services should be running to reach a specific milestone, use:</p>
<blockquote><p>svcs -d milestone_name</p></blockquote>
<p>and that&#8217;s the short explanation <img src='http://yonitg.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>next time ill explain how to add a service of your own to the system.</p>
<p><a href="http://www.amazon.com/Solaris-10-System-Administration-Essentials/dp/013700009X%3FSubscriptionId%3DAKIAJOT3JJ24F6GO7IGQ%26tag%3Dyonitgcom-20%26linkCode%3Dxm2%26camp%3D2025%26creative%3D165953%26creativeASIN%3D013700009X"><img src="http://ecx.images-amazon.com/images/I/41E-zuGuMFL._SL160_.jpg" alt="" /></a><a href="http://www.amazon.com/Solaris-Internals-TM-OpenSolaris-Architecture/dp/0131482092%3FSubscriptionId%3DAKIAJOT3JJ24F6GO7IGQ%26tag%3Dyonitgcom-20%26linkCode%3Dxm2%26camp%3D2025%26creative%3D165953%26creativeASIN%3D0131482092"> <img src="http://ecx.images-amazon.com/images/I/51V0oJ86TvL._SL160_.jpg" alt="" /></a><a href="http://www.amazon.com/Practical-Guide-Solaris-Mark-Sobell/dp/020189548X%3FSubscriptionId%3DAKIAJOT3JJ24F6GO7IGQ%26tag%3Dyonitgcom-20%26linkCode%3Dxm2%26camp%3D2025%26creative%3D165953%26creativeASIN%3D020189548X"> <img src="http://ecx.images-amazon.com/images/I/51%2BiMzz%2Bm0L._SL160_.jpg" alt="" /></a></p>

<!-- start wp-tags-to-technorati 1.01 -->

<!-- end wp-tags-to-technorati -->
<img src="http://yonitg.com/blog/?ak_action=api_record_view&id=433&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://yonitg.com/solaris-10-service-management/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>NFS mount &#8211; When Your Shares Go Wrong</title>
		<link>http://yonitg.com/nfs-mount-debugging/</link>
		<comments>http://yonitg.com/nfs-mount-debugging/#comments</comments>
		<pubDate>Tue, 26 Jan 2010 22:14:43 +0000</pubDate>
		<dc:creator>yonitg</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Linux - Windows integration]]></category>
		<category><![CDATA[Solaris]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[sys admin]]></category>
		<category><![CDATA[Command line]]></category>
		<category><![CDATA[NFS]]></category>
		<category><![CDATA[samba]]></category>

		<guid isPermaLink="false">http://yonitg.com/?p=344</guid>
		<description><![CDATA[How to work with nfs mounts - command lines tool to check the server exports and debug nfs mounting problems.]]></description>
			<content:encoded><![CDATA[<p>From Wikipedia:</p>
<blockquote><p><a title="NFS on wikipedia" href="http://en.wikipedia.org/wiki/Network_File_System_%28protocol%29" target="_blank"><strong>Network File System</strong> (<strong>NFS</strong></a><a title="NFS on wikipedia" href="http://en.wikipedia.org/wiki/Network_File_System_%28protocol%29" target="_blank">)</a> is a network file system protocol originally developed by Sun Microsystems in 1984, allowing a user on a client computer to access files over a network in a manner similar to how local storage is accessed.</p></blockquote>
<p>So basically its a network share, it allows you to share files between remote computers<br />
in the most easy and seamless way, once it was specifically for UNIX servers,<br />
but today NFS is supported over MS servers as well.</p>
<p>Like everything else in Sysadmin life,<br />
when its working its working well, and nobody hears about it,<br />
but what to do when its not working?<br />
<a title="How to Debug Samba Server" href="http://yonitg.com/howto-debug-samba-server/" target="_blank">Samba debugging</a> for example is easier from that aspect since it has extensive logs for the sysadmin,<br />
NFS doesn&#8217;t keep logs, and NFS issues doesn&#8217;t show up in the syslog/messages file as well.</p>
<p>But there are tools that allow you to get extensive information about the running NFS process,<br />
shares, statistics, users connected etc :</p>
<table border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td width="391" valign="top">
<h3><span style="color: #0000ff;"><strong>Description</strong></span></h3>
</td>
<td width="247" valign="top">
<h3><span style="color: #0000ff;"><strong>Command</strong></span></h3>
</td>
</tr>
<tr>
<td width="391" valign="top">see what the machine is exporting<strong> </strong></td>
<td width="247" valign="top">SunOS: # exportfs<br />
Solaris: # share</td>
</tr>
<tr>
<td width="391" valign="top">Print the list of shared file systems<strong> </strong></td>
<td width="247" valign="top">showmount   -e server_name</td>
</tr>
<tr>
<td width="391" valign="top">Print the list of all clients mounting a   directory from the questioned server</td>
<td width="247" valign="top">showmount -a server_name</td>
</tr>
<tr>
<td width="391" valign="top">Print the directory and all the clients that   are mounting it curretly &#8211; from within the nfs server</td>
<td width="247" valign="top">dfmounts</td>
</tr>
<tr>
<td width="391" valign="top">print the nfs netwrok statistics<strong> </strong></td>
<td width="247" valign="top">client side: nfsstat -c<br />
server side: nfsstat -s</td>
</tr>
<tr>
<td width="391" valign="top">To see that nfsd is responding</td>
<td width="247" valign="top">rpcinfo   -T udp crimson nfs</td>
</tr>
<tr>
<td width="391" valign="top">To see that mountd is responding</td>
<td width="247" valign="top">rpcinfo -T udp crimson mountd</td>
</tr>
<tr>
<td width="391" valign="top">To see that lockd is responding</td>
<td width="247" valign="top">rpcinfo   -T udp crimson nlockmgr</p>
<p>rpcinfo   -T udp crimson llockmgr</td>
</tr>
</tbody>
</table>

<!-- start wp-tags-to-technorati 1.01 -->

<p class='technorati-tags'>Technorati Tags: <a class='technorati-link' href='http://technorati.com/tag/Command+line' rel='tag' target='_self'>Command line</a>, <a class='technorati-link' href='http://technorati.com/tag/NFS' rel='tag' target='_self'>NFS</a>, <a class='technorati-link' href='http://technorati.com/tag/samba' rel='tag' target='_self'>samba</a>, <a class='technorati-link' href='http://technorati.com/tag/Solaris' rel='tag' target='_self'>Solaris</a></p>

<!-- end wp-tags-to-technorati -->
<img src="http://yonitg.com/blog/?ak_action=api_record_view&id=344&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://yonitg.com/nfs-mount-debugging/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>solaris 10 and vnc</title>
		<link>http://yonitg.com/solaris-10-vnc/</link>
		<comments>http://yonitg.com/solaris-10-vnc/#comments</comments>
		<pubDate>Tue, 15 Dec 2009 21:35:20 +0000</pubDate>
		<dc:creator>yonitg</dc:creator>
				<category><![CDATA[IT management]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Linux - Windows integration]]></category>
		<category><![CDATA[Solaris]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[desktop]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[sys admin]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://yonitg.com/?p=338</guid>
		<description><![CDATA[VNC viewer is a free remote control software package. With VNC, you can see the desktop of a remote machine and control it with your local mouse and keyboard, just like you would do it sitting in the front of that computer. Now Solaris 10 comes with vncserver built in.]]></description>
			<content:encoded><![CDATA[<p>VNC is a server client method of connecting to a remote server,<br />
the great thing about vnc is that you can see the remote server desktop, and work on it with a mouse just like its your local desktop.<br />
another good thing about vnc is that its free for use for many distros.</p>
<p>There are main 2 major software companies that supply free vnc server and vnc cllient,<br />
the first is <a title="realvnc free download " href="http://www.realvnc.com/products/download.html" target="_blank">realvnc</a> and the second is <a title="tightvnc free vnc" href="http://www.tightvnc.com/download.php" target="_blank">tightvnc </a>, from the tighvnc site:</p>
<p>TightVNC is a free remote control software package. With TightVNC, you can <span style="color: #007000;"><strong>see the     desktop of a remote machine and control it</strong></span> with your local mouse and keyboard, just like you     would do it sitting in the front of that computer. TightVNC is:</p>
<ul>
<li><span style="color: #007000;"><strong>free</strong></span> for both personal and commercial usage, with full source code available (<a title="gnu license" href="http://www.gnu.org/copyleft/gpl.html" target="_blank">GPL</a>-licensed);</li>
<li>useful in remote administration, remote customer support, education, and for many other       purposes;</li>
<li>cross-platform, available for Windows and Unix, compatible with other VNC software.</li>
</ul>
<p>So these are 2 options for you to download a good free vnc viewer.</p>
<h2>Solaris VNCserver configuration</h2>
<p>and I say only viewer because now the Solaris 10 build 5 comes with the vncserver alredy inside.<br />
all you need to do is to configure it.</p>
<p>This page on the SUN site will give you the detailed explanation on how to do things and what <a title="Install a patch before using Xvnc" href="http://docs.sun.com/app/docs/doc/819-0872/remotead-20?l=en&amp;a=view&amp;q=vnc+solaris+10" target="_blank">security patch you need to install fisrt </a>,but the instructions can be summed up in 4 lines:</p>
<blockquote><p>mkdir -p /etc/dt/config</p>
<p>cp /usr/dt/config/Xservers    /etc/dt/config/Xservers</p>
<p>edit this file “/etc/dt/config/Xservers” and add these lines at the end:</p>
<p>:1  Local local_uid@none root /usr/X11/bin/Xvnc :1 -nobanner -AlwaysShared -SecurityTypes None -geometry 1024x768x24 -depth 24<br />
:2  Local local_uid@none root /usr/X11/bin/Xvnc :2 -nobanner -AlwaysShared -SecurityTypes None -geometry 1024x768x24 -depth 24<br />
:3  Local local_uid@none root /usr/X11/bin/Xvnc :3 -nobanner -AlwaysShared -SecurityTypes None -geometry 1024x768x24 -depth 24<br />
And reboot the server.</p></blockquote>
<p>The lines with the :1 :2 etc at the beginning, are the virtual displays you wish to server to have available for connections, you can add more by changing the numbers to :4 :5 etc.</p>
<p>when connecting to the server with the vnc viewer you need to express to which virtual display you want to connect by adding it to end of the server&#8217;s name or ip:</p>
<blockquote><p>10.10.10.1:3</p></blockquote>
<p>If you want to connect to virtual display number 3.</p>
<p>A security note – this configuration will allow passwordless access to the vnc screen – if someone logs in and leaves it open – the next user can just enter without a login.</p>
<p>A safer configuration is to require a password by using the <kbd><strong>-SecurityTypes VncAuth</strong></kbd> parameter. The Xvnc(1) man page describes password requirements.</p>
<h2><strong>VNC and Security</strong></h2>
<p>The vnc as a general is clear text, for a more secure connection there is a method of tunneling the vnc through a ssh session.<br />
2 nice tutorials for vnc through ssh can be found <a title="VNC over SSH2 - A TightVNC Tutorial" href="http://www.vanemery.com/Linux/VNC/vnc-over-ssh.html" target="_blank">here</a> and <a title="Tunnelling VNC over SSH with PuTTY" href="http://martybugs.net/smoothwall/puttyvnc.cgi" target="_blank">here</a>.<br />
the second tutorial is using putty for the ssh connection &#8211; putty is another great freeware,<br />
its a <a title="PuTTY Download Page" href="http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html" target="_blank">free ssh client for windows</a> to connect to ssh servers.</p>
<p>If the server you wish to connect to through vnc is located withing your lan,<br />
and you are relaxed about security for the users on it &#8211; if its a training server etc ,<br />
you can just setup the vncserver without any safeguards,<br />
but if you are connecting through an unsecured medium (AKA the internet)<br />
you better add the ssh layer to it.</p>
<p><a href="http://www.amazon.com/Solaris-10-System-Administration-Essentials/dp/013700009X%3FSubscriptionId%3DAKIAJOT3JJ24F6GO7IGQ%26tag%3Dyonitgcom-20%26linkCode%3Dxm2%26camp%3D2025%26creative%3D165953%26creativeASIN%3D013700009X"><img src="http://ecx.images-amazon.com/images/I/41E-zuGuMFL._SL160_.jpg" alt="" /></a> <a href="http://www.amazon.com/Solaris-Security-Essentials-Microsystems-Engineers/dp/0137012330%3FSubscriptionId%3DAKIAJOT3JJ24F6GO7IGQ%26tag%3Dyonitgcom-20%26linkCode%3Dxm2%26camp%3D2025%26creative%3D165953%26creativeASIN%3D0137012330"><img src="http://ecx.images-amazon.com/images/I/41DnAUzC0jL._SL160_.jpg" alt="" /></a> <a href="http://www.amazon.com/Solaris-Solutions-System-Administrators-Time-Saving/dp/047143115X%3FSubscriptionId%3DAKIAJOT3JJ24F6GO7IGQ%26tag%3Dyonitgcom-20%26linkCode%3Dxm2%26camp%3D2025%26creative%3D165953%26creativeASIN%3D047143115X"><img src="http://ecx.images-amazon.com/images/I/51VF610-5JL._SL160_.jpg" alt="" /></a></p>

<!-- start wp-tags-to-technorati 1.01 -->

<p class='technorati-tags'>Technorati Tags: <a class='technorati-link' href='http://technorati.com/tag/desktop' rel='tag' target='_self'>desktop</a>, <a class='technorati-link' href='http://technorati.com/tag/Linux' rel='tag' target='_self'>Linux</a>, <a class='technorati-link' href='http://technorati.com/tag/network' rel='tag' target='_self'>network</a>, <a class='technorati-link' href='http://technorati.com/tag/Solaris' rel='tag' target='_self'>Solaris</a>, <a class='technorati-link' href='http://technorati.com/tag/windows' rel='tag' target='_self'>windows</a></p>

<!-- end wp-tags-to-technorati -->
<img src="http://yonitg.com/blog/?ak_action=api_record_view&id=338&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://yonitg.com/solaris-10-vnc/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
