<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-4087768282268381204</id><updated>2024-08-28T15:25:59.612-07:00</updated><title type='text'>UNIX BY EXAMPLE</title><subtitle type='html'>A blog for comprehensive unix related information. User can find everything related to shell scripting ,solaris and unix command etc.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://unixbyexample.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4087768282268381204/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://unixbyexample.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Him</name><uri>http://www.blogger.com/profile/01802895914380136446</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>20</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-4087768282268381204.post-6339262372851485006</id><published>2014-01-02T03:15:00.001-08:00</published><updated>2014-11-04T09:51:40.236-08:00</updated><title type='text'>Disable direct ssh root login in Solaris 10</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;MsoNoSpacing&quot; style=&quot;margin-left: 14.2pt; mso-list: l0 level1 lfo1; text-indent: -14.2pt;&quot;&gt;
&lt;!--[if !supportLists]--&gt;1.&lt;span style=&quot;font-size: 7pt; font-stretch: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;!--[endif]--&gt;Edit
/etc/ssh/sshd_config with your favorite text editor.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;span style=&quot;background: #222222; border: none windowtext 1.0pt; color: white; font-family: &amp;quot;Courier New&amp;quot;; mso-border-alt: none windowtext 0cm; mso-fareast-language: EN-IN; padding: 0cm;&quot;&gt;[root@root ~]# vi
/etc/ssh/sshd_config&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
Change this
line:&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;span style=&quot;background: #222222; border: none windowtext 1.0pt; color: white; font-family: &amp;quot;Courier New&amp;quot;; mso-border-alt: none windowtext 0cm; mso-fareast-language: EN-IN; padding: 0cm;&quot;&gt;#PermitRootLogin yes&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
Edit to this:&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;span style=&quot;background: #222222; border: none windowtext 1.0pt; color: white; font-family: &amp;quot;Courier New&amp;quot;; mso-border-alt: none windowtext 0cm; mso-fareast-language: EN-IN; padding: 0cm;&quot;&gt;PermitRootLogin no&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot; style=&quot;margin-left: 14.2pt; mso-list: l0 level1 lfo1; text-indent: -14.2pt;&quot;&gt;
&lt;!--[if !supportLists]--&gt;2.&lt;span style=&quot;font-size: 7pt; font-stretch: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;!--[endif]--&gt;&amp;nbsp;Ensure that you are logged into the box with
another shell before restarting sshd to avoid locking yourself out of the
server.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;span style=&quot;background: #222222; border: none windowtext 1.0pt; color: white; font-family: &amp;quot;Courier New&amp;quot;; mso-border-alt: none windowtext 0cm; mso-fareast-language: EN-IN; padding: 0cm;&quot;&gt;[root@root ~]# /etc/init.d/sshd
restart&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;span style=&quot;background: #222222; border: none windowtext 1.0pt; color: white; font-family: &amp;quot;Courier New&amp;quot;; mso-border-alt: none windowtext 0cm; mso-fareast-language: EN-IN; padding: 0cm;&quot;&gt;Stopping sshd: [ OK ]&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;span style=&quot;background: #222222; border: none windowtext 1.0pt; color: white; font-family: &amp;quot;Courier New&amp;quot;; mso-border-alt: none windowtext 0cm; mso-fareast-language: EN-IN; padding: 0cm;&quot;&gt;Starting sshd: [ OK ]&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;span style=&quot;background: #222222; border: none windowtext 1.0pt; color: white; font-family: &amp;quot;Courier New&amp;quot;; mso-border-alt: none windowtext 0cm; mso-fareast-language: EN-IN; padding: 0cm;&quot;&gt;[root@root ~]#&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://unixbyexample.blogspot.com/feeds/6339262372851485006/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://unixbyexample.blogspot.com/2014/01/disable-direct-ssh-root-login-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4087768282268381204/posts/default/6339262372851485006'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4087768282268381204/posts/default/6339262372851485006'/><link rel='alternate' type='text/html' href='http://unixbyexample.blogspot.com/2014/01/disable-direct-ssh-root-login-in.html' title='Disable direct ssh root login in Solaris 10'/><author><name>Him</name><uri>http://www.blogger.com/profile/01802895914380136446</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4087768282268381204.post-1570813125185909622</id><published>2013-08-18T12:45:00.003-07:00</published><updated>2013-08-18T12:45:51.333-07:00</updated><title type='text'>Enabling SSL for Apache</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h1 class=&quot;Title&quot;&gt;
&lt;br /&gt;&lt;/h1&gt;
&lt;div class=&quot;BP&quot;&gt;
This appendix describes the method of enabling SSL for Apache. The following topics guide you through the necessary steps:&lt;/div&gt;
&lt;ul class=&quot;LB1&quot;&gt;
&lt;li class=&quot;LB1&quot; type=&quot;DISC&quot;&gt;&lt;a href=&quot;&quot; name=&quot;623867&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://docs.oracle.com/cd/A95431_01/install/ssl.htm#623420&quot;&gt;Generate the Certification Request&lt;/a&gt;&lt;/li&gt;
&lt;li class=&quot;LB1&quot; type=&quot;DISC&quot;&gt;&lt;a href=&quot;&quot; name=&quot;623868&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://docs.oracle.com/cd/A95431_01/install/ssl.htm#623513&quot;&gt;Modify httpd.conf File to Enable SSL&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 class=&quot;H2&quot;&gt;
&lt;span style=&quot;color: #330099; font-family: Arial, Helvetica, sans-serif;&quot;&gt;Generate the Certification Request&lt;/span&gt;&lt;/h3&gt;
&lt;div class=&quot;BP&quot;&gt;
Perform the following steps to generate a certificate request:&lt;/div&gt;
&lt;ol class=&quot;LN1&quot; type=&quot;1&quot;&gt;
&lt;li class=&quot;LN1&quot; type=&quot;1&quot; value=&quot;1&quot;&gt;&lt;a href=&quot;&quot; name=&quot;623748&quot;&gt;&lt;/a&gt;Make the following changes to the&amp;nbsp;&lt;code&gt;openssl.cnf&lt;/code&gt;&amp;nbsp;file to generate the certificate request:&lt;br /&gt;
&lt;pre class=&quot;CE1&quot;&gt;&lt;a href=&quot;&quot; name=&quot;623754&quot;&gt;&lt;/a&gt;#

#OpenSSL example configuration file
&lt;a href=&quot;&quot; name=&quot;623756&quot;&gt;&lt;/a&gt;#This is mostly being used for generation of certificate requests.
&lt;a href=&quot;&quot; name=&quot;623757&quot;&gt;&lt;/a&gt;#
&lt;a href=&quot;&quot; name=&quot;623755&quot;&gt;&lt;/a&gt;
&lt;a href=&quot;&quot; name=&quot;623758&quot;&gt;&lt;/a&gt;#This definition stops the following lines choking if HOME isn&#39;t defined.
&lt;a href=&quot;&quot; name=&quot;623759&quot;&gt;&lt;/a&gt;HOME =
&lt;a href=&quot;&quot; name=&quot;623763&quot;&gt;&lt;/a&gt;RANDFILE=$ENV::HOME/.rnd
&lt;a href=&quot;&quot; name=&quot;623764&quot;&gt;&lt;/a&gt;oid_section=new_oids
&lt;a href=&quot;&quot; name=&quot;623765&quot;&gt;&lt;/a&gt;
&lt;/pre&gt;
&lt;a href=&quot;&quot; name=&quot;623753&quot;&gt;&lt;/a&gt;&lt;div class=&quot;BP1&quot;&gt;
Use the commands below to generate the certification request:&lt;/div&gt;
&lt;pre class=&quot;CE1&quot;&gt;&lt;a href=&quot;&quot; name=&quot;623415&quot;&gt;&lt;/a&gt;...\Apache\open_ssl\bin\openssl md5 *&amp;gt;rand.dat
&lt;a href=&quot;&quot; name=&quot;623416&quot;&gt;&lt;/a&gt;...\Apache\open_ssl\bin\openssl genrsa -rand rand.dat -des3 1024 &amp;gt; key.pem
&lt;a href=&quot;&quot; name=&quot;623417&quot;&gt;&lt;/a&gt;...\Apache\open_ssl\bin\openssl req -new -key.pem -out csr.pem -config 
openssl.cnf
&lt;a href=&quot;&quot; name=&quot;623464&quot;&gt;&lt;/a&gt;
&lt;/pre&gt;
&lt;a href=&quot;&quot; name=&quot;623419&quot;&gt;&lt;/a&gt;&lt;div class=&quot;BP1&quot;&gt;
When you run the final command, a certificate request is generated. The following is an example of a certification request:&lt;/div&gt;
&lt;pre class=&quot;CE1&quot;&gt;&lt;a href=&quot;&quot; name=&quot;623421&quot;&gt;&lt;/a&gt;Country Name (2 letter code) [AU]: &lt;strong class=&quot;Bold&quot;&gt;US

&lt;/strong&gt;State or Province Name (full name)[Some-State]: &lt;strong class=&quot;Bold&quot;&gt;California

&lt;/strong&gt;Locality name (eg, city) []: &lt;strong class=&quot;Bold&quot;&gt;Redwood Shores

&lt;/strong&gt;Organization Name (eg, company) [Internet Widgits Pty Ltd}: &lt;strong class=&quot;Bold&quot;&gt;Oracle

&lt;/strong&gt;Organizational Unit Name (eg, section) []: &lt;strong class=&quot;Bold&quot;&gt;EITQA

&lt;/strong&gt;Common Name (eg, YOUR name) []:&lt;strong class=&quot;Bold&quot;&gt;pdarshan-pc.us.oracle.com

&lt;/strong&gt;Email Address []: &lt;strong class=&quot;Bold&quot;&gt;username@oracle.com
&lt;/strong&gt;&lt;a href=&quot;&quot; name=&quot;623467&quot;&gt;&lt;/a&gt;
&lt;/pre&gt;
&lt;a href=&quot;&quot; name=&quot;623428&quot;&gt;&lt;/a&gt;&lt;div class=&quot;BP1&quot;&gt;
Please enter the following &quot;extra&quot; attributes to be sent with your certification request:&lt;/div&gt;
&lt;pre class=&quot;CE1&quot;&gt;&lt;a href=&quot;&quot; name=&quot;623433&quot;&gt;&lt;/a&gt;A challange password []:

An optional company name []:
&lt;a href=&quot;&quot; name=&quot;623470&quot;&gt;&lt;/a&gt;
&lt;/pre&gt;
&lt;a href=&quot;&quot; name=&quot;623439&quot;&gt;&lt;/a&gt;&lt;div class=&quot;BP1&quot;&gt;
Be sure to take note of the following:&lt;/div&gt;
&lt;ul class=&quot;LB2&quot;&gt;
&lt;li class=&quot;LB2&quot; type=&quot;DISC&quot;&gt;&lt;a href=&quot;&quot; name=&quot;623473&quot;&gt;&lt;/a&gt;These commands create two files:&amp;nbsp;&lt;code&gt;key.pem&lt;/code&gt;&amp;nbsp;and&amp;nbsp;&lt;code&gt;csr.pem&lt;/code&gt;&amp;nbsp;(certificate request).&lt;/li&gt;
&lt;li class=&quot;LB2&quot; type=&quot;DISC&quot;&gt;&lt;a href=&quot;&quot; name=&quot;623471&quot;&gt;&lt;/a&gt;For Common Name, include the FULL name of the HOST and DOMAIN you are running the command on.&lt;/li&gt;
&lt;li class=&quot;LB2&quot; type=&quot;DISC&quot;&gt;&lt;a href=&quot;&quot; name=&quot;623448&quot;&gt;&lt;/a&gt;Remember the password you enter. This password is used every time Oracle HTTP Server is started.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li class=&quot;LN1&quot; type=&quot;1&quot; value=&quot;2&quot;&gt;&lt;a href=&quot;&quot; name=&quot;623484&quot;&gt;&lt;/a&gt;Send the Certification Request. In the CSR area, paste the certification request from&amp;nbsp;&lt;code&gt;csr.pem&lt;/code&gt;&amp;nbsp;file.&lt;/li&gt;
&lt;li class=&quot;LN1&quot; type=&quot;1&quot; value=&quot;3&quot;&gt;&lt;a href=&quot;&quot; name=&quot;623485&quot;&gt;&lt;/a&gt;When you receive the certificate, paste it into a file named&amp;nbsp;&lt;code&gt;portalcert.crt&lt;/code&gt;.&lt;a href=&quot;&quot; name=&quot;623488&quot;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;div class=&quot;BP1&quot;&gt;
Be sure that you get the Root Trial CA certificate by going to the URL mentioned in the Certificate Authority email. Export that certificate from the browser to a file named&amp;nbsp;&lt;code&gt;rootcacert.crt&lt;/code&gt;.&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;LN1&quot; type=&quot;1&quot; value=&quot;4&quot;&gt;&lt;a href=&quot;&quot; name=&quot;623491&quot;&gt;&lt;/a&gt;Copy the following in appropriate directories:&lt;br /&gt;
&lt;ul class=&quot;LB2&quot;&gt;
&lt;li class=&quot;LB2&quot; type=&quot;DISC&quot;&gt;&lt;a href=&quot;&quot; name=&quot;623496&quot;&gt;&lt;/a&gt;Certificate file&amp;nbsp;&lt;code&gt;portalcert.crt&lt;/code&gt;&amp;nbsp;into the&lt;code&gt;&amp;nbsp;...\Apache\Apache\conf\ssl.crt&lt;/code&gt;&amp;nbsp;directory.&lt;/li&gt;
&lt;li class=&quot;LB2&quot; type=&quot;DISC&quot;&gt;&lt;a href=&quot;&quot; name=&quot;623497&quot;&gt;&lt;/a&gt;&lt;code&gt;key.pem&lt;/code&gt;&amp;nbsp;file into the&amp;nbsp;&lt;code&gt;...\Apache\Apache\conf\ssl.key&lt;/code&gt;&amp;nbsp;directory.&lt;/li&gt;
&lt;li class=&quot;LB2&quot; type=&quot;DISC&quot;&gt;&lt;a href=&quot;&quot; name=&quot;623498&quot;&gt;&lt;/a&gt;Root Trial CA file&amp;nbsp;&lt;code&gt;rootcacert.crt&lt;/code&gt;&amp;nbsp;into the&amp;nbsp;&lt;code&gt;...\Apache\Apache\conf\ssl.crt&amp;nbsp;&lt;/code&gt;directory.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h3 class=&quot;H2&quot;&gt;
&lt;span style=&quot;color: #330099; font-family: Arial, Helvetica, sans-serif;&quot;&gt;Modify httpd.conf File to Enable SSL&lt;/span&gt;&lt;/h3&gt;
&lt;div class=&quot;BP&quot;&gt;
Make the following changes to the&amp;nbsp;&lt;code&gt;httpd.conf&lt;/code&gt;&amp;nbsp;file to enable SSL:&lt;/div&gt;
&lt;a href=&quot;&quot; name=&quot;623855&quot;&gt;&lt;/a&gt;&lt;a href=&quot;&quot; name=&quot;623420&quot;&gt;&lt;/a&gt;&lt;a href=&quot;&quot; name=&quot;623843&quot;&gt;&lt;/a&gt;&lt;a href=&quot;&quot; name=&quot;623513&quot;&gt;&lt;/a&gt;&lt;a href=&quot;&quot; name=&quot;623846&quot;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;ol class=&quot;LN1&quot; type=&quot;1&quot;&gt;
&lt;li class=&quot;LN1&quot; type=&quot;1&quot; value=&quot;1&quot;&gt;&lt;a href=&quot;&quot; name=&quot;623514&quot;&gt;&lt;/a&gt;&lt;strong class=&quot;Bold&quot;&gt;Port changes&lt;/strong&gt;: Be sure your entries are similar to the ones in the example below:&lt;br /&gt;
&lt;pre class=&quot;CE1&quot;&gt;&lt;a href=&quot;&quot; name=&quot;623523&quot;&gt;&lt;/a&gt;#

# This port is used when starting without SSL

Port 80
&lt;a href=&quot;&quot; name=&quot;623533&quot;&gt;&lt;/a&gt;# This port is used when starting with SSL

&lt;ifdefine ssl=&quot;&quot;&gt;

Port 80

Port 443

&lt;/ifdefine&gt;



##

##SSL Support

##

##When we also provide SSL we have to listen to the standard HTTP port 
##(see above) abd to the HTTPS port

##

&lt;ifdefine ssl=&quot;&quot;&gt;
&lt;a href=&quot;&quot; name=&quot;623724&quot;&gt;&lt;/a&gt;Listen 80
&lt;a href=&quot;&quot; name=&quot;623725&quot;&gt;&lt;/a&gt;Listen 443
&lt;a href=&quot;&quot; name=&quot;623726&quot;&gt;&lt;/a&gt;&lt;/ifdefine&gt;
&lt;a href=&quot;&quot; name=&quot;623727&quot;&gt;&lt;/a&gt;
&lt;a href=&quot;&quot; name=&quot;623728&quot;&gt;&lt;/a&gt;##
&lt;a href=&quot;&quot; name=&quot;623729&quot;&gt;&lt;/a&gt;##SSL Virtual Host Context

##
&lt;a href=&quot;&quot; name=&quot;623730&quot;&gt;&lt;/a&gt;
&lt;a href=&quot;&quot; name=&quot;623738&quot;&gt;&lt;/a&gt;&lt;virtualhost_default_:443&gt;
&lt;a href=&quot;&quot; name=&quot;623741&quot;&gt;&lt;/a&gt;
&lt;/virtualhost_default_:443&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li class=&quot;LN1&quot; type=&quot;1&quot; value=&quot;2&quot;&gt;&lt;a href=&quot;&quot; name=&quot;623336&quot;&gt;&lt;/a&gt;&lt;strong class=&quot;Bold&quot;&gt;SSL Certificate related entries&lt;/strong&gt;: For Entry for Certificate, search for&amp;nbsp;&lt;code&gt;SSLCertificateFile&lt;/code&gt;&amp;nbsp;and make this entry as below pointing to your certificate that came from the certificate authority. This is illustrated in the following example:&lt;br /&gt;
&lt;pre class=&quot;CE1&quot;&gt;&lt;a href=&quot;&quot; name=&quot;623785&quot;&gt;&lt;/a&gt;SSLCertificateFile\conf\ssl.crt\portalcert.crt
&lt;a href=&quot;&quot; name=&quot;623786&quot;&gt;&lt;/a&gt;
&lt;a href=&quot;&quot; name=&quot;623787&quot;&gt;&lt;/a&gt;Entry for Server Private Key
&lt;a href=&quot;&quot; name=&quot;623788&quot;&gt;&lt;/a&gt;
&lt;a href=&quot;&quot; name=&quot;623789&quot;&gt;&lt;/a&gt;SSLCertificateKeyFile conf\ssl.key\key.pem
&lt;a href=&quot;&quot; name=&quot;623790&quot;&gt;&lt;/a&gt;
&lt;a href=&quot;&quot; name=&quot;623797&quot;&gt;&lt;/a&gt;Entry for Server Certificate Chain: (The Root Trial CA Certificate)
&lt;a href=&quot;&quot; name=&quot;623798&quot;&gt;&lt;/a&gt;
&lt;a href=&quot;&quot; name=&quot;623799&quot;&gt;&lt;/a&gt;Entry for Certificate Authority (CA): as below
&lt;a href=&quot;&quot; name=&quot;623803&quot;&gt;&lt;/a&gt;
&lt;a href=&quot;&quot; name=&quot;623804&quot;&gt;&lt;/a&gt;#Certificate Authority (CA):
&lt;a href=&quot;&quot; name=&quot;623805&quot;&gt;&lt;/a&gt;#Set the CA certificate verification path where to find CA 
&lt;a href=&quot;&quot; name=&quot;623829&quot;&gt;&lt;/a&gt;#certificates for client authentication or alternatively one 
&lt;a href=&quot;&quot; name=&quot;623830&quot;&gt;&lt;/a&gt;#huge file containing all of this (file must be PEM encoded). 
&lt;a href=&quot;&quot; name=&quot;623806&quot;&gt;&lt;/a&gt;#Note: Inside SSLCACertificatePath you beed hash symlinks 
&lt;a href=&quot;&quot; name=&quot;623832&quot;&gt;&lt;/a&gt;#to point to the certificate files. Use the provided
&lt;a href=&quot;&quot; name=&quot;623831&quot;&gt;&lt;/a&gt;#Makefile to update the hash symlinks after changes.
&lt;a href=&quot;&quot; name=&quot;623807&quot;&gt;&lt;/a&gt;#SSLCACertificateFile conf\ssl.crt\ca-bundle.crt
&lt;a href=&quot;&quot; name=&quot;623808&quot;&gt;&lt;/a&gt;SSLCACertificateFile conf\ssl.crt
&lt;a href=&quot;&quot; name=&quot;623821&quot;&gt;&lt;/a&gt;SSLCACertificateFile conf\ssl.crt\rootcacert.crt
&lt;/pre&gt;
&lt;pre class=&quot;CE2&quot;&gt;&lt;a href=&quot;&quot; name=&quot;623833&quot;&gt;&lt;/a&gt;
&lt;/pre&gt;
&lt;/li&gt;
&lt;li class=&quot;LN1&quot; type=&quot;1&quot; value=&quot;3&quot;&gt;&lt;a href=&quot;&quot; name=&quot;623834&quot; style=&quot;background-color: white;&quot;&gt;&lt;/a&gt;&lt;span style=&quot;background-color: white;&quot;&gt;Restart Apache.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://unixbyexample.blogspot.com/feeds/1570813125185909622/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://unixbyexample.blogspot.com/2013/08/enabling-ssl-for-apache.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4087768282268381204/posts/default/1570813125185909622'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4087768282268381204/posts/default/1570813125185909622'/><link rel='alternate' type='text/html' href='http://unixbyexample.blogspot.com/2013/08/enabling-ssl-for-apache.html' title='Enabling SSL for Apache'/><author><name>Him</name><uri>http://www.blogger.com/profile/01802895914380136446</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4087768282268381204.post-7729569775041657100</id><published>2013-08-13T10:23:00.000-07:00</published><updated>2013-08-13T10:23:02.102-07:00</updated><title type='text'>How to Limit Display of Other User&#39;s Processes</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Arial, Verdana, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;
In this update, I will be talking about how to restrict the output of the&amp;nbsp;&lt;a href=&quot;http://docs.sun.com/db/doc/816-5165/6mbb0m9pi?a=view&quot; style=&quot;color: black;&quot;&gt;ps(1)&lt;/a&gt;&amp;nbsp;command such that users can only see processes that they own. This is a very useful capability especially for ISPs and other organizations that do not want to allow users to see what other users are doing.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Arial, Verdana, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Arial, Verdana, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;
This new feature would not have been possible without the introduction of&amp;nbsp;&lt;a href=&quot;http://docs.sun.com/db/doc/816-4557/6maosrjfe?a=view&quot; style=&quot;color: black;&quot;&gt;process privileges&lt;/a&gt;&amp;nbsp;into the Solaris 10 OS. For a great overview of process privileges, see&amp;nbsp;&lt;a href=&quot;http://blogs.sun.com/roller/page/casper/20040722#solaris_privileges&quot; style=&quot;color: black;&quot;&gt;Casper Dik&#39;s blog entry&lt;/a&gt;&amp;nbsp;on this topic. Be sure to read his article to get a more in depth understanding of process privileges.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Arial, Verdana, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Arial, Verdana, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;
So, before we begin, let&#39;s see what the output of&amp;nbsp;&lt;i&gt;ps -aef&lt;/i&gt;&amp;nbsp;might look like for an average user (in this case,&amp;nbsp;&lt;i&gt;gmb&lt;/i&gt;):&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Arial, Verdana, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Arial, Verdana, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;
&lt;/div&gt;
&lt;pre style=&quot;background-color: white; color: #555555; font-size: 12px; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;$ ps -aef
     UID   PID  PPID   C    STIME TTY         TIME CMD
    root     0     0   0   Sep 23 ?           0:07 sched
    root     1     0   0   Sep 23 ?           0:01 /sbin/init
    root     2     0   0   Sep 23 ?           0:00 pageout
    root     3     0   0   Sep 23 ?           2:31 fsflush
    root   393     1   0   Sep 23 ?           0:00 /usr/sbin/auditd
    root     7     1   0   Sep 23 ?           0:11 /lib/svc/bin/svc.startd
    root     9     1   0   Sep 23 ?           0:19 svc.configd
    root   176     1   0   Sep 23 ?           0:00 /usr/sbin/syslogd
    root    64     1   0   Sep 23 ?           0:00 /usr/sbin/nscd
  daemon    91     1   0   Sep 23 ?           0:02 kcfd
    root   170     1   0   Sep 23 ?           0:01 /usr/lib/utmpd
     gmb  1795  1792   0 22:17:26 pts/1       0:00 -sh
    root  1527     7   0 00:53:24 console     0:00 /usr/bin/login
    root    82     1   0   Sep 23 ?           0:00 /usr/lib/sysevent/syseventd
   smmsp   334     1   0   Sep 23 ?           0:00 /usr/lib/sendmail -Ac -q15m
  daemon   137     1   0   Sep 23 ?           0:06 /usr/sbin/rpcbind
    root    84     1   0   Sep 23 ?           0:00 /usr/lib/picl/picld
    root  1601  1527   0 07:36:19 console     0:00 -sh
    root   181     1   0   Sep 23 ?           0:04 /usr/lib/inet/inetd start
    root   281     1   0   Sep 23 ?           0:00 /usr/lib/nfs/mountd
    root   187     1   0   Sep 23 ?           0:00 /usr/sbin/cron
    root  1402     1   0 00:26:14 ?           0:00 /usr/lib/ssh/sshd
  daemon   289     1   0   Sep 23 ?           0:00 /usr/lib/nfs/nfsd
  daemon   264     1   0   Sep 23 ?           0:00 /usr/lib/nfs/statd
    root   303     1   0   Sep 23 ?           0:00 /usr/lib/fm/fmd/fmd
  daemon   268     1   0   Sep 23 ?           0:00 /usr/lib/nfs/lockd
    root   291     1   0   Sep 23 ?           0:00 /usr/lib/autofs/automountd
     gmb  1799  1795   0 22:17:28 pts/1       0:00 ps -aef
    root  1789   181   1 22:17:19 ?           0:00 /usr/sbin/in.telnetd
    root  1792  1789   1 22:17:19 pts/1       0:00 login -p -h 10.1.1.100 -d /dev/pts/1
    root   335     1   0   Sep 23 ?           0:06 /usr/lib/sendmail -bd -q15m
  daemon   296     1   0   Sep 23 ?           0:00 /usr/lib/nfs/nfsmapid
&lt;/pre&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Arial, Verdana, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Arial, Verdana, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;
As you can see, the&amp;nbsp;&lt;i&gt;gmb&lt;/i&gt;&amp;nbsp;user can see not only his processes but also those of the&amp;nbsp;&lt;i&gt;root&lt;/i&gt;,&amp;nbsp;&lt;i&gt;daemon&lt;/i&gt;, and&amp;nbsp;&lt;i&gt;smmsp&lt;/i&gt;accounts. We can change this behavior either globally or on a per-user basis. Just as we discussed in the&amp;nbsp;&lt;a href=&quot;http://unixbyexample.blogspot.in/2013/08/solaris-10-account-lock.html&quot; style=&quot;color: black;&quot;&gt;Solaris 10 Account Lockout&lt;/a&gt;&amp;nbsp;entry, we can use user-specific changes to force a subset of users to comply with some policy or use the user-specific changes to make exceptions for those users. The flexibility of this format allows it to be adapted quite easily to the needs of many organizations.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Arial, Verdana, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Arial, Verdana, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;
For our first example, we will illustrate how the global change can be made. So do this, we must edit the&lt;a href=&quot;http://docs.sun.com/db/doc/816-5174/6mbb98uij?a=view&quot; style=&quot;color: black;&quot;&gt;/etc/security/policy.conf&lt;/a&gt;&amp;nbsp;file, uncomment the PRIV_DEFAULT entry and set its value as follows:&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Arial, Verdana, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Arial, Verdana, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;
&lt;/div&gt;
&lt;pre style=&quot;background-color: white; color: #555555; font-size: 12px; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;PRIV_DEFAULT=basic,!proc_info
&lt;/pre&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Arial, Verdana, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Arial, Verdana, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;
For those not familiar with the&amp;nbsp;&lt;i&gt;proc_info&lt;/i&gt;&amp;nbsp;privilege, you can find more information about it using the&amp;nbsp;&lt;a href=&quot;http://docs.sun.com/db/doc/816-5165/6mbb0m9p1?a=view&quot; style=&quot;color: black;&quot;&gt;ppriv(1)&lt;/a&gt;&amp;nbsp;command:&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Arial, Verdana, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Arial, Verdana, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;
&lt;/div&gt;
&lt;pre style=&quot;background-color: white; color: #555555; font-size: 12px; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;# ppriv -l -v proc_info
proc_info
        Allows a process to examine the status of processes other
        than those it can send signals to.  Processes which cannot
        be examined cannot be seen in /proc and appear not to exist.
&lt;/pre&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Arial, Verdana, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Arial, Verdana, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;
This is all that you need to do to globally configure your Solaris 10 system so that users will only be able to see processes that they own.&amp;nbsp;&lt;b&gt;Note that this will obviously not apply to&amp;nbsp;&lt;i&gt;root&lt;/i&gt;&amp;nbsp;who by default has all privileges or to other users or processes that have been explicitly given the&amp;nbsp;&lt;i&gt;proc_info&lt;/i&gt;&amp;nbsp;privilege.&lt;/b&gt;&amp;nbsp;Regardless, it is still a very quick and effective way to limit what processes users may see.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Arial, Verdana, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Arial, Verdana, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;
Returning to the&amp;nbsp;&lt;i&gt;gmb&lt;/i&gt;&amp;nbsp;account example, I re-login to the system and again run the&amp;nbsp;&lt;i&gt;ps -aef&lt;/i&gt;&amp;nbsp;command, but this time I receive different results:&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Arial, Verdana, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Arial, Verdana, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;
&lt;/div&gt;
&lt;pre style=&quot;background-color: white; color: #555555; font-size: 12px; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;$  ssh -l gmb sampleHost
gmb@sampleHost&#39;s password:
Last login: Fri Sep 24 22:25:18 2004 from 10.1.1.100
Sun Microsystems Inc.   SunOS 5.10      s10_67  May 2004
$ ps -aef
     UID   PID  PPID   C    STIME TTY         TIME CMD
     gmb  1823  1819   0 22:30:17 pts/1       0:00 ps -aef
     gmb  1819  1815   0 22:30:14 pts/1       0:00 -sh
$
&lt;/pre&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Arial, Verdana, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Arial, Verdana, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;
As you can see, the&amp;nbsp;&lt;i&gt;gmb&lt;/i&gt;&amp;nbsp;user may now only see his own processes. Way cool. Next, to illustrate the per-user configuration ability, I will leave this global configuration in place and use the per-user configuration ability to allow the&amp;nbsp;&lt;i&gt;gmb&lt;/i&gt;&amp;nbsp;user to view processes owned by other users. This is just an example of how exceptions can be implemented. The same process could be used to enable this feature for just a user or subset of users on the system.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Arial, Verdana, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Arial, Verdana, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;
To accomplish this task, we go back to the&amp;nbsp;&lt;a href=&quot;http://docs.sun.com/db/doc/816-5174/6mbb98ukt?a=view&quot; style=&quot;color: black;&quot;&gt;user_attr(4)&lt;/a&gt;&amp;nbsp;file. In this file, we will modify the existing entry for the&amp;nbsp;&lt;i&gt;gmb&lt;/i&gt;user (or create one if one had not already been there). The following example illustrates the change that needs to be made. Specifically you need to add the&amp;nbsp;&lt;i&gt;defaultpriv&lt;/i&gt;&amp;nbsp;entry to specify the default list of privileges that will be available to this user. By modifying this parameter, you will change the default set of privileges available to a user (by either adding or removing privileges as needed.) In this case, we are returning the user&#39;s default set of privileges to&amp;nbsp;&lt;i&gt;basic&amp;nbsp;&lt;/i&gt;from&amp;nbsp;&lt;i&gt;basic,!proc_info&lt;/i&gt;.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Arial, Verdana, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Arial, Verdana, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;
&lt;/div&gt;
&lt;pre style=&quot;background-color: white; color: #555555; font-size: 12px; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;gmb::::lock_after_retries=no;defaultpriv=basic
&lt;/pre&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Arial, Verdana, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Arial, Verdana, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;
So, let&#39;s see if this really works. In the following example, we will confirm the configuration of the system, login to the system as the&amp;nbsp;&lt;i&gt;gmb&lt;/i&gt;&amp;nbsp;user, and run the&amp;nbsp;&lt;i&gt;ps -aef&lt;/i&gt;&amp;nbsp;command to verify that the&amp;nbsp;&lt;i&gt;gmb&lt;/i&gt;&amp;nbsp;user can see processes owned by other users.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Arial, Verdana, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Arial, Verdana, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;
&lt;/div&gt;
&lt;pre style=&quot;background-color: white; color: #555555; font-size: 12px; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;# grep &quot;\^PRIV_DEFAULT=&quot; /etc/security/policy.conf
PRIV_DEFAULT=basic,!proc_info
# grep &quot;\^gmb:&quot; /etc/user_attr
gmb::::lock_after_retries=no;defaultpriv=basic
# ssh -l gmb localhost
Password:
Last login: Fri Sep 24 22:37:55 2004 from 10.1.1.100
Sun Microsystems Inc.   SunOS 5.10      s10_67  May 2004
$ id -a
uid=100(gmb) gid=1(other) groups=1(other)
$ ps -aef
     UID   PID  PPID   C    STIME TTY         TIME CMD
    root     0     0   0   Sep 23 ?           0:07 sched
    root     1     0   0   Sep 23 ?           0:01 /sbin/init
    root     2     0   0   Sep 23 ?           0:00 pageout
    root     3     0   0   Sep 23 ?           2:33 fsflush
    root   393     1   0   Sep 23 ?           0:00 /usr/sbin/auditd
    root     7     1   0   Sep 23 ?           0:11 /lib/svc/bin/svc.startd
    root     9     1   0   Sep 23 ?           0:19 svc.configd
    root   176     1   0   Sep 23 ?           0:00 /usr/sbin/syslogd
    root    64     1   0   Sep 23 ?           0:00 /usr/sbin/nscd
  daemon    91     1   0   Sep 23 ?           0:02 kcfd
    root   170     1   0   Sep 23 ?           0:01 /usr/lib/utmpd
    root  1900  1402   7 22:42:05 ?           0:02 /usr/lib/ssh/sshd
    root  1527     7   0 00:53:24 console     0:00 /usr/bin/login
    root    82     1   0   Sep 23 ?           0:00 /usr/lib/sysevent/syseventd
   smmsp   334     1   0   Sep 23 ?           0:00 /usr/lib/sendmail -Ac -q15m
  daemon   137     1   0   Sep 23 ?           0:06 /usr/sbin/rpcbind
    root    84     1   0   Sep 23 ?           0:00 /usr/lib/picl/picld
    root  1601  1527   0 07:36:19 console     0:00 -sh
    root   181     1   0   Sep 23 ?           0:04 /usr/lib/inet/inetd start
    root   281     1   0   Sep 23 ?           0:00 /usr/lib/nfs/mountd
    root   187     1   0   Sep 23 ?           0:00 /usr/sbin/cron
    root  1402     1   0 00:26:14 ?           0:00 /usr/lib/ssh/sshd
  daemon   289     1   0   Sep 23 ?           0:00 /usr/lib/nfs/nfsd
  daemon   264     1   0   Sep 23 ?           0:00 /usr/lib/nfs/statd
    root   303     1   0   Sep 23 ?           0:00 /usr/lib/fm/fmd/fmd
  daemon   268     1   0   Sep 23 ?           0:00 /usr/lib/nfs/lockd
    root   291     1   0   Sep 23 ?           0:00 /usr/lib/autofs/automountd
     gmb  1912  1908   0 22:42:12 pts/1       0:00 ps -aef
    root   335     1   0   Sep 23 ?           0:06 /usr/lib/sendmail -bd -q15m
  daemon   296     1   0   Sep 23 ?           0:00 /usr/lib/nfs/nfsmapid
     gmb  1908  1900   0 22:42:10 pts/1       0:00 -sh
    root  1899  1601   6 22:42:05 console     0:02 ssh -l gmb localhost
&lt;/pre&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Arial, Verdana, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Arial, Verdana, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;
It worked! That was pretty easy, right? This is just one very small example of how you can use process privileges in your daily lives. I will try to add more interesting examples of practical uses for process privileges in the future.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Arial, Verdana, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Arial, Verdana, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;
Before ending, I do want to highlight that while these examples focused on the&amp;nbsp;&lt;i&gt;ps(1)&lt;/i&gt;&amp;nbsp;command - other process related commands will also be impacted such as&amp;nbsp;&lt;i&gt;ptree(1)&lt;/i&gt;,&amp;nbsp;&lt;i&gt;pcred(1)&lt;/i&gt;,&amp;nbsp;&lt;i&gt;pmap(1)&lt;/i&gt;,&amp;nbsp;&lt;i&gt;psig(1)&lt;/i&gt;, etc. Further, as a user running without the&amp;nbsp;&lt;i&gt;proc_info&lt;/i&gt;&amp;nbsp;privilege, you will not even be able to see other processes in the /proc directory:&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Arial, Verdana, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Arial, Verdana, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Arial, Verdana, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;pre style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: #555555; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; margin-bottom: 10px; margin-top: 10px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; widows: auto; word-spacing: 0px;&quot;&gt;$ id -a
uid=101(foo) gid=1(other) groups=1(other)
$ ppriv $$
1915:   -sh
flags = &lt;none&gt;
        E: basic,!proc_info
        I: basic,!proc_info
        P: basic,!proc_info
        L: all
$ ls -l /proc
total 4
dr-x--x--x   5 foo      other        832 Sep 24 22:52 1915
dr-x--x--x   5 foo      other        832 Sep 24 22:56 1932
&lt;/none&gt;&lt;/pre&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://unixbyexample.blogspot.com/feeds/7729569775041657100/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://unixbyexample.blogspot.com/2013/08/how-to-limit-display-of-other-users.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4087768282268381204/posts/default/7729569775041657100'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4087768282268381204/posts/default/7729569775041657100'/><link rel='alternate' type='text/html' href='http://unixbyexample.blogspot.com/2013/08/how-to-limit-display-of-other-users.html' title='How to Limit Display of Other User&#39;s Processes'/><author><name>Him</name><uri>http://www.blogger.com/profile/01802895914380136446</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4087768282268381204.post-7269397651938850392</id><published>2013-08-13T10:12:00.000-07:00</published><updated>2013-08-13T10:12:31.551-07:00</updated><title type='text'>Managing Non-Login and Locked Solaris Accounts</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;margin-bottom: 10px; margin-top: 10px;&quot;&gt;
For those not already aware, a non-login account is one that must exist on the system (to provide a UID for example) but should not be allowed to login to a system interactively. That is, while a non-login account may be able to leverage delayed execution mechanism such as cron(1M), they cannot access the system using login(1), telnet(1) ftp(1), ssh(1), etc. Accounts that are non-login will have the token&amp;nbsp;&lt;i&gt;NP&lt;/i&gt;&amp;nbsp;as their password. You can also identify non-login accounts using the passwd(1) command:&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 10px; margin-top: 10px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 10px; margin-top: 10px;&quot;&gt;
&lt;/div&gt;
&lt;pre style=&quot;margin-bottom: 10px; margin-top: 10px;&quot;&gt;# passwd -s daemon
daemon    NL
# grep &quot;\^daemon:&quot; /etc/shadow
daemon:NP:6445::::::
&lt;/pre&gt;
&lt;div style=&quot;margin-bottom: 10px; margin-top: 10px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 10px; margin-top: 10px;&quot;&gt;
In this case, the&amp;nbsp;&lt;i&gt;daemon&lt;/i&gt;&amp;nbsp;account has been configured as a non-login account.&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 10px; margin-top: 10px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 10px; margin-top: 10px;&quot;&gt;
A locked account on the other hand is one that is not permitted to access the system in any way - it is locked. A locked account differs from one marked as non-login in that locked accounts are not permitted to use delayed execution methods like cron(1M). Locked accounts are those whose password string has the prefix&amp;nbsp;&lt;i&gt;\*LK\*&lt;/i&gt;. Further, you can identify locked accounts using the passwd(1) command:&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 10px; margin-top: 10px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 10px; margin-top: 10px;&quot;&gt;
&lt;/div&gt;
&lt;pre style=&quot;margin-bottom: 10px; margin-top: 10px;&quot;&gt;# passwd -s listen
listen    LK
# grep &quot;\^listen:&quot; /etc/shadow
listen:\*LK\*:::::::
&lt;/pre&gt;
&lt;div style=&quot;margin-bottom: 10px; margin-top: 10px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 10px; margin-top: 10px;&quot;&gt;
In this case, the&amp;nbsp;&lt;i&gt;listen&lt;/i&gt;&amp;nbsp;account has been locked.&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 10px; margin-top: 10px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 10px; margin-top: 10px;&quot;&gt;
Here is a practical example. In this case, I will add a new account&amp;nbsp;&lt;i&gt;gmb&lt;/i&gt;&amp;nbsp;to the system. By default, new accounts created using useradd(1M) are locked. After assigning a new password, I will demonstrate the use and result of the new&amp;nbsp;&lt;i&gt;-N&lt;i&gt;&amp;nbsp;and&amp;nbsp;&lt;i&gt;-u&lt;i&gt;&amp;nbsp;options to the passwd(1) command in addition to the&amp;nbsp;&lt;i&gt;-l&lt;/i&gt;&amp;nbsp;option which has been around for ever.&lt;/i&gt;&lt;/i&gt;&lt;/i&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 10px; margin-top: 10px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 10px; margin-top: 10px;&quot;&gt;
&lt;i&gt;First, let&#39;s create a test account called&amp;nbsp;&lt;i&gt;gmb&lt;/i&gt;. You will notice that by default the account will be locked.&lt;/i&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 10px; margin-top: 10px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 10px; margin-top: 10px;&quot;&gt;
&lt;i&gt;&lt;i&gt;&lt;/i&gt;&lt;/i&gt;&lt;/div&gt;
&lt;pre style=&quot;margin-bottom: 10px; margin-top: 10px;&quot;&gt;&lt;i&gt;# useradd -d /export/home/gmb gmb
# passwd -s gmb
gmb       LK
&lt;/i&gt;&lt;/pre&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Arial, Verdana, sans-serif; font-size: 12px; font-style: italic; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Arial, Verdana, sans-serif; font-size: 12px; font-style: italic; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;
Next, a password will be assigned to the&amp;nbsp;&lt;i&gt;gmb&lt;/i&gt;&amp;nbsp;account in the usual way using the passwd(1) command...&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Arial, Verdana, sans-serif; font-size: 12px; font-style: italic; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Arial, Verdana, sans-serif; font-size: 12px; font-style: italic; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;
&lt;/div&gt;
&lt;pre style=&quot;background-color: white; color: #555555; font-size: 12px; font-style: italic; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;# passwd gmb
New Password:
Re-enter new Password:
passwd: password successfully changed for gmb
# passwd -s gmb
gmb       PS
# grep &quot;\^gmb:&quot; /etc/shadow
gmb:Onk28eSYhYJ8s:12683::::::
&lt;/pre&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Arial, Verdana, sans-serif; font-size: 12px; font-style: italic; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Arial, Verdana, sans-serif; font-size: 12px; font-style: italic; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;
You will notice that the &quot;passwd -s&quot; command now returns the keyword&amp;nbsp;&lt;i&gt;PS&lt;/i&gt;&amp;nbsp;for &quot;password set&quot;. If the account did not have a password defined, the keyword&amp;nbsp;&lt;i&gt;NP&lt;/i&gt;&amp;nbsp;(for &quot;no password&quot;) would have been returned.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Arial, Verdana, sans-serif; font-size: 12px; font-style: italic; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Arial, Verdana, sans-serif; font-size: 12px; font-style: italic; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;
Now that we have a password, let&#39;s lock the account and see what happens to the password string in /etc/shadow as well as to the output of &quot;passwd -s&quot;:&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Arial, Verdana, sans-serif; font-size: 12px; font-style: italic; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Arial, Verdana, sans-serif; font-size: 12px; font-style: italic; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;
&lt;/div&gt;
&lt;pre style=&quot;background-color: white; color: #555555; font-size: 12px; font-style: italic; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;# passwd -l gmb
passwd: password information changed for gmb
# passwd -s gmb
gmb       LK
# grep &quot;\^gmb:&quot; /etc/shadow
gmb:\*LK\*Onk28eSYhYJ8s:12683::::::
&lt;/pre&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Arial, Verdana, sans-serif; font-size: 12px; font-style: italic; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Arial, Verdana, sans-serif; font-size: 12px; font-style: italic; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;
You will notice that the account was in fact locked, but what is new in Solaris 10 is that the password string is not replaced with the &quot;\*LK\*&quot; value. Instead, a &quot;\*LK\*&quot; string prefix is prepended to the password so that the original value can be kept if desired. The great thing about this is that it does not depend on the password algorithm used. With the addition of flexible crypt in Solaris 9, you can replace the default crypt algorithm with either others provided by default in Solaris or one of your own and this new locking mechanism will still just work.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Arial, Verdana, sans-serif; font-size: 12px; font-style: italic; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Arial, Verdana, sans-serif; font-size: 12px; font-style: italic; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;
To unlock a locked account, you just use the new &quot;-u&quot; option to the passwd(1) command:&lt;/div&gt;
&lt;pre style=&quot;background-color: white; color: #555555; font-size: 12px; font-style: italic; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;# passwd -u gmb
passwd: password information changed for gmb
# passwd -s gmb
gmb       PS
# grep &quot;\^gmb:&quot; /etc/shadow
gmb:Onk28eSYhYJ8s:12683::::::
&lt;/pre&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Arial, Verdana, sans-serif; font-size: 12px; font-style: italic; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Arial, Verdana, sans-serif; font-size: 12px; font-style: italic; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;
The account is now unlocked and the &quot;\*LK\*&quot; prefix has been removed from the user&#39;s password string. The last thing that we will look at today is how you create a non-login account. To do this, simply use the &quot;-N&quot; option to the password command:&lt;/div&gt;
&lt;pre style=&quot;background-color: white; color: #555555; font-size: 12px; font-style: italic; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;# passwd -N gmb
passwd: password information changed for gmb
# passwd -s gmb
gmb       NL
# grep &quot;\^gmb:&quot; /etc/shadow
gmb:NP:12683::::::
&lt;/pre&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Arial, Verdana, sans-serif; font-size: 12px; font-style: italic; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;
&lt;/div&gt;
&lt;i&gt;&lt;span style=&quot;background-color: white; color: #555555; font-family: Arial, Verdana, sans-serif; font-size: 12px; line-height: 18px;&quot;&gt;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Arial, Verdana, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: #555555; font-family: Arial, Verdana, sans-serif; font-size: 12px; font-style: italic; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; margin: 10px 0px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
You will notice that the user&#39;s original password has been removed and replaced with the string &quot;NP&quot;. This account is now a non-login account and the original password has been discarded. You will not be able to login to this account, but the account will be able to make use of delayed execution facilities. To re-enable an account for interactive logins, simply reassign a password to the account using the passwd(1) command.&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://unixbyexample.blogspot.com/feeds/7269397651938850392/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://unixbyexample.blogspot.com/2013/08/managing-non-login-and-locked-solaris.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4087768282268381204/posts/default/7269397651938850392'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4087768282268381204/posts/default/7269397651938850392'/><link rel='alternate' type='text/html' href='http://unixbyexample.blogspot.com/2013/08/managing-non-login-and-locked-solaris.html' title='Managing Non-Login and Locked Solaris Accounts'/><author><name>Him</name><uri>http://www.blogger.com/profile/01802895914380136446</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4087768282268381204.post-3762583371164926568</id><published>2013-08-13T10:02:00.000-07:00</published><updated>2013-08-13T10:02:03.892-07:00</updated><title type='text'> Solaris 10 Account Lock </title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h3 class=&quot;entry-title&quot; style=&quot;color: red; font-size: 20px; font-weight: normal; line-height: 25px; margin: 0px 0px 3px;&quot;&gt;
Solaris 10 Account Lockout&amp;nbsp;&lt;/h3&gt;
&lt;h4 class=&quot;entry-meta&quot; style=&quot;color: #888888; font-size: 11px; font-weight: normal; margin: 0px 0px 10px;&quot;&gt;
&lt;br /&gt;&lt;/h4&gt;
&lt;div class=&quot;entry-body&quot;&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Arial, Verdana, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Arial, Verdana, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;
&amp;nbsp;Account lockout is the ability of a system or service to administratively lock an account after that account has suffered &quot;n&quot; consecutive failed authentication attempts. Very often &quot;n&quot; is three.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Arial, Verdana, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Arial, Verdana, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;
&amp;nbsp;Locked accounts are not able to access any system services whether interactively or through the use of delayed execution mechanisms such as cron(1M). So, when an account is locked out using this capability, only a system administrator is able to re-enable the account, using the&amp;nbsp;&lt;a href=&quot;http://docs.sun.com/db/doc/816-5165/6mbb0m9np?a=view&quot; style=&quot;color: black;&quot;&gt;passwd(1)&lt;/a&gt;&amp;nbsp;command with the &quot;-u&quot; option.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Arial, Verdana, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Arial, Verdana, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;
Account lockout can be enabled in one of two ways. The first way will enable account lockout globally for all users. The second method will all more granular control of which users will or will not be subject to account lockout policy.&lt;b&gt;Note that the account lockout capability will only apply to accounts local to the system.&lt;/b&gt;&amp;nbsp;We will look at both in a little more detail below.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Arial, Verdana, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Arial, Verdana, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;
Before we look at how to enable or disable the account lockout policy, let&#39;s first take a look at how you configure the number of consecutive, failed authentication attempts that will serve as your line in the sand. Any number of consecutive, failed attempts beyond the number selected will result in the account being locked. This number is based on the&amp;nbsp;&lt;i&gt;RETRIES&lt;/i&gt;&amp;nbsp;parameter in the&amp;nbsp;&lt;a href=&quot;http://docs.sun.com/db/doc/816-5165/6mbb0m9km?a=view&quot; style=&quot;color: black;&quot;&gt;/etc/default/login&lt;/a&gt;&amp;nbsp;file. By default, this parameter is set to&amp;nbsp;&lt;i&gt;5&lt;/i&gt;. You can certainly customize this parameter based on your local needs and policy. By default, the&amp;nbsp;&lt;a href=&quot;http://www.sun.com/security/jass&quot; style=&quot;color: black;&quot;&gt;Solaris Security Toolkit&lt;/a&gt;&amp;nbsp;will set the&lt;i&gt;RETRIES&lt;/i&gt;&amp;nbsp;parameter to&amp;nbsp;&lt;i&gt;3&lt;/i&gt;.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Arial, Verdana, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Arial, Verdana, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;
Now that we know how to define how many consecutive, unsuccessful authentication attempts we will allow, let&#39;s take a look at how you can enable the account lockout policy globally. This policy can be altered using the&lt;i&gt;LOCK_AFTER_RETRIES&lt;/i&gt;&amp;nbsp;variable in the&amp;nbsp;&lt;a href=&quot;http://docs.sun.com/db/doc/816-5174/6mbb98uij?a=view&quot; style=&quot;color: black;&quot;&gt;/etc/security/policy.conf&lt;/a&gt;&amp;nbsp;file. Just as it sounds, if you set this parameter to&lt;i&gt;YES&lt;/i&gt;, then the account lockout policy is enabled for all users on the system (unless there is a user override which we will talk about in a minute). By default, this parameter is set to&amp;nbsp;&lt;i&gt;NO&lt;/i&gt;&amp;nbsp;which means that account lockout is not enabled.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Arial, Verdana, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Arial, Verdana, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;
So, let&#39;s try a simple example. First, I created a test account called&amp;nbsp;&lt;i&gt;gmb&lt;/i&gt;. Next, I set the&amp;nbsp;&lt;i&gt;LOCK_AFTER_RETRIES&lt;/i&gt;parameter in /etc/security/policy.conf to&amp;nbsp;&lt;i&gt;YES&lt;/i&gt;. To see, how this feature works, I attempted to authenticate to a system (and failed) using three different services:(1) TELNET, (2) FTP and (3) RLOGIN. I failed the login attempt for each of these services (in turn) twice with the exception of RLOGIN since after the fifth failed attempt the account was locked. I ran this test from the system&#39;s console so that the log messages could be injected into the output stream to give you a better idea of what was happening. Here is the actual log of the test that was run:&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Arial, Verdana, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Arial, Verdana, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;
&lt;/div&gt;
&lt;pre style=&quot;background-color: white; color: #555555; font-size: 12px; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;# telnet localhost
Trying 127.0.0.1...
Connected to localhost.
Escape character is &#39;\^]&#39;.
login: gmb
Password:
Login incorrect
login: gmb
Password:
Login incorrect
login: 
Connection to localhost closed by foreign host.
# ftp localhost
Connected to localhost.
220 sampleHost FTP server ready.
Name (localhost:root): gmb
331 Password required for gmb.
Password:
530 Login incorrect.
Login failed.
ftp&amp;gt; user gmb
331 Password required for gmb.
Password:
530 Login incorrect.
Login failed.
ftp&amp;gt; quit 221 Goodbye.
# rlogin -l gmb localhost Password:
Sep 23 23:23:47 sampleHost login: Excessive (5) login failures for gmb: locking account. Login incorrect
login: 
&lt;/pre&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Arial, Verdana, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Arial, Verdana, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;
As you can see, after the fifth attempt, the&amp;nbsp;&lt;i&gt;gmb&lt;/i&gt;&amp;nbsp;account was locked. This can also be verified by looking at the shadow(4) file entry for that account:&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Arial, Verdana, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Arial, Verdana, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;
&lt;/div&gt;
&lt;pre style=&quot;background-color: white; color: #555555; font-size: 12px; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;# grep &quot;\^gmb:&quot; /etc/shadow
gmb:\*LK\*R12OfCMPngtJQ:12685::::::5 
&lt;/pre&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Arial, Verdana, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Arial, Verdana, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;
You can see that the account has been locked and that a record of the number of failures is available in the last column. From the&amp;nbsp;&lt;a href=&quot;http://docs.sun.com/db/doc/816-5174/6mbb98ujn?a=view&quot; style=&quot;color: black;&quot;&gt;shadow(4)&lt;/a&gt;&amp;nbsp;manual page, the last field (called &quot;flag&quot;) stores the failed login count in the low order four bits while reserving the remainder for future use. This means that you can also look at individual shadow(4) entries and see how many consecutive failed authentication attempts have been made per user. For example, you could do the following to see how many users have had failed authentication attempts since their last successful login:&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Arial, Verdana, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Arial, Verdana, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;
&lt;/div&gt;
&lt;pre style=&quot;background-color: white; color: #555555; font-size: 12px; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;# awk -F: &#39;$NF &amp;gt;= 1 { print; }&#39; /etc/shadow
gmb:\*LK\*R12OfCMPngtJQ:12685::::::5
foo:02YZb5ZaMrcrk:12685::::::2
bar:XF0Ggjq1c6tYQ:12685::::::1
baz:.VxOG4ytNE8es:12685::::::3
&lt;/pre&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Arial, Verdana, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Arial, Verdana, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;
If a user who has had failed authentication attempts is finally able to successfully login to the system, that user will be presented with a message like:&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Arial, Verdana, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Arial, Verdana, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;
&lt;/div&gt;
&lt;pre style=&quot;background-color: white; color: #555555; font-size: 12px; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;# telnet localhost
Trying 127.0.0.1...
Connected to localhost.
Escape character is &#39;\^]&#39;.
login: baz
Password:
Warning: 3 failed login attempts since last successful login.
Last login: Thu Sep 23 23:36:44 from localhost
&lt;/pre&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Arial, Verdana, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Arial, Verdana, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;
This warning message is available for interactive login services (not FTP) and is very helpful in providing warning to users who may not have been responsible for the failed authentication attempts. It is important that you educate your users to not simply ignore these messages as they could be a symptom of an ongoing attack on their account.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Arial, Verdana, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Arial, Verdana, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;
Also, note that once a user has successfully authenticated to a system, the failed login count is reset:&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Arial, Verdana, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Arial, Verdana, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;
&lt;/div&gt;
&lt;pre style=&quot;background-color: white; color: #555555; font-size: 12px; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;# grep &quot;\^baz&quot; /etc/shadow
baz:.VxOG4ytNE8es:12685::::::
&lt;/pre&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Arial, Verdana, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Arial, Verdana, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;
Note that the use of alternate authentication mechanisms such as rhosts or Secure Shell public key authentication will not reset the failed login count even on successful login. Should an account be locked however (either administratively or through the account lockout facility), the account would no longer be accessible even when using these alternate authentication methods. For example:&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Arial, Verdana, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Arial, Verdana, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;
&lt;/div&gt;
&lt;pre style=&quot;background-color: white; color: #555555; font-size: 12px; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;# grep gmb /etc/shadow
gmb:\*LK\*R12OfCMPngtJQ:12685::::::
# rsh -l gmb localhost /bin/finger
account expired
&lt;/pre&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Arial, Verdana, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Arial, Verdana, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;
or for Secure Shell...&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Arial, Verdana, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Arial, Verdana, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;
&lt;/div&gt;
&lt;pre style=&quot;background-color: white; color: #555555; font-size: 12px; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;# ssh -l gmb -i /export/home/gmb/.ssh/id_dsa localhost
Enter passphrase for key &#39;/export/home/gmb/.ssh/id_dsa&#39;:
Sep 24 00:34:59 sampleHost sshd[1504]: Failed publickey for gmb from 127.0.0.1 port 32801 ssh2
Password:
&lt;/pre&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Arial, Verdana, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Arial, Verdana, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;
The &lt;b&gt;second&lt;/b&gt; &lt;b&gt;way&lt;/b&gt; in which account lockout can be configured is per-user in the /etc/user_attr file. Each user listed in the /etc/user_attr file can have an attribute defined called&amp;nbsp;&lt;i&gt;lock_after_retries&lt;/i&gt;. For a description of the format of this file, see the&amp;nbsp;&lt;a href=&quot;http://docs.sun.com/db/doc/816-5174/6mbb98ukt?q=LOCK_AFTER_RETRIES&amp;amp;a=view&quot; style=&quot;color: black;&quot;&gt;user_attr(4)&lt;/a&gt;&amp;nbsp;manual page. By default, this value is set to&amp;nbsp;&lt;i&gt;no&lt;/i&gt;.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Arial, Verdana, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Arial, Verdana, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;
To configure account lockout for a specific user, simply add the&amp;nbsp;&lt;i&gt;lock_after_retries&lt;/i&gt;&amp;nbsp;attribute with a value of&amp;nbsp;&lt;i&gt;yes&lt;/i&gt;. For example, let&#39;s assume you have an entry for user&amp;nbsp;&lt;i&gt;gmb&lt;/i&gt;:&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Arial, Verdana, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Arial, Verdana, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;
&lt;/div&gt;
&lt;pre style=&quot;background-color: white; color: #555555; font-size: 12px; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;gmb::::type=normal;profiles=FOO Security Management;roles=secadm
&lt;/pre&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Arial, Verdana, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Arial, Verdana, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;
To enable account lockout, you simple change the above line to:&lt;/div&gt;
&lt;pre style=&quot;background-color: white; color: #555555; font-size: 12px; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;gmb::::type=normal;profiles=FOO Security Management;roles=secadm;lock_after_retries=yes
&lt;/pre&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Arial, Verdana, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Arial, Verdana, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;
Let&#39;s take another view on this. Let&#39;s assume that the account lockout policy has been enabled globally using the method described above. You can then configure some users to be immune to this policy using this user-specific override. For example, if the&amp;nbsp;&lt;i&gt;LOCK_AFTER_RETRIES&lt;/i&gt;&amp;nbsp;parameter was set to&amp;nbsp;&lt;i&gt;YES&lt;/i&gt;&amp;nbsp;in /etc/security/policy.conf, but you did not want the policy to apply to the&amp;nbsp;&lt;i&gt;gmb&lt;/i&gt;&amp;nbsp;account, then you only need to make sure that the /etc/user_attr file contains an entry for the&amp;nbsp;&lt;i&gt;gmb&lt;/i&gt;&amp;nbsp;account that sets the&amp;nbsp;&lt;i&gt;lock_after_retries&lt;/i&gt;&amp;nbsp;attribute to&amp;nbsp;&lt;i&gt;no&lt;/i&gt;&amp;nbsp;as in:&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Arial, Verdana, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Arial, Verdana, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;
&lt;/div&gt;
&lt;pre style=&quot;background-color: white; color: #555555; font-size: 12px; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;gmb::::lock_after_retries=no
&lt;/pre&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Arial, Verdana, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Arial, Verdana, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;
Here is an example of how this works. I will attempt to access the&amp;nbsp;&lt;i&gt;gmb&lt;/i&gt;&amp;nbsp;account with an invalid password five times using TELNET. In contrast to the above example, the account should not be locked and no account locked message should be generated. First, let&#39;s confirm we have our system configured correctly for this test:&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Arial, Verdana, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Arial, Verdana, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;
&lt;/div&gt;
&lt;pre style=&quot;background-color: white; color: #555555; font-size: 12px; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;# grep &quot;\^gmb:&quot; /etc/shadow
gmb:h8HsRoqrne1oQ:12685::::::::::
# grep &quot;\^gmb:&quot; /etc/user_attr
gmb::::lock_after_retries=no
# grep &quot;\^LOCK_AFTER_RETRIES=&quot; /etc/security/policy.conf
LOCK_AFTER_RETRIES=YES
&lt;/pre&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Arial, Verdana, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Arial, Verdana, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;
Now, let&#39;s see if the account actually gets locked after 5 failed authentication attempts.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Arial, Verdana, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Arial, Verdana, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;
&lt;/div&gt;
&lt;pre style=&quot;background-color: white; color: #555555; font-size: 12px; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;# telnet localhost
Trying 127.0.0.1...
Connected to localhost.
Escape character is &#39;\^]&#39;.
login: gmb
Password:
Login incorrect
login: gmb
Password:
Login incorrect
login: gmb
Password:
Login incorrect
login: gmb
Password:
Login incorrect
login: gmb
Password:
Login incorrect
Sep 23 23:51:46 sampleHost login: REPEATED LOGIN FAILURES ON /dev/pts/1 FROM localhost, gmb
Connection to localhost closed by foreign host.
# grep &quot;\^gmb:&quot; /etc/shadow
gmb:h8HsRoqrne1oQ:12685::::::
&lt;/pre&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Arial, Verdana, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Arial, Verdana, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;
Just as expected, the&amp;nbsp;&lt;i&gt;gmb&lt;/i&gt;&amp;nbsp;account is immune from the account lockout policy that applies to other users on the system. This is in fact what is implemented by default for the&amp;nbsp;&lt;i&gt;root&lt;/i&gt;&amp;nbsp;account. That is, even if account lockout is enabled globally (which is not the default), the root account is still immune from being locked out. This is done to prevent a malicious user from locking the&amp;nbsp;&lt;i&gt;root&lt;/i&gt;&amp;nbsp;account out of the system. If you would like this policy to apply to the&amp;nbsp;&lt;i&gt;root&lt;/i&gt;account, then simply change the value of the&amp;nbsp;&lt;i&gt;lock_after_retries&lt;/i&gt;&amp;nbsp;parameter to&amp;nbsp;&lt;i&gt;yes&lt;/i&gt;&amp;nbsp;in the /etc/user_attr file.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Arial, Verdana, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Arial, Verdana, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;
This concludes another installment. As always, I hope you find this information useful in understanding how some of the new Solaris 10 security enhancements work and how they can be applied to solve real-world problems in your environment.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Arial, Verdana, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://unixbyexample.blogspot.com/feeds/3762583371164926568/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://unixbyexample.blogspot.com/2013/08/solaris-10-account-lock.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4087768282268381204/posts/default/3762583371164926568'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4087768282268381204/posts/default/3762583371164926568'/><link rel='alternate' type='text/html' href='http://unixbyexample.blogspot.com/2013/08/solaris-10-account-lock.html' title=' Solaris 10 Account Lock '/><author><name>Him</name><uri>http://www.blogger.com/profile/01802895914380136446</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4087768282268381204.post-6731934837200684619</id><published>2013-05-04T08:33:00.001-07:00</published><updated>2013-05-04T08:33:18.815-07:00</updated><title type='text'>Script to search in gzipped file </title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Many times we have to do search in gzipped files in Unix. For that generally we follow a very simple approach ,simply &amp;nbsp;gunzip all the files and search the content through grep command. But this simple approach will work only if the number of gzipped files is very less. What happens when the number of gzipped files are 30000 and more. Then the above steps fails and we have to use gzcat command the grep the command from the gzipped file without gunzipping the files. But there is a problem that while using the grep command with gzcat , we are not able to know in which file the content is present.&lt;br /&gt;
&lt;br /&gt;
Ex:-&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&lt;b&gt;gzcat *.gz|grep abc&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
the above command will not show file name where the &quot;abc&quot; is present.&lt;br /&gt;
&lt;br /&gt;
For that I have a simple script, that will show the name of the file in which it is present.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;for i in *.gz&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;do&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;a=`gzcat $i |grep abc |wc -l`&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;if [ $a != 0 ]&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;then&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;echo $i&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;fi&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;done&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;
&lt;b&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;You can use the above script , by modifying according to you requirement&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://unixbyexample.blogspot.com/feeds/6731934837200684619/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://unixbyexample.blogspot.com/2013/05/script-to-search-in-gzipped-file.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4087768282268381204/posts/default/6731934837200684619'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4087768282268381204/posts/default/6731934837200684619'/><link rel='alternate' type='text/html' href='http://unixbyexample.blogspot.com/2013/05/script-to-search-in-gzipped-file.html' title='Script to search in gzipped file '/><author><name>Him</name><uri>http://www.blogger.com/profile/01802895914380136446</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4087768282268381204.post-4146747638088971003</id><published>2013-04-09T11:34:00.000-07:00</published><updated>2013-04-09T11:56:02.329-07:00</updated><title type='text'>SSH Without password </title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;h1 align=&quot;center&quot; style=&quot;text-align: center;&quot;&gt;
&lt;br /&gt;&lt;span style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-size: 12pt; font-weight: normal; line-height: 115%;&quot;&gt;Sometime in our unix environment
we have a need to use ssh without password. In that case one user(suppose &lt;/span&gt;&lt;span style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-size: 12pt; line-height: 115%;&quot;&gt;user91&lt;/span&gt;&lt;span style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-size: 12pt; font-weight: normal; line-height: 115%;&quot;&gt;) &amp;nbsp;from server &lt;/span&gt;&lt;span style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-size: 12pt; line-height: 115%;&quot;&gt;hostA&lt;/span&gt;&lt;span style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-size: 12pt; font-weight: normal; line-height: 115%;&quot;&gt; wants to login to another server
&lt;/span&gt;&lt;span style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-size: 12pt; line-height: 115%;&quot;&gt;hostB&lt;/span&gt;&lt;span style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-size: 12pt; font-weight: normal; line-height: 115%;&quot;&gt; without
entering any password.&amp;nbsp; In that case,
following steps can be performed to achieve the goal.&lt;/span&gt;&lt;/h1&gt;
&lt;h1&gt;
&lt;o:p&gt;&lt;/o:p&gt;&lt;/h1&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;mso-effects-reflection-align: bottomleft; mso-effects-reflection-angdirection: 5400000; mso-effects-reflection-angfadedirection: 5400000; mso-effects-reflection-anglekx: 0; mso-effects-reflection-angleky: 0; mso-effects-reflection-dpidistance: .079pt; mso-effects-reflection-dpiradius: 1.0pt; mso-effects-reflection-pctalphaend: 0%; mso-effects-reflection-pctalphastart: 28.0%; mso-effects-reflection-pctendpos: 45.0%; mso-effects-reflection-pctstartpos: 0%; mso-effects-reflection-pctsx: 100.0%; mso-effects-reflection-pctsy: -100.0%; mso-style-textfill-fill-gradientfill-shade-linearshade-angle: 5400000; mso-style-textfill-fill-gradientfill-shade-linearshade-fscaled: no; mso-style-textfill-fill-gradientfill-shadetype: linear; mso-style-textfill-fill-gradientfill-stoplist: &amp;quot;0 \#381563 7 100000 shade=20000 satm=245000\,43000 \#7B34D2 7 100000 satm=255000\,48000 \#7230C3 7 100000 shade=85000 satm=255000\,100000 \#381563 7 100000 shade=20000 satm=245000&amp;quot;; mso-style-textfill-type: gradient; mso-style-textoutline-fill-alpha: 100.0%; mso-style-textoutline-fill-color: #5C437A; mso-style-textoutline-fill-colortransforms: &amp;quot;shade=50000 satm=120000&amp;quot;; mso-style-textoutline-fill-themecolor: accent4; mso-style-textoutline-outlinestyle-align: center; mso-style-textoutline-outlinestyle-compound: simple; mso-style-textoutline-outlinestyle-dash: solid; mso-style-textoutline-outlinestyle-dpiwidth: .354pt; mso-style-textoutline-outlinestyle-join: round; mso-style-textoutline-outlinestyle-linecap: flat; mso-style-textoutline-outlinestyle-pctmiterlimit: 0%; mso-style-textoutline-type: solid; text-transform: uppercase;&quot;&gt;Generate public and private
rsa keys:-&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot; style=&quot;margin-left: 36.0pt; mso-list: l0 level1 lfo1; text-indent: -18.0pt;&quot;&gt;
&lt;!--[if !supportLists]--&gt;1.&lt;span style=&quot;font-size: 7pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;!--[endif]--&gt;Login
to the server hostA with user91.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot; style=&quot;margin-left: 36.0pt; mso-list: l0 level1 lfo1; text-indent: -18.0pt;&quot;&gt;
&lt;!--[if !supportLists]--&gt;2.&lt;span style=&quot;font-size: 7pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;!--[endif]--&gt;Generate
rsa key with following command :-&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background: #EEEEEE; border: solid #DDDDDD 1.0pt; mso-border-alt: solid #DDDDDD .75pt; mso-element: para-border-div; padding: 8.0pt 11.0pt 8.0pt 11.0pt;&quot;&gt;
&lt;pre style=&quot;background-position: initial initial; background-repeat: initial initial; border: none; line-height: 18pt; padding: 0cm;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Calibri, sans-serif;&quot;&gt;user91@hostA$&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Calibri, sans-serif;&quot;&gt; ssh-keygen -t rsa&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;background-position: initial initial; background-repeat: initial initial; border: none; line-height: 18pt; padding: 0cm;&quot;&gt;&lt;span style=&quot;font-family: Calibri, sans-serif;&quot;&gt;Generating public/private rsa key pair.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;background-position: initial initial; background-repeat: initial initial; border: none; line-height: 18pt; padding: 0cm;&quot;&gt;&lt;span style=&quot;font-family: Calibri, sans-serif;&quot;&gt;Enter file in which to save the key (/user91/user91/.ssh/id_rsa):&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 10.5pt;&quot;&gt; [Press enter key]&lt;/span&gt;&lt;span style=&quot;color: #111111; font-family: Consolas; font-size: 10.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;background-position: initial initial; background-repeat: initial initial; border: none; line-height: 18pt; padding: 0cm;&quot;&gt;&lt;span style=&quot;font-family: Calibri, sans-serif;&quot;&gt;Enter passphrase (empty for no passphrase):&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 10.5pt;&quot;&gt; [Press enter key]&lt;/span&gt;&lt;span style=&quot;color: #111111; font-family: Consolas; font-size: 10.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;background-position: initial initial; background-repeat: initial initial; border: none; line-height: 18pt; padding: 0cm;&quot;&gt;&lt;span style=&quot;font-family: Calibri, sans-serif;&quot;&gt;Enter same passphrase again:&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 10.5pt;&quot;&gt; [Press enter key]&lt;/span&gt;&lt;span style=&quot;color: #111111; font-family: Consolas; font-size: 10.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;background-position: initial initial; background-repeat: initial initial; border: none; line-height: 18pt; padding: 0cm;&quot;&gt;&lt;span style=&quot;color: #111111; font-family: Consolas; font-size: 10.5pt;&quot;&gt;Your identification has been saved in /user91/user91/.ssh/id_rsa.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;background-position: initial initial; background-repeat: initial initial; border: none; line-height: 18pt; padding: 0cm;&quot;&gt;&lt;span style=&quot;color: #111111; font-family: Consolas; font-size: 10.5pt;&quot;&gt;Your public key has been saved in /user91/user91/.ssh/id_rsa.pub.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;background-position: initial initial; background-repeat: initial initial; border: none; line-height: 18pt; padding: 0cm;&quot;&gt;&lt;span style=&quot;color: #111111; font-family: Consolas; font-size: 10.5pt;&quot;&gt;The key fingerprint is:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;background-position: initial initial; background-repeat: initial initial; border: none; line-height: 18pt; padding: 0cm;&quot;&gt;&lt;span style=&quot;color: #111111; font-family: Consolas; font-size: 10.5pt;&quot;&gt;17:4d:74:24:24:8c:83:10:09:65:85:cc:fe:6b:85:9c user91@hostA&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;background-position: initial initial; background-repeat: initial initial; border: none; line-height: 18pt; padding: 0cm;&quot;&gt;&lt;span style=&quot;color: #111111; font-family: Consolas; font-size: 10.5pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;background-position: initial initial; background-repeat: initial initial; border: none; line-height: 18pt; padding: 0cm;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Calibri, sans-serif;&quot;&gt;user91@hostA$ &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #111111; font-family: Consolas; font-size: 10.5pt;&quot;&gt;ls -lrt&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;background-position: initial initial; background-repeat: initial initial; border: none; line-height: 18pt; padding: 0cm;&quot;&gt;&lt;span style=&quot;color: #111111; font-family: Consolas; font-size: 10.5pt;&quot;&gt;total 4&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;background-position: initial initial; background-repeat: initial initial; border: none; line-height: 18pt; padding: 0cm;&quot;&gt;&lt;span style=&quot;color: #111111; font-family: Consolas; font-size: 10.5pt;&quot;&gt;-rw-------&amp;nbsp;&amp;nbsp; 1 user91 dba&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 887 Apr&amp;nbsp; 8 16:52 id_rsa&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;background-position: initial initial; background-repeat: initial initial; border: none; line-height: 18pt; padding: 0cm;&quot;&gt;&lt;span style=&quot;color: #111111; font-family: Consolas; font-size: 10.5pt;&quot;&gt;-rw-r--r--&amp;nbsp;&amp;nbsp; 1 user91 dba&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 233 Apr&amp;nbsp; 8 16:52 id_rsa.pub&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;mso-effects-reflection-align: bottomleft; mso-effects-reflection-angdirection: 5400000; mso-effects-reflection-angfadedirection: 5400000; mso-effects-reflection-anglekx: 0; mso-effects-reflection-angleky: 0; mso-effects-reflection-dpidistance: .079pt; mso-effects-reflection-dpiradius: 1.0pt; mso-effects-reflection-pctalphaend: 0%; mso-effects-reflection-pctalphastart: 28.0%; mso-effects-reflection-pctendpos: 45.0%; mso-effects-reflection-pctstartpos: 0%; mso-effects-reflection-pctsx: 100.0%; mso-effects-reflection-pctsy: -100.0%; mso-style-textfill-fill-gradientfill-shade-linearshade-angle: 5400000; mso-style-textfill-fill-gradientfill-shade-linearshade-fscaled: no; mso-style-textfill-fill-gradientfill-shadetype: linear; mso-style-textfill-fill-gradientfill-stoplist: &amp;quot;0 \#381563 7 100000 shade=20000 satm=245000\,43000 \#7B34D2 7 100000 satm=255000\,48000 \#7230C3 7 100000 shade=85000 satm=255000\,100000 \#381563 7 100000 shade=20000 satm=245000&amp;quot;; mso-style-textfill-type: gradient; mso-style-textoutline-fill-alpha: 100.0%; mso-style-textoutline-fill-color: #5C437A; mso-style-textoutline-fill-colortransforms: &amp;quot;shade=50000 satm=120000&amp;quot;; mso-style-textoutline-fill-themecolor: accent4; mso-style-textoutline-outlinestyle-align: center; mso-style-textoutline-outlinestyle-compound: simple; mso-style-textoutline-outlinestyle-dash: solid; mso-style-textoutline-outlinestyle-dpiwidth: .354pt; mso-style-textoutline-outlinestyle-join: round; mso-style-textoutline-outlinestyle-linecap: flat; mso-style-textoutline-outlinestyle-pctmiterlimit: 0%; mso-style-textoutline-type: solid; text-transform: uppercase;&quot;&gt;Copy public key to the remote
host&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;background-color: white; font-size: 12pt; line-height: 115%;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;h1&gt;
&lt;span style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-size: 12pt; font-weight: normal; line-height: 115%;&quot;&gt;Now create .ssh directory in the
user91’s home directory of the other remote host server hostB. You can create
the .ssh directory manually or through SSH login from hostA to hostB or through
ssh-copy-id command.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/h1&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background: #EEEEEE; border: solid #DDDDDD 1.0pt; mso-border-alt: solid #DDDDDD .75pt; mso-element: para-border-div; padding: 8.0pt 11.0pt 8.0pt 11.0pt;&quot;&gt;
&lt;pre style=&quot;background-position: initial initial; background-repeat: initial initial; border: none; line-height: 18pt; padding: 0cm;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;color: #111111; font-family: Consolas; font-size: 10.5pt;&quot;&gt;user91@hostA$ &lt;/span&gt;&lt;/strong&gt;&lt;span style=&quot;color: #111111; font-family: Consolas; font-size: 10.5pt;&quot;&gt;ssh user91@hostB mkdir -p .ssh&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;background-position: initial initial; background-repeat: initial initial; border: none; line-height: 18pt; padding: 0cm;&quot;&gt;&lt;span style=&quot;color: #111111; font-family: Consolas; font-size: 10.5pt;&quot;&gt;user91’s password:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;background-position: initial initial; background-repeat: initial initial; border: none; line-height: 18pt; padding: 0cm;&quot;&gt;&lt;span style=&quot;color: #111111; font-family: Consolas; font-size: 10.5pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;background-position: initial initial; background-repeat: initial initial; border: none; line-height: 18pt; padding: 0cm;&quot;&gt;&lt;span style=&quot;color: #111111; font-family: Consolas; font-size: 10.5pt;&quot;&gt;then copy id_rsa.pub keys to hostB and rename it to authorized_keys.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;background-position: initial initial; background-repeat: initial initial; border: none; line-height: 18pt; margin-bottom: 22pt; padding: 0cm;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #111111; font-family: Consolas; font-size: 10.5pt;&quot;&gt;user91@hostA$&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #111111; font-family: Consolas; font-size: 10.5pt;&quot;&gt; rcp id_rsa.pub hostB:/user91/.ssh/authorized_keys&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;background-position: initial initial; background-repeat: initial initial; border: none; line-height: 18pt; margin-bottom: 22pt; padding: 0cm;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #111111; font-family: Consolas; font-size: 10.5pt;&quot;&gt;user91@hostA$ &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #111111; font-family: Consolas; font-size: 10.5pt;&quot;&gt;rsh 10.2.2.1 chmod 600 /user91/.ssh/authorized_keys&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;background-position: initial initial; background-repeat: initial initial; border: none; line-height: 18pt; margin-bottom: 22pt; padding: 0cm;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #111111; font-family: Consolas; font-size: 10.5pt;&quot;&gt;user91@hostA$&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #111111; font-family: Consolas; font-size: 10.5pt;&quot;&gt; rsh 10.2.2.1 chmod 700&amp;nbsp;/user91/.ssh&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 13.5pt;&quot;&gt;Or,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background: #EEEEEE; border: solid #DDDDDD 1.0pt; mso-border-alt: solid #DDDDDD .75pt; mso-element: para-border-div; padding: 8.0pt 11.0pt 8.0pt 11.0pt;&quot;&gt;
&lt;pre style=&quot;background-position: initial initial; background-repeat: initial initial; border: none; line-height: 18pt; padding: 0cm;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;color: #111111; font-family: Consolas; font-size: 10.5pt;&quot;&gt;user91@hostA$ &lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style=&quot;color: #111111; font-family: Consolas; font-size: 10.5pt; font-weight: normal; mso-bidi-font-weight: bold;&quot;&gt;ssh-copy-id -i ~/.ssh/id_rsa.pub hostB&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/pre&gt;
&lt;pre style=&quot;background-position: initial initial; background-repeat: initial initial; border: none; line-height: 18pt; padding: 0cm;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;color: #111111; font-family: Consolas; font-size: 10.5pt;&quot;&gt;user91@hostB&lt;/span&gt;&lt;/strong&gt;&#39;s password:&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;
&lt;pre style=&quot;background-position: initial initial; background-repeat: initial initial; border: none; line-height: 18pt; padding: 0cm;&quot;&gt;Now try logging into the machine, with &quot;ssh &#39;remote-host&#39;&quot;, and check in:&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;
&lt;pre style=&quot;background-position: initial initial; background-repeat: initial initial; border: none; line-height: 18pt; padding: 0cm;&quot;&gt;.ssh/authorized_keys&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;
&lt;pre style=&quot;background-position: initial initial; background-repeat: initial initial; border: none; line-height: 18pt; padding: 0cm;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/pre&gt;
&lt;pre style=&quot;background-position: initial initial; background-repeat: initial initial; border: none; line-height: 18pt; padding: 0cm;&quot;&gt;to make sure we haven&#39;t added extra keys that you weren&#39;t expecting.&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;strong&gt;&lt;span style=&quot;background: white; color: #111111; font-family: &amp;quot;Helvetica&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.5pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-bidi-theme-font: minor-bidi;&quot;&gt;Note:&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;span style=&quot;background: white; color: #111111; font-family: &amp;quot;Helvetica&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.5pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background: white; color: #111111; font-family: &amp;quot;Helvetica&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.5pt;&quot;&gt;ssh-copy-id&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Helvetica&amp;quot;,&amp;quot;sans-serif&amp;quot;; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-bidi-theme-font: minor-bidi;&quot;&gt;appends&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;the keys to the remote-host’s
.ssh/authorized_key.&lt;/span&gt;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&amp;nbsp;&lt;b&gt;&lt;span style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Cambria, serif; font-size: 12pt;&quot;&gt;The above two
steps will be sufficient to enable ssh without password in most of the cases.&lt;/span&gt;&lt;/b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://unixbyexample.blogspot.com/feeds/4146747638088971003/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://unixbyexample.blogspot.com/2013/04/ssh-without-password.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4087768282268381204/posts/default/4146747638088971003'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4087768282268381204/posts/default/4146747638088971003'/><link rel='alternate' type='text/html' href='http://unixbyexample.blogspot.com/2013/04/ssh-without-password.html' title='SSH Without password '/><author><name>Him</name><uri>http://www.blogger.com/profile/01802895914380136446</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4087768282268381204.post-656664132617268014</id><published>2013-04-05T22:45:00.001-07:00</published><updated>2013-04-05T22:45:55.339-07:00</updated><title type='text'>How to extract a gzipped tar file without extracting in one line.</title><content type='html'>&lt;p&gt;To extract a gzipped tar file we can use following command :-&lt;/p&gt;
&lt;p&gt;&lt;b&gt;gzip -dc test.tar.gz|tar xf-&lt;/b&gt;&lt;/p&gt;
</content><link rel='replies' type='application/atom+xml' href='http://unixbyexample.blogspot.com/feeds/656664132617268014/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://unixbyexample.blogspot.com/2013/04/how-to-extract-gzipped-tar-file-without.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4087768282268381204/posts/default/656664132617268014'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4087768282268381204/posts/default/656664132617268014'/><link rel='alternate' type='text/html' href='http://unixbyexample.blogspot.com/2013/04/how-to-extract-gzipped-tar-file-without.html' title='How to extract a gzipped tar file without extracting in one line.'/><author><name>Him</name><uri>http://www.blogger.com/profile/01802895914380136446</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4087768282268381204.post-7037369409877416927</id><published>2013-03-23T10:26:00.000-07:00</published><updated>2013-04-09T11:56:50.100-07:00</updated><title type='text'>Monitoring Performance in Solaris</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;blockquote style=&quot;background-color: white; font-family: Verdana, Arial, Helvetica, sans-serif, &#39;Sans Serif&#39;; font-size: 13px;&quot;&gt;
&lt;div align=&quot;left&quot; class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
This chapter describes procedures for monitoring system performance by using the&amp;nbsp;&lt;span style=&quot;font-family: Courier New;&quot;&gt;vmstat, iostat, df&lt;/span&gt;, and&lt;span style=&quot;font-family: Courier New;&quot;&gt;sar&lt;/span&gt;&amp;nbsp;commands. This is a list of the step-by-step instructions in this chapter.&lt;/div&gt;
&lt;div class=&quot;header&quot; style=&quot;font-size: 10pt; font-weight: bold;&quot;&gt;
How to Display Virtual Memory Statistics (vmstat)&lt;/div&gt;
&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
The following example shows the&amp;nbsp;&lt;span style=&quot;font-family: Courier New;&quot;&gt;vmstat&lt;/span&gt;&amp;nbsp;display of statistics gathered at five-second intervals.&lt;/div&gt;
&lt;div class=&quot;courier&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier; font-size: 10pt;&quot;&gt;
&lt;b&gt;$ vmstat 5&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;courier&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier; font-size: 10pt;&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;procs&amp;nbsp;&amp;nbsp;&amp;nbsp; memory&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; page&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; disk&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; faults&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cpu&lt;br /&gt;r b w&amp;nbsp; swap free re&amp;nbsp; mf&amp;nbsp; pi&amp;nbsp; po&amp;nbsp; fr de sr f0 s3 -- --&amp;nbsp; in&amp;nbsp; sy&amp;nbsp; cs us sy&amp;nbsp; id&lt;br /&gt;0 0 8 28312&amp;nbsp; 668&amp;nbsp; 0&amp;nbsp;&amp;nbsp; 9&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp; 1&amp;nbsp; 0&amp;nbsp; 0&amp;nbsp; 0&amp;nbsp; 1&amp;nbsp; 0&amp;nbsp; 0&amp;nbsp; 10&amp;nbsp; 61&amp;nbsp; 82&amp;nbsp; 1&amp;nbsp; 2&amp;nbsp; 97&lt;br /&gt;0 0 3 31940&amp;nbsp; 248&amp;nbsp; 0&amp;nbsp; 10&amp;nbsp; 20&amp;nbsp;&amp;nbsp; 0&amp;nbsp; 26&amp;nbsp; 0 27&amp;nbsp; 0&amp;nbsp; 4&amp;nbsp; 0&amp;nbsp; 0&amp;nbsp; 53 189 191&amp;nbsp; 6&amp;nbsp; 6&amp;nbsp; 88&lt;br /&gt;0 0 3 32080&amp;nbsp; 288&amp;nbsp; 3&amp;nbsp; 19&amp;nbsp; 49&amp;nbsp;&amp;nbsp; 6&amp;nbsp; 26&amp;nbsp; 0 15&amp;nbsp; 0&amp;nbsp; 9&amp;nbsp; 0&amp;nbsp; 0&amp;nbsp; 75 415 277&amp;nbsp; 6 15&amp;nbsp; 79&lt;br /&gt;0 0 3 32080&amp;nbsp; 256&amp;nbsp; 0&amp;nbsp; 26&amp;nbsp; 20&amp;nbsp;&amp;nbsp; 6&amp;nbsp; 21&amp;nbsp; 0 12&amp;nbsp; 1&amp;nbsp; 6&amp;nbsp; 0&amp;nbsp; 0 163 110 138&amp;nbsp; 1&amp;nbsp; 3&amp;nbsp; 96&lt;br /&gt;0 1 3 32060&amp;nbsp; 256&amp;nbsp; 3&amp;nbsp; 45&amp;nbsp; 52&amp;nbsp; 28&amp;nbsp; 61&amp;nbsp; 0 27&amp;nbsp; 5 12&amp;nbsp; 0&amp;nbsp; 0 195 191 223&amp;nbsp; 7 11&amp;nbsp; 82&lt;br /&gt;0 0 3 32056&amp;nbsp; 260&amp;nbsp; 0&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp; 0&amp;nbsp; 0&amp;nbsp; 0&amp;nbsp; 0&amp;nbsp; 0&amp;nbsp; 0&amp;nbsp; 0&amp;nbsp;&amp;nbsp; 4&amp;nbsp; 52&amp;nbsp; 84&amp;nbsp; 0&amp;nbsp; 1&amp;nbsp; 99&lt;/span&gt;&lt;/div&gt;
&lt;table border=&quot;1&quot; bordercolor=&quot;#111111&quot; cellpadding=&quot;3&quot; cellspacing=&quot;0&quot; style=&quot;border-collapse: collapse; width: 90%px;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;th align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
Category&lt;/div&gt;
&lt;/th&gt;&lt;th align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
Field Name&lt;/div&gt;
&lt;/th&gt;&lt;th align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
Description&lt;/div&gt;
&lt;/th&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
procs&lt;/div&gt;
&lt;/td&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
&amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;/td&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
Reports the following states:&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
r&lt;/div&gt;
&lt;/td&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
The number of kernel threads in the dispatch queue&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
b&lt;/div&gt;
&lt;/td&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
Blocked kernel threads waiting for resources&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
w&lt;/div&gt;
&lt;/td&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
Swapped out LWPs waiting for processing resources to finish&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
memory&lt;/div&gt;
&lt;/td&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
Reports on usage of real and virtual memory:&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
swap&lt;/div&gt;
&lt;/td&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
&lt;b&gt;Available swap space&lt;/b&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
free&lt;/div&gt;
&lt;/td&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
Size of the free list&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
page&lt;/div&gt;
&lt;/td&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
Reports on page faults and paging activity, in units per second:&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
re&lt;/div&gt;
&lt;/td&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
Pages reclaimed&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
mf&lt;/div&gt;
&lt;/td&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
Minor and major faults&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
pi&lt;/div&gt;
&lt;/td&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
Kbytes paged in&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
po&lt;/div&gt;
&lt;/td&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
Kbytes paged out&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
fr&lt;/div&gt;
&lt;/td&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
Kbytes freed&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
de&lt;/div&gt;
&lt;/td&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
Anticipated memory needed by recently swapped-in processes&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
sr&lt;/div&gt;
&lt;/td&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
Pages scanned by page daemon (not currently in use). If sr does not equal zero, the page daemon has been running.&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
disk&lt;/div&gt;
&lt;/td&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
Reports the number of disk operations per second, showing data on up to four disks&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
faults&lt;/div&gt;
&lt;/td&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
Reports the trap/interrupt rates (per second):&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
in&lt;/div&gt;
&lt;/td&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
Interrupts per second&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
sy&lt;/div&gt;
&lt;/td&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
System calls per second&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
cs&lt;/div&gt;
&lt;/td&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
CPU context switch rate&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
cpu&lt;/div&gt;
&lt;/td&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
Reports on the use of CPU time:&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
us&lt;/div&gt;
&lt;/td&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
User time&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
sy&lt;/div&gt;
&lt;/td&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
System time&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
id&lt;/div&gt;
&lt;/td&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
Idle time&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/blockquote&gt;
&lt;blockquote style=&quot;background-color: white; font-family: Verdana, Arial, Helvetica, sans-serif, &#39;Sans Serif&#39;; font-size: 13px;&quot;&gt;
&lt;div class=&quot;header&quot; style=&quot;font-size: 10pt; font-weight: bold;&quot;&gt;
How to Display System Event Information&lt;/div&gt;
&lt;div class=&quot;PARA&quot; style=&quot;font-size: 10pt;&quot;&gt;
Run&amp;nbsp;&lt;span style=&quot;font-family: Courier New;&quot;&gt;&lt;b&gt;vmstat -s&lt;/b&gt;&lt;/span&gt;&amp;nbsp;to show the total of various system events that have taken place since the system was last booted.&lt;/div&gt;
&lt;div class=&quot;courier&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier; font-size: 10pt;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp; 0 swap ins&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 swap outs&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 pages swapped in&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 pages swapped out&lt;br /&gt;409376480 total address trans. faults taken&lt;br /&gt;&amp;nbsp; 3075036 page ins&lt;br /&gt;&amp;nbsp; 2601555 page outs&lt;br /&gt;&amp;nbsp; 3812452 pages paged in&lt;br /&gt;&amp;nbsp; 6525552 pages paged out&lt;br /&gt;&amp;nbsp;11007609 total reclaims&lt;br /&gt;&amp;nbsp;10927650 reclaims from free list&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 micro (hat) faults&lt;br /&gt;409376480 minor (as) faults&lt;br /&gt;&amp;nbsp; 2957386 major faults&lt;br /&gt;102738273 copy-on-write faults&lt;br /&gt;&amp;nbsp;61711047 zero fill page faults&lt;br /&gt;1002562077 pages examined by the clock daemon&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 7881 revolutions of the clock hand&lt;br /&gt;&amp;nbsp;16716370 pages freed by the clock daemon&lt;br /&gt;&amp;nbsp; 4999048 forks&lt;br /&gt;&amp;nbsp; 1138206 vforks&lt;br /&gt;&amp;nbsp; 5747009 execs&lt;br /&gt;741660225 cpu context switches&lt;br /&gt;736047593 device interrupts&lt;br /&gt;528054538 traps&lt;br /&gt;2496638575 system calls&lt;br /&gt;430283487 total name lookups (cache hits 95%)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 81727 toolong&lt;br /&gt;&amp;nbsp;10484677 user&amp;nbsp;&amp;nbsp; cpu&lt;br /&gt;&amp;nbsp; 9528364 system cpu&lt;br /&gt;443762786 idle&amp;nbsp;&amp;nbsp; cpu&lt;br /&gt;&amp;nbsp;16281790 wait&amp;nbsp;&amp;nbsp; cpu&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;header&quot; style=&quot;font-size: 10pt; font-weight: bold;&quot;&gt;
How to Display Swapping Statistics&lt;/div&gt;
&lt;div class=&quot;PARA&quot; style=&quot;font-size: 10pt;&quot;&gt;
Run&amp;nbsp;&lt;span style=&quot;font-family: Courier New;&quot;&gt;&lt;b&gt;vmstat -S&lt;/b&gt;&lt;/span&gt;&amp;nbsp;to show swapping statistics.&lt;/div&gt;
&lt;div class=&quot;courier&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier; font-size: 10pt;&quot;&gt;
&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;procs&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; memory&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; page&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; disk&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; faults&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cpu&lt;br /&gt;&amp;nbsp;r b w&amp;nbsp;&amp;nbsp; swap&amp;nbsp; free&amp;nbsp;&amp;nbsp;&lt;b&gt;si&lt;/b&gt;&amp;nbsp;&amp;nbsp;&lt;b&gt;so&lt;/b&gt;&amp;nbsp;pi po fr de sr m1 m3 m4 m5&amp;nbsp;&amp;nbsp; in&amp;nbsp;&amp;nbsp; sy&amp;nbsp;&amp;nbsp; cs us sy id&lt;br /&gt;&amp;nbsp;0 0 0&amp;nbsp;&amp;nbsp; 8512&amp;nbsp;&amp;nbsp; 888&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp; 0 12 21 55&amp;nbsp; 0 417 1&amp;nbsp; 0&amp;nbsp; 0&amp;nbsp; 0&amp;nbsp; 206 1040&amp;nbsp; 308&amp;nbsp; 2&amp;nbsp; 2 96&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;courier&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier; font-size: 10pt;&quot;&gt;
si = Average number of LWPs swapped in per second&lt;br /&gt;
so = Number of whole processes swapped out&lt;/div&gt;
&lt;div class=&quot;header&quot; style=&quot;font-size: 10pt; font-weight: bold;&quot;&gt;
How to Display Disk Utilization Information (iostat)&lt;/div&gt;
&lt;div class=&quot;PARA&quot; style=&quot;font-size: 10pt;&quot;&gt;
You can display disk activity information by using the&amp;nbsp;&lt;span style=&quot;font-family: Courier New;&quot;&gt;&lt;b&gt;iostat&lt;/b&gt;&lt;/span&gt;&amp;nbsp;command with a time interval. The following example shows disk statistics gathered every five seconds.&lt;/div&gt;
&lt;div class=&quot;courier&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier; font-size: 10pt;&quot;&gt;
&lt;b&gt;iostat 5&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;courier&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier; font-size: 10pt;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;tty&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; md1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; md3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; md4&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; md5&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cpu&lt;br /&gt;&amp;nbsp;tin tout kps tps serv&amp;nbsp; kps tps serv&amp;nbsp; kps tps serv&amp;nbsp; kps tps serv&amp;nbsp; us sy wt id&lt;br /&gt;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp; 10&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp; 28&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp; 22&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp; 10&amp;nbsp;&amp;nbsp; 2&amp;nbsp; 2&amp;nbsp; 3 92&lt;br /&gt;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp; 47&amp;nbsp; 58&amp;nbsp;&amp;nbsp; 7&amp;nbsp;&amp;nbsp; 39&amp;nbsp;&amp;nbsp; 16&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp; 34&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp; 0&amp;nbsp; 2 19 78&lt;br /&gt;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp; 16&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp; 0&amp;nbsp; 1&amp;nbsp; 0 98&lt;br /&gt;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp; 16&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp; 0&amp;nbsp; 0&amp;nbsp; 1 99&lt;br /&gt;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp; 16&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp; 22&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp; 2&amp;nbsp; 3&amp;nbsp; 1 95&lt;br /&gt;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp; 24&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp; 0&amp;nbsp; 1&amp;nbsp; 1 98&lt;/span&gt;&lt;/div&gt;
&lt;table border=&quot;1&quot; bordercolor=&quot;#111111&quot; cellpadding=&quot;3&quot; cellspacing=&quot;0&quot; style=&quot;border-collapse: collapse; width: 90%px;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;th align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;middle&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
For Each ...&lt;/div&gt;
&lt;/th&gt;&lt;th align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;middle&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
Field Name&lt;/div&gt;
&lt;/th&gt;&lt;th align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;middle&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
Description&lt;/div&gt;
&lt;/th&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;middle&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
Terminal&lt;/div&gt;
&lt;/td&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;middle&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;middle&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;middle&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;middle&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
tin&lt;/div&gt;
&lt;/td&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;middle&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
Number of characters in the terminal input queue&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;middle&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;middle&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
tout&lt;/div&gt;
&lt;/td&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;middle&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
Number of characters in the terminal output queue&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;middle&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
Disk&lt;/div&gt;
&lt;/td&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;middle&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;middle&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;middle&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;middle&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
bps&lt;/div&gt;
&lt;/td&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;middle&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
Blocks per second&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;middle&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;middle&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
tps&lt;/div&gt;
&lt;/td&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;middle&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
Transactions per second&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;middle&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;middle&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
serv&lt;/div&gt;
&lt;/td&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;middle&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
Average service time, in milliseconds&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;middle&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
CPU&lt;/div&gt;
&lt;/td&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;middle&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;middle&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;middle&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;middle&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
us&lt;/div&gt;
&lt;/td&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;middle&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
In user mode&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;middle&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;middle&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
sy&lt;/div&gt;
&lt;/td&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;middle&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
In system mode&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;middle&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;middle&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
wt&lt;/div&gt;
&lt;/td&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;middle&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
Waiting for I/O&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;middle&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;middle&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
id&lt;/div&gt;
&lt;/td&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;middle&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
Idle&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;header&quot; style=&quot;font-size: 10pt; font-weight: bold;&quot;&gt;
How to Display Extended Disk Statistics&lt;/div&gt;
&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
Run&amp;nbsp;&lt;span style=&quot;font-family: Courier New;&quot;&gt;&lt;b&gt;iostat -xtc&lt;/b&gt;&lt;/span&gt;&amp;nbsp;to get extended disk statistics. This command displays a line of output for each disk.&lt;/div&gt;
&lt;div class=&quot;courier&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier; font-size: 10pt;&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; extended device statistics&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tty&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cpu&lt;br /&gt;device&amp;nbsp;&amp;nbsp;&amp;nbsp; r/s&amp;nbsp; w/s&amp;nbsp;&amp;nbsp; kr/s&amp;nbsp;&amp;nbsp; kw/s wait actv&amp;nbsp; svc_t&amp;nbsp; %w&amp;nbsp; %b&amp;nbsp; tin tout us sy wt id&lt;br /&gt;md1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.4&amp;nbsp; 0.9&amp;nbsp;&amp;nbsp;&amp;nbsp; 3.6&amp;nbsp;&amp;nbsp;&amp;nbsp; 6.9&amp;nbsp; 0.0&amp;nbsp; 0.0&amp;nbsp;&amp;nbsp; 27.7&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp; 2&amp;nbsp; 2&amp;nbsp; 3 92&lt;br /&gt;md3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.1&amp;nbsp; 0.2&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.0&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.3&amp;nbsp; 0.0&amp;nbsp; 0.0&amp;nbsp;&amp;nbsp; 21.7&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp; 0&lt;br /&gt;md4&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.0&amp;nbsp; 0.0&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.0&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.0&amp;nbsp; 0.0&amp;nbsp; 0.0&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.0&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp; 0&lt;br /&gt;md5&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.0&amp;nbsp; 0.0&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.7&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.0&amp;nbsp; 0.0&amp;nbsp; 0.0&amp;nbsp;&amp;nbsp;&amp;nbsp; 9.9&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp; 0&lt;br /&gt;md8&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.8&amp;nbsp; 0.3&amp;nbsp;&amp;nbsp;&amp;nbsp; 6.7&amp;nbsp;&amp;nbsp; 14.2&amp;nbsp; 0.0&amp;nbsp; 0.0&amp;nbsp;&amp;nbsp; 13.1&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp; 1&lt;br /&gt;md10&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.2&amp;nbsp; 0.9&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.8&amp;nbsp;&amp;nbsp;&amp;nbsp; 6.8&amp;nbsp; 0.0&amp;nbsp; 0.0&amp;nbsp;&amp;nbsp; 15.5&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp; 1&lt;br /&gt;md11&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.2&amp;nbsp; 0.9&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.8&amp;nbsp;&amp;nbsp;&amp;nbsp; 6.8&amp;nbsp; 0.0&amp;nbsp; 0.0&amp;nbsp;&amp;nbsp; 14.8&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp; 1&lt;br /&gt;md30&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.0&amp;nbsp; 0.2&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.5&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.3&amp;nbsp; 0.0&amp;nbsp; 0.0&amp;nbsp;&amp;nbsp; 11.4&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp; 0&lt;br /&gt;md31&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.0&amp;nbsp; 0.2&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.5&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.3&amp;nbsp; 0.0&amp;nbsp; 0.0&amp;nbsp;&amp;nbsp; 10.2&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp; 0&lt;br /&gt;md40&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.0&amp;nbsp; 0.0&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.0&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.0&amp;nbsp; 0.0&amp;nbsp; 0.0&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.0&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp; 0&lt;br /&gt;md41&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.0&amp;nbsp; 0.0&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.0&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.0&amp;nbsp; 0.0&amp;nbsp; 0.0&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.0&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp; 0&lt;br /&gt;md50&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.0&amp;nbsp; 0.0&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.4&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.0&amp;nbsp; 0.0&amp;nbsp; 0.0&amp;nbsp;&amp;nbsp;&amp;nbsp; 9.4&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp; 0&lt;br /&gt;md51&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.0&amp;nbsp; 0.0&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.4&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.0&amp;nbsp; 0.0&amp;nbsp; 0.0&amp;nbsp;&amp;nbsp;&amp;nbsp; 7.3&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp; 0&lt;br /&gt;md80&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.4&amp;nbsp; 0.3&amp;nbsp;&amp;nbsp;&amp;nbsp; 3.3&amp;nbsp;&amp;nbsp; 14.2&amp;nbsp; 0.0&amp;nbsp; 0.0&amp;nbsp;&amp;nbsp; 10.3&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp; 0&lt;br /&gt;md81&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.4&amp;nbsp; 0.3&amp;nbsp;&amp;nbsp;&amp;nbsp; 3.3&amp;nbsp;&amp;nbsp; 14.2&amp;nbsp; 0.0&amp;nbsp; 0.0&amp;nbsp;&amp;nbsp; 11.7&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp; 1&lt;br /&gt;sd0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.6&amp;nbsp; 2.1&amp;nbsp;&amp;nbsp;&amp;nbsp; 6.0&amp;nbsp;&amp;nbsp; 22.8&amp;nbsp; 0.0&amp;nbsp; 0.0&amp;nbsp;&amp;nbsp; 16.3&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp; 3&lt;br /&gt;sd1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.6&amp;nbsp; 2.1&amp;nbsp;&amp;nbsp;&amp;nbsp; 6.0&amp;nbsp;&amp;nbsp; 22.8&amp;nbsp; 0.0&amp;nbsp; 0.0&amp;nbsp;&amp;nbsp; 15.2&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp; 2&lt;/span&gt;&lt;/div&gt;
&lt;table border=&quot;1&quot; bordercolor=&quot;#111111&quot; cellpadding=&quot;3&quot; cellspacing=&quot;0&quot; style=&quot;border-collapse: collapse; width: 90%px;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;th align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;middle&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
Field Name&lt;/div&gt;
&lt;/th&gt;&lt;th align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;middle&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
Description&lt;/div&gt;
&lt;/th&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;middle&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
r/s&lt;/div&gt;
&lt;/td&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;middle&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
Reads per second&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;middle&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
w/s&lt;/div&gt;
&lt;/td&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;middle&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
Writes per second&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;middle&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
Kr/s&lt;/div&gt;
&lt;/td&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;middle&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
Kbytes read per second&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;middle&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
Kw/s&lt;/div&gt;
&lt;/td&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;middle&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
Kbytes written per second&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;middle&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
wait&lt;/div&gt;
&lt;/td&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;middle&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
Average number of transactions waiting for service (queue length)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;middle&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
actv&lt;/div&gt;
&lt;/td&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;middle&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
Average number of transactions actively being serviced&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;middle&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
svc_t&lt;/div&gt;
&lt;/td&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;middle&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
Average service time, in milliseconds&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;middle&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
%w&lt;/div&gt;
&lt;/td&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;middle&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
Percentage of time the queue is not empty&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;middle&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
%b&lt;/div&gt;
&lt;/td&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;middle&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
Percentage of time the disk is busy&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;header&quot; style=&quot;font-size: 10pt; font-weight: bold;&quot;&gt;
How to Check CPU Utilization (sar)&lt;/div&gt;
&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
Display CPU utilization with the sar -u command. (The sar command without any options is equivalent to sar -u.) At any given moment, the processor is either busy or idle. When busy, the processor is in either user or system mode. When idle, the processor is either waiting for I/O completion or &quot;sitting still&quot; with no work to do.&lt;/div&gt;
&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
Measure CPU utilization during 5 secs one time.&lt;/div&gt;
&lt;div class=&quot;courier&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier; font-size: 10pt;&quot;&gt;
&lt;b&gt;sar -u 5 1&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
Measure CPU utilization during 60 secs 1440 times and write result in file sar.log.&lt;/div&gt;
&lt;div class=&quot;courier&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier; font-size: 10pt;&quot;&gt;
&lt;b&gt;sar -u -o sar.log 60 1440&amp;nbsp;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
To later review disk and tape activity from that period:&lt;/div&gt;
&lt;div class=&quot;courier&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier; font-size: 10pt;&quot;&gt;
&lt;b&gt;sar -d -f sar.log&lt;/b&gt;&lt;/div&gt;
&lt;table border=&quot;1&quot; bordercolor=&quot;#111111&quot; cellpadding=&quot;3&quot; cellspacing=&quot;0&quot; style=&quot;border-collapse: collapse; width: 90%px;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;th align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;middle&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
Field Name&lt;/div&gt;
&lt;/th&gt;&lt;th align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;middle&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
Description&lt;/div&gt;
&lt;/th&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;middle&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
%sys&lt;/div&gt;
&lt;/td&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;middle&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
Lists the percentage of time that the processor is in system mode&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;middle&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
%user&lt;/div&gt;
&lt;/td&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;middle&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
Lists the percentage of time that the processor is in user mode&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;middle&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
%wio&lt;/div&gt;
&lt;/td&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;middle&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
Lists the percentage of time the processor is idle and waiting for I/O completion&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;middle&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
%idle&lt;/div&gt;
&lt;/td&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot; valign=&quot;middle&quot;&gt;&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
Lists the percentage of time the processor is idle and is not waiting for I/O&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;normal&quot; style=&quot;font-size: 10pt;&quot;&gt;
&lt;b&gt;A high %wio generally means a disk slowdown has occurred.&lt;/b&gt;&lt;/div&gt;
&lt;/blockquote&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://unixbyexample.blogspot.com/feeds/7037369409877416927/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://unixbyexample.blogspot.com/2013/03/monitoring-performance-in-solaris.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4087768282268381204/posts/default/7037369409877416927'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4087768282268381204/posts/default/7037369409877416927'/><link rel='alternate' type='text/html' href='http://unixbyexample.blogspot.com/2013/03/monitoring-performance-in-solaris.html' title='Monitoring Performance in Solaris'/><author><name>Him</name><uri>http://www.blogger.com/profile/01802895914380136446</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4087768282268381204.post-3822111742499664375</id><published>2013-03-23T08:17:00.002-07:00</published><updated>2013-04-09T11:57:12.680-07:00</updated><title type='text'>Disable SSH login for individual users</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;h3 class=&quot;post-title entry-title&quot; itemprop=&quot;name&quot; style=&quot;background-color: white; color: #000033; font-family: &#39;Trebuchet MS&#39;, verdana, sans-serif; font-size: 20px; line-height: 22px; text-indent: 10px;&quot;&gt;
&lt;span style=&quot;font-size: 13px;&quot;&gt;1.)Edit the /etc/ssh/sshd_config file&lt;/span&gt;&lt;/h3&gt;
&lt;div class=&quot;post-body entry-content&quot; id=&quot;post-body-8284492117859168421&quot; itemprop=&quot;description articleBody&quot; style=&quot;background-color: white; color: #000033; font-family: &#39;Trebuchet MS&#39;, verdana, sans-serif; font-size: 13px; line-height: 22px; text-indent: 10px;&quot;&gt;
Add the user names after “DenyUsers” string which you want disable .&lt;br /&gt;
&lt;br /&gt;
Example :&lt;br /&gt;
DenyUsers ftpuser fdpuser2&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;2.) Restart the ssh service&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
For Solaris 10&lt;br /&gt;
--------------&lt;br /&gt;
svcadm refresh svc:/network/ssh:default&lt;br /&gt;
&lt;br /&gt;
For Solaris 7,8 &amp;amp; 9&lt;br /&gt;
------------------&lt;br /&gt;
/etc/init.d/sshd restart&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://unixbyexample.blogspot.com/feeds/3822111742499664375/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://unixbyexample.blogspot.com/2013/03/disable-ssh-login-for-individual-users.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4087768282268381204/posts/default/3822111742499664375'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4087768282268381204/posts/default/3822111742499664375'/><link rel='alternate' type='text/html' href='http://unixbyexample.blogspot.com/2013/03/disable-ssh-login-for-individual-users.html' title='Disable SSH login for individual users'/><author><name>Him</name><uri>http://www.blogger.com/profile/01802895914380136446</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4087768282268381204.post-2917606029471206669</id><published>2013-03-23T08:14:00.000-07:00</published><updated>2013-04-09T11:57:56.975-07:00</updated><title type='text'>Solaris 10 - Increasing Number of Processes Per User</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;h3 class=&quot;post-title entry-title&quot; itemprop=&quot;name&quot; style=&quot;background-color: white; color: #000033; font-family: &#39;Trebuchet MS&#39;, verdana, sans-serif; font-size: 20px; line-height: 22px; text-indent: 10px;&quot;&gt;
&lt;span style=&quot;font-size: 13px;&quot;&gt;The below example is given for increasing the number of processes on Solaris 10 system on PER UID. The hardware used here is UltraSPARC T2 based system with Solaris 10 and 32 GB RAM.&lt;/span&gt;&lt;/h3&gt;
&lt;div class=&quot;post-body entry-content&quot; id=&quot;post-body-3181563037457654818&quot; itemprop=&quot;description articleBody&quot; style=&quot;background-color: white; color: #000033; font-family: &#39;Trebuchet MS&#39;, verdana, sans-serif; font-size: 13px; line-height: 22px; text-indent: 10px;&quot;&gt;
We needed to increase the number of processesper user to more than current setting of 30000&lt;br /&gt;
&lt;br /&gt;
bash-3.00# ulimit -a&lt;br /&gt;
core file size (blocks, -c) unlimited&lt;br /&gt;
data seg size (kbytes, -d) unlimited&lt;br /&gt;
file size (blocks, -f) unlimited&lt;br /&gt;
open files (-n) 260000&lt;br /&gt;
pipe size (512 bytes, -p) 10&lt;br /&gt;
stack size (kbytes, -s) 8192&lt;br /&gt;
cpu time (seconds, -t) unlimited&lt;br /&gt;
max user processes (-u) 29995&lt;br /&gt;
virtual memory (kbytes, -v) unlimited&lt;br /&gt;
&lt;br /&gt;
Trying to increase the &quot;max user processes&quot; would fail with the following error:&lt;br /&gt;
&lt;br /&gt;
bash-3.00# ulimit -u 50000&lt;br /&gt;
bash: ulimit: max user processes: cannot modify limit: Invalid argument&lt;br /&gt;
bash-3.00#&lt;br /&gt;
&lt;br /&gt;
After going through the Solaris 10 Tunable Guide for Process sizing learned that there are 5 related parameters related to process sizing.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;maxusers&amp;nbsp;&lt;/strong&gt;- The maximum number of processes on the system, The number of quota structures held in the system. The size of the directory name look-up cache (DNLC)&lt;br /&gt;
&lt;strong&gt;reserved_procs&lt;/strong&gt;&amp;nbsp;- Specifies the number of system process slots to be reserved in the process table for processes with a UID of root&lt;br /&gt;
&lt;strong&gt;pidmax&lt;/strong&gt;&amp;nbsp;- Specifies the value of the largest possible process ID. Specifies the value of the largest possible process ID. Valid for Solaris 8 and later releases.&lt;br /&gt;
&lt;strong&gt;max_nprocs&lt;/strong&gt;&amp;nbsp;- Specifies the maximum number of processes that can be created on a system. Includes system processes and user processes. Any value specified in /etc/system is used in the computation of maxuprc.&lt;br /&gt;
&lt;strong&gt;maxuprc&lt;/strong&gt;&amp;nbsp;- Specifies the maximum number of processes that can be created on a system by any one user&lt;br /&gt;
&lt;br /&gt;
Looked at the current values for these parameter:&lt;br /&gt;
&lt;br /&gt;
bash-3.00# echo reserved_procs/D |&amp;nbsp;&lt;span style=&quot;font-family: webdings;&quot;&gt;&lt;/span&gt;mdb -k&lt;br /&gt;
reserved_procs:&lt;br /&gt;
reserved_procs: 5&lt;br /&gt;
&lt;br /&gt;
bash-3.00# echo pidmax/D| mdb -k&lt;br /&gt;
pidmax:&lt;br /&gt;
pidmax: 30000&lt;br /&gt;
&lt;br /&gt;
bash-3.00# echo maxusers/D | mdb -k&lt;br /&gt;
maxusers:&lt;br /&gt;
maxusers: 2048&lt;br /&gt;
bash-3.00#&lt;br /&gt;
&lt;br /&gt;
bash-3.00# echo max_nprocs/D | mdb -k&lt;br /&gt;
max_nprocs:&lt;br /&gt;
max_nprocs: 30000&lt;br /&gt;
bash-3.00#&lt;br /&gt;
&lt;br /&gt;
bash-3.00# echo maxuprc/D| mdb -k&lt;br /&gt;
maxuprc:&lt;br /&gt;
maxuprc: 29995&lt;br /&gt;
&lt;br /&gt;
So, in order to set the max per user processes in this scenario, we were required to make the changes to &quot;pidmax&quot; (upper cap), maxusers, max_nprocs &amp;amp; maxuprc&lt;br /&gt;
Sample entries in /etc/system &amp;amp; reboot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
set pidmax=60000&lt;br /&gt;
set maxusers = 4096&lt;br /&gt;
set maxuprc = 50000&lt;br /&gt;
set max_nprocs = 50000&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;After making the above entries, we were able to increase the max user processes to 50000.&lt;/strong&gt;&lt;br /&gt;
bash-3.00# ulimit -a&lt;br /&gt;
core file size (blocks, -c) unlimited&lt;br /&gt;
data seg size (kbytes, -d) unlimited&lt;br /&gt;
file size (blocks, -f) unlimited&lt;br /&gt;
open files (-n) 260000&lt;br /&gt;
pipe size (512 bytes, -p) 10&lt;br /&gt;
stack size (kbytes, -s) 8192&lt;br /&gt;
cpu time (seconds, -t) unlimited&lt;br /&gt;
max user processes (-u) 49995&lt;br /&gt;
virtual memory (kbytes, -v) unlimited&lt;br /&gt;
bash-3.00#&lt;br /&gt;
&lt;br /&gt;
bash-3.00# echo reserved_procs/D |mdb -k&lt;br /&gt;
reserved_procs:&lt;br /&gt;
reserved_procs: 5&lt;br /&gt;
bash-3.00# echo pidmax/D |mdb -k&lt;br /&gt;
pidmax:&lt;br /&gt;
pidmax: 60000&lt;br /&gt;
bash-3.00# echo max_nprocs/D |mdb -k&lt;br /&gt;
max_nprocs:&lt;br /&gt;
max_nprocs: 50000&lt;br /&gt;
bash-3.00# echo maxuprc/D | mdb -k&lt;br /&gt;
maxuprc:&lt;br /&gt;
maxuprc: 50000&lt;br /&gt;
bash-3.00#&lt;br /&gt;
&lt;br /&gt;
Note: If you are operating within the 30000 limit (default pidmax setting) the blog entry referred above seems to work fine. If you are looking at increasing the processes beyond 30000, it we need to make adjustment to other dependent parameters stated in this blog entry.&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://unixbyexample.blogspot.com/feeds/2917606029471206669/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://unixbyexample.blogspot.com/2013/03/increasing-number-of-processes-per-user.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4087768282268381204/posts/default/2917606029471206669'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4087768282268381204/posts/default/2917606029471206669'/><link rel='alternate' type='text/html' href='http://unixbyexample.blogspot.com/2013/03/increasing-number-of-processes-per-user.html' title='Solaris 10 - Increasing Number of Processes Per User'/><author><name>Him</name><uri>http://www.blogger.com/profile/01802895914380136446</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4087768282268381204.post-7704905995186242372</id><published>2013-03-23T08:09:00.002-07:00</published><updated>2013-03-23T08:09:41.155-07:00</updated><title type='text'>Add new printer queue on solaris server using lpadmin command</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;h3 class=&quot;post-title entry-title&quot; itemprop=&quot;name&quot; style=&quot;background-color: white; color: #000033; font-family: &#39;Trebuchet MS&#39;, verdana, sans-serif; font-size: 20px; line-height: 22px; text-indent: 10px;&quot;&gt;
Add new printer queue on solaris server using lpadmin command&lt;/h3&gt;
&lt;div class=&quot;post-header&quot; style=&quot;background-color: white; color: #000033; font-family: &#39;Trebuchet MS&#39;, verdana, sans-serif; font-size: 13px; line-height: 22px; text-indent: 10px;&quot;&gt;
&lt;div class=&quot;post-header-line-1&quot;&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;post-body entry-content&quot; id=&quot;post-body-1546309303816292655&quot; itemprop=&quot;description articleBody&quot; style=&quot;background-color: white; color: #000033; font-family: &#39;Trebuchet MS&#39;, verdana, sans-serif; font-size: 13px; line-height: 22px; text-indent: 10px;&quot;&gt;
Add new printer queue on solaris server using lpadmin command&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;post-body entry-content&quot; id=&quot;post-body-1546309303816292655&quot; itemprop=&quot;description articleBody&quot; style=&quot;background-color: white; color: #000033; font-family: &#39;Trebuchet MS&#39;, verdana, sans-serif; font-size: 13px; line-height: 22px; text-indent: 10px;&quot;&gt;
1.) Add printer name and port details on /etc/printers.conf file&lt;br /&gt;Eg:&lt;br /&gt;mtysap:\&lt;br /&gt;:bsdaddr=mtyun118,mtysap,Solaris:&lt;br /&gt;&lt;br /&gt;mtysapq:\&lt;br /&gt;:bsdaddr=mtysun118,mtysapq,Solaris:&lt;br /&gt;&lt;br /&gt;mtysapt:\&lt;br /&gt;:bsdaddr=mtysun118,mtysapt,Solaris:&lt;br /&gt;&lt;br /&gt;In above mtysap is Print queue name and mtysun118 is Server name.&lt;br /&gt;2.) Copy the existing interface configuration file to new printer name&lt;br /&gt;Eg:&lt;br /&gt;cp /etc/lp/interfaces/mtysap /etc/lp/interfaces/mtysaptest&lt;br /&gt;&lt;br /&gt;3.) Copy the existing configuration file from file to new printer name&lt;br /&gt;Eg:&lt;br /&gt;mkdir /etc/lp/printers/mtysaptest&lt;br /&gt;cp –p /etc/lp/printers/ mtysap/* /etc/lp/printers/mtysaptest&lt;br /&gt;ls –l /etc/lp/printers/mtysaptest&lt;br /&gt;total 10&lt;br /&gt;-rwxrwx--- 1 lp lp 1347 Aug 2 2006 alert.sh&lt;br /&gt;-rw-rw---- 1 lp lp 4 Aug 2 2006 alert.vars&lt;br /&gt;-rw-rw-r-- 1 lp lp 168 Aug 2 2006 configuration&lt;br /&gt;-rw-rw-r-- 1 lp lp 16 Aug 2 2006 faultMessage&lt;br /&gt;-rw-rw-r-- 1 lp lp 0 Aug 2 2006 users.deny&lt;br /&gt;&lt;br /&gt;4.) Edit new printer configuration file and replace the IP address with IP of your network printer&lt;br /&gt;Eg:&lt;br /&gt;vi /etc/lp/printers/mtysaptest/configuration&lt;br /&gt;&lt;br /&gt;# cat /etc/lp/printers/ mtysaptest /configuration&lt;br /&gt;Banner: on&lt;br /&gt;Content types: any&lt;br /&gt;Device: /dev/null&lt;br /&gt;Interface: /usr/lib/lp/model/netstandard&lt;br /&gt;Printer type: unknown&lt;br /&gt;Modules:&lt;br /&gt;Options: protocol=tcp,dest=134.200.172.26:9100&lt;br /&gt;&lt;br /&gt;5.) Change the ownership of files&lt;br /&gt;chmod 775 /etc/lp/interfaces/ mtysaptest&lt;br /&gt;chown lp:lp /etc/lp/interfaces/ mtysaptest&lt;br /&gt;chown-R lp:lp /etc/lp/printers/mtysaptest&lt;br /&gt;&lt;br /&gt;6.) Create and enable the printer&lt;br /&gt;eg:&lt;br /&gt;lpadmin -p mtysaptest -v /dev/null -i /etc/lp/interfaces/ mtysaptest&lt;br /&gt;accept mtysaptest&lt;br /&gt;enable mtysaptest&lt;br /&gt;&lt;br /&gt;7.) Check the new printer status&lt;br /&gt;Eg:&lt;br /&gt;# lpstat -p mtysaptest&lt;br /&gt;&lt;br /&gt;printer mtysaptest is idle. enabled since Fri 28 Jan 2011 01:47:21 PM GMT. available.&lt;br /&gt;&lt;br /&gt;Note : Another way you can also run below script after adding printer in /etc/printers.conf&lt;br /&gt;&lt;br /&gt;#!/bin/ksh&lt;br /&gt;#&amp;nbsp;execute the script followed by the printer name and IP.&lt;br /&gt;/usr/sbin/lpadmin -p $1 -v /dev/null -A write -i /usr/lib/lp/model/ne&lt;br /&gt;tstandard -o dest=$2 -o protocol=bsd -o nobanner -I simple,postscript -u allow:all&lt;br /&gt;/usr/bin/enable $1&lt;br /&gt;/usr/sbin/accept $1&lt;br /&gt;echo &quot;Printer &quot;$1&quot; created!&quot;&lt;br /&gt;echo &quot;Printer configuration...&quot;&lt;br /&gt;/usr/bin/lpstat -lp $1&lt;br /&gt;exit&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://unixbyexample.blogspot.com/feeds/7704905995186242372/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://unixbyexample.blogspot.com/2013/03/add-new-printer-queue-on-solaris-server.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4087768282268381204/posts/default/7704905995186242372'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4087768282268381204/posts/default/7704905995186242372'/><link rel='alternate' type='text/html' href='http://unixbyexample.blogspot.com/2013/03/add-new-printer-queue-on-solaris-server.html' title='Add new printer queue on solaris server using lpadmin command'/><author><name>Him</name><uri>http://www.blogger.com/profile/01802895914380136446</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4087768282268381204.post-5304988291920437312</id><published>2013-03-23T08:05:00.002-07:00</published><updated>2013-03-23T08:05:34.423-07:00</updated><title type='text'>Netmask Conversions</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;h3 class=&quot;post-title entry-title&quot; itemprop=&quot;name&quot; style=&quot;background-color: white; color: #000033; font-family: &#39;Trebuchet MS&#39;, verdana, sans-serif; font-size: 20px; line-height: 22px; text-indent: 10px;&quot;&gt;
Netmask Conversions&lt;/h3&gt;
&lt;div class=&quot;post-header&quot; style=&quot;background-color: white; color: #000033; font-family: &#39;Trebuchet MS&#39;, verdana, sans-serif; font-size: 13px; line-height: 22px; text-indent: 10px;&quot;&gt;
&lt;div class=&quot;post-header-line-1&quot;&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;post-body entry-content&quot; id=&quot;post-body-605115237207813999&quot; itemprop=&quot;description articleBody&quot; style=&quot;background-color: white; color: #000033; font-family: &#39;Trebuchet MS&#39;, verdana, sans-serif; font-size: 13px; line-height: 22px; text-indent: 10px;&quot;&gt;
If you have ever needed to know what a netmask looks like expressed in some other format this table of equivalents should help. It contains common IPv4 netmasks expressed in four different formats.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgyhuBu1wsnL5nRBu_FQ0xV1s-fhC9dNAtv6Q7IGLuTQWov5l6xEVFdwYX8VxISr98QTOBPQC2Suk-9gZSnDCDLBxhE6PzKQrjbSfXRLT76d0_ARGZq8e9bwWEyvAisgLDgTJ7mB1uw5ym-/s1600/Netmask+Conversions.JPG&quot; imageanchor=&quot;1&quot; style=&quot;color: purple; margin-left: 1em; margin-right: 1em; text-decoration: none;&quot;&gt;&lt;img border=&quot;0&quot; h5=&quot;true&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgyhuBu1wsnL5nRBu_FQ0xV1s-fhC9dNAtv6Q7IGLuTQWov5l6xEVFdwYX8VxISr98QTOBPQC2Suk-9gZSnDCDLBxhE6PzKQrjbSfXRLT76d0_ARGZq8e9bwWEyvAisgLDgTJ7mB1uw5ym-/s1600/Netmask+Conversions.JPG&quot; style=&quot;border: 0px;&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;clear: both;&quot;&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;post-footer&quot; style=&quot;background-color: white; color: #000033; font-family: &#39;Trebuchet MS&#39;, verdana, sans-serif; font-size: 11px; line-height: 22px; margin-bottom: 15px; margin-left: 0px; text-indent: 10px;&quot;&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://unixbyexample.blogspot.com/feeds/5304988291920437312/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://unixbyexample.blogspot.com/2013/03/netmask-conversions.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4087768282268381204/posts/default/5304988291920437312'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4087768282268381204/posts/default/5304988291920437312'/><link rel='alternate' type='text/html' href='http://unixbyexample.blogspot.com/2013/03/netmask-conversions.html' title='Netmask Conversions'/><author><name>Him</name><uri>http://www.blogger.com/profile/01802895914380136446</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgyhuBu1wsnL5nRBu_FQ0xV1s-fhC9dNAtv6Q7IGLuTQWov5l6xEVFdwYX8VxISr98QTOBPQC2Suk-9gZSnDCDLBxhE6PzKQrjbSfXRLT76d0_ARGZq8e9bwWEyvAisgLDgTJ7mB1uw5ym-/s72-c/Netmask+Conversions.JPG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4087768282268381204.post-5785783224976121123</id><published>2013-03-23T08:03:00.001-07:00</published><updated>2013-03-23T08:03:27.795-07:00</updated><title type='text'>Add interface specific route</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;h3 class=&quot;post-title entry-title&quot; itemprop=&quot;name&quot; style=&quot;background-color: white; color: #000033; font-family: &#39;Trebuchet MS&#39;, verdana, sans-serif; font-size: 20px; line-height: 22px; text-indent: 10px;&quot;&gt;
Add interface specific route&lt;/h3&gt;
&lt;div class=&quot;post-header&quot; style=&quot;background-color: white; color: #000033; font-family: &#39;Trebuchet MS&#39;, verdana, sans-serif; font-size: 13px; line-height: 22px; text-indent: 10px;&quot;&gt;
&lt;div class=&quot;post-header-line-1&quot;&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;post-body entry-content&quot; id=&quot;post-body-6155491324260583553&quot; itemprop=&quot;description articleBody&quot; style=&quot;background-color: white; color: #000033; font-family: &#39;Trebuchet MS&#39;, verdana, sans-serif; font-size: 13px; line-height: 22px; text-indent: 10px;&quot;&gt;
In solaris , you can add a route whose traffic should go out a specific interface by adding -ifp [ifname] to the route command line. For instance, suppose a host has two interfaces (eri0 and hme0) on the same IP subnet (10.4.2.9/24 with gateway 10.4.2.254), and traffic for just a few hosts needs to go out the secondary hme0 interface. One reason this setup may be needed is for monitoring both some firewalls and the apps that those firewalls protect from a single network management station. On the firewalls you would add host-specific routes for the network management station’s secondary interface via the firewall management network, allowing that interface to talk directly to the firewalls. The primary interface of the network management station gets routed normally, though, and so is able to talk to hosts protected by the same firewalls.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The following command makes this happen:&lt;br /&gt;&lt;br /&gt;# route add -host 172.29.4.3 10.4.2.254 -ifp hme0&lt;br /&gt;&lt;br /&gt;add host 172.29.4.3: gateway 10.4.2.254&lt;br /&gt;&lt;br /&gt;# route add -host 172.29.4.4 10.4.2.254 -ifp hme0&lt;br /&gt;&lt;br /&gt;add host 172.29.4.4: gateway 10.4.2.254&lt;br /&gt;&lt;br /&gt;# route add -host 172.29.7.31 10.4.2.254 -ifp hme0&lt;br /&gt;&lt;br /&gt;add host 172.29.7.31: gateway 10.4.2.254&lt;br /&gt;&lt;br /&gt;# route add -host 172.29.7.32 10.4.2.254 -ifp hme0&lt;br /&gt;&lt;br /&gt;add host 172.29.7.31: gateway 10.4.2.254&lt;br /&gt;&lt;br /&gt;Now all traffic for the four hosts above will go out hme0 instead of eri0.&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://unixbyexample.blogspot.com/feeds/5785783224976121123/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://unixbyexample.blogspot.com/2013/03/add-interface-specific-route.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4087768282268381204/posts/default/5785783224976121123'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4087768282268381204/posts/default/5785783224976121123'/><link rel='alternate' type='text/html' href='http://unixbyexample.blogspot.com/2013/03/add-interface-specific-route.html' title='Add interface specific route'/><author><name>Him</name><uri>http://www.blogger.com/profile/01802895914380136446</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4087768282268381204.post-5183722449002331097</id><published>2013-03-20T10:26:00.001-07:00</published><updated>2013-03-20T10:26:26.496-07:00</updated><title type='text'>snmpxdmid: Error in adding row for subscription Table Entry</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Consolas;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: small;&quot;&gt;snmpxdmid: Error in adding row for subscription Table Entry&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;div&gt;
Solution :-&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
This is solaris 9 problem. The snmpdx startup scripts are in /etc/rc3.d&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; If you are not using SNMP to monitor the system, disable them. &amp;nbsp;Particularly if you are not having completely up to date on security &amp;nbsp;patches for snmpdx, mibiisa, and worse, the snmpXdmid. &amp;nbsp;There&lt;br /&gt;
&amp;nbsp; are buffer overflow and other exploits in unpatched or &amp;nbsp;poorly configured daemons.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; If you are running snmp, you still don&#39;t need the snmpXdmid, &amp;nbsp;as that is a management interface that just happens to be &amp;nbsp;bundled in the free solstice enterprise agent and runs as &amp;nbsp;a sub agent under the snmpdx daemon.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Disable it...&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp;cd /etc/rc3.d&lt;br /&gt;
&amp;nbsp; &amp;nbsp;./S76snmpdx stop&lt;br /&gt;
&amp;nbsp; &amp;nbsp;./S77dmi stop&lt;br /&gt;
&amp;nbsp; &amp;nbsp;mv S76snmpdx s76snmpdx_safe&lt;br /&gt;
&amp;nbsp; &amp;nbsp;mv S77dmi s77dmi_safe&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://unixbyexample.blogspot.com/feeds/5183722449002331097/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://unixbyexample.blogspot.com/2013/03/snmpxdmid-error-in-adding-row-for.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4087768282268381204/posts/default/5183722449002331097'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4087768282268381204/posts/default/5183722449002331097'/><link rel='alternate' type='text/html' href='http://unixbyexample.blogspot.com/2013/03/snmpxdmid-error-in-adding-row-for.html' title='snmpxdmid: Error in adding row for subscription Table Entry'/><author><name>Him</name><uri>http://www.blogger.com/profile/01802895914380136446</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4087768282268381204.post-536681823274855908</id><published>2013-03-19T10:34:00.001-07:00</published><updated>2013-08-18T12:15:03.456-07:00</updated><title type='text'>sendmail:Unable to qualify my own domain name in Solaris 10</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;h2&gt;
How to resolve &quot;Unable to qualify my own domain name&quot; error&lt;o:p&gt;&lt;/o:p&gt;&lt;/h2&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
You may have received this error in /var/adm/messages&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h3&gt;
Symptom 1:&lt;o:p&gt;&lt;/o:p&gt;&lt;/h3&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
tail -f &amp;nbsp;/var/adm/messages&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Mar 13 11:15:16 myserver sendmail[8420]: [ID 702911
mail.crit] My unqualified host name (myserver.) unknown; sleeping for retry&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Mar 13 11:15:16 myserver sendmail[8421]: [ID 702911
mail.crit] My unqualified host name (myserver.) unknown; sleeping for retry&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;Mar 13 11:16:16
myserver sendmail[8421]: [ID 702911 mail.alert] unable to qualify my own domain
name (myserver.) -- using short name&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Mar 13 11:16:16 myserver sendmail[8420]: [ID 702911
mail.alert] unable to qualify my own domain name (myserver.) -- using short
name&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h3&gt;
Symptom 2:&lt;o:p&gt;&lt;/o:p&gt;&lt;/h3&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
when you try to manually telnet localhost 25 or mailx,
either you can send to a particular domain or the respond is very slow after
entering the &quot;mail from&quot; command.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h3&gt;
Resolution:&lt;o:p&gt;&lt;/o:p&gt;&lt;/h3&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
update /etc/hosts ( and /etc/inet/ipnodes if you are on
solaris 10) to use the following.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
root@myserver:&amp;gt;more /etc/hosts&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
# internet host table&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
#====================&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
127.0.0.1 localhost&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
10.106.127.105 myserver. myserver&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
10.106.63.32 myserver-rsc&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Description:&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Usually i would add the &quot;myserver.&quot; with the dot
behind to /etc/hosts but in Solaris 10, things work a little differently.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
It turn out that in solaris 10, the OS will go through
/etc/inet/ipnodes for IPv4 address before going to /etc/hosts. &lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
In this case, since ldap does not have the entry, OS will go
straight to /etc/inet/ipnodes.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
This also mean that if you change the host IP of the solaris
10 server, please change in /etc/inet/ipnodes as well otherwise you have
conflict of IP addresses.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Note that this is Solaris specific.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
# man ipnodes&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
...&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
...&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
NOTES&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
IPv4 addresses can be defined in the ipnodes file or in the&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
hosts file. See hosts(4). The ipnodes file will be searched&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
for IPv4 addresses when using the getipnodebyname(3SOCKET)&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
API. If no matching IPv4 addresses are found in the ipnodes&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
file, then the hosts file will be searched. To prevent&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
delays in name resolution and to keep /etc/inet/ipnodes and&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
/etc/inet/hosts synchronized, IPv4 addresses defined in the&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
hosts file should be copied to the ipnodes file.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
...&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
..&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;h1&gt;
The other ways to disable the message is following :-&lt;/h1&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;
&lt;section style=&quot;color: #575757; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, &#39;Lucida Grande&#39;, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 32px;&quot;&gt;&lt;div class=&quot;jive-rendered-content&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; overflow-x: auto; overflow-y: hidden; padding: 0px; vertical-align: baseline;&quot;&gt;
Disable the sendmail service in Solaris 10;&lt;br /&gt;
&lt;br /&gt;
*1)* Check that SendMail is under SMF control (older Solaris 10 releases didn&#39;t have SMF, if I recall correctly)&lt;br /&gt;
&lt;pre class=&quot;jive-pre&quot; style=&quot;background-color: white; background-image: url(https://forums.oracle.com/5.0.5/images/jive-bg-pre.gif); background-repeat: repeat repeat; border-color: rgb(238, 238, 238) rgb(238, 238, 238) rgb(238, 238, 238) rgb(204, 204, 204); border-style: solid; border-width: 1px 1px 1px 2px; font-style: inherit; margin: 10px 20px; outline: 0px; overflow-x: auto; padding: 10px; vertical-align: baseline;&quot;&gt;&lt;code class=&quot;jive-code&quot; style=&quot;border: 0px; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;root@blade ~# svcs -l svc:/network/smtp:sendmail
fmri&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; svc:/network/smtp:sendmail
name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sendmail SMTP mail transfer agent
enabled&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; true
state&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; online
next_state&amp;nbsp;&amp;nbsp; none
state_time&amp;nbsp;&amp;nbsp; Fri Jun 06 01:15:58 2008
logfile&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /var/svc/log/network-smtp:sendmail.log
restarter&amp;nbsp;&amp;nbsp;&amp;nbsp; svc:/system/svc/restarter:default
contract_id&amp;nbsp; 142 
dependency&amp;nbsp;&amp;nbsp; require_all/refresh file://localhost/etc/mail/sendmail.cf (online)
dependency&amp;nbsp;&amp;nbsp; require_all/refresh file://localhost/etc/nsswitch.conf (online)
dependency&amp;nbsp;&amp;nbsp; optional_all/none svc:/system/filesystem/autofs (online)
dependency&amp;nbsp;&amp;nbsp; require_all/none svc:/system/filesystem/local (online)
dependency&amp;nbsp;&amp;nbsp; require_all/none svc:/network/service (online)
dependency&amp;nbsp;&amp;nbsp; require_all/refresh svc:/milestone/name-services (online)
dependency&amp;nbsp;&amp;nbsp; optional_all/refresh svc:/system/identity:domain (online)
dependency&amp;nbsp;&amp;nbsp; optional_all/none svc:/system/system-log (online)
root@blade ~ # &lt;/code&gt;&lt;/pre&gt;
*2)* Disable the SendMail service;&lt;br /&gt;
&lt;pre class=&quot;jive-pre&quot; style=&quot;background-color: white; background-image: url(https://forums.oracle.com/5.0.5/images/jive-bg-pre.gif); background-repeat: repeat repeat; border-color: rgb(238, 238, 238) rgb(238, 238, 238) rgb(238, 238, 238) rgb(204, 204, 204); border-style: solid; border-width: 1px 1px 1px 2px; font-style: inherit; margin: 10px 20px; outline: 0px; overflow-x: auto; padding: 10px; vertical-align: baseline;&quot;&gt;&lt;code class=&quot;jive-code&quot; style=&quot;border: 0px; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;root@blade ~ # ps -ef|grep sendmail
root&amp;nbsp; 2669&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp; 0 01:16:59 ?&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0:00 /usr/lib/sendmail -bd -q15m -C /etc/mail/local.cf
smmsp&amp;nbsp; 2667&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp; 0 01:16:59 ?&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0:00 /usr/lib/sendmail -Ac -q15m
root&amp;nbsp; 2950&amp;nbsp; 2788&amp;nbsp;&amp;nbsp; 0 01:56:18 pts/1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0:00 grep sendmail
root@blade ~ # svcadm disable svc:/network/smtp:sendmail
root@blade ~ # ps -ef | grep sendmail
root@blade ~ #&lt;/code&gt;&lt;/pre&gt;
However, if your interested in stopping the error without disabling SendMail, you can attempt a few things;&lt;br /&gt;
&lt;br /&gt;
*1)* Set the hostname to the desired FQDN;&lt;br /&gt;
&lt;pre class=&quot;jive-pre&quot; style=&quot;background-color: white; background-image: url(https://forums.oracle.com/5.0.5/images/jive-bg-pre.gif); background-repeat: repeat repeat; border-color: rgb(238, 238, 238) rgb(238, 238, 238) rgb(238, 238, 238) rgb(204, 204, 204); border-style: solid; border-width: 1px 1px 1px 2px; font-style: inherit; margin: 10px 20px; outline: 0px; overflow-x: auto; padding: 10px; vertical-align: baseline;&quot;&gt;&lt;code class=&quot;jive-code&quot; style=&quot;border: 0px; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;root@blade ~ # hostname
blade
root@blade ~ # hostname blade.example.com
root@blade ~ # hostname
blade.example.com
root@blade ~ #&lt;/code&gt;&lt;/pre&gt;
*2)* Set the default domain name;&lt;br /&gt;
&lt;pre class=&quot;jive-pre&quot; style=&quot;background-color: white; background-image: url(https://forums.oracle.com/5.0.5/images/jive-bg-pre.gif); background-repeat: repeat repeat; border-color: rgb(238, 238, 238) rgb(238, 238, 238) rgb(238, 238, 238) rgb(204, 204, 204); border-style: solid; border-width: 1px 1px 1px 2px; font-style: inherit; margin: 10px 20px; outline: 0px; overflow-x: auto; padding: 10px; vertical-align: baseline;&quot;&gt;&lt;code class=&quot;jive-code&quot; style=&quot;border: 0px; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;root@blade ~ # echo &quot;example.com&quot; &amp;gt; /etc/defaultdomain
root@blade ~ # cat /etc/defaultdomain
example.com
root@blade ~ #&lt;/code&gt;&lt;/pre&gt;
*3)* Use the &quot;domainname&quot; command to set the default domain&lt;br /&gt;
&lt;pre class=&quot;jive-pre&quot; style=&quot;background-color: white; background-image: url(https://forums.oracle.com/5.0.5/images/jive-bg-pre.gif); background-repeat: repeat repeat; border-color: rgb(238, 238, 238) rgb(238, 238, 238) rgb(238, 238, 238) rgb(204, 204, 204); border-style: solid; border-width: 1px 1px 1px 2px; font-style: inherit; margin: 10px 20px; outline: 0px; overflow-x: auto; padding: 10px; vertical-align: baseline;&quot;&gt;&lt;code class=&quot;jive-code&quot; style=&quot;border: 0px; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;root@blade ~ # domainname example.com
root@blade ~ # domainname
example.com
root@blade ~ #&lt;/code&gt;&lt;/pre&gt;
&lt;em style=&quot;border: 0px; font-family: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Note&lt;/em&gt;: Just using the &quot;domainname&quot; command is not persistent across reboots, the /etc/defaultdomain file is read by the system at boot up, and it should contain just the desired domain (&quot;example.com&quot;). Doing a &quot;domainname&quot; after a reboot when the /etc/defaultdomain file is set will return the domain name.&lt;br /&gt;
&lt;br /&gt;
*4)* Check the entry in /etc/hosts;&lt;br /&gt;
A fresh install of Solaris 10 (Update 5) left me with the following (even though I setup DNS during the OS install);&lt;br /&gt;
&lt;pre class=&quot;jive-pre&quot; style=&quot;background-color: white; background-image: url(https://forums.oracle.com/5.0.5/images/jive-bg-pre.gif); background-repeat: repeat repeat; border-color: rgb(238, 238, 238) rgb(238, 238, 238) rgb(238, 238, 238) rgb(204, 204, 204); border-style: solid; border-width: 1px 1px 1px 2px; font-style: inherit; margin: 10px 20px; outline: 0px; overflow-x: auto; padding: 10px; vertical-align: baseline;&quot;&gt;&lt;code class=&quot;jive-code&quot; style=&quot;border: 0px; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;#
# Internet host table
#
::1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; localhost
127.0.0.1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; localhost
192.168.1.200&amp;nbsp;&amp;nbsp; blade&amp;nbsp;&amp;nbsp; loghost&lt;/code&gt;&lt;/pre&gt;
What fixed the SendMail error for me was changing it to the following;&lt;br /&gt;
&lt;pre class=&quot;jive-pre&quot; style=&quot;background-color: white; background-image: url(https://forums.oracle.com/5.0.5/images/jive-bg-pre.gif); background-repeat: repeat repeat; border-color: rgb(238, 238, 238) rgb(238, 238, 238) rgb(238, 238, 238) rgb(204, 204, 204); border-style: solid; border-width: 1px 1px 1px 2px; font-style: inherit; margin: 10px 20px; outline: 0px; overflow-x: auto; padding: 10px; vertical-align: baseline;&quot;&gt;&lt;code class=&quot;jive-code&quot; style=&quot;border: 0px; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;#
# Internet host table
#
::1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; localhost
127.0.0.1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; localhost
192.168.1.200&amp;nbsp;&amp;nbsp; blade.example.com blade loghost &lt;/code&gt;&lt;/pre&gt;
I hope this helps!&lt;/div&gt;
&lt;/section&gt;&lt;footer style=&quot;color: #575757; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, &#39;Lucida Grande&#39;, sans-serif; font-size: 0.9em; margin-top: 24px; min-height: 0px;&quot;&gt;&lt;ul class=&quot;clearfix&quot; style=&quot;border-top-color: rgb(235, 235, 235); border-top-style: solid; border-width: 1px 0px 0px; font-family: inherit; font-size: 12px; font-style: inherit; list-style: none; margin: 6px 0px 0px; min-height: 0px; outline: 0px; padding: 6px 0px; text-align: right; vertical-align: baseline;&quot;&gt;
&lt;li class=&quot;js-link-abuse&quot; style=&quot;border: 0px; display: inline-block; font-family: inherit; font-style: inherit; margin: 0px 0px 0px 20px; outline: 0px; padding: 0px; vertical-align: bottom; zoom: 1;&quot;&gt;&lt;a href=&quot;https://forums.oracle.com/message-abuse!input.jspa?objectID=8171157&amp;amp;objectType=2&quot; style=&quot;border: 0px; color: #1f4f82; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/footer&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://unixbyexample.blogspot.com/feeds/536681823274855908/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://unixbyexample.blogspot.com/2013/03/unable-to-qualify-my-own-domain-name.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4087768282268381204/posts/default/536681823274855908'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4087768282268381204/posts/default/536681823274855908'/><link rel='alternate' type='text/html' href='http://unixbyexample.blogspot.com/2013/03/unable-to-qualify-my-own-domain-name.html' title='sendmail:Unable to qualify my own domain name in Solaris 10'/><author><name>Him</name><uri>http://www.blogger.com/profile/01802895914380136446</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4087768282268381204.post-6370837652355613991</id><published>2011-08-28T11:21:00.000-07:00</published><updated>2011-08-28T11:25:22.229-07:00</updated><title type='text'>Tips and Tricks of UNIX</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 9.0pt;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10pt;&quot;&gt;I&#39;ve been working with variations of Unix for a long time&amp;nbsp; and thought I&#39;d write down some of my favorite tips and tricks. They are mostly OS/distribution/shell/language independent (unless I indicate otherwise...)&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; margin-left: 22.5pt; margin-right: 0cm; margin-top: 0cm; mso-list: l0 level1 lfo1; tab-stops: list 36.0pt; text-indent: -18.0pt;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10pt;&quot;&gt;1.&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 12pt;&quot;&gt;Get rid of blank lines in a file&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10pt;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;grep . inputfile &amp;gt; outputfile&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10pt;&quot;&gt;&lt;br /&gt;
This matches (and thus prints) only lines that contain some text, not blank (empty) lines.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; margin-left: 22.5pt; margin-right: 0cm; margin-top: 0cm;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; margin-left: 22.5pt; margin-right: 0cm; margin-top: 0cm; mso-list: l0 level1 lfo1; tab-stops: list 36.0pt; text-indent: -18.0pt;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10pt;&quot;&gt;2.&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 12pt;&quot;&gt;comm&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10pt;&quot;&gt;&lt;br /&gt;
Many people never cross paths with the&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 12pt;&quot;&gt;comm&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10pt;&quot;&gt;&amp;nbsp;command, but it is very useful. I works similarly to diff, but outputs the contents of two compared files into three columns. The first column is content only in the first file, second column is content only in the second file, and third column is content that is in both files (matches between the two files.) While this may not seem useful at first, you can select which columns to output, so if you only want to know what is in both file1&amp;nbsp;&lt;i&gt;and&lt;/i&gt;&amp;nbsp;file 2 (column 2) you&#39;d suppress columns 1 and 2, by running:&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;comm -12 file1 file2&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10pt;&quot;&gt;&lt;br /&gt;
Don&#39;t forget that your input files must be sorted.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; margin-left: 22.5pt; margin-right: 0cm; margin-top: 0cm;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; margin-left: 22.5pt; margin-right: 0cm; margin-top: 0cm; mso-list: l0 level1 lfo1; tab-stops: list 36.0pt; text-indent: -18.0pt;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10pt;&quot;&gt;3.&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 12pt;&quot;&gt;paste&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10pt;&quot;&gt;&lt;br /&gt;
Systems administrators frequently use the&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;cut&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10pt;&quot;&gt;&amp;nbsp;command to parse files, but many people I run into have never used the&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;paste&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10pt;&quot;&gt;&amp;nbsp;command. The&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;paste&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10pt;&quot;&gt;&amp;nbsp;command will concatenate two files line by line (as opposed to file by file, like&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;cat&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10pt;&quot;&gt;.)&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; margin-left: 22.5pt; margin-right: 0cm; margin-top: 0cm;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; margin-left: 22.5pt; margin-right: 0cm; margin-top: 0cm; mso-list: l0 level1 lfo1; tab-stops: list 36.0pt; text-indent: -18.0pt;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10pt;&quot;&gt;4.&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 12pt;&quot;&gt;less instead of more&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10pt;&quot;&gt;&lt;br /&gt;
This is not available on all Unix-based OSes, but the&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;less&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10pt;&quot;&gt;&amp;nbsp;command works very similar to more, but will let you move through a file forwards and backwards more easily. Want to jump to the end of the file, type&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;Shift-G&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10pt;&quot;&gt;&amp;nbsp;Depending on the version of&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;less&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10pt;&quot;&gt;&amp;nbsp;you are running, it will provide context highlighting when you search for a pattern.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; margin-left: 22.5pt; margin-right: 0cm; margin-top: 0cm;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; margin-left: 22.5pt; margin-right: 0cm; margin-top: 0cm; mso-list: l0 level1 lfo1; tab-stops: list 36.0pt; text-indent: -18.0pt;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10pt;&quot;&gt;5.&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 12pt;&quot;&gt;Jump to vi from more&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10pt;&quot;&gt;&lt;br /&gt;
While paging through a file in more, press &quot;v&quot; to jump to editting the file in vi at the current position in the file.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; margin-left: 22.5pt; margin-right: 0cm; margin-top: 0cm;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; margin-left: 22.5pt; margin-right: 0cm; margin-top: 0cm; mso-list: l0 level1 lfo1; tab-stops: list 36.0pt; text-indent: -18.0pt;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10pt;&quot;&gt;6.&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 12pt;&quot;&gt;Jump to a line number when editing a file with vi&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10pt;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;vi +linenumber filename&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10pt;&quot;&gt;&lt;br /&gt;
will open up the file with the cursor automatically moved down to the specified line. This is useful when you get an error that indicates &quot;syntax error on line 2047.&quot; You can jump straight to the problem without fumbling around.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; margin-left: 22.5pt; margin-right: 0cm; margin-top: 0cm;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; margin-left: 22.5pt; margin-right: 0cm; margin-top: 0cm; mso-list: l0 level1 lfo1; tab-stops: list 36.0pt; text-indent: -18.0pt;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10pt;&quot;&gt;7.&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 12pt;&quot;&gt;Invisible characters become visible&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10pt;&quot;&gt;&lt;br /&gt;
Sometimes you&#39;ll end up with carriage returns on each line in a file originally created on a DOS/Windows system, or filenames with spaces, tab, or other control characters in them, but you can&#39;t see them typically.&lt;br /&gt;
The&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;cat&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10pt;&quot;&gt;&amp;nbsp;command provides three useful options -v, -e, and -t that will let you understand these invisible characters&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;-v (displays non-printing characters)&lt;br /&gt;
-e (prints a &quot;$&quot; at the end of each line to indicate a NL character)&lt;br /&gt;
-t (prints &quot;^I&quot; for each Tab in the file)&lt;br /&gt;
cat -vet filename |more&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; margin-left: 22.5pt; margin-right: 0cm; margin-top: 0cm;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;border-bottom: double windowtext 2.25pt; border: none; margin-left: 4.5pt; margin-right: 0cm; mso-element: para-border-div; padding: 0cm 0cm 1.0pt 0cm;&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; margin-left: 18.0pt; margin-right: 0cm; margin-top: 0cm; mso-border-bottom-alt: double windowtext 2.25pt; mso-list: l0 level1 lfo1; mso-padding-alt: 0cm 0cm 1.0pt 0cm; padding: 0cm; tab-stops: list 36.0pt; text-indent: -18.0pt;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10pt;&quot;&gt;8.&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 12pt;&quot;&gt;Remove DOS ^M from ends of lines&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10pt;&quot;&gt;&lt;br /&gt;
The &quot;^M&quot; characters are visible when editing in vi but here are two approaches to remove the characters.&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;&lt;br /&gt;
&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;border: medium none; line-height: normal; margin: 0cm 0cm 0.0001pt 18pt; padding: 0cm; text-indent: -18pt;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp; sed &#39;s/&lt;ctrl-v&gt;&lt;ctrl-m&gt;//g&#39; -i filename&lt;/ctrl-m&gt;&lt;/ctrl-v&gt;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;border: medium none; line-height: normal; margin: 0cm 0cm 0.0001pt 18pt; padding: 0cm; text-indent: -18pt;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; or in vi:&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;&lt;esc&gt;:%s/&lt;ctrl-v&gt;&lt;ctrl-m&gt;//g&lt;/ctrl-m&gt;&lt;/ctrl-v&gt;&lt;/esc&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;border: medium none; line-height: normal; margin: 0cm 0cm 0.0001pt 18pt; padding: 0cm; text-indent: -18pt;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp; or dos2unix filename filename&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;border: medium none; line-height: normal; margin: 0cm 0cm 0.0001pt 18pt; padding: 0cm; text-indent: -18pt;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;9.&amp;nbsp;&amp;nbsp; You&#39;ve done something that has&amp;nbsp;&lt;b&gt;completely screwed up&lt;/b&gt;&amp;nbsp;your terminal. Everything you type is either invisible or incomprehensible. Try the following:&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $ ^C&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $ stty sane^J &lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;If this doesn&#39;t work, try:&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $ echo ^V^O &lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;10. To determine what program dumped an anonymous&amp;nbsp;&lt;b&gt;core&lt;/b&gt;&amp;nbsp;file, use&amp;nbsp;&lt;i&gt;gdb&lt;/i&gt;:&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $ gdb -core core&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [...]&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Core was generated by `a.out&#39;.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Program terminated with signal 6, Abort trap.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [...] &lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;If you are on a system without&amp;nbsp;&lt;i&gt;gdb&lt;/i&gt;, try the&amp;nbsp;&lt;i&gt;file&lt;/i&gt;&amp;nbsp;command:&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $ file core&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; core: ELF 32-bit LSB core file of &#39;a.out&#39; (signal 6)&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $ &lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;11. To create a&amp;nbsp;&lt;i&gt;vi&lt;/i&gt;&amp;nbsp;macro that will&amp;nbsp;&lt;b&gt;wrap the current paragraph&lt;/b&gt;&amp;nbsp;to a reasonable number of characters, add the following to your&amp;nbsp;&lt;i&gt;.exrc&lt;/i&gt;&amp;nbsp;or&lt;i&gt;.vimrc&lt;/i&gt;&amp;nbsp;file:&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; map Q {!} fmt -c -u^M &lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;Now, when you press &#39;Q&#39; in visual mode, the current paragraph will be wrapped to approximately 70 characters.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;12.&amp;nbsp; Due to the Unix concept of&amp;nbsp;&lt;b&gt;sparse files&lt;/b&gt;, you can create seemingly enormous files that in reality take next to no disk space. The following program will create a 305,419,897 byte file called &#39;core&#39; that may result in you receiving a &#39;cleanup&#39; email message from a less-than-seasoned Unix sysadmin even though it occupies virtually no real disk space.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $ cat bigcore.c&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #include &lt;fcntl.h&gt;&lt;/fcntl.h&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #include &lt;unistd.h&gt;&lt;/unistd.h&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; int main(void) {&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; int fd = open(&quot;core&quot;, O_CREAT|O_WRONLY|O_TRUNC, 0600);&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lseek(fd, 0x12345678, SEEK_SET);&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; write(fd, &quot;1&quot;, 1);&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; close(fd);&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return 0;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $ cc -o bigcore bigcore.c&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $ ./bigcore&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $ ls -l core&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; -rw-------&amp;nbsp; 1 dmr&amp;nbsp; staff&amp;nbsp; 305419897 May&amp;nbsp; 1 03:50 core&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $ du -k core&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 48&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; core&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $ &lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;13.&amp;nbsp; On older Unix systems, in particular those that don&#39;t support MD5&lt;b&gt;password&lt;/b&gt;&amp;nbsp;hashing, only the first 8 characters of a password are significant. If you use an 8 character password on these systems, you can type anything you want after the first 8 characters and it will be accepted by&amp;nbsp;&lt;i&gt;login&lt;/i&gt;. This allows you to type the first 8 characters of the password as usual, then have some fun. Enter a bunch of crap at superhuman speed, then enter the last few characters with your elbow. Then press backspace twice carefully and retype the characters with your other elbow. Etc....&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;14.&amp;nbsp; When&amp;nbsp;&lt;b&gt;recursive copying&lt;/b&gt;,&amp;nbsp;&lt;i&gt;cp&lt;/i&gt;&amp;nbsp;(cp -Rip, etc.) may not be the best tool for the job. For example,&amp;nbsp;&lt;i&gt;cp&lt;/i&gt;&amp;nbsp;copies hard links as separate files, which is probably not what you want. To get a true copy of a directory, try:&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $ tar cf - &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;| (cd ; tar xf -) &lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;This will create an exact copy of &#39;dir&#39; in &#39;destdir&#39;. The same principle can be used to create a recursive copy on a remote machine:&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10pt;&quot;&gt;&amp;nbsp; $ tar cf - &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;| ssh remotehost &quot;(cd ; tar xf -)&quot;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;15.&amp;nbsp; To list the files&amp;nbsp;&lt;b&gt;in another directory&lt;/b&gt;&amp;nbsp;that match more than one pattern, it is easiest to do:&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $ ls -l /usr/local/foo/{*.conf,*.local,*.rc} &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;which is equivalent to:&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10pt;&quot;&gt;$ ls -l /usr/local/foo/*.conf /usr/local/foo/*.local /usr/local/foo/*.rc&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;This syntax is supported by (at least)&amp;nbsp;&lt;i&gt;bash&lt;/i&gt;,&amp;nbsp;&lt;i&gt;ksh&lt;/i&gt;,&amp;nbsp;&lt;i&gt;csh&lt;/i&gt;&amp;nbsp;and&amp;nbsp;&lt;i&gt;sh&lt;/i&gt;.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;You can extend this idea to make renaming files in another directory, for example, a little easier:&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10pt;&quot;&gt;$ mv -i /usr/local/foo/bar/baz/{stuff,stuff~}&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;16.&amp;nbsp; A little insurance against running&amp;nbsp;&lt;b&gt;&#39;rm -rf *&#39; in the wrong directory&lt;/b&gt;&amp;nbsp;-- create an empty file called&amp;nbsp;&lt;b&gt;-i&lt;/b&gt;&amp;nbsp;in any critical directory:&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10pt;&quot;&gt;$ &amp;gt;-i&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;or...&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10pt;&quot;&gt;$ touch -- -i&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;If the &#39;rm -rf *&#39; command is issued in that directory, the shell will expand the &#39;-i&#39; early on and go into interactive mode, thus giving you a chance to say &#39;Whoa, that was close!&#39;, which always sounds better than &#39;Oh fsck!&#39;.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;This tip works because the&amp;nbsp;&lt;i&gt;-i&lt;/i&gt;&amp;nbsp;option to&amp;nbsp;&lt;i&gt;rm&lt;/i&gt;&amp;nbsp;will override any previous&amp;nbsp;&lt;i&gt;-f&lt;/i&gt;.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;Be forewarned that this tip only protects against &#39;rm -fr *&#39;, i.e., files and directories in the&amp;nbsp;&lt;b&gt;current directory&lt;/b&gt;.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;To remove the&amp;nbsp;&lt;i&gt;-i&lt;/i&gt;&amp;nbsp;file (or any other&amp;nbsp;&lt;b&gt;file beginning with &#39;-&#39;&lt;/b&gt;):&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10pt;&quot;&gt;$ rm ./-i&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;or...&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10pt;&quot;&gt;$ rm -- -i&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;17.&amp;nbsp; To return to the&amp;nbsp;&lt;b&gt;previous directory&lt;/b&gt;&amp;nbsp;in ksh or bash, use:&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10pt;&quot;&gt;$ cd -&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;18.&amp;nbsp; To use the&amp;nbsp;&lt;b&gt;last argument&lt;/b&gt;&amp;nbsp;of the previous command line as an argument, use $_. For example:&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10pt;&quot;&gt;$ ls -l /usr/home/dmr/somefile&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10pt;&quot;&gt;$ vi $_&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;19.&amp;nbsp; To make the up and down arrow keys work and thereby enable&lt;b&gt;command line editing and recall&lt;/b&gt;&amp;nbsp;in&amp;nbsp;&lt;i&gt;ksh&lt;/i&gt;, include the following lines in your ~/.profile:&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10pt;&quot;&gt;set -o emacs&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10pt;&quot;&gt;alias __A=&#39;^P&#39;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10pt;&quot;&gt;alias __D=&#39;^B&#39;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10pt;&quot;&gt;alias __B=&#39;^N&#39;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10pt;&quot;&gt;alias __C=&#39;^F&#39;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10pt;&quot;&gt;alias __H=&#39;^A&#39;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;You need to enter the actual control characters ^P, ^B, etc.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;dir&gt;&lt;/dir&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;http://www.amazon.com/Mac-10-3-Panther-OLD-VERSION/dp/B0000E6NK9?ie=UTF8&amp;amp;tag=widgetsamazon-20&amp;amp;link_code=bil&amp;amp;camp=213689&amp;amp;creative=392969&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot; target=&quot;_blank&quot;&gt;&lt;img alt=&quot;Mac OS X 10.3 Panther [OLD VERSION]&quot; src=&quot;http://ws.amazon.com/widgets/q?MarketPlace=US&amp;amp;ServiceVersion=20070822&amp;amp;ID=AsinImage&amp;amp;WS=1&amp;amp;Format=_SL160_&amp;amp;ASIN=B0000E6NK9&amp;amp;tag=widgetsamazon-20&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;&lt;dir&gt;&lt;destdir&gt;&lt;dir&gt;&lt;destdir&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;a href=&quot;http://www.amazon.com/Linux-Ubuntu-Operating-System-Shift/dp/B001IK166S?ie=UTF8&amp;amp;tag=widgetsamazon-20&amp;amp;link_code=bil&amp;amp;camp=213689&amp;amp;creative=392969&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot; target=&quot;_blank&quot;&gt;&lt;img alt=&quot;Linux Ubuntu: Easy to Use Operating System From Shift+Open&quot; src=&quot;http://ws.amazon.com/widgets/q?MarketPlace=US&amp;amp;ServiceVersion=20070822&amp;amp;ID=AsinImage&amp;amp;WS=1&amp;amp;Format=_SL160_&amp;amp;ASIN=B001IK166S&amp;amp;tag=widgetsamazon-20&quot; /&gt;&lt;/a&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; height=&quot;1&quot; src=&quot;http://www.assoc-amazon.com/e/ir?t=widgetsamazon-20&amp;amp;l=bil&amp;amp;camp=213689&amp;amp;creative=392969&amp;amp;o=1&amp;amp;a=B0000E6NK9&quot; style=&quot;border: none !important; margin: 0px !important; padding: 0px !important;&quot; width=&quot;1&quot; /&gt;&amp;nbsp;&lt;img alt=&quot;&quot; border=&quot;0&quot; height=&quot;1&quot; src=&quot;http://www.assoc-amazon.com/e/ir?t=widgetsamazon-20&amp;amp;l=bil&amp;amp;camp=213689&amp;amp;creative=392969&amp;amp;o=1&amp;amp;a=B001IK166S&quot; style=&quot;border: none !important; margin: 0px !important; padding: 0px !important;&quot; width=&quot;1&quot; /&gt;&lt;a href=&quot;http://www.amazon.com/Complete-Redhat-Operating-System-Deluxe/dp/B00002SANY?ie=UTF8&amp;amp;tag=widgetsamazon-20&amp;amp;link_code=bil&amp;amp;camp=213689&amp;amp;creative=392969&quot; imageanchor=&quot;1&quot; target=&quot;_blank&quot;&gt;&lt;img alt=&quot;Complete Redhat Linux 5.2 Operating System Deluxe Secure Server&quot; src=&quot;http://ws.amazon.com/widgets/q?MarketPlace=US&amp;amp;ServiceVersion=20070822&amp;amp;ID=AsinImage&amp;amp;WS=1&amp;amp;Format=_SL160_&amp;amp;ASIN=B00002SANY&amp;amp;tag=widgetsamazon-20&quot; /&gt;&lt;/a&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; height=&quot;1&quot; src=&quot;http://www.assoc-amazon.com/e/ir?t=widgetsamazon-20&amp;amp;l=bil&amp;amp;camp=213689&amp;amp;creative=392969&amp;amp;o=1&amp;amp;a=B00002SANY&quot; style=&quot;border: none !important; margin: 0px !important; padding: 0px !important;&quot; width=&quot;1&quot; /&gt;&lt;a href=&quot;http://www.amazon.com/Linux-Xubuntu-Compact-Operating-System/dp/B001IK19V0?ie=UTF8&amp;amp;tag=widgetsamazon-20&amp;amp;link_code=bil&amp;amp;camp=213689&amp;amp;creative=392969&quot; imageanchor=&quot;1&quot; target=&quot;_blank&quot;&gt;&lt;/a&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; height=&quot;1&quot; src=&quot;http://www.assoc-amazon.com/e/ir?t=widgetsamazon-20&amp;amp;l=bil&amp;amp;camp=213689&amp;amp;creative=392969&amp;amp;o=1&amp;amp;a=B001IK19V0&quot; style=&quot;border: none !important; margin: 0px !important; padding: 0px !important;&quot; width=&quot;1&quot; /&gt;&lt;/span&gt;&lt;/div&gt;&lt;/destdir&gt;&lt;/dir&gt;&lt;/destdir&gt;&lt;/dir&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unixbyexample.blogspot.com/feeds/6370837652355613991/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://unixbyexample.blogspot.com/2011/08/tips-and-tricks-of-unix.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4087768282268381204/posts/default/6370837652355613991'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4087768282268381204/posts/default/6370837652355613991'/><link rel='alternate' type='text/html' href='http://unixbyexample.blogspot.com/2011/08/tips-and-tricks-of-unix.html' title='Tips and Tricks of UNIX'/><author><name>Him</name><uri>http://www.blogger.com/profile/01802895914380136446</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4087768282268381204.post-8645851253616741669</id><published>2011-08-28T10:43:00.000-07:00</published><updated>2011-08-28T10:43:54.888-07:00</updated><title type='text'>Solaris One liner</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;Working on solaris or any unix operating system need a lot of command to learn.But it is difficult to memories all&amp;nbsp; those command.Keeping those command in hand will help a lot for Unix Administrator. I am here posting some one liner command that may be helpful to all UNIX administrator as well as UNIX beginners:-&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://www.amazon.com/Linux-Administration-Beginners-Guide-Fifth/dp/0071545883?ie=UTF8&amp;amp;tag=widgetsamazon-20&amp;amp;link_code=bil&amp;amp;camp=213689&amp;amp;creative=392969&quot; imageanchor=&quot;1&quot; target=&quot;_blank&quot;&gt;&lt;img alt=&quot;Linux Administration: A Beginner&#39;s Guide, Fifth Edition&quot; src=&quot;http://ws.amazon.com/widgets/q?MarketPlace=US&amp;amp;ServiceVersion=20070822&amp;amp;ID=AsinImage&amp;amp;WS=1&amp;amp;Format=_SL160_&amp;amp;ASIN=0071545883&amp;amp;tag=widgetsamazon-20&quot; /&gt;&lt;/a&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; height=&quot;1&quot; src=&quot;http://www.assoc-amazon.com/e/ir?t=widgetsamazon-20&amp;amp;l=bil&amp;amp;camp=213689&amp;amp;creative=392969&amp;amp;o=1&amp;amp;a=0071545883&quot; style=&quot;border: none !important; margin: 0px !important; padding: 0px !important;&quot; width=&quot;1&quot; /&gt;&lt;a href=&quot;http://www.amazon.com/UNIX-System-Administration-Handbook-3rd/dp/0130206016?ie=UTF8&amp;amp;tag=widgetsamazon-20&amp;amp;link_code=bil&amp;amp;camp=213689&amp;amp;creative=392969&quot; imageanchor=&quot;1&quot; target=&quot;_blank&quot;&gt;&lt;img alt=&quot;UNIX System Administration Handbook (3rd Edition)&quot; src=&quot;http://ws.amazon.com/widgets/q?MarketPlace=US&amp;amp;ServiceVersion=20070822&amp;amp;ID=AsinImage&amp;amp;WS=1&amp;amp;Format=_SL160_&amp;amp;ASIN=0130206016&amp;amp;tag=widgetsamazon-20&quot; /&gt;&lt;/a&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; height=&quot;1&quot; src=&quot;http://www.assoc-amazon.com/e/ir?t=widgetsamazon-20&amp;amp;l=bil&amp;amp;camp=213689&amp;amp;creative=392969&amp;amp;o=1&amp;amp;a=0130206016&quot; style=&quot;border: none !important; margin: 0px !important; padding: 0px !important;&quot; width=&quot;1&quot; /&gt;&lt;a href=&quot;http://www.amazon.com/Linux-System-Administration-Handbook-ebook/dp/B003YMNVCA?ie=UTF8&amp;amp;tag=widgetsamazon-20&amp;amp;link_code=bil&amp;amp;camp=213689&amp;amp;creative=392969&quot; imageanchor=&quot;1&quot; target=&quot;_blank&quot;&gt;&lt;img alt=&quot;Unix and Linux System Administration Handbook (4th Edition)&quot; src=&quot;http://ws.amazon.com/widgets/q?MarketPlace=US&amp;amp;ServiceVersion=20070822&amp;amp;ID=AsinImage&amp;amp;WS=1&amp;amp;Format=_SL160_&amp;amp;ASIN=B003YMNVCA&amp;amp;tag=widgetsamazon-20&quot; /&gt;&lt;/a&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; height=&quot;1&quot; src=&quot;http://www.assoc-amazon.com/e/ir?t=widgetsamazon-20&amp;amp;l=bil&amp;amp;camp=213689&amp;amp;creative=392969&amp;amp;o=1&amp;amp;a=B003YMNVCA&quot; style=&quot;border: none !important; margin: 0px !important; padding: 0px !important;&quot; width=&quot;1&quot; /&gt;&lt;a href=&quot;http://www.amazon.com/Unix-Shell-Programming-Stephen-Kochan/dp/0672324903?ie=UTF8&amp;amp;tag=widgetsamazon-20&amp;amp;link_code=bil&amp;amp;camp=213689&amp;amp;creative=392969&quot; imageanchor=&quot;1&quot; target=&quot;_blank&quot;&gt;&lt;img alt=&quot;Unix Shell Programming (3rd Edition)&quot; src=&quot;http://ws.amazon.com/widgets/q?MarketPlace=US&amp;amp;ServiceVersion=20070822&amp;amp;ID=AsinImage&amp;amp;WS=1&amp;amp;Format=_SL160_&amp;amp;ASIN=0672324903&amp;amp;tag=widgetsamazon-20&quot; /&gt;&lt;/a&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; height=&quot;1&quot; src=&quot;http://www.assoc-amazon.com/e/ir?t=widgetsamazon-20&amp;amp;l=bil&amp;amp;camp=213689&amp;amp;creative=392969&amp;amp;o=1&amp;amp;a=0672324903&quot; style=&quot;border: none !important; margin: 0px !important; padding: 0px !important;&quot; width=&quot;1&quot; /&gt;&lt;a href=&quot;http://www.amazon.com/Classic-Shell-Scripting-Arnold-Robbins/dp/0596005954?ie=UTF8&amp;amp;tag=widgetsamazon-20&amp;amp;link_code=bil&amp;amp;camp=213689&amp;amp;creative=392969&quot; imageanchor=&quot;1&quot; target=&quot;_blank&quot;&gt;&lt;img alt=&quot;Classic Shell Scripting&quot; src=&quot;http://ws.amazon.com/widgets/q?MarketPlace=US&amp;amp;ServiceVersion=20070822&amp;amp;ID=AsinImage&amp;amp;WS=1&amp;amp;Format=_SL160_&amp;amp;ASIN=0596005954&amp;amp;tag=widgetsamazon-20&quot; /&gt;&lt;/a&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; height=&quot;1&quot; src=&quot;http://www.assoc-amazon.com/e/ir?t=widgetsamazon-20&amp;amp;l=bil&amp;amp;camp=213689&amp;amp;creative=392969&amp;amp;o=1&amp;amp;a=0596005954&quot; style=&quot;border: none !important; margin: 0px !important; padding: 0px !important;&quot; width=&quot;1&quot; /&gt;&lt;a href=&quot;http://www.amazon.com/Classic-Shell-Scripting-Arnold-Robbins/dp/0596005954?ie=UTF8&amp;amp;tag=widgetsamazon-20&amp;amp;link_code=bil&amp;amp;camp=213689&amp;amp;creative=392969&quot; imageanchor=&quot;1&quot; target=&quot;_blank&quot;&gt;&lt;/a&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; height=&quot;1&quot; src=&quot;http://www.assoc-amazon.com/e/ir?t=widgetsamazon-20&amp;amp;l=bil&amp;amp;camp=213689&amp;amp;creative=392969&amp;amp;o=1&amp;amp;a=0596005954&quot; style=&quot;border: none !important; margin: 0px !important; padding: 0px !important;&quot; width=&quot;1&quot; /&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; change file date stamp&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;touch –t 199906042020 filename&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; move partitions&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;ufsdump 0f – /dev/rdsk/c0t0s0s0 | (cd /home; ufsrestore xv -)&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; lay down file system with 1% minfree and inode density&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;newfs –m1 –i81920 /dev/rdsk/c0t0d0s0&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; check file system&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;fsck /dev/rdsk/c0t0d0s0&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;Q: starting sybase&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;login as sybase, run: ./install/RUN_SYBASE&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;Q: logging in as sybase sa&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;isql -U sa&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; dump a partition and pipe to gzip. Watch &amp;gt; 2GB limit&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;ufsdump 0f – /home | gzip – &amp;gt;/tmp/home.dump.gz&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; rewind offline a tape&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;mt –f /dev/rmt/0 rewoffl&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; only allow 300MB for user /tmp access&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;swap – /tmp tmpfs – yes SIZE=300M&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; verbose interactive restore&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;ufsrestore –ivf /dev/rmt/1&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; remove a printer from a class&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;lpadmin –p level5-line1 –r level5-line&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; truss a command&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;truss –-f -–o /tmp/log.txt&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; [DB] feed a script into sybase&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;isql –Urfe_xfer -Uuser -Ppassword -isqlscript &amp;gt;&amp;gt;blah.txt&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; make a printer class&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;lpadmin –p level5-line1 –c level5-line&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; remove level2-line2 printer from printer class level2-line&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;lpadmin -p level2-line2 -r level2-line&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; add level2-line3 to printer class&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;lpadmin -c level2-line -p level2-line3&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; [DB] how to change your password in isql&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;sp_password password, password-new&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; move a directory&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;tar cf – ./games | (cd /tmp; tar xvBpf – )&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; [DB] run a sybase script, and dump to file&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;$ISQL -i$SCRIPTFILE -U$USER -D$DATABASE -P$PASS_ENC &amp;gt;&amp;gt; $SCRIPTLOGFILE&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; move a directory to another server&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;tar cf – ./games | rsh brucey cd /tmp\; tar xvBpf -&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; check for SUID SGID files&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;ncheck -F ufs -s /dev/dsk/c3t0d0s&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;– remove core files&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;find / -name core –exec rm –f {} \; -o –fstype nfs –prune&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; rebuild man pages&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;catman –w –M man-page-directory or /usr/lib/makewhatis&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; vi command to show special characters&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;: set list&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; adding an account&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;useradd -u 120 –g dls -d /apps/dls –s /bin/ksh -c “comment” -m dls&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; create a mysql database&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;mysqladmin -uroot -ppassword create ebs&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; starting mysql database&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;/etc/rc.d/init.d/mysql.server start&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;/usr/local/bin/safe_mysqld&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; Invoke CPAN module install&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;perl –MCPAN –eshell&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; dump to zip&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;ufsdump 0f – /filesystem | /opt/local/gzip – &amp;gt; /tmp/dump.gz&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; shutdown mysql databse&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;/usr/local/bin/mysqladmin shutdown -ppassword&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;/etc/rc.d/init.d/mysql.server stop&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; test the loading of a module&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;PERL_DL_DEBUG=255 perl -e ‘use CGI;’&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; shows open files&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;fuser –cu /&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; Writing a Daemon:&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;1. edit /etc/services&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;add service and port.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;2. edit /etc/inetd.conf&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;add in: edwardd stream tcp nowait root /bin/sh /bin/sh /home/sextone/bin/SERVER.mine&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;3. kill –HUP inetd.conf&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; how to mount a file system&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;mount /dev/dsk/c3t0d0s4 /apps/data/easysoft/DEVT&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; look at sar log&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;sar –f /var/adm/sa/sa24&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; write file checksums and size&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;cksum filename&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; show storage array info&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;ssaadm display /dev/rdsk/c1t5d2s0&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; show all disks on device d&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;luxadm display d&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; examine for a specific OS finerprint&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;nmap –sS -p 80 -O -v = examine OS&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; show print jobs&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;/usr/ucb/lpq –Plevel6&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; Scan for known ports. log it. do OS scan.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;nmap –sS -F -o foo.log -v -O &lt;a href=&quot;http://www.blogger.com/www.foo.com/24&quot;&gt;&lt;span style=&quot;color: #c0504d;&quot;&gt;www.foo.com//24&lt;/span&gt;&lt;/a&gt; =&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; show status of printer&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;/usr/ucb/lpc status&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; make a swap file:&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;dd if=/dev/zero of=swapfile bs=1024 count=65535&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;mkswap ./swapfile&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;chmod 600 ./swapfile&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;swapon ./swapfile&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; show open files for process&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;lsof –p PID&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; show open files for all TCP connections&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;lsof –iTCP&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; show open files for internet address&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;lsof -iTCP@10.20.2.9&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; as above&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;lsof -i @10.20.2.122&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; examine tcp ports&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;lsof -iTCP@sarah:1-50000&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; show open files for user.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;lsof –u username&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; show processes that has the file in use.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;lsof /apps/cms/ECMS-Server&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; show open files and retry every 5 seconds&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;lsof –p process-id –r 5&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; mount a floppy&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;mount -t vfat /dev/fd0 /mnt/floppy&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; check here for debugging processes and errno.h for errors&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;/usr/include&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;/usr/include/sys&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;/usr/include/sys/errno.h&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; scp a whole directory, preserve mods&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;sudo scp -prv devel webadmin@203.19.123.140:/home/httpd/cgi-bin&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; take processor 2 and 3 offline.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;psradm -f 2 3&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; show processor stats verbose.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;psrinfo –v&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; how to skip grant tables in mysql (over ride security)&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;/usr/local/libexec/mysqld -Sg&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; how to feed in an SQL program&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;mysql&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; rm all files in directories&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;find . -type f -exec rm {} \;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; dump packets to a capture file&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;sudo snoop –o /tmp/tcp.txt cp&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; backup one liner&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;tar cvf – /home/ebs | gzip – &amp;gt; ebs.tar.gz&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; Look at selected packets in capture file&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;sudo snoop -i /tmp/tcp.txt&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; unzip and pipe to tar&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;gzip -dc&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; watch packets from two servers.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;snoop sarah brucey&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; enable ip masquerading&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;/sbin/ipchains -P forward DENY&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;/sbin/ipchains -A forward -s 10.100.100.100/8 -j MASQ&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;-&amp;gt; view su log file&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;cat /var/adm/sulog&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; establish a default router or gateway.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;echo “sagacity.com” &amp;gt; /etc/defaultrouter&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;echo “10.100.100.100 sagacity.com sagacity” &amp;gt;&amp;gt; /etc/hosts&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;change /etc/nsswitch.conf so that hosts has files, dns&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;edit resolv.conf put in&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;search .&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;nameserver 203.7.132.98&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; turn off automounter on /export/home.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;vi /etc/auto_master, comment out /export/home&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; configuration file for sudoers&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;/opt/local/etc/sudoers&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; building ssh-1.2.27 on x86Solaris2.6 needed a few things:&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;/usr/openwin/bin in path&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;/usr/xpg4/bin in path&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;declare AR=”/usr/xpg4/bin/ar”&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;declare NM_PATH=”/usr/xpg4/bin/nm”&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; snoop network packets and get size and time stamp entries.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;snoop -S -ta empa1&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; access perl CPAN&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;perl -MCPAN -e shell&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;install DBI&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; search for no password entries and lock all accounts.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;for i in `passwd –sa | grep NP | awk ‘{print $1’`&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;do&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;echo “locking $i”&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;passwd –l $i&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;done&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; delete from a tar&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;tar –delete -f fs_backup_Sunday.tar home/ebs/tmp&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; Example on backing up files to tape. Must specify non rewinding, else you will over-write the files.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;for file in `ls`&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;do&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;echo “sending $file to tape…”&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;echo `date`&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;tar cvpf /dev/rmt/0n $file&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;done&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; making/adding a partition.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;1. use fdisk to make a parition.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;2. mkfs -t ext2 -c /dev/hda11&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;3. mount -t ext2 /dev/hda11 /opt2&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;4. update /etc/fstab&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; rebuild the windex file&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;catman –w –M /usr/share/man&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; execute tar on remote host sarah and send tarball to standard output,&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;which becomes standard input for tar xvf – and the file gets dumped locally,&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;in this case on crawl. you have to cd to dir before tar or else you&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;will include path in tar&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;ssh maggie “cd $DIRNAME; tar cvf – $BASENAME” | (cd $TPATH; tar xvf – )&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; dump a remote filesystem and send it to local tape drive.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;ssh -–x $fw /usr/sbin/ufsdump 0cf – $fs | dd obs=63k of=$TAPE&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; encrypt filename 1 and output to 1.crypt file&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;crypt &amp;lt; 1 &amp;gt; 1.crypt ; rm 1&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; decrypt filename 1.crypt and stdout to screen&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;crypt &amp;lt; 1.crypt&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;--&amp;gt; send a file to tape&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;tar cvpf /dev/rmt/0 filename&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; quicker way to search and replace in vi&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;: %s/existing/new/g&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; shows where and which shared library files an application uses.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;ldd binary&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; shell script stuff:&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;# repeat a command 100 times&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;x=100&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;while [ $x -gt 0 ]&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;do&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;command&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;x=$(($x-1))&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;done&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; Something very important to remember about partitions&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;It is important to note that Cylinder 0 contains the disklabel, which&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;contains the partition table. A normal filesystem can be placed&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;starting at Cylinder 0, since it will not touch the disklabel.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;If you lay down a raw device, for a database, over Cylinder 0,&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;then you will completely lose all your partitions. You will then&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;have to restore the disklabel, and backup from tape if you happen to do this.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; move a partition&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;find . |cpio -pdm /apps&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; cron structure&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;min hour day-of-month month weekday command&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; PatchDiag Tool. Get patches from:&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;&lt;a href=&quot;http://sunsolve.sun.com/private-cgi/patchpage.pl&quot;&gt;&lt;span style=&quot;color: #c0504d;&quot;&gt;http://sunsolve.sun.com/private-cgi/patchpage.pl&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;patchdiag.xref is available at: &lt;a href=&quot;http://sunsolve.sun.com/sunsolve/patchdiag/&quot;&gt;&lt;span style=&quot;color: #c0504d;&quot;&gt;http://sunsolve.sun.com/sunsolve/patchdiag/&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;/opt/local/bin/patchdiag -x /opt/local/lib/patchdiag.xref &amp;gt; patchdiag.`uname -n`&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; command showing system parameters&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;/usr/sbin/sysdef&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; Get Ambient Temperature of Server&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;/usr/platform/SUNW,Ultra-4/sbin/prtdiag -v&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; good ps formatting showing percent cpu first.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;ps -edf -o pcpu,pid,user,arg&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; full details on ps&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;/usr/bin/ps –A -o user,pid,pcpu,pmem,vsz,rss,tty,s,stime,time,args&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; chown the hidden files as well.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;find . -print -exec chown -R sextone:staff {} \;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; The nsradmin command is a command-line based administrative&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;program for the NetWorker system. Normally nsradmin monitors&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;and modifies NetWorker resources over the network.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;/usr/sbin/nsr/nsradmin&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; Spray a server&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;-c number of packets&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;-d delay in microseconds&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;-l pakcet size in bytes&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;/usr/sbin/spray -c 1 –d 20 -l 4096 maggie&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; Turn on bold.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;bold=`tput smso`&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;offbold=`tput rmso`&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;echo “${bold}You must be the \”root\” user to run this script.${offbold}”&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; good way to send a dir to tape&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;tar cf /dev/rmt/0n directory&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; example of bringing up an interface&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;ifconfig hme0:1 inet 10.2.25.52 up&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; show all connections&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;netstat –f inet&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; rpcinfo makes an RPC call to an RPC server and reports&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;what it finds.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;rpcinfo -b 390109 2 | sort -u&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; rewind a tape fast&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;&amp;lt; /dev/rmt/0&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;--&amp;gt; show loaded modules&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;/usr/sbin/modinfo&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; find world readable files and dirs&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;find / -type d –perm -2 –print&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;find . -type f –perm -2 -print&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; adding in a boot alias, eg:&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;boot sarahroot1 –s&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;nvalias sarahroot1 /sbus@1f,0/sunw,fas@e,8800000/sd@9,0:a&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; clever way to archive&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;tar cvf – `find . –print` &amp;gt;/tmp/dumpfile.tar&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;tar xvf – tee to a file&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;echo “Start Date/Time: `date`” | tee -a $LOG_FILE&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; read a snoop file&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;snoop -i anz-telnet.snoop&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; write a snoop log (this will count the number of connections, which is pretty neat).&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;snoop –osnoop.log sarah&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; set default run level. 5 for gui.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;/etc/inittab&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; show all exported filesystems&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;showmount -e crawl&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; shows all configurable variables for tcp interface.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;sudo ndd -get /dev/tcp&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;- ?&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;eg:&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;sudo ndd -get /dev/tcp tcp_conn_req_max_q&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;128&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;ndd /dev/arp \?&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;ndd /dev/ip \?&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;ndd /dev/tcp \?&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;ndd /dev/udp \?&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;ndd /dev/icmp \?&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; set sticky bit on group files, only the owner can change the mode.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; the +l is mandatory file and record locking while a program&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; is accessing that file.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;chmod g+s,+l file&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; print duplex landscape 4 qudrant printing&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;mpage –t –l –4&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; install a patch&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;installpatch .&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; check to see if a patch has been installed&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;showrev –p |grep package name&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; unzip, untar in a /tmp directory&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;zcat 104708-16.tar.gz | ( cd /tmp; sudo tar xvf – )&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; check out revision level on ssa controller&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;/usr/sbin/ssaadm display controller&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; unzip and untar a file without having to create an intermediate tar file&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;sudo gzip -dc /tmp/270599/post-EOD.tar.gz |tar xvf -&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; selectively extract from a tar archive&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;tar xvf /tmp/iona.tar ./iona/.sh_history&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; send a bunch of files to tape&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;tar cf /tmp/rules.tar ruleb* objects.C *.W&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; examine section 5 of man&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;man -s 5 signal&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; shows signals and definitions of structures, eg sigaction&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;/usr/include/sys/signal.h&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; location of the limits file on solaris&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;/usr/include/limits.h&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; send an attachment via email from command prompt&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;uuencode file.tar.gz file.tar.gz | mailx –s “backup” root@crawl&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; zero a file&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;cat /dev/null &amp;gt; isam.log&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; good way to restore from cdrom a binary file&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;zcat &amp;lt; /cdrom/cdrom0/Solaris_2.6/Product/SUNWcsu/install/reloc.cpio.Z |&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;cpio –idm usr/lib/fs/ufs/ufsrestore&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;--&amp;gt; running su as a user then ssh&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;su – dls-PROD -c “/opt/local/bin/ssh drp-stagger \”cd /tmp; /bin/ls\” ”&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; verify a newfs format&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;sudo newfs –Nv /dev/md/dsk/d96&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; making lost_found. must be 8192 bytes in size.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;mkdir ./lost+found;chown root ./lost+found; chgrp root ./lost+found ;chmod 700 ./lost+found’; cd ./lost+found&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;nofiles=0 ; while [ &quot;$nofiles&quot; -le 650 ] ; do ; /usr/ucb/touch $nofiles ; nofiles=`expr $nofiles + 1` ; done&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; execute lynx&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;lynx -cfg /usr/lib/lynx.cfg&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; sed search example&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;sed ‘/Sep\ 25/!d; /castill/!d’ /var/log/syslo&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt;should only be used at the EEPROM&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;boot –r&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; should be used at single user mode&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;reboot — -r&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; should be used in multiuser mode&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;touch /reconfigure&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; performing a remote dump&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;find MFASYS&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;|cpio -oc |gzip -c&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;|ssh brucey -l chaup dd obs=18k of=/dev/rmt/0n&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;- to extract -&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;cd /ssa/emphasys/sybase/dump&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;dd ibs=18k if=|gunzip -c |cpio –idc&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; boot block located here.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;/usr/platform/`uname –i`/lib/fs/ufs&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; getting a server on the network&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;add hosts entry for IP address&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;clear configs: ifconfig pe0 unplumb&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;ifconfig pe0 10.20.2.27 netmask 255.0.0.0 up&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;route add default 10.20.0.1 1&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;verify the routing table: netstat –rn&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;add resolv.conf entry: domain rabobank.com.au nameserver 192.192.192.252&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;edit /etc/nsswitch.conf change hosts to files, dns&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;lesson here is to unplumb interface, and let ifconfig setup the routing.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;if you specify an ip address and a netmask it will manage&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;the routing and the broadcasting.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; find all, files associated with PID 22240&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;/usr/proc/bin/pfiles 22240&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;find file based on inode&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;find –i number&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;“ncheck –i number&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; good redirection example&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;./a.out trash&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; synchronize files from one server to another. This is useful for&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;synchronizing database dump files, binary files, etc. This is definitely a powerful tool.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;rsync -avz -e ssh –rsync-path=”/usr/local/bin/rsync” `pwd` myhost.com:/home/ebs/public_html&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; Example Awk Script&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;# run with awk -f/tmp/1.awk /etc/group&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;BEGIN { FS = “:” }&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;{ print $1 | “sort” }&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;{ nlines++ }&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;END { print nlines }&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; awk example.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;awk ‘/#/ {print “Got a comment”}’ /etc/hosts&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; delete every 2nd field in file&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;awk ‘{$2= “”; print}’ datafile &amp;gt; datafile.new&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;–&amp;gt; awk average/standard deviation program&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;x1 += $1&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;x2 += $1*$1&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;END {&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;x1 = x1/NR&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;x2 = x2/NR&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;sigma = sqrt(x2 – x1*x1)&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;if (NR &amp;gt; 1) std_err = sigma/sqrt(NR – 1)&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;print “Number of points = ” NR&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;print “Mean = ” x1&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;print “Standard Deviation = ” sigma&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;print “Standard Error = ” std_err&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;These are simple one liner tips for solaris.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;Processor Information:&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;The psrinfo command displays the Processor info on the Sun Server&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;# psrinfo -v&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;Status of virtual processor 0 as of: 08/31/06 12:27:07&lt;br /&gt;
on-line since 08/28/06 01:46:34.&lt;br /&gt;
The sparcv9 processor operates at 296 MHz,&lt;br /&gt;
and has a sparcv9 floating point processor.&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNoSpacing&quot; style=&quot;text-align: center;&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;  &lt;/span&gt;&lt;br /&gt;
&lt;hr align=&quot;center&quot; size=&quot;2&quot; width=&quot;100%&quot; /&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;  &lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;Open Boot Prompt (OBP) revision:&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;The prtconf command displays the Open Boot Prompt revision&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;#prtconf -V&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;OBP 3.29.0 2000/12/20 18:41&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;3.29.0 indicates the revision of the Open Boot Prompt.&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNoSpacing&quot; style=&quot;text-align: center;&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;  &lt;/span&gt;&lt;br /&gt;
&lt;hr align=&quot;center&quot; size=&quot;2&quot; width=&quot;100%&quot; /&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;  &lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;Patch Revision info:&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;The showrev command displays the revision of a particular patch. This helps when you install a version of the patch to check if it is the latest and/or check if it is obsolete.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;#showrev -p |grep&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNoSpacing&quot; style=&quot;text-align: center;&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;  &lt;/span&gt;&lt;br /&gt;
&lt;hr align=&quot;center&quot; size=&quot;2&quot; width=&quot;100%&quot; /&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;  &lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;System Type:&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;The uname command can be used to find the hardware type.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;#uname -i&lt;br /&gt;
&lt;br /&gt;
SUNW,Ultra-60&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;The above command is run on a SPARC Ultra60&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNoSpacing&quot; style=&quot;text-align: center;&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;  &lt;/span&gt;&lt;br /&gt;
&lt;hr align=&quot;center&quot; size=&quot;2&quot; width=&quot;100%&quot; /&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;  &lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;Solaris revision:&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;Use the uname command to find the revision number of your Solaris Operating System.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;#uname -v&lt;br /&gt;
&lt;br /&gt;
Generic_108528-29&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;where 108528-29 is the Solaris patching revision.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;Please note, Newly installed patch revisions will not show until the server is rebooted.&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNoSpacing&quot; style=&quot;text-align: center;&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;  &lt;/span&gt;&lt;br /&gt;
&lt;hr align=&quot;center&quot; size=&quot;2&quot; width=&quot;100%&quot; /&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;  &lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;Solaris Server Version:&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;The uname command can be used to find the Solaris operating system version.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;#uname -r&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;5.8&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;or&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;#uname -a&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;SunOS myserver 5.8 Generic_108528-29 sun4u sparc SUNW,Ultra-60&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span class=&quot;MsoIntenseReference&quot;&gt;where 5.8 indicates Solaris 8.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unixbyexample.blogspot.com/feeds/8645851253616741669/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://unixbyexample.blogspot.com/2011/08/solaris-one-liner.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4087768282268381204/posts/default/8645851253616741669'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4087768282268381204/posts/default/8645851253616741669'/><link rel='alternate' type='text/html' href='http://unixbyexample.blogspot.com/2011/08/solaris-one-liner.html' title='Solaris One liner'/><author><name>Him</name><uri>http://www.blogger.com/profile/01802895914380136446</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4087768282268381204.post-1296306476351861874</id><published>2011-08-28T08:41:00.000-07:00</published><updated>2011-08-28T08:47:07.850-07:00</updated><title type='text'>How do I get Oracle to automatically start when my server boots up?</title><content type='html'>&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Times New Roman&#39;; font-size: medium; &quot;&gt;&lt;p class=&quot;BodyText&quot; style=&quot;margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; text-align: justify; font-size: 14pt; font-family: Garamond; letter-spacing: 0.8pt; &quot;&gt;Oracle provides two &lt;span&gt; &lt;/span&gt;UNIX &lt;span&gt; &lt;/span&gt;scripts that assist DBAs with starting and stopping the database: &lt;i&gt;dbstart &lt;/i&gt;and &lt;i&gt;dbshut&lt;/i&gt;.&lt;i&gt; &lt;/i&gt;&lt;span&gt; &lt;/span&gt;For Windows platforms, the &lt;i&gt;oradim&lt;/i&gt; utility is provided for starting and stopping the Oracle instance.&lt;/p&gt;&lt;p class=&quot;BodyText&quot; style=&quot;margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; text-align: justify; font-size: 14pt; font-family: Garamond; letter-spacing: 0.8pt; &quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;&lt;p class=&quot;BodyText&quot; style=&quot;margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; text-align: justify; font-size: 14pt; font-family: Garamond; letter-spacing: 0.8pt; &quot;&gt;The &lt;i&gt;dbstart&lt;/i&gt; utility reads the &lt;i&gt;oratab&lt;/i&gt; file, shown in the example below.&lt;span&gt;  &lt;/span&gt;The oratab file will reside in either &lt;i&gt;/etc&lt;/i&gt; or &lt;i&gt;/var/opt/oracle&lt;/i&gt;, depending on the &lt;span&gt; &lt;/span&gt;UNIX&lt;span&gt; &lt;/span&gt;version.&lt;span&gt;  &lt;/span&gt;It contains three data items separated by colons:&lt;/p&gt;&lt;p class=&quot;BodyText&quot; style=&quot;margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; text-align: justify; font-size: 14pt; font-family: Garamond; letter-spacing: 0.8pt; &quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;&lt;p class=&quot;CodeListing&quot; style=&quot;margin-top: 0in; margin-right: 0in; margin-left: 0.5in; margin-bottom: 0.0001pt; font-size: 8pt; font-family: &#39;Courier New&#39;; &quot;&gt;ASG920xr:/usr/oracle/9.2.0:Y&lt;/p&gt;&lt;p class=&quot;CodeListing&quot; style=&quot;margin-top: 0in; margin-right: 0in; margin-left: 0.5in; margin-bottom: 0.0001pt; font-size: 8pt; font-family: &#39;Courier New&#39;; &quot;&gt;ASG817xr:/usr/oracle/8.1.7:Y&lt;/p&gt;&lt;p class=&quot;CodeListing&quot; style=&quot;margin-top: 0in; margin-right: 0in; margin-left: 0.5in; margin-bottom: 0.0001pt; font-size: 8pt; font-family: &#39;Courier New&#39;; &quot;&gt;TEST920xr:/usr/oracle/9.2.0:N&lt;/p&gt;&lt;p class=&quot;CodeListing&quot; style=&quot;margin-top: 0in; margin-right: 0in; margin-left: 0.5in; margin-bottom: 0.0001pt; font-size: 8pt; font-family: &#39;Courier New&#39;; &quot;&gt;PROD920xr:/usr/oracle/9.2.0:N&lt;/p&gt;&lt;p class=&quot;BodyText&quot; style=&quot;margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; text-align: justify; font-size: 14pt; font-family: Garamond; letter-spacing: 0.8pt; &quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;&lt;p class=&quot;BodyText&quot; style=&quot;margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; text-align: justify; font-size: 14pt; font-family: Garamond; letter-spacing: 0.8pt; &quot;&gt;The first field is the Oracle SID.&lt;span&gt;  &lt;/span&gt;The second field is the home directory for that Oracle SID.&lt;span&gt;  &lt;/span&gt;The Y or N instructs Oracle whether to start or stop the particular database when either the &lt;i&gt;dbstart&lt;/i&gt; or &lt;i&gt;dbshut&lt;/i&gt; command is issued.&lt;span&gt;  &lt;/span&gt;The &lt;i&gt;dbstart&lt;/i&gt; command simply parses the &lt;i&gt;oratab&lt;/i&gt; file and starts those databases that have a Y in the third field.&lt;span&gt;  &lt;/span&gt;It also uses the &lt;i&gt;ORACLE_HOME&lt;/i&gt; specified in the file to connect internally to the database and issue the &lt;i&gt;startup&lt;/i&gt; command.&lt;/p&gt;&lt;p class=&quot;BodyText&quot; style=&quot;margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; text-align: justify; font-size: 14pt; font-family: Garamond; letter-spacing: 0.8pt; &quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;&lt;p class=&quot;BodyText&quot; style=&quot;margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; text-align: justify; font-size: 14pt; font-family: Garamond; letter-spacing: 0.8pt; &quot;&gt;The &lt;i&gt;dbstart&lt;/i&gt; command can be added to the &lt;span&gt; &lt;/span&gt;UNIX &lt;span&gt; &lt;/span&gt;servers’ initialization or run level scripts.&lt;span&gt;  &lt;/span&gt;This enables &lt;i&gt;dbstart&lt;/i&gt; to be executed each time the machine is booted or when it changes run levels.&lt;span&gt;   &lt;/span&gt;The method for implementing this is platform specific, as we see below.&lt;span&gt; &lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;Header2&quot; style=&quot;margin-top: 12pt; margin-right: 0in; margin-bottom: 12pt; margin-left: 0in; page-break-after: avoid; font-size: 14pt; font-family: Garamond; font-weight: bold; &quot;&gt;&lt;a name=&quot;_Toc41060408&quot;&gt;Auto Start on HP-UX and Solaris&lt;/a&gt;&lt;/p&gt;&lt;p class=&quot;BodyText&quot; style=&quot;margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; text-align: justify; font-size: 14pt; font-family: Garamond; letter-spacing: 0.8pt; &quot;&gt;For HP-UX version 10 and above, the system initialization scripts are contained in /etc/rc&lt;n&gt;.d directories, where “n” is the operating system run-level.&lt;span&gt; &lt;/span&gt;These directories contain scripts that begin with a K or S, followed by a number, and then a file name (S75cron).&lt;span&gt;  &lt;/span&gt;All scripts that begin with “S” are executed at system startup in ascending order of their number.&lt;span&gt;  &lt;/span&gt;Scripts beginning with “K” (&lt;i&gt;Kill&lt;/i&gt;) are called at system shutdown time.&lt;/n&gt;&lt;/p&gt;&lt;p class=&quot;BodyText&quot; style=&quot;margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; text-align: justify; font-size: 14pt; font-family: Garamond; letter-spacing: 0.8pt; &quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;&lt;p class=&quot;BodyText&quot; style=&quot;margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; text-align: justify; font-size: 14pt; font-family: Garamond; letter-spacing: 0.8pt; &quot;&gt;As a general rule of thumb, the Oracle startup script should have a high sequence number (S99dbstart), which will ensure that other system processes have been started prior to Oracle.&lt;span&gt;  &lt;/span&gt;Likewise, the &lt;i&gt;kill &lt;/i&gt;scripts should have a low sequence number in order to shutdown Oracle early in the process (K01dbshut).&lt;/p&gt;&lt;p class=&quot;Header2&quot; style=&quot;margin-top: 12pt; margin-right: 0in; margin-bottom: 12pt; margin-left: 0in; page-break-after: avoid; font-size: 14pt; font-family: Garamond; font-weight: bold; &quot;&gt;&lt;a name=&quot;_Toc41060409&quot;&gt;Auto Start on AIX&lt;/a&gt;&lt;/p&gt;&lt;p class=&quot;BodyText&quot; style=&quot;margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; text-align: justify; font-size: 14pt; font-family: Garamond; letter-spacing: 0.8pt; &quot;&gt;For AIX servers, the system initialization file is &lt;i&gt;/etc/inittab&lt;/i&gt; and the initialization script is &lt;i&gt;/etc/rc&lt;/i&gt;.&lt;span&gt;  &lt;/span&gt;A utility (&lt;i&gt;/usr/sbin/mkitab&lt;/i&gt;) can be used to make an entry in the inittab file.&lt;span&gt;  &lt;/span&gt;The shutdown script for AIX is &lt;i&gt;/usr/sbin/shutdown&lt;/i&gt;, although it should not be modified to support &lt;i&gt;dbshut&lt;/i&gt;.&lt;/p&gt;&lt;p class=&quot;BodyText&quot; style=&quot;margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; text-align: justify; font-size: 14pt; font-family: Garamond; letter-spacing: 0.8pt; &quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;&lt;p class=&quot;BodyText&quot; style=&quot;margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; text-align: justify; font-size: 14pt; font-family: Garamond; letter-spacing: 0.8pt; &quot;&gt;To add the &lt;i&gt;dbstart&lt;/i&gt; utility to the AIX initialization process, the following steps can be performed:&lt;/p&gt;&lt;p class=&quot;BodyText&quot; style=&quot;margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; text-align: justify; font-size: 14pt; font-family: Garamond; letter-spacing: 0.8pt; &quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;&lt;p class=&quot;NumberedList&quot; style=&quot;margin-top: 0in; margin-right: 0in; margin-bottom: 12pt; margin-left: 0.5in; text-align: justify; text-indent: -0.25in; font-size: 14pt; font-family: Garamond; letter-spacing: 0.8pt; &quot;&gt;&lt;span&gt;&lt;span&gt;1.&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;; &quot;&gt;   &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;b&gt;Create the script /etc/&lt;span class=&quot;SpellE&quot;&gt;rc.oracle&lt;/span&gt;.&lt;/b&gt;&lt;span&gt;  &lt;/span&gt;The script should contain the following:&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;CodeListing&quot; style=&quot;margin-top: 0in; margin-right: 0in; margin-left: 0.75in; margin-bottom: 0.0001pt; font-size: 8pt; font-family: &#39;Courier New&#39;; &quot;&gt;su oracle &amp;lt;&lt;eof&lt; p=&quot;&quot;&gt;&lt;/eof&lt;&gt;&lt;/p&gt;&lt;p class=&quot;CodeListing&quot; style=&quot;margin-top: 0in; margin-right: 0in; margin-left: 0.75in; margin-bottom: 0.0001pt; font-size: 8pt; font-family: &#39;Courier New&#39;; &quot;&gt;&amp;lt;$ORACLE_HOME&amp;gt;/bin/dbstart&lt;/p&gt;&lt;p class=&quot;CodeListing&quot; style=&quot;margin-top: 0in; margin-right: 0in; margin-left: 0.75in; margin-bottom: 0.0001pt; font-size: 8pt; font-family: &#39;Courier New&#39;; &quot;&gt;EOF&lt;/p&gt;&lt;p class=&quot;CodeListing&quot; style=&quot;margin-top: 0in; margin-right: 0in; margin-left: 0.75in; margin-bottom: 0.0001pt; font-size: 8pt; font-family: &#39;Courier New&#39;; &quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;&lt;p class=&quot;NumberedList&quot; style=&quot;margin-top: 0in; margin-right: 0in; margin-bottom: 12pt; margin-left: 0.5in; text-align: justify; text-indent: -0.25in; font-size: 14pt; font-family: Garamond; letter-spacing: 0.8pt; &quot;&gt;&lt;b&gt;&lt;span&gt;&lt;span&gt;2.&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;; &quot;&gt;   &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;b&gt;Add the script to the &lt;span class=&quot;SpellE&quot;&gt;inittab&lt;/span&gt; using the &lt;span class=&quot;SpellE&quot;&gt;&lt;i&gt;mkitab&lt;/i&gt;&lt;/span&gt; utility.&lt;span&gt; &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;CodeListing&quot; style=&quot;margin-top: 0in; margin-right: 0in; margin-left: 0.75in; margin-bottom: 0.0001pt; font-size: 8pt; font-family: &#39;Courier New&#39;; &quot;&gt;$ /usr/sbin/mkitab “rcoracle:2:wait:/etc.rc.oracle &amp;gt;/dev/console 2&amp;gt;&amp;amp;1”&lt;span&gt;  &lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;BodyText&quot; style=&quot;margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; text-align: justify; font-size: 14pt; font-family: Garamond; letter-spacing: 0.8pt; &quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;&lt;p class=&quot;BodyText&quot; style=&quot;margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; text-align: justify; font-size: 14pt; font-family: Garamond; letter-spacing: 0.8pt; &quot;&gt;All references to &amp;lt;$ORACLE_HOME&amp;gt; should be replaced with the actual Oracle Home directory.&lt;span&gt;  &lt;/span&gt;Now upon system startup, the &lt;i&gt;dbstart&lt;/i&gt; utility is invoked at run level 2.&lt;/p&gt;&lt;div&gt;--------------------------------------------------&lt;/div&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(34, 34, 34); font-family: sans-serif; font-size: 13px; line-height: 19px; background-color: rgb(255, 255, 255); &quot;&gt;&lt;p style=&quot;margin-top: 0.4em; margin-right: 0px; margin-bottom: 0.5em; margin-left: 0px; line-height: 1.5em; &quot;&gt;Make sure the entry for your database SID in the &lt;i&gt;ORATAB&lt;/i&gt; file ends in a capital &quot;Y&quot;. Eg:&lt;/p&gt;&lt;pre style=&quot;white-space: pre-wrap; padding-top: 1em; padding-right: 1em; padding-bottom: 1em; padding-left: 1em; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dashed; border-right-style: dashed; border-bottom-style: dashed; border-left-style: dashed; border-top-color: rgb(47, 111, 171); border-right-color: rgb(47, 111, 171); border-bottom-color: rgb(47, 111, 171); border-left-color: rgb(47, 111, 171); color: black; background-color: rgb(249, 249, 249); line-height: 1.1em; font-family: monospace, sans-serif; &quot;&gt;#   $ORACLE_SID:$ORACLE_HOME:[N|Y] # ORCL:/u01/app/oracle/product/&lt;wbr&gt;8.0.5:Y # &lt;/pre&gt;&lt;p style=&quot;margin-top: 0.4em; margin-right: 0px; margin-bottom: 0.5em; margin-left: 0px; line-height: 1.5em; &quot;&gt;The scripts for starting and stopping databases are: $ORACLE_HOME/bin/dbstart and dbshut. SQL*Net (or Net8) is started with the lsnrctl command. Add the following entries to your&lt;i&gt;/etc/rc2.d/S99dbstart&lt;/i&gt; (or equivalent - for example HP-UX uses /sbin/rc2.d/*) file:&lt;/p&gt;&lt;pre style=&quot;white-space: pre-wrap; padding-top: 1em; padding-right: 1em; padding-bottom: 1em; padding-left: 1em; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dashed; border-right-style: dashed; border-bottom-style: dashed; border-left-style: dashed; border-top-color: rgb(47, 111, 171); border-right-color: rgb(47, 111, 171); border-bottom-color: rgb(47, 111, 171); border-left-color: rgb(47, 111, 171); color: black; background-color: rgb(249, 249, 249); line-height: 1.1em; font-family: monospace, sans-serif; &quot;&gt;su - oracle -c &quot;/path/to/$ORACLE_HOME/bin/&lt;wbr&gt;dbstart&quot;         # Start DB&#39;s su - oracle -c &quot;/path/to/$ORACLE_HOME/bin/&lt;wbr&gt;lsnrctl start&quot;   # Start listener su - oracle -c &quot;/path/tp/$ORACLE_HOME/bin/&lt;wbr&gt;namesctl start&quot;  # Start OraNames (optional) &lt;/pre&gt;&lt;a name=&quot;1302d4b5ffb1995a_Can_I_trace_a_Unix_process_id_to_a_SID_and_SERIAL.23.3F&quot; style=&quot;color: rgb(0, 43, 184); text-decoration: none; background-color: initial; &quot;&gt;&lt;/a&gt;&lt;h2 style=&quot;color: black; background-color: initial; margin-top: 0px; margin-right: 0px; margin-bottom: 0.6em; margin-left: 0px; padding-top: 0.5em; padding-bottom: 0.17em; border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: rgb(170, 170, 170); font-size: 19px; &quot;&gt;&lt;/h2&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://unixbyexample.blogspot.com/feeds/1296306476351861874/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://unixbyexample.blogspot.com/2011/08/how-do-i-get-oracle-to-automatically.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4087768282268381204/posts/default/1296306476351861874'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4087768282268381204/posts/default/1296306476351861874'/><link rel='alternate' type='text/html' href='http://unixbyexample.blogspot.com/2011/08/how-do-i-get-oracle-to-automatically.html' title='How do I get Oracle to automatically start when my server boots up?'/><author><name>Him</name><uri>http://www.blogger.com/profile/01802895914380136446</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4087768282268381204.post-2421448747836098788</id><published>2009-10-24T03:53:00.000-07:00</published><updated>2009-10-24T04:02:48.960-07:00</updated><title type='text'>How to know the status of tape in a tape drive</title><content type='html'>&lt;strong&gt;&lt;span style=&quot;font-family:Arial;font-size:85%;color:#008080;&quot;&gt; &lt;div dir=&quot;ltr&quot;&gt;Sometime we unknowingly enter the tape in tape drive with write protection on. And when we try to take backup of any file with the below command then we get error :&lt;/div&gt;&lt;div dir=&quot;ltr&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div dir=&quot;ltr&quot;&gt;&lt;a href=&quot;mailto:root@dc-bckup-3&quot; target=&quot;_blank&quot;&gt;root@dc&lt;/a&gt; # tar cvf  /dev/rmt/0 /tmp/template_161009.tar.gz&lt;br /&gt;tar: /dev/rmt/0: Permission  denied&lt;/div&gt; &lt;div dir=&quot;ltr&quot;&gt; &lt;/div&gt;&lt;div dir=&quot;ltr&quot;&gt;In unix to know what causing this problem we have a command mt. &lt;/div&gt; &lt;div dir=&quot;ltr&quot;&gt; &lt;/div&gt; &lt;div dir=&quot;ltr&quot;&gt; &lt;/div&gt; &lt;/span&gt;&lt;/strong&gt;&lt;div dir=&quot;ltr&quot;&gt;&lt;strong&gt;&lt;span style=&quot;font-family:Arial;font-size:85%;color:#008080;&quot;&gt;&lt;a href=&quot;mailto:root@dc-bckup-3&quot; target=&quot;_blank&quot;&gt;root@dc&lt;/a&gt; # mt -f /dev/rmt/0 status&lt;br /&gt;HP DDS-4 DAT (Sun) tape drive:&lt;br /&gt;   sense  key(0x7)= Write Protected   residual= 0   retries= 0&lt;br /&gt;   file no= 0   block  no= 0&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;&lt;div dir=&quot;ltr&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;   style=&quot;font-family:Arial;color:#008080;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div dir=&quot;ltr&quot;&gt;&lt;strong&gt;&lt;span style=&quot;font-family:Arial;font-size:85%;color:#008080;&quot;&gt;The above command clearly shows that the problem was write protection of the tape drive. After correcting the protection level of tape(that you have to do manually i.e eject the tape and shift the write protection button) the above command will show the status as&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;mailto:root@dc-bckup-3&quot; target=&quot;_blank&quot;&gt;&lt;/a&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;&lt;div dir=&quot;ltr&quot;&gt;&lt;strong&gt;&lt;span style=&quot;font-family:Arial;font-size:85%;color:#008080;&quot;&gt;&lt;a href=&quot;mailto:root@dc-bckup-3&quot; target=&quot;_blank&quot; style=&quot;text-decoration: none;&quot;&gt;root@dc&lt;/a&gt; # mt  -f /dev/rmt/0 status&lt;br /&gt;HP DDS-4 DAT (Sun) tape drive:&lt;br /&gt;   sense key(0x0)= No  Additional Sense   residual= 0   retries= 0&lt;br /&gt;   file no= 0   block no= 0&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unixbyexample.blogspot.com/feeds/2421448747836098788/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://unixbyexample.blogspot.com/2009/10/how-to-know-status-of-tape-in-tape.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4087768282268381204/posts/default/2421448747836098788'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4087768282268381204/posts/default/2421448747836098788'/><link rel='alternate' type='text/html' href='http://unixbyexample.blogspot.com/2009/10/how-to-know-status-of-tape-in-tape.html' title='How to know the status of tape in a tape drive'/><author><name>Him</name><uri>http://www.blogger.com/profile/01802895914380136446</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>