<?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-5197576949846124321</id><updated>2024-08-29T06:19:08.235+05:30</updated><title type='text'>Solaris 10  Administration</title><subtitle type='html'>solaris 10 basic and administration commands,useful for doing certification in solaris 10 System administration . SCSA 200 and SCSA 202 exam material included with clear explanation</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://solaris10commands.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5197576949846124321/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://solaris10commands.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/5197576949846124321/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>krishna moorthi</name><uri>http://www.blogger.com/profile/16554817105973672492</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/-lNMwYkqifIY/T2WLHvNdrEI/AAAAAAAAA6E/zB22irt8Vuo/s220/KM.png'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>26</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5197576949846124321.post-7700004507396037067</id><published>2019-06-30T04:49:00.000+05:30</published><updated>2019-06-30T04:49:13.698+05:30</updated><title type='text'>Internet Service Daemon (inetd)</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
The client-server model describes the communication process between two computers or programs. &lt;br /&gt;
The client system makes a service request to the server system, then the server system fulﬁlls the request. &lt;br /&gt;
Although programs can use the client-server model internally in a single computer, the model is more widely used across a network. &lt;br /&gt;
The client-server model provides a way to distribute services efﬁciently across multiple locations on a network.&lt;br /&gt;
&lt;br /&gt;
The client-server model describes network services and the client programs of those services.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Client Processes&lt;br /&gt;
&lt;br /&gt;
The client is a host or a process that uses services from another host or program, known as a server.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Server Processes&lt;br /&gt;
&lt;br /&gt;
The server is a host or a process that provides services to another program&lt;br /&gt;
known as a client. &lt;br /&gt;
Client-server computing is a key factor in supporting network computing&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Starting Server Processes&lt;br /&gt;
&lt;br /&gt;
Internet Service Daemon (inetd)&lt;br /&gt;
&lt;br /&gt;
The inetd daemon is a special network process that runs on each system and starts server processes that do not automatically start at boot time&lt;br /&gt;
The inetd daemon is the server process for both the standard Internet services and Sun Remote Procedure Call (Sun RPC) services&lt;br /&gt;
&lt;br /&gt;
Network services can be independently enabled or disabled using the inetadm command.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# inetadm&amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to list the current state of all network facilities&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note – When a network service is affected, any related services are also affected. By disabling one service, a number of other services may become unavailable.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# inetadm | grep telnet&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to view if telnet is enabled or not&lt;br /&gt;
&lt;br /&gt;
# inetadm -d telnet&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to disable the telnet facility&lt;br /&gt;
&lt;br /&gt;
# inetadm | grep telnet&lt;br /&gt;
&lt;br /&gt;
# inetadm -e telnet&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to enable the telnet facility&lt;br /&gt;
&lt;br /&gt;
# inetadm | grep telnet&lt;br /&gt;
&lt;br /&gt;
# inetadm -l telnet&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to list the details about telnet&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Network Ports&lt;br /&gt;
&lt;br /&gt;
Network ports help transport protocols to distinguish between multiple service requests arriving at a given host computer&lt;br /&gt;
The TCP and UDP transport protocols identify ports using a positive integer between 1 and 65535, which is called a port number. &lt;br /&gt;
Network ports can be divided into two categories, well-known ports and ephemeral (short-lived) ports.&lt;br /&gt;
&lt;br /&gt;
If a port number is not pre-assigned, the operating system allows an application to choose an unused port number.&lt;br /&gt;
&lt;br /&gt;
A client often communicates with a server through a well-known port.&lt;br /&gt;
&lt;br /&gt;
Well-known ports are stored in the /etc/inet/services ﬁle.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# grep telnet /etc/inet/services&amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to view the well-known port of a &lt;br /&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; specific service&lt;br /&gt;
&lt;br /&gt;
# grep mail /etc/inet/services&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Starting RPC Services&lt;br /&gt;
&lt;br /&gt;
RPC services are assigned a unique program number by the programmer when they are written.&lt;br /&gt;
The RPC services are not typically assigned to well-known ports.&lt;br /&gt;
RPC services started at boot time with startup scripts run on available ports above 32768. &lt;br /&gt;
&lt;br /&gt;
The rpcbind process associates RPC program numbers with port numbers. &lt;br /&gt;
&lt;br /&gt;
# grep rpcbind /etc/services&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Listing Registered RPC Services&lt;br /&gt;
&lt;br /&gt;
syntax: rpcinfo -p [ host ]&lt;br /&gt;
&lt;br /&gt;
# rpcinfo -p&amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to list all services registered with rpcbind process&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp; program vers proto&amp;nbsp; port service&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; 100000&amp;nbsp;&amp;nbsp;&amp;nbsp; 4&amp;nbsp;&amp;nbsp; tcp&amp;nbsp;&amp;nbsp; 111 rpcbind&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; 100000&amp;nbsp;&amp;nbsp;&amp;nbsp; 3&amp;nbsp;&amp;nbsp; tcp&amp;nbsp;&amp;nbsp; 111 rpcbind&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; 100000&amp;nbsp;&amp;nbsp;&amp;nbsp; 3&amp;nbsp;&amp;nbsp; udp&amp;nbsp;&amp;nbsp; 111 rpcbind&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; 100000&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp; udp&amp;nbsp;&amp;nbsp; 111 rpcbind&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; 100232&amp;nbsp;&amp;nbsp; 10&amp;nbsp;&amp;nbsp; udp 32772 sadmind&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; 100083&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp; tcp 32771&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
Deleting RPC Service Registration&lt;br /&gt;
&lt;br /&gt;
syntax: rpcinfo -d prognum versnum&lt;br /&gt;
&lt;br /&gt;
# rpcinfo -d 100012 1 &amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; This command unregisters the RPC service with &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; program number 100012 and version number 1. &lt;br /&gt;
&lt;br /&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; The deleted RPC service that uses program number &lt;br /&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; 100012 is sprayd. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To register the sprayd service again, restart the inetd daemon as follows:&lt;br /&gt;
&lt;br /&gt;
# svcadm disable svc:/network/rpp/spray:udp&lt;br /&gt;
# svcadm enable svc:/network/rpp/spray:udp&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note – When using the rpcinfo -d command to unregister an RPC service, the RPC service can be identiﬁed using either the service name or the program number.&lt;/div&gt;
</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5197576949846124321/posts/default/7700004507396037067'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5197576949846124321/posts/default/7700004507396037067'/><link rel='alternate' type='text/html' href='http://solaris10commands.blogspot.com/2019/06/internet-service-daemon-inetd.html' title='Internet Service Daemon (inetd)'/><author><name>krishna moorthi</name><uri>http://www.blogger.com/profile/16554817105973672492</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/-lNMwYkqifIY/T2WLHvNdrEI/AAAAAAAAA6E/zB22irt8Vuo/s220/KM.png'/></author></entry><entry><id>tag:blogger.com,1999:blog-5197576949846124321.post-2695647059265922862</id><published>2019-06-30T04:48:00.000+05:30</published><updated>2019-06-30T04:48:42.013+05:30</updated><title type='text'>The Network File System (NFS) is a client-server service</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
The Network File System (NFS) is a client-server service that lets users view, store, and update ﬁles on a remote computer as though they were on their own local computer.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# vi /etc/dfs/dfstab&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to share local resources&lt;br /&gt;
&lt;br /&gt;
# share [-F fstype] [ -o options] [-d &quot;&amp;lt;text&amp;gt;&quot;] &amp;lt;pathname&amp;gt; [resource]&lt;br /&gt;
# .e.g,&lt;br /&gt;
# share -F nfs -o rw=engineering -d &quot;home dirs&quot; /export/home2&lt;br /&gt;
&lt;br /&gt;
share -F nfs -o ro&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; -d &quot;Shared data files&quot;&amp;nbsp; /usr/local/data&lt;br /&gt;
share -F nfs -o rw,root=sys-01&amp;nbsp; -d &quot;Database files&quot;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /rdbms_files&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note – If svc:/network/nfs/server service does not ﬁnd any share commands in the /etc/dfs/dfstab ﬁle, it does not start the NFS server daemons.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# cat /etc/dfs/sharetab&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to view local resources currently shared&lt;br /&gt;
&lt;br /&gt;
# cat /etc/dfs/fstypes&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to view a system’s distributed ﬁle &lt;br /&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; system types&lt;br /&gt;
&lt;br /&gt;
# cat /etc/rmtab&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to view ﬁle systems remotely mounted by &lt;br /&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; NFS clients&lt;br /&gt;
sys-03:/usr/local/data&lt;br /&gt;
sys-02:/export/config&lt;br /&gt;
#ys-02:/export/config&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Managing the NFS Server Daemons&lt;br /&gt;
&lt;br /&gt;
# svcadm enable svc:/network/nfs/server&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to start the NFS server &lt;br /&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; daemons&lt;br /&gt;
&lt;br /&gt;
Note – If the svc:/network/nfs/server service does not ﬁnd any share commands in the /etc/dfs/dfstab ﬁle, it does not start the NFS server daemons.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# svcadm disable svc:/network/nfs/server&amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to stop the NFS server &lt;br /&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; daemons&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
NFS Server Commands&lt;br /&gt;
&lt;br /&gt;
share&amp;nbsp;&amp;nbsp;&amp;nbsp; Makes a local directory on an NFS server available for mounting. It &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; also displays the contents of the /etc/dfs/sharetab ﬁle.&lt;br /&gt;
&lt;br /&gt;
unshare&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; Makes a previously available directory unavailable for &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; client side mount operations.&lt;br /&gt;
&lt;br /&gt;
shareall&amp;nbsp;&amp;nbsp;&amp;nbsp; Reads and executes share statements in the /etc/dfs/dfstab &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ﬁle.&lt;br /&gt;
&lt;br /&gt;
unshareall&amp;nbsp;&amp;nbsp;&amp;nbsp; Makes previously shared resources unavailable.&lt;br /&gt;
&lt;br /&gt;
dfshares&amp;nbsp;&amp;nbsp;&amp;nbsp; Lists available shared resources from a remote or local NFS &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; server.&lt;br /&gt;
&lt;br /&gt;
dfmounts&amp;nbsp;&amp;nbsp;&amp;nbsp; Displays a list of NFS server directories that are currently &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; mounted.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Configuringthe NFS Server for Sharing Resources&lt;br /&gt;
&lt;br /&gt;
syntax: share [ -F nfs ] [ -o options ] [ -d description ] [ pathname ]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# share -o ro /usr/local/data&amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to share a ﬁle resource&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# share -F nfs -o ro directory&amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; restricts access to NFS-mounted &lt;br /&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; resources to read-only access&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# share -F nfs -o ro,rw=client1 directory&amp;nbsp;&amp;nbsp; ==&amp;gt; Restricts access to NFS &lt;br /&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; mounted resources to read-only &lt;br /&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; access; however, the NFS server &lt;br /&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; accepts read &amp;amp; write requests &lt;br /&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; from client named client1.&lt;br /&gt;
&lt;br /&gt;
# share -F nfs -o root=client2 directory&amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; Allows the root user on the &lt;br /&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; client named client2 to have &lt;br /&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; superuser access to the NFS &lt;br /&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; mounted resources&lt;br /&gt;
&lt;br /&gt;
This command shares the directory to the four named hosts only. The hosts, client1 and client2, have read-only access. The hosts client3 and client4 have read-write access. The root user from host client4 has root privilege access to the shared directory and its contents.&lt;br /&gt;
&lt;br /&gt;
# share -F nfs -o ro=client1:client2,rw=client3:client4,root=client4 directory&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# share&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to display a list of all currently shared ﬁle resources&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Making File Resources Unavailable for Mounting&lt;br /&gt;
&lt;br /&gt;
syntax: unshare [ -F nfs ] pathname&lt;br /&gt;
&lt;br /&gt;
# unshare /usr/local/data&amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to make the /usr/local/data directory &lt;br /&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; unavailable for client-side mount &lt;br /&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; operations&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Sharing and Unsharing All NFS Resources&lt;br /&gt;
&lt;br /&gt;
shareall [ -F nfs ]&lt;br /&gt;
&lt;br /&gt;
unshareall [ -F nfs ]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# shareall&amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to share all resources listed in /etc/dfs/dfstab ﬁle&lt;br /&gt;
&lt;br /&gt;
# unshareall&amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to unshare currently shared ﬁle resources listed in &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; /etc/dfs/sharetab ﬁle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Displaying Currently Shared NFS Resources&lt;br /&gt;
&lt;br /&gt;
dfshares [ -F nfs ] [ host ]&lt;br /&gt;
&lt;br /&gt;
# dfshares&amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to display the resources currently being shared by the &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; local server&lt;br /&gt;
&lt;br /&gt;
# dfshares sys-01&amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to display resources shared by another server&lt;br /&gt;
&lt;br /&gt;
# share&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to display a list of all currently shared ﬁle resources&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Displaying NFS Mounted Resources&lt;br /&gt;
&lt;br /&gt;
dfmounts [ -F nfs ] [ server ]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# dfmounts&amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to display remotely mounted NFS resource information&lt;br /&gt;
&lt;br /&gt;
RESOURCE&amp;nbsp;&amp;nbsp; SERVER PATHNAME&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CLIENTS&lt;br /&gt;
&amp;nbsp; -&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sys-02 /usr/local/data sys-03&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Managing the NFS Client&lt;br /&gt;
&lt;br /&gt;
Managing the NFS Client Daemons&lt;br /&gt;
&lt;br /&gt;
# svcadm restart svc:/network/nfs/client&amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to start NFS client &lt;br /&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; daemons&lt;br /&gt;
&lt;br /&gt;
NFS Client Commands&lt;br /&gt;
&lt;br /&gt;
# dfshares servername&lt;br /&gt;
&lt;br /&gt;
# mount&lt;br /&gt;
&lt;br /&gt;
# umount&lt;br /&gt;
&lt;br /&gt;
# mountall&lt;br /&gt;
&lt;br /&gt;
# umountall&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Configuring the NFS Client for Mounting Resources&lt;br /&gt;
&lt;br /&gt;
# dfshares sys-01&amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to list the resources of an NFS server&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Mounting a remote file resource&lt;br /&gt;
&lt;br /&gt;
mount [ -F nfs ] [ -o options ] server:pathname mount_point&lt;br /&gt;
&lt;br /&gt;
# mount sys-02:/rdbms_files /mnt&amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to mount a remote file resource&lt;br /&gt;
&lt;br /&gt;
# mount -o ro sys-45,sys-43,sys-41:/multi_homed_data /remote_shared_data&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the above example, if sys-45 server is unavailable, the request passes to&lt;br /&gt;
the next server on the list, sys-43, and then to the sys-41 server. This process works if the resource mounted from all of the servers is the same.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Unmounting a remote file resource&lt;br /&gt;
&lt;br /&gt;
umount server:pathname or mount_point&lt;br /&gt;
&lt;br /&gt;
# umount /rdbms_files&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to unmount a remote file resource&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Mounting &amp;amp; Unmounting remote file resources only (resources listed in the &lt;br /&gt;
/etc/vfstab ﬁle with a mount at boot value of yes)&lt;br /&gt;
&lt;br /&gt;
mountall -r [ -F nfs ]&lt;br /&gt;
&lt;br /&gt;
umountall -r [ -F nfs ]&lt;br /&gt;
&lt;br /&gt;
# mountall -r&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to mount all remote file resources only&lt;br /&gt;
&lt;br /&gt;
# umountall -r&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to unmount all remote ﬁle resuources only&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note – Use the -F FSType with the mountall and umountall commands to specify FSType as the ﬁle system type. You do not have to specify the -F nfs option, because NFS is listed as the default remote ﬁle system type.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Mounting Remote Resources at Boot Time&lt;br /&gt;
&lt;br /&gt;
Enter appropriate entries in the client’s /etc/vfstab ﬁle to mount remote ﬁle resources at boot time&lt;br /&gt;
&lt;br /&gt;
# vi /etc/vfstab&lt;br /&gt;
&lt;br /&gt;
#device&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; device&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mount&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FS&amp;nbsp;&amp;nbsp; fsck mount&amp;nbsp;&amp;nbsp; mount&lt;br /&gt;
#to mount&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; to fsck&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; point&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; type pass at boot options&lt;br /&gt;
#&lt;br /&gt;
sys-02:/usr/local/data&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - /usr/remote_data&amp;nbsp; nfs&amp;nbsp;&amp;nbsp; -&amp;nbsp;&amp;nbsp; yes&amp;nbsp;&amp;nbsp;&amp;nbsp; soft,bg&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
bg|fg&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; During an NFS mount request, if the ﬁrst mount attempt &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; fails, retry in the background or foreground.&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; The default is to retry in the foreground.&lt;br /&gt;
&lt;br /&gt;
soft|hard&amp;nbsp;&amp;nbsp;&amp;nbsp; When the number of retransmissions has reached the number &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; speciﬁed in the retrans=n option, a ﬁle system mounted with &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; the soft option reports an error on the request, and stops &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; trying. A ﬁle system mounted with the hard option prints a &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; warning message and continues to try to process the request.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; The default is a hard mount.&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; Although the soft option and the bg option are not the &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; default settings, combining them usually results in the &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; fastest client boot when NFS mounting problems occur.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Enabling NFS Server Logging&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note – Server logging is not supported in NFS version 4.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Create tag entries for each of the server’s shared resources. &lt;br /&gt;
The global tag deﬁnes the default values.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# cat /etc/nfs/nfslog.conf&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to configure NFS log paths&lt;br /&gt;
&lt;br /&gt;
# NFS server log configuration file.&lt;br /&gt;
#&lt;br /&gt;
# &amp;lt;tag&amp;gt; [ defaultdir=&amp;lt;dir_path&amp;gt; ] \&lt;br /&gt;
#&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [ log=&amp;lt;logfile_path&amp;gt; ] [ fhtable=&amp;lt;table_path&amp;gt; ] \&lt;br /&gt;
#&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [ buffer=&amp;lt;bufferfile_path&amp;gt; ] [ logformat=basic|extended ]&lt;br /&gt;
#&lt;br /&gt;
global&amp;nbsp; defaultdir=/var/nfs \&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; log=nfslog fhtable=fhtable buffer=nfslog_workbuffer&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To easily identify the log ﬁles for different shared resources, place them in&lt;br /&gt;
separate directories. For example:&lt;br /&gt;
&lt;br /&gt;
# cat /etc/nfs/nfslog.conf&lt;br /&gt;
&lt;br /&gt;
# NFS server log configuration file.&lt;br /&gt;
#&lt;br /&gt;
global defaultdir=/var/nfs \&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; log=nfslog fhtable=fhtable buffer=nfslog_workbuffer&lt;br /&gt;
public defaultdir=/var/nfs/public \&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; log=nfslog fhtable=fhtable buffer=nfslog_workbuffer&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note – Create /var/nfs/public directory before starting NFS server logging.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Initiating NFS Logging&lt;br /&gt;
&lt;br /&gt;
1. Become superuser.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2. Optional: Change the ﬁle system conﬁguration settings. &lt;br /&gt;
In the /etc/nfs/nfslog.conf ﬁle, either:&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Edit the default settings for all ﬁle systems by changing the data&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; corresponding to the global tag.&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Add a new tag for the speciﬁc ﬁle system.&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &lt;br /&gt;
If you do not need these changes, do not edit this ﬁle.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
3. Edit the /etc/dfs/dfstab ﬁle to add an entry for ﬁle systems for which &lt;br /&gt;
&amp;nbsp;&amp;nbsp; you want to enable NFS server logging.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp; Either:&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Use log option without specifying a tag - to use the global tag as &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; default. &lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Specify a tag - with the log=tag option&lt;br /&gt;
&lt;br /&gt;
share -F nfs -olog /export/sys44_data&lt;br /&gt;
share -F nfs -olog=public /export/sys44_data&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
4. Check that the NFS service is running on the server, if not start it.&lt;br /&gt;
&lt;br /&gt;
# svcadm enable svc:/network/nfs/server&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
5. Run the share command to verify that the correct options are listed.&lt;br /&gt;
&lt;br /&gt;
# share&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
6. If you add additional entries to /etc/dfs/dfstab ﬁle, share the ﬁle &lt;br /&gt;
&amp;nbsp;&amp;nbsp; system by rebooting the system or entering the shareall command.&lt;br /&gt;
&lt;br /&gt;
# shareall&lt;/div&gt;
</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5197576949846124321/posts/default/2695647059265922862'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5197576949846124321/posts/default/2695647059265922862'/><link rel='alternate' type='text/html' href='http://solaris10commands.blogspot.com/2019/06/the-network-file-system-nfs-is-client.html' title='The Network File System (NFS) is a client-server service'/><author><name>krishna moorthi</name><uri>http://www.blogger.com/profile/16554817105973672492</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/-lNMwYkqifIY/T2WLHvNdrEI/AAAAAAAAA6E/zB22irt8Vuo/s220/KM.png'/></author></entry><entry><id>tag:blogger.com,1999:blog-5197576949846124321.post-3449497881042708893</id><published>2011-04-15T18:09:00.000+05:30</published><updated>2011-04-15T18:09:35.537+05:30</updated><title type='text'>Sun solaris10  Installation with help of vitrual Box</title><content type='html'>&lt;div&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;Sun solaris10  Installation with help of vitrual Box&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;b&gt;&lt;iframe width=&quot;425&quot; height=&quot;344&quot; src=&quot;http://www.youtube.com/embed/aahLuIbPgKw?fs=1&quot; frameborder=&quot;0&quot; allowfullscreen=&quot;&quot;&gt;&lt;/iframe&gt;&lt;/b&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Step by step method to install solaris 10 operating system &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;1.Install virtual Box in your System available for window , linux , mac .&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;open Source software . so no need to pay money .support open source software and contribute your skills .&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;   &lt;/b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(14, 119, 74); font-family: arial, sans-serif; line-height: 18px; font-size: small; &quot;&gt;www.&lt;b&gt;virtualbox&lt;/b&gt;.org/&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;   &gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;line-height: 18px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;   &gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;line-height: 18px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Georgia, serif; font-size: 16px; color: rgb(0, 0, 0); line-height: normal; &quot;&gt;&lt;div&gt;2. Then follow reaming steps in above video&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5197576949846124321/posts/default/3449497881042708893'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5197576949846124321/posts/default/3449497881042708893'/><link rel='alternate' type='text/html' href='http://solaris10commands.blogspot.com/2011/04/sun-solaris10-installation-with-help-of.html' title='Sun solaris10  Installation with help of vitrual Box'/><author><name>krishna moorthi</name><uri>http://www.blogger.com/profile/16554817105973672492</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/-lNMwYkqifIY/T2WLHvNdrEI/AAAAAAAAA6E/zB22irt8Vuo/s220/KM.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://img.youtube.com/vi/aahLuIbPgKw/default.jpg" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-5197576949846124321.post-5268794910038552561</id><published>2011-04-15T00:31:00.000+05:30</published><updated>2011-04-15T00:31:00.409+05:30</updated><title type='text'>Basic Commands (Unix)</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;b&gt;General Unix Commands :&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;table border=&quot;1&quot; cellpadding=&quot;10&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;th align=&quot;LEFT&quot; bgcolor=&quot;#EEEEFF&quot;&gt;Command&lt;/th&gt;&lt;th align=&quot;LEFT&quot; bgcolor=&quot;#EEEEFF&quot;&gt;Example&lt;/th&gt;&lt;th align=&quot;LEFT&quot; bgcolor=&quot;#EEEEFF&quot;&gt;Description&lt;/th&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;TOP&quot;&gt;1. &amp;nbsp; &amp;nbsp;&lt;b&gt;&amp;nbsp;ls&lt;/b&gt;&lt;/td&gt;&lt;td valign=&quot;TOP&quot;&gt;ls&lt;br /&gt;
ls -alF&lt;/td&gt;&lt;td valign=&quot;TOP&quot;&gt;Lists files in current directory&lt;br /&gt;
List in long format&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;TOP&quot;&gt;2. &amp;nbsp; &amp;nbsp;&lt;b&gt;&amp;nbsp;cd&lt;dirname&gt;&lt;/dirname&gt;&lt;/b&gt;&lt;/td&gt;&lt;td valign=&quot;TOP&quot;&gt;cd tempdir&lt;br /&gt;
cd ..&lt;br /&gt;
cd ~dhyatt/web-docs&lt;/td&gt;&lt;td valign=&quot;TOP&quot;&gt;Change directory to tempdir&lt;br /&gt;
Move back one directory&lt;br /&gt;
Move into dhyatt&#39;s web-docs directory&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;TOP&quot;&gt;3. &amp;nbsp; &amp;nbsp;&lt;b&gt;&amp;nbsp;mkdir&lt;dirname&gt;&lt;/dirname&gt;&lt;/b&gt;&lt;/td&gt;&lt;td valign=&quot;TOP&quot;&gt;mkdir graphics&lt;/td&gt;&lt;td valign=&quot;TOP&quot;&gt;Make a directory called graphics&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;TOP&quot;&gt;4. &amp;nbsp; &amp;nbsp;&lt;b&gt;&amp;nbsp;rmdir&lt;dirname&gt;&lt;/dirname&gt;&lt;/b&gt;&lt;/td&gt;&lt;td valign=&quot;TOP&quot;&gt;rmdir emptydir&lt;/td&gt;&lt;td valign=&quot;TOP&quot;&gt;Remove directory (must be empty)&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;TOP&quot;&gt;5. &amp;nbsp; &amp;nbsp;&lt;b&gt;&amp;nbsp;cp&lt;source&gt;&lt;/source&gt;&lt;dest&gt;&lt;/dest&gt;&lt;/b&gt;&lt;/td&gt;&lt;td valign=&quot;TOP&quot;&gt;cp file1 web-docs&lt;br /&gt;
cp file1 file1.bak&lt;/td&gt;&lt;td valign=&quot;TOP&quot;&gt;Copy file into directory&lt;br /&gt;
Make backup of file1&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;TOP&quot;&gt;6. &amp;nbsp; &amp;nbsp;&lt;b&gt;&amp;nbsp;rm&lt;filename&gt;&lt;/filename&gt;&lt;/b&gt;&lt;/td&gt;&lt;td valign=&quot;TOP&quot;&gt;rm file1.bak&lt;br /&gt;
rm *.tmp&lt;/td&gt;&lt;td valign=&quot;TOP&quot;&gt;Remove or delete file&lt;br /&gt;
Remove all file&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;TOP&quot;&gt;7. &amp;nbsp; &amp;nbsp;&lt;b&gt;&amp;nbsp;mv&lt;filename&gt;&lt;/filename&gt;&lt;/b&gt;&lt;/td&gt;&lt;td valign=&quot;TOP&quot;&gt;mv old.html new.html&lt;/td&gt;&lt;td valign=&quot;TOP&quot;&gt;Move or rename files&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;TOP&quot;&gt;8. &amp;nbsp; &amp;nbsp;&lt;b&gt;&amp;nbsp;more&lt;filename&gt;&lt;/filename&gt;&lt;/b&gt;&lt;/td&gt;&lt;td valign=&quot;TOP&quot;&gt;more index.html&lt;/td&gt;&lt;td valign=&quot;TOP&quot;&gt;Look at file, one page at a time&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;TOP&quot;&gt;9. &amp;nbsp; &amp;nbsp;&lt;b&gt;&amp;nbsp;lpr&lt;filename&gt;&lt;/filename&gt;&lt;/b&gt;&lt;/td&gt;&lt;td valign=&quot;TOP&quot;&gt;lpr index.html&lt;/td&gt;&lt;td valign=&quot;TOP&quot;&gt;Send file to printer&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;TOP&quot;&gt;10. &amp;nbsp;&lt;b&gt;&amp;nbsp;man&lt;command&gt;&lt;/command&gt;&lt;/b&gt;&lt;/td&gt;&lt;td valign=&quot;TOP&quot;&gt;man ls&lt;/td&gt;&lt;td valign=&quot;TOP&quot;&gt;Online manual (help) about command&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5197576949846124321/posts/default/5268794910038552561'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5197576949846124321/posts/default/5268794910038552561'/><link rel='alternate' type='text/html' href='http://solaris10commands.blogspot.com/2011/04/basic-commands-unix.html' title='Basic Commands (Unix)'/><author><name>krishna moorthi</name><uri>http://www.blogger.com/profile/16554817105973672492</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/-lNMwYkqifIY/T2WLHvNdrEI/AAAAAAAAA6E/zB22irt8Vuo/s220/KM.png'/></author></entry><entry><id>tag:blogger.com,1999:blog-5197576949846124321.post-2453350897549637912</id><published>2011-04-15T00:14:00.000+05:30</published><updated>2011-04-15T00:14:40.334+05:30</updated><title type='text'>Upcoming  Solaris 11 OS Features</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, Luxi-sans, &#39;Nimbus Sans L&#39;, sans-serif; font-size: 12px;&quot;&gt;&lt;b&gt;Oracle Solaris 11 Express includes :&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, Luxi-sans, &#39;Nimbus Sans L&#39;, sans-serif; font-size: 12px;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, Luxi-sans, &#39;Nimbus Sans L&#39;, sans-serif; font-size: 12px;&quot;&gt;&amp;nbsp;&amp;nbsp;GNOME Desktop Environment,&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, Luxi-sans, &#39;Nimbus Sans L&#39;, sans-serif; font-size: 12px;&quot;&gt;GNU tools,&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, Luxi-sans, &#39;Nimbus Sans L&#39;, sans-serif; font-size: 12px;&quot;&gt;&amp;nbsp;a network-based software management system.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, Luxi-sans, &#39;Nimbus Sans L&#39;, sans-serif; font-size: 12px;&quot;&gt;&lt;b&gt;&amp;nbsp;The OS also includes state-of-the art features&lt;/b&gt;:&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, Luxi-sans, &#39;Nimbus Sans L&#39;, sans-serif; font-size: 12px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, Luxi-sans, &#39;Nimbus Sans L&#39;, sans-serif; font-size: 12px;&quot;&gt;Oracle Solaris ZFS file system,&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, Luxi-sans, &#39;Nimbus Sans L&#39;, sans-serif; font-size: 12px;&quot;&gt;&amp;nbsp;Oracle Solaris Dynamic Tracing (DTrace) framework,&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, Luxi-sans, &#39;Nimbus Sans L&#39;, sans-serif; font-size: 12px;&quot;&gt;&amp;nbsp;containers for running applications in protected environments,&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, Luxi-sans, &#39;Nimbus Sans L&#39;, sans-serif; font-size: 12px;&quot;&gt;&amp;nbsp;&amp;nbsp;advanced network virtualization capabilities.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, Luxi-sans, &#39;Nimbus Sans L&#39;, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 12px;&quot;&gt;If you Like to download solaris 11 . please click below link&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, Luxi-sans, &#39;Nimbus Sans L&#39;, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 12px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, Luxi-sans, &#39;Nimbus Sans L&#39;, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 12px;&quot;&gt;&lt;a href=&quot;http://www.oracle.com/technetwork/server-storage/solaris11/downloads/index.html&quot;&gt;http://www.oracle.com/technetwork/server-storage/solaris11/downloads/index.html&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5197576949846124321/posts/default/2453350897549637912'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5197576949846124321/posts/default/2453350897549637912'/><link rel='alternate' type='text/html' href='http://solaris10commands.blogspot.com/2011/04/upcoming-solaris-11-os-features.html' title='Upcoming  Solaris 11 OS Features'/><author><name>krishna moorthi</name><uri>http://www.blogger.com/profile/16554817105973672492</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/-lNMwYkqifIY/T2WLHvNdrEI/AAAAAAAAA6E/zB22irt8Vuo/s220/KM.png'/></author></entry><entry><id>tag:blogger.com,1999:blog-5197576949846124321.post-3381566681196387341</id><published>2010-09-05T20:04:00.000+05:30</published><updated>2010-09-05T20:04:31.023+05:30</updated><title type='text'>using reconfigure command to system reboot</title><content type='html'>&lt;b&gt;reconfigure command&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&amp;nbsp;&lt;/b&gt;some time for an long time without rebooting solaris system or important hardware changes need reboot important for proper working . The following&amp;nbsp;&lt;b&gt; &lt;/b&gt;steps&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;bash #&amp;gt; touch reconfigure&amp;nbsp;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
using touch command to create &amp;nbsp; empty directory .&lt;br /&gt;
directory name&amp;nbsp; should be reconfigure .(compulsory)&lt;br /&gt;
after creating&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;bash # &amp;gt; ./reconfigure&amp;nbsp;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;bash # &amp;gt; init 6 &amp;nbsp;&lt;/b&gt;&lt;br /&gt;
system reboot .&lt;br /&gt;
after login and finally reconfigure directory deleted automatically by solaris OS . all new drivers attached successfully ..</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5197576949846124321/posts/default/3381566681196387341'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5197576949846124321/posts/default/3381566681196387341'/><link rel='alternate' type='text/html' href='http://solaris10commands.blogspot.com/2010/09/using-reconfigure-command-to-system.html' title='using reconfigure command to system reboot'/><author><name>krishna moorthi</name><uri>http://www.blogger.com/profile/16554817105973672492</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/-lNMwYkqifIY/T2WLHvNdrEI/AAAAAAAAA6E/zB22irt8Vuo/s220/KM.png'/></author></entry><entry><id>tag:blogger.com,1999:blog-5197576949846124321.post-6398940397384281843</id><published>2010-09-05T19:47:00.000+05:30</published><updated>2010-09-05T19:47:09.372+05:30</updated><title type='text'>Devfsadm command to reconfigure hardware Devices without rebooting and path_to_instance</title><content type='html'>Most of real time application runs 24 / 7 . Hence no need to power off machine in case of new hardware adding like RAM , Hard disk . Hot plug-able devices&lt;br /&gt;
&lt;br /&gt;
solaris 10 use following command&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;devfsadm&lt;/b&gt; ---------- command to reconfigure new attached devices.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;devfsadm -C &lt;/b&gt;&amp;nbsp; &amp;nbsp; command to write new changes&amp;nbsp; in library files ..&lt;br /&gt;
&lt;br /&gt;
most of the hardware files associated with&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;bash &amp;gt; etc/path_to_instance&amp;nbsp;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
contains all hardware devices with Instances names..</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5197576949846124321/posts/default/6398940397384281843'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5197576949846124321/posts/default/6398940397384281843'/><link rel='alternate' type='text/html' href='http://solaris10commands.blogspot.com/2010/09/devfsadm-command-to-reconfigure.html' title='Devfsadm command to reconfigure hardware Devices without rebooting and path_to_instance'/><author><name>krishna moorthi</name><uri>http://www.blogger.com/profile/16554817105973672492</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/-lNMwYkqifIY/T2WLHvNdrEI/AAAAAAAAA6E/zB22irt8Vuo/s220/KM.png'/></author></entry><entry><id>tag:blogger.com,1999:blog-5197576949846124321.post-1404413732128842172</id><published>2010-09-02T19:49:00.000+05:30</published><updated>2010-09-02T19:49:42.226+05:30</updated><title type='text'>Zones concepts in detail Explination with real time</title><content type='html'>S&lt;b&gt;olaris Zones&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Features:&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;1. Virtualization - i.e. VMWare&lt;br /&gt;
&amp;nbsp;2. Solaris Zones can host only instances of Solaris. Not other OSs.&lt;br /&gt;
&amp;nbsp;3. Limit of 8192 zones per Solaris host&lt;br /&gt;
&amp;nbsp;4. Primary zone(global) has access to ALL zones&lt;br /&gt;
&amp;nbsp;5. Non-global zones, do NOT have access to other non-global zones&lt;br /&gt;
&amp;nbsp;6. Default non-global zones derive packages from global zone&lt;br /&gt;
&amp;nbsp;7. Program isolation - zone1(Apache), zone2(MySQL)&lt;br /&gt;
&amp;nbsp;8. Provides &#39;z&#39; commands to manage zones: zlogin, zonename, zoneadm,zonecfg&lt;br /&gt;
&lt;br /&gt;
###Features of GLOBAL zone###&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;1. Solaris ALWAYS boots(cold/warm) to the global zone&lt;br /&gt;
&amp;nbsp;2. Knows about ALL hardware devices attached to the system&lt;br /&gt;
&amp;nbsp;3. Knows about ALL non-global zones&lt;br /&gt;
&lt;br /&gt;
###Features of NON-GLOBAL zones###&lt;br /&gt;
&amp;nbsp;1. Installed at a location on the filesystem of the GLOBAL zone &#39;zone root path&#39; /export/home/zones/{zone1,zone2,zone3,...}&lt;br /&gt;
&amp;nbsp;2. Share packages with GLOBAL zone&lt;br /&gt;
&amp;nbsp;3. Manage distinct hostname and tables files&lt;br /&gt;
&amp;nbsp;4. Cannot communicate with other non-global zones by default. NIC must be used, which means, use standard network API(TCP)&lt;br /&gt;
&amp;nbsp;5. GLOBAL zone admin. can delegate non-global zone administration&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
###Zone Configuration###&lt;br /&gt;
Use: zonecfg - to configure zones&lt;br /&gt;
Note: zonecfg can be run: interactively, non-interactively, command-file modes&lt;br /&gt;
&lt;br /&gt;
Requirements for non-global zones:&lt;br /&gt;
&amp;nbsp;1. hostname&lt;br /&gt;
&amp;nbsp;2. zone root path. i.e. /export/home/zones/testzone1&lt;br /&gt;
&amp;nbsp;3. IP address - bound to logical or physical interface&lt;br /&gt;
&lt;br /&gt;
Zone Types:&lt;br /&gt;
&amp;nbsp;1. Sparse Root Zones - share key files with global zone&lt;br /&gt;
&amp;nbsp;2. Whole Root Zones - require more storage&lt;br /&gt;
&lt;br /&gt;
Steps for configuring non-global zone:&lt;br /&gt;
&amp;nbsp;1. mkdir /export/home/zones/testzone1 &amp;amp;&amp;amp; chmod 700 /export/home/zones/testzone1&lt;br /&gt;
&amp;nbsp;2. zonecfg -z testzone1&lt;br /&gt;
&amp;nbsp;3. create&lt;br /&gt;
&amp;nbsp;4. set zonepath=/export/home/zones/testzone1 - sets root of zone&lt;br /&gt;
&amp;nbsp;5. add net ; set address=192.168.1.60&lt;br /&gt;
&amp;nbsp;6. set physical=e1000g0&lt;br /&gt;
&amp;nbsp;7. (optional) set autoboot=true - testzone1 will be started when system boots&lt;br /&gt;
&amp;nbsp;8. (optional) add attr ; set name=comment; set type=string; set value=&quot;TestZone1&quot;&lt;br /&gt;
&amp;nbsp;9. verify zone - verifies zone for errors&lt;br /&gt;
&amp;nbsp;10. commit changes - commit&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;11. Zone Installation - zoneadm -z testzone1 install - places zone, &#39;testzone1&#39; into &#39;installed&#39; state. NOT ready for production&lt;br /&gt;
&amp;nbsp;12. zoneadm -z testzone1 boot - boots the zone, changing its state&lt;br /&gt;
&lt;br /&gt;
###Zlogin - is used to login to zones###&lt;br /&gt;
Note: each non-global zone maintains a console. Use &#39;zlogin -C zonename&#39; after installing zone to complete zone configuration&lt;br /&gt;
&lt;br /&gt;
Note: Zlogin permits login to non-global zone via the following:&lt;br /&gt;
&amp;nbsp;1. Interactive - i.e. zlogin -l username zonename&lt;br /&gt;
&amp;nbsp;2. Non-interactive - zlogin options command&lt;br /&gt;
&amp;nbsp;3. Console mode - zlogin -C zonename&lt;br /&gt;
&amp;nbsp;4. Safe mode - zlogin -S&lt;br /&gt;
&lt;br /&gt;
zoneadm -z testzone1 reboot - reboots the zone&lt;br /&gt;
zlogin testzone1 shutdown</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5197576949846124321/posts/default/1404413732128842172'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5197576949846124321/posts/default/1404413732128842172'/><link rel='alternate' type='text/html' href='http://solaris10commands.blogspot.com/2010/09/zones-concepts-in-detail-explination.html' title='Zones concepts in detail Explination with real time'/><author><name>krishna moorthi</name><uri>http://www.blogger.com/profile/16554817105973672492</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/-lNMwYkqifIY/T2WLHvNdrEI/AAAAAAAAA6E/zB22irt8Vuo/s220/KM.png'/></author></entry><entry><id>tag:blogger.com,1999:blog-5197576949846124321.post-7588821777502764464</id><published>2010-09-02T19:37:00.000+05:30</published><updated>2010-09-02T19:37:31.956+05:30</updated><title type='text'>Explination about RAID levels in solaris 10</title><content type='html'>&lt;b style=&quot;color: red;&quot;&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; Describing RAID and Solaris™ Volume Manager Software&lt;/b&gt;&lt;br /&gt;
The Solaris Volume Manager software can be run from the command line or a graphical user interface (GUI) tool to simplify system administration tasks on storage devices.&lt;br /&gt;
&lt;br /&gt;
The Solaris Volume Manager software lets you manage large numbers of disks and the data on those disks.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Logical Volume&lt;br /&gt;
&lt;br /&gt;
The Solaris Volume Manager software uses virtual disks called logical volumes to manage physical disks and their associated data. &lt;br /&gt;
Historically, a logical volume is functionally identical to a physical slice. &lt;br /&gt;
However, a logical volume can span multiple disk members. &lt;br /&gt;
The Solaris Volume Manager software converts I/O requests directed at a volume into I/O requests to the underlying member disks.&lt;br /&gt;
&lt;br /&gt;
You can create the Solaris Volume Manager software volumes from slices (disk partitions)&lt;br /&gt;
&lt;br /&gt;
To create more storage capacity as a single volume, you can use the Solaris&lt;br /&gt;
Volume Manager software to make the system treat a collection of many small slices as one large slice or device. &lt;br /&gt;
After creating a large volume from these slices, you can immediately begin by using it just as any other slice or device.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note – In earlier versions of the Solaris OS, the Solaris Volume Manager&lt;br /&gt;
software was known as Solstice DiskSuite™ software, and logical volumes were known as metadevices. Most of the associated command-line tools begin with the preﬁx meta. Logical devices are located under the /dev/md directory.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The State Database&lt;br /&gt;
&lt;br /&gt;
Before creating volumes, state database replicas must exist on the Solaris Volume Manager software system. &lt;br /&gt;
&lt;br /&gt;
The state database stores information on disk about the state of the Solaris Volume Manager software conﬁguration. &lt;br /&gt;
&lt;br /&gt;
The state database records and tracks changes made to your conﬁguration. &lt;br /&gt;
&lt;br /&gt;
The Solaris Volume Manager software automatically updates the state database when a conﬁguration or state change occurs. &lt;br /&gt;
&lt;br /&gt;
For example, creating a new volume is a conﬁguration change, while failure of a submirror is a state change. &lt;br /&gt;
&lt;br /&gt;
The state database is a collection of multiple, replicated database copies.&lt;br /&gt;
&lt;br /&gt;
Each copy (called a state database replica) ensures that the data in the&lt;br /&gt;
database is always valid. &lt;br /&gt;
&lt;br /&gt;
The state database tracks the location and status of all known state database replicas. &lt;br /&gt;
&lt;br /&gt;
During a state database update, each replica state database is updated. &lt;br /&gt;
&lt;br /&gt;
The updates take place one at a time to protect against corrupting all updates if the system crashes.&lt;br /&gt;
&lt;br /&gt;
If a system loses a state database replica, Solaris Volume Manager must determine which state database replicas still contain non-corrupted data. &lt;br /&gt;
&lt;br /&gt;
It determines this information by a majority consensus algorithm. &lt;br /&gt;
&lt;br /&gt;
This algorithm requires that a majority (half + 1) of the state database replicas be available and in agreement with each other before any of them are&lt;br /&gt;
considered non-corrupt. &lt;br /&gt;
&lt;br /&gt;
Because of the majority consensus algorithm, you should create at least 3 state database replicas when you set up your disk conﬁguration. &lt;br /&gt;
&lt;br /&gt;
A consensus can be reached as long as at least two of the three state database replicas are available.&lt;br /&gt;
&lt;br /&gt;
If a state database replica becomes corrupt because its underlying slice encountered an error, you must repair or replace the slice, and then recreate the replica.&lt;br /&gt;
&lt;br /&gt;
If all state database replicas are lost, you could lose all data that is stored on your Solaris Volume Manager software volumes. &lt;br /&gt;
&lt;br /&gt;
You should create enough state database replicas on separate drives and across controllers to prevent complete data loss. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Recommendations for State Database Replicas&lt;br /&gt;
&lt;br /&gt;
To avoid single points-of-failure, you should distribute state database replicas across slices, drives, and controllers. &lt;br /&gt;
&lt;br /&gt;
A majority of replicas must survive a single component failure. &lt;br /&gt;
&lt;br /&gt;
When working with state database replicas, consider the following:&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; You should create state database replicas on a dedicated slice of at&lt;br /&gt;
&amp;nbsp; least 4 Mbytes per replica.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; You can put replicas on unused slices, and then use them on RAID-0,&lt;br /&gt;
&amp;nbsp; RAID 1, or RAID 5 volumes.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; You cannot create state database replicas on any slices in use.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; A minimum of 3 state database replicas are recommended. &lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; The&amp;nbsp; following guidelines are recommended:&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; For a system with only a single drive: put all three replicas in&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; one slice.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; For a system with two to four drives: put two replicas on each&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; drive.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; For a system with ﬁve or more drives: put one replica on each&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; drive.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; Make sure that you have at least two extra replicas per mirror.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; You can add additional state database replicas to the system at any&lt;br /&gt;
&amp;nbsp; time. The additional state database replicas help to ensure the Solaris&lt;br /&gt;
&amp;nbsp; Volume Manager software’s availability.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hot spares and hot spare pools provide additional physical slices for automatic recovery from RAID 1 mirror or RAID 5 volume failures.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hot Spares&lt;br /&gt;
&lt;br /&gt;
A hot spare is a slice (not a volume) that is functional and available, but&lt;br /&gt;
not in use. &lt;br /&gt;
&lt;br /&gt;
A hot spare is on reserve to substitute for a failed slice in a submirror or RAID 5 volume. &lt;br /&gt;
&lt;br /&gt;
A hot spare must be ready for immediate use in the event of a slice failure in the volume with which it is associated. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hot Spare Pools&lt;br /&gt;
&lt;br /&gt;
A hot spare pool is a collection of slices. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note – Hot spares do not apply to RAID 0 volumes or to one-way mirrors.&lt;br /&gt;
For automatic substitution to work, redundant data must be available.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5197576949846124321/posts/default/7588821777502764464'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5197576949846124321/posts/default/7588821777502764464'/><link rel='alternate' type='text/html' href='http://solaris10commands.blogspot.com/2010/09/explination-about-raid-levels-in.html' title='Explination about RAID levels in solaris 10'/><author><name>krishna moorthi</name><uri>http://www.blogger.com/profile/16554817105973672492</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/-lNMwYkqifIY/T2WLHvNdrEI/AAAAAAAAA6E/zB22irt8Vuo/s220/KM.png'/></author></entry><entry><id>tag:blogger.com,1999:blog-5197576949846124321.post-927579527681577943</id><published>2010-09-02T19:35:00.000+05:30</published><updated>2010-09-02T19:35:39.421+05:30</updated><title type='text'>Rloe Based access control in solaris 10</title><content type='html'>The authorizations, roles, rights proﬁles, and privileged commands are deﬁned in four ﬁles.&lt;br /&gt;
&lt;br /&gt;
# cat /etc/user_attr&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; lists rights proﬁles &amp;amp; authorizations &lt;br /&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; associated with users and roles&lt;br /&gt;
&lt;br /&gt;
# cat /etc/security/prof_attr&amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to view the rights proﬁle names and &lt;br /&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; descriptions&lt;br /&gt;
&lt;br /&gt;
# cat /etc/security/policy.conf&lt;br /&gt;
&lt;br /&gt;
# cat /etc/security/exec_attr ﬁle &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b style=&quot;color: red;&quot;&gt;Assigning Rights Profiles To Users&lt;/b&gt;&lt;br /&gt;
# cat /etc/security/prof_attr&amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to view the rights proﬁle names and &lt;br /&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; descriptions&lt;br /&gt;
&lt;br /&gt;
All:::Execute any command as the user or role:help=RtAll.html&lt;br /&gt;
Log Management:::Manage log files:help=RtLogMngmnt.html&lt;br /&gt;
Media Backup:::Backup files and file systems:help=RtMediaBkup.html&lt;br /&gt;
Media Restore:::Restore files and file systems from&lt;br /&gt;
backups:help=RtMediaRestore.html&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
First column: &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; Right profile name&lt;br /&gt;
Fourth column: &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; Comment&lt;br /&gt;
Last column: &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; Pointer to a help file&lt;br /&gt;
&lt;br /&gt;
Help ﬁles exist in the /usr/lib/help/auths/locale/C directory&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The /etc/security/exec_attr ﬁle holds the execution attributes. &lt;br /&gt;
An execution attribute is associated with a rights proﬁle name.&lt;br /&gt;
&lt;br /&gt;
# cat /etc/security/exec_attr&lt;br /&gt;
&lt;br /&gt;
Printer Management:suser:cmd:::/usr/bin/lpstat:euid=0&lt;br /&gt;
Printer Management:suser:cmd:::/usr/lib/lp/local/accept:uid=lp&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# useradd -md /export/home/john -s /bin/ksh john&lt;br /&gt;
&lt;br /&gt;
# profiles john&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to view the default proﬁles assigned to every &lt;br /&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; new user account&lt;br /&gt;
&lt;br /&gt;
&lt;b style=&quot;color: red;&quot;&gt;&lt;br /&gt;
To assign a profile while creating a user&lt;/b&gt;&lt;br /&gt;
# useradd -md /export/home/paul -s /bin/ksh -P &quot;Printer Management&quot; paul&lt;br /&gt;
&lt;br /&gt;
# profiles paul&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to list the rights profiles assigned to a user&lt;br /&gt;
&lt;br /&gt;
# su - paul&lt;br /&gt;
&lt;br /&gt;
$ profiles&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# usermod -P &quot;Printer Management&quot; chris&amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to assign rights profiles to a &lt;br /&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; user account&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This automatically updates the /etc/user_attr ﬁle&lt;br /&gt;
&lt;br /&gt;
# cat /etc/user_attr&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# usermod -P &quot;Service Operator,Printer Management&quot; username&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# profiles -l chris&amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to view the contents of a rights profile&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# usermod -P &quot;&quot; username&amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to remove the rights profiles&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b style=&quot;color: red;&quot;&gt;&lt;br /&gt;
Assigning Rights Profiles To Roles&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
If a large number of user accounts require the same conﬁguration and management of rights proﬁles, it can be easier to assign the rights proﬁles to a role and give the users access to the role.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Creating a Role&lt;br /&gt;
&lt;br /&gt;
The roleadd command creates a role entry in the /etc/passwd, /etc/shadow, and /etc/user_attr ﬁles&lt;br /&gt;
&lt;br /&gt;
-c comment&amp;nbsp; A text string that provides a short description of&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; the role.&lt;br /&gt;
&lt;br /&gt;
-d dir&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Speciﬁes the home directory of the new role.&lt;br /&gt;
&lt;br /&gt;
-m&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Creates the new role’s home directory if it does&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; not already exist.&lt;br /&gt;
&lt;br /&gt;
-P profile&amp;nbsp; Assigns rights proﬁles to the role. Use commas (,)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; to separate multiple rights proﬁles.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To create a role&lt;br /&gt;
&lt;br /&gt;
# roleadd -m -d /export/home/level1 -c &quot;Level One Support&quot; \&lt;br /&gt;
-P &quot;Printer Management,Media Backup,Media Restore&quot; level1&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# passwd level1&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The role cannot be used until a password is applied to it&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# grep level1 /etc/passwd&lt;br /&gt;
&lt;br /&gt;
level1:x:102:1:Level One Support:/export/home/level1:/bin/pfsh&lt;br /&gt;
&lt;br /&gt;
# grep level1 /etc/shadow&lt;br /&gt;
&lt;br /&gt;
level1:CUs8aQ64vTrZ.:12713::::::&lt;br /&gt;
&lt;br /&gt;
# grep level1 /etc/user_attr&lt;br /&gt;
&lt;br /&gt;
level1::::type=role;profiles=Printer Management,Media Backup,Media Restore&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b style=&quot;color: red;&quot;&gt;&lt;br /&gt;
Modifying a Role&lt;/b&gt;&lt;br /&gt;
-e expire&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Speciﬁes the expiration date for a role.&lt;br /&gt;
&lt;br /&gt;
-l new_logname&amp;nbsp; Speciﬁes the new login name for the role.&lt;br /&gt;
&lt;br /&gt;
-P profile&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Speciﬁes one or more comma-separated rights&lt;br /&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; proﬁles, as deﬁned in the /etc/security/prof_attr ﬁle.&lt;br /&gt;
&lt;br /&gt;
-s shell&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Speciﬁes the full path name of the program that&lt;br /&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; is used as the role’s shell when logging in.&lt;br /&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; These shells are special versions of the Bourne&lt;br /&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; shell (sh), C shell (csh), and Korn shell (ksh).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# rolemod -P &quot;profile1,profile2&quot; -s /usr/bin/pfksh level1&lt;br /&gt;
&lt;br /&gt;
# rolemod -P &quot;Printer Management,Service Operator&quot; level1&lt;br /&gt;
&lt;br /&gt;
# rolemod -P &quot;&quot; level1&amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to remove the rights profiles assigned to a role&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The proﬁle shells are pfsh, pfcsh, and pfksh. These proﬁle shells correspond to Bourne shell (sh), C shell (csh), and Korn shell (ksh), respectively.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# roledel -r rolename&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to delete a role&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Assigning Roles To Users&lt;br /&gt;
&lt;br /&gt;
A user can have access to many roles&lt;br /&gt;
&lt;br /&gt;
&lt;b style=&quot;color: red;&quot;&gt;&lt;br /&gt;
To assign roles to a user&lt;/b&gt;&lt;br /&gt;
# useradd -m -d /export/home/paul -s /bin/ksh -R level1 paul&lt;br /&gt;
&lt;br /&gt;
# passwd paul&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# roles username&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to list the roles of a user account&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# usermod -R rolename username&amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to add roles to an existing user account&lt;br /&gt;
&lt;br /&gt;
# usermod -R &quot;&quot; username&amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to remove all role access from a user &lt;br /&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; account&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b style=&quot;color: red;&quot;&gt;Using Roles&lt;/b&gt;&lt;br /&gt;
It is not possible to log into a role account.&lt;br /&gt;
&lt;br /&gt;
Log in as a regular user ﬁrst. &lt;br /&gt;
The roles command shows the roles available to the account.&lt;br /&gt;
&lt;br /&gt;
$ id&lt;br /&gt;
&lt;br /&gt;
$ roles&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Switch the user to the role account with the su command&lt;br /&gt;
&lt;br /&gt;
$ su - level1&lt;br /&gt;
&lt;br /&gt;
$ id&lt;br /&gt;
&lt;br /&gt;
$ profiles</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5197576949846124321/posts/default/927579527681577943'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5197576949846124321/posts/default/927579527681577943'/><link rel='alternate' type='text/html' href='http://solaris10commands.blogspot.com/2010/09/rloe-based-access-control-in-solaris-10.html' title='Rloe Based access control in solaris 10'/><author><name>krishna moorthi</name><uri>http://www.blogger.com/profile/16554817105973672492</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/-lNMwYkqifIY/T2WLHvNdrEI/AAAAAAAAA6E/zB22irt8Vuo/s220/KM.png'/></author></entry><entry><id>tag:blogger.com,1999:blog-5197576949846124321.post-2060189875516769959</id><published>2010-09-02T17:16:00.000+05:30</published><updated>2010-09-02T17:16:53.769+05:30</updated><title type='text'>Configuring Network File System in detail</title><content type='html'>The Network File System (NFS) is a client-server service that lets users view, store, and update ﬁles on a remote computer as though they were on their own local computer.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# vi /etc/dfs/dfstab&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to share local resources&lt;br /&gt;
&lt;br /&gt;
# share [-F fstype] [ -o options] [-d &quot;&amp;lt;text&amp;gt;&quot;] &amp;lt;pathname&amp;gt; [resource]&lt;br /&gt;
# .e.g,&lt;br /&gt;
# share -F nfs -o rw=engineering -d &quot;home dirs&quot; /export/home2&lt;br /&gt;
&lt;br /&gt;
share -F nfs -o ro&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; -d &quot;Shared data files&quot;&amp;nbsp; /usr/local/data&lt;br /&gt;
share -F nfs -o rw,root=sys-01&amp;nbsp; -d &quot;Database files&quot;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /rdbms_files&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note – If svc:/network/nfs/server service does not ﬁnd any share commands in the /etc/dfs/dfstab ﬁle, it does not start the NFS server daemons.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# cat /etc/dfs/sharetab&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to view local resources currently shared&lt;br /&gt;
&lt;br /&gt;
# cat /etc/dfs/fstypes&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to view a system’s distributed ﬁle &lt;br /&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; system types&lt;br /&gt;
&lt;br /&gt;
# cat /etc/rmtab&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to view ﬁle systems remotely mounted by &lt;br /&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; NFS clients&lt;br /&gt;
sys-03:/usr/local/data&lt;br /&gt;
sys-02:/export/config&lt;br /&gt;
#ys-02:/export/config&lt;br /&gt;
&lt;br /&gt;
&lt;b style=&quot;color: red;&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
Managing the NFS Server Daemons&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
# svcadm enable svc:/network/nfs/server&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to start the NFS server &lt;br /&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; daemons&lt;br /&gt;
&lt;br /&gt;
Note – If the svc:/network/nfs/server service does not ﬁnd any share commands in the /etc/dfs/dfstab ﬁle, it does not start the NFS server daemons.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# svcadm disable svc:/network/nfs/server&amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to stop the NFS server &lt;br /&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; daemons&lt;br /&gt;
&lt;br /&gt;
&lt;b style=&quot;color: red;&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
NFS Server Commands&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
share&amp;nbsp;&amp;nbsp;&amp;nbsp; Makes a local directory on an NFS server available for mounting. It &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; also displays the contents of the /etc/dfs/sharetab ﬁle.&lt;br /&gt;
&lt;br /&gt;
unshare&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; Makes a previously available directory unavailable for &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; client side mount operations.&lt;br /&gt;
&lt;br /&gt;
shareall&amp;nbsp;&amp;nbsp;&amp;nbsp; Reads and executes share statements in the /etc/dfs/dfstab &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ﬁle.&lt;br /&gt;
&lt;br /&gt;
unshareall&amp;nbsp;&amp;nbsp;&amp;nbsp; Makes previously shared resources unavailable.&lt;br /&gt;
&lt;br /&gt;
dfshares&amp;nbsp;&amp;nbsp;&amp;nbsp; Lists available shared resources from a remote or local NFS &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; server.&lt;br /&gt;
&lt;br /&gt;
dfmounts&amp;nbsp;&amp;nbsp;&amp;nbsp; Displays a list of NFS server directories that are currently &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; mounted.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;
Configuringthe NFS Server for Sharing Resources&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
syntax: share [ -F nfs ] [ -o options ] [ -d description ] [ pathname ]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# share -o ro /usr/local/data&amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to share a ﬁle resource&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# share -F nfs -o ro directory&amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; restricts access to NFS-mounted &lt;br /&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; resources to read-only access&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# share -F nfs -o ro,rw=client1 directory&amp;nbsp;&amp;nbsp; ==&amp;gt; Restricts access to NFS &lt;br /&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; mounted resources to read-only &lt;br /&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; access; however, the NFS server &lt;br /&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; accepts read &amp;amp; write requests &lt;br /&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; from client named client1.&lt;br /&gt;
&lt;br /&gt;
# share -F nfs -o root=client2 directory&amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; Allows the root user on the &lt;br /&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; client named client2 to have &lt;br /&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; superuser access to the NFS &lt;br /&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; mounted resources&lt;br /&gt;
&lt;br /&gt;
This command shares the directory to the four named hosts only. The hosts, client1 and client2, have read-only access. The hosts client3 and client4 have read-write access. The root user from host client4 has root privilege access to the shared directory and its contents.&lt;br /&gt;
&lt;br /&gt;
# share -F nfs -o ro=client1:client2,rw=client3:client4,root=client4 directory&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# share&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to display a list of all currently shared ﬁle resources&lt;br /&gt;
&lt;br /&gt;
&lt;b style=&quot;color: red;&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
Making File Resources Unavailable for Mounting&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
syntax: unshare [ -F nfs ] pathname&lt;br /&gt;
&lt;br /&gt;
# unshare /usr/local/data&amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to make the /usr/local/data directory &lt;br /&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; unavailable for client-side mount &lt;br /&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; operations&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Sharing and Unsharing All NFS Resources&lt;br /&gt;
&lt;br /&gt;
shareall [ -F nfs ]&lt;br /&gt;
&lt;br /&gt;
unshareall [ -F nfs ]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# shareall&amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to share all resources listed in /etc/dfs/dfstab ﬁle&lt;br /&gt;
&lt;br /&gt;
# unshareall&amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to unshare currently shared ﬁle resources listed in &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; /etc/dfs/sharetab ﬁle&lt;br /&gt;
&lt;br /&gt;
&lt;b style=&quot;color: red;&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
Displaying Currently Shared NFS Resources&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
dfshares [ -F nfs ] [ host ]&lt;br /&gt;
&lt;br /&gt;
# dfshares&amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to display the resources currently being shared by the &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; local server&lt;br /&gt;
&lt;br /&gt;
# dfshares sys-01&amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to display resources shared by another server&lt;br /&gt;
&lt;br /&gt;
# share&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to display a list of all currently shared ﬁle resources&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Displaying NFS Mounted Resources&lt;br /&gt;
&lt;br /&gt;
dfmounts [ -F nfs ] [ server ]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# dfmounts&amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to display remotely mounted NFS resource information&lt;br /&gt;
&lt;br /&gt;
RESOURCE&amp;nbsp;&amp;nbsp; SERVER PATHNAME&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CLIENTS&lt;br /&gt;
&amp;nbsp; -&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sys-02 /usr/local/data sys-03&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Managing the NFS Client&lt;br /&gt;
&lt;br /&gt;
Managing the NFS Client Daemons&lt;br /&gt;
&lt;br /&gt;
# svcadm restart svc:/network/nfs/client&amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to start NFS client &lt;br /&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; daemons&lt;br /&gt;
&lt;b style=&quot;color: red;&quot;&gt;&lt;br /&gt;
NFS Client Commands&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
# dfshares servername&lt;br /&gt;
&lt;br /&gt;
# mount&lt;br /&gt;
&lt;br /&gt;
# umount&lt;br /&gt;
&lt;br /&gt;
# mountall&lt;br /&gt;
&lt;br /&gt;
# umountall&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Configuring the NFS Client for Mounting Resources&lt;br /&gt;
&lt;br /&gt;
# dfshares sys-01&amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to list the resources of an NFS server&lt;br /&gt;
&lt;br /&gt;
&lt;b style=&quot;color: red;&quot;&gt;&lt;br /&gt;
Mounting a remote file resource&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
mount [ -F nfs ] [ -o options ] server:pathname mount_point&lt;br /&gt;
&lt;br /&gt;
# mount sys-02:/rdbms_files /mnt&amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to mount a remote file resource&lt;br /&gt;
&lt;br /&gt;
# mount -o ro sys-45,sys-43,sys-41:/multi_homed_data /remote_shared_data&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the above example, if sys-45 server is unavailable, the request passes to&lt;br /&gt;
the next server on the list, sys-43, and then to the sys-41 server. This process works if the resource mounted from all of the servers is the same.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b style=&quot;color: red;&quot;&gt;&lt;br /&gt;
Unmounting a remote file resource&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
umount server:pathname or mount_point&lt;br /&gt;
&lt;br /&gt;
# umount /rdbms_files&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to unmount a remote file resource&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Mounting &amp;amp; Unmounting remote file resources only (resources listed in the &lt;br /&gt;
/etc/vfstab ﬁle with a mount at boot value of yes)&lt;br /&gt;
&lt;br /&gt;
mountall -r [ -F nfs ]&lt;br /&gt;
&lt;br /&gt;
umountall -r [ -F nfs ]&lt;br /&gt;
&lt;br /&gt;
# mountall -r&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to mount all remote file resources only&lt;br /&gt;
&lt;br /&gt;
# umountall -r&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to unmount all remote ﬁle resuources only&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note – Use the -F FSType with the mountall and umountall commands to specify FSType as the ﬁle system type. You do not have to specify the -F nfs option, because NFS is listed as the default remote ﬁle system type.&lt;br /&gt;
&lt;b style=&quot;color: red;&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
Mounting Remote Resources at Boot Time&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Enter appropriate entries in the client’s /etc/vfstab ﬁle to mount remote ﬁle resources at boot time&lt;br /&gt;
&lt;br /&gt;
# vi /etc/vfstab&lt;br /&gt;
&lt;br /&gt;
#device&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; device&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mount&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FS&amp;nbsp;&amp;nbsp; fsck mount&amp;nbsp;&amp;nbsp; mount&lt;br /&gt;
#to mount&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; to fsck&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; point&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; type pass at boot options&lt;br /&gt;
#&lt;br /&gt;
sys-02:/usr/local/data&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - /usr/remote_data&amp;nbsp; nfs&amp;nbsp;&amp;nbsp; -&amp;nbsp;&amp;nbsp; yes&amp;nbsp;&amp;nbsp;&amp;nbsp; soft,bg&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
bg|fg&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; During an NFS mount request, if the ﬁrst mount attempt &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; fails, retry in the background or foreground.&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; The default is to retry in the foreground.&lt;br /&gt;
&lt;br /&gt;
soft|hard&amp;nbsp;&amp;nbsp;&amp;nbsp; When the number of retransmissions has reached the number &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; speciﬁed in the retrans=n option, a ﬁle system mounted with &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; the soft option reports an error on the request, and stops &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; trying. A ﬁle system mounted with the hard option prints a &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; warning message and continues to try to process the request.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; The default is a hard mount.&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; Although the soft option and the bg option are not the &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; default settings, combining them usually results in the &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; fastest client boot when NFS mounting problems occur.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b style=&quot;color: red;&quot;&gt;&lt;br /&gt;
Enabling NFS Server Logging&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note – Server logging is not supported in NFS version 4.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Create tag entries for each of the server’s shared resources. &lt;br /&gt;
The global tag deﬁnes the default values.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# cat /etc/nfs/nfslog.conf&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to configure NFS log paths&lt;br /&gt;
&lt;br /&gt;
# NFS server log configuration file.&lt;br /&gt;
#&lt;br /&gt;
# &amp;lt;tag&amp;gt; [ defaultdir=&amp;lt;dir_path&amp;gt; ] \&lt;br /&gt;
#&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [ log=&amp;lt;logfile_path&amp;gt; ] [ fhtable=&amp;lt;table_path&amp;gt; ] \&lt;br /&gt;
#&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [ buffer=&amp;lt;bufferfile_path&amp;gt; ] [ logformat=basic|extended ]&lt;br /&gt;
#&lt;br /&gt;
global&amp;nbsp; defaultdir=/var/nfs \&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; log=nfslog fhtable=fhtable buffer=nfslog_workbuffer&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To easily identify the log ﬁles for different shared resources, place them in&lt;br /&gt;
separate directories. For example:&lt;br /&gt;
&lt;br /&gt;
# cat /etc/nfs/nfslog.conf&lt;br /&gt;
&lt;br /&gt;
# NFS server log configuration file.&lt;br /&gt;
#&lt;br /&gt;
global defaultdir=/var/nfs \&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; log=nfslog fhtable=fhtable buffer=nfslog_workbuffer&lt;br /&gt;
public defaultdir=/var/nfs/public \&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; log=nfslog fhtable=fhtable buffer=nfslog_workbuffer&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note – Create /var/nfs/public directory before starting NFS server logging.&lt;br /&gt;
&lt;b style=&quot;color: red;&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
Initiating NFS Logging&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
1. Become superuser.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2. Optional: Change the ﬁle system conﬁguration settings. &lt;br /&gt;
In the /etc/nfs/nfslog.conf ﬁle, either:&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Edit the default settings for all ﬁle systems by changing the data&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; corresponding to the global tag.&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Add a new tag for the speciﬁc ﬁle system.&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &lt;br /&gt;
If you do not need these changes, do not edit this ﬁle.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
3. Edit the /etc/dfs/dfstab ﬁle to add an entry for ﬁle systems for which &lt;br /&gt;
&amp;nbsp;&amp;nbsp; you want to enable NFS server logging.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp; Either:&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Use log option without specifying a tag - to use the global tag as &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; default. &lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Specify a tag - with the log=tag option&lt;br /&gt;
&lt;br /&gt;
share -F nfs -olog /export/sys44_data&lt;br /&gt;
share -F nfs -olog=public /export/sys44_data&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
4. Check that the NFS service is running on the server, if not start it.&lt;br /&gt;
&lt;br /&gt;
# svcadm enable svc:/network/nfs/server&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
5. Run the share command to verify that the correct options are listed.&lt;br /&gt;
&lt;br /&gt;
# share&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
6. If you add additional entries to /etc/dfs/dfstab ﬁle, share the ﬁle &lt;br /&gt;
&amp;nbsp;&amp;nbsp; system by rebooting the system or entering the shareall command.&lt;br /&gt;
&lt;br /&gt;
# shareall</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5197576949846124321/posts/default/2060189875516769959'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5197576949846124321/posts/default/2060189875516769959'/><link rel='alternate' type='text/html' href='http://solaris10commands.blogspot.com/2010/09/configuring-network-file-system-in.html' title='Configuring Network File System in detail'/><author><name>krishna moorthi</name><uri>http://www.blogger.com/profile/16554817105973672492</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/-lNMwYkqifIY/T2WLHvNdrEI/AAAAAAAAA6E/zB22irt8Vuo/s220/KM.png'/></author></entry><entry><id>tag:blogger.com,1999:blog-5197576949846124321.post-4393773714373331113</id><published>2010-09-02T16:37:00.000+05:30</published><updated>2010-09-02T16:37:16.337+05:30</updated><title type='text'>Swap space adding and removing in solaris 10</title><content type='html'>A system’s virtual memory is a combination of RAM and disk space. &lt;br /&gt;
Portions of the virtual memory are reserved as swap space. &lt;br /&gt;
&lt;br /&gt;
Swap space can be deﬁned as a temporary storage location that is used when the system’s memory requirements exceed the size of available RAM.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# swap -s&amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to list a summary of the system’s virtual swap space&lt;br /&gt;
&lt;br /&gt;
# swap -l&amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to list the details of the system’s physical swap areas&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note – There can be a discrepancy in available and free swap space size&lt;br /&gt;
between the swap -s and swap -l outputs. The swap -s output does not take into account pre-allocated swap space that has not yet been used by a process.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b style=&quot;color: red;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; Adding Swap Space&lt;/b&gt;&lt;br /&gt;
Adding Swap Slices&lt;br /&gt;
&lt;br /&gt;
1. Edit the /etc/vfstab ﬁle to add information describing the swap slice&lt;br /&gt;
&lt;br /&gt;
# vi /etc/vfstab&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2. Add the following line to create the swap slice&lt;br /&gt;
&lt;br /&gt;
/dev/dsk/c1d0s1 - - swap - no -&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
3. Use the swap -a command to add additional swap area&lt;br /&gt;
&lt;br /&gt;
# swap -a /dev/dsk/c1d0s1&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note – When the system is subsequently rebooted, the new swap slice&lt;br /&gt;
/dev/dsk/c1t3d0s1 is automatically included as part of the swap space as a result of adding the entry to the /etc/vfstab ﬁle.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b style=&quot;color: red;&quot;&gt;&lt;br /&gt;
Adding Swap Files&lt;/b&gt;&lt;br /&gt;
1. Identify a ﬁle system that has adequate space to create an additional swap ﬁle, preferably on another drive.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2.&amp;nbsp; Make a directory to hold the swap ﬁle.&lt;br /&gt;
&lt;br /&gt;
# mkdir -p /usr/local/swap&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
3. Create a 20-Mbyte swap ﬁle named swapfile in /usr/local/swap directory.&lt;br /&gt;
&lt;br /&gt;
# mkfile 20m /usr/local/swap/swapfile &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
4. Add the swap ﬁle to the system’s swap space.&lt;br /&gt;
&lt;br /&gt;
# swap -a /usr/local/swap/swapfile&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
5. List the details of the modiﬁed system swap space.&lt;br /&gt;
&lt;br /&gt;
# swap -l&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
6. List a summary of the modiﬁed system swap space.&lt;br /&gt;
&lt;br /&gt;
# swap -s&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
7. To use a swap ﬁle when the system is subsequently rebooted, add an entry for the swap ﬁle in the /etc/vfstab ﬁle.&lt;br /&gt;
&lt;br /&gt;
# vi /etc/vfstab&lt;br /&gt;
&lt;br /&gt;
/usr/local/swap/swapfile&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; swap&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; no&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; Removing Swap Space&lt;br /&gt;
&lt;b style=&quot;color: red;&quot;&gt;&lt;br /&gt;
Removing Swap Slices&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
1. Delete a swap slice from the current swap conﬁguration.&lt;br /&gt;
&lt;br /&gt;
# swap -d /dev/dsk/c1d0s1&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2. To prevent the swap slice from being conﬁgured as part of the swap conﬁguration during a reboot or change of run level, edit the /etc/vfstab ﬁle, and remove the swap slice entry from the ﬁle.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b style=&quot;color: red;&quot;&gt;Removing Swap Files&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
1. Delete a swap ﬁle from the current swap conﬁguration.&lt;br /&gt;
&lt;br /&gt;
# swap -d /usr/local/swap/swapfile&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2. Remove the ﬁle to free the disk space that it is occupying.&lt;br /&gt;
&lt;br /&gt;
# rm /usr/local/swap/swapfile&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
3. To prevent the swap ﬁle from being conﬁgured as part of the swap conﬁguration during a reboot or change of run level, edit the /etc/vfstab ﬁle, and remove the swap ﬁle entry.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note – The output of the df -h command shows the space used by the&lt;br /&gt;
swap ﬁle until it is removed.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5197576949846124321/posts/default/4393773714373331113'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5197576949846124321/posts/default/4393773714373331113'/><link rel='alternate' type='text/html' href='http://solaris10commands.blogspot.com/2010/09/swap-space-adding-and-removing-in.html' title='Swap space adding and removing in solaris 10'/><author><name>krishna moorthi</name><uri>http://www.blogger.com/profile/16554817105973672492</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/-lNMwYkqifIY/T2WLHvNdrEI/AAAAAAAAA6E/zB22irt8Vuo/s220/KM.png'/></author></entry><entry><id>tag:blogger.com,1999:blog-5197576949846124321.post-7591877616688067063</id><published>2010-09-02T16:17:00.000+05:30</published><updated>2010-09-02T16:17:02.986+05:30</updated><title type='text'>RPC , HOSTS and inetadm commands in detail ( solaris 10 )</title><content type='html'>The client-server model describes the communication process between two computers or programs. &lt;br /&gt;
The client system makes a service request to the server system, then the server system fulﬁlls the request. &lt;br /&gt;
Although programs can use the client-server model internally in a single computer, the model is more widely used across a network. &lt;br /&gt;
The client-server model provides a way to distribute services efﬁciently across multiple locations on a network.&lt;br /&gt;
&lt;br /&gt;
The client-server model describes network services and the client programs of those services.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Client Processes&lt;br /&gt;
&lt;br /&gt;
The client is a host or a process that uses services from another host or program, known as a server.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Server Processes&lt;br /&gt;
&lt;br /&gt;
The server is a host or a process that provides services to another program&lt;br /&gt;
known as a client. &lt;br /&gt;
Client-server computing is a key factor in supporting network computing&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b style=&quot;color: red;&quot;&gt;&lt;br /&gt;
Starting Server Processes&lt;/b&gt;&lt;br /&gt;
Internet Service Daemon (inetd)&lt;br /&gt;
&lt;br /&gt;
The inetd daemon is a special network process that runs on each system and starts server processes that do not automatically start at boot time&lt;br /&gt;
The inetd daemon is the server process for both the standard Internet services and Sun Remote Procedure Call (Sun RPC) services&lt;br /&gt;
&lt;br /&gt;
Network services can be independently enabled or disabled using the inetadm command.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# inetadm&amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to list the current state of all network facilities&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note – When a network service is affected, any related services are also affected. By disabling one service, a number of other services may become unavailable.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# inetadm | grep telnet&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to view if telnet is enabled or not&lt;br /&gt;
&lt;br /&gt;
# inetadm -d telnet&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to disable the telnet facility&lt;br /&gt;
&lt;br /&gt;
# inetadm | grep telnet&lt;br /&gt;
&lt;br /&gt;
# inetadm -e telnet&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to enable the telnet facility&lt;br /&gt;
&lt;br /&gt;
# inetadm | grep telnet&lt;br /&gt;
&lt;br /&gt;
# inetadm -l telnet&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to list the details about telnet&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b style=&quot;color: red;&quot;&gt;&lt;br /&gt;
Network Ports&lt;/b&gt;&lt;br /&gt;
Network ports help transport protocols to distinguish between multiple service requests arriving at a given host computer&lt;br /&gt;
The TCP and UDP transport protocols identify ports using a positive integer between 1 and 65535, which is called a port number. &lt;br /&gt;
Network ports can be divided into two categories, well-known ports and ephemeral (short-lived) ports.&lt;br /&gt;
&lt;br /&gt;
If a port number is not pre-assigned, the operating system allows an application to choose an unused port number.&lt;br /&gt;
&lt;br /&gt;
A client often communicates with a server through a well-known port.&lt;br /&gt;
&lt;br /&gt;
Well-known ports are stored in the /etc/inet/services ﬁle.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# grep telnet /etc/inet/services&amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to view the well-known port of a &lt;br /&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; specific service&lt;br /&gt;
&lt;br /&gt;
# grep mail /etc/inet/services&lt;br /&gt;
&lt;br /&gt;
&lt;b style=&quot;color: red;&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
Starting RPC Services&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
RPC services are assigned a unique program number by the programmer when they are written.&lt;br /&gt;
The RPC services are not typically assigned to well-known ports.&lt;br /&gt;
RPC services started at boot time with startup scripts run on available ports above 32768. &lt;br /&gt;
&lt;br /&gt;
The rpcbind process associates RPC program numbers with port numbers. &lt;br /&gt;
&lt;br /&gt;
# grep rpcbind /etc/services&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Listing Registered RPC Services&lt;br /&gt;
&lt;br /&gt;
syntax: rpcinfo -p [ host ]&lt;br /&gt;
&lt;br /&gt;
# rpcinfo -p&amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to list all services registered with rpcbind process&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp; program vers proto&amp;nbsp; port service&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; 100000&amp;nbsp;&amp;nbsp;&amp;nbsp; 4&amp;nbsp;&amp;nbsp; tcp&amp;nbsp;&amp;nbsp; 111 rpcbind&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; 100000&amp;nbsp;&amp;nbsp;&amp;nbsp; 3&amp;nbsp;&amp;nbsp; tcp&amp;nbsp;&amp;nbsp; 111 rpcbind&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; 100000&amp;nbsp;&amp;nbsp;&amp;nbsp; 3&amp;nbsp;&amp;nbsp; udp&amp;nbsp;&amp;nbsp; 111 rpcbind&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; 100000&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp; udp&amp;nbsp;&amp;nbsp; 111 rpcbind&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; 100232&amp;nbsp;&amp;nbsp; 10&amp;nbsp;&amp;nbsp; udp 32772 sadmind&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; 100083&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp; tcp 32771&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;b style=&quot;color: red;&quot;&gt;&lt;br /&gt;
Deleting RPC Service Registration&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
syntax: rpcinfo -d prognum versnum&lt;br /&gt;
&lt;br /&gt;
# rpcinfo -d 100012 1 &amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; This command unregisters the RPC service with &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; program number 100012 and version number 1. &lt;br /&gt;
&lt;br /&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; The deleted RPC service that uses program number &lt;br /&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; 100012 is sprayd. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To register the sprayd service again, restart the inetd daemon as follows:&lt;br /&gt;
&lt;br /&gt;
# svcadm disable svc:/network/rpp/spray:udp&lt;br /&gt;
# svcadm enable svc:/network/rpp/spray:udp&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note – When using the rpcinfo -d command to unregister an RPC service, the RPC service can be identiﬁed using either the service name or the program number.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5197576949846124321/posts/default/7591877616688067063'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5197576949846124321/posts/default/7591877616688067063'/><link rel='alternate' type='text/html' href='http://solaris10commands.blogspot.com/2010/09/rpc-hosts-and-inetadm-commands-in.html' title='RPC , HOSTS and inetadm commands in detail ( solaris 10 )'/><author><name>krishna moorthi</name><uri>http://www.blogger.com/profile/16554817105973672492</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/-lNMwYkqifIY/T2WLHvNdrEI/AAAAAAAAA6E/zB22irt8Vuo/s220/KM.png'/></author></entry><entry><id>tag:blogger.com,1999:blog-5197576949846124321.post-6862915257694136577</id><published>2010-09-02T16:05:00.001+05:30</published><updated>2010-09-02T16:05:37.389+05:30</updated><title type='text'>Describing Interface configuration ( assign IP address )</title><content type='html'># ifconfig -a&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to display the MAC address&lt;br /&gt;
&lt;br /&gt;
# ifconfig -a&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to display the configuration for all &lt;br /&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; network interfaces&lt;br /&gt;
&lt;br /&gt;
# ifconfig rtls0 down&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to mark an ethernet interface as down&lt;br /&gt;
&lt;br /&gt;
# ifconfig -a&lt;br /&gt;
&lt;br /&gt;
# ifconfig rtls0 up&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to mark an ethernet interface as up&lt;br /&gt;
&lt;br /&gt;
# ifconfig -a&lt;br /&gt;
&lt;br /&gt;
# ifconfig rtls0 &amp;lt;ipaddr&amp;gt; up&amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to change ip address&lt;br /&gt;
&lt;br /&gt;
# ifconfig rtls0 192.168.1.100 up&lt;br /&gt;
&lt;br /&gt;
# vi /etc/inet/hosts&lt;br /&gt;
&lt;br /&gt;
192.168.1.100&amp;nbsp;&amp;nbsp;&amp;nbsp; station100&amp;nbsp;&amp;nbsp;&amp;nbsp; loghost&lt;br /&gt;
&lt;br /&gt;
:wq&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b style=&quot;color: red;&quot;&gt;&lt;br /&gt;
Sending ICMP ECHO_REQUEST Packets&lt;/b&gt;&lt;br /&gt;
# ping station14&amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to determine if you can contact another system &lt;br /&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; over the network&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Capturing and Inspecting Network Packets&lt;br /&gt;
&lt;br /&gt;
# snoop station12 station14&amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to view network traffic between two &lt;br /&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; specific systems&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Additional snoop options:&lt;br /&gt;
&lt;br /&gt;
snoop&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; Summary output&lt;br /&gt;
&lt;br /&gt;
snoop -V&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; Summary verbose output&lt;br /&gt;
&lt;br /&gt;
snoop -v&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; Detailed verbose output&lt;br /&gt;
&lt;br /&gt;
snoop -o filename&amp;nbsp;&amp;nbsp;&amp;nbsp; Redirects the snoop utility output to filename in &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; summary mode&lt;br /&gt;
&lt;br /&gt;
snoop -i filename &amp;nbsp;&amp;nbsp;&amp;nbsp; Displays packets that were previously captured in &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; filename&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note – Press Control-C to stop the snoop utility.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b style=&quot;color: red;&quot;&gt;&lt;br /&gt;
The Service Management Facility (SMF)&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
The SMF provides a centralized conﬁguration structure for managing system services&lt;br /&gt;
&lt;br /&gt;
The svc.startd daemon is the daemon which is responsible for maintaining the system services&lt;br /&gt;
&lt;br /&gt;
A sub-component of the SMF, the Internet daemon processes are mostly managed using the inetadm command.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# inetadm&amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to list internet daemon processes&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b style=&quot;color: red;&quot;&gt;&lt;br /&gt;
Conﬁguring IPv4 Interfaces at Boot Time&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
The services and ﬁles are the following&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; The svc:/network/physical:default service&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; The /etc/hostname.xxn ﬁle&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; The /etc/inet/hosts ﬁle&lt;br /&gt;
&lt;br /&gt;
The svc:/network/physical:default service calls /lib/svc/method/net-physical method script. &lt;br /&gt;
It is one of the startup scripts that runs each time you boot the system. This script uses the ifconfig utility to conﬁgure each interface with an IP address and other required network information. &lt;br /&gt;
&lt;br /&gt;
The /etc/hostname.hme0 ﬁle contains either the host name or the IP address of the system that contains the hme0 interface.&lt;br /&gt;
The host name contained in the ﬁle must exist in the /etc/inet/hosts ﬁle so that it can be resolved to an IP address at system boot time&lt;br /&gt;
&lt;br /&gt;
# cat /etc/hostname.hme0&lt;br /&gt;
sys41&lt;br /&gt;
&lt;br /&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; or&lt;br /&gt;
&lt;br /&gt;
# cat /etc/hostname.hme0&lt;br /&gt;
192.168.30.41&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The /etc/inet/hosts ﬁle is a local database that associates the IP addresses of hosts with their names&lt;br /&gt;
&lt;br /&gt;
# cat /etc/inet/hosts&lt;br /&gt;
&lt;br /&gt;
127.0.0.1 localhost&lt;br /&gt;
&lt;br /&gt;
192.168.30.41 &amp;nbsp;&amp;nbsp;&amp;nbsp; sys41 &amp;nbsp;&amp;nbsp;&amp;nbsp; loghost&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;#connection to hme interface&lt;br /&gt;
192.168.4.1&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; sys41 &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;#connection to qfe interface&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b style=&quot;color: red;&quot;&gt;Changing the System Host Name&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
The host name of a system is contained in three ﬁles on the system. &lt;br /&gt;
Modify all of these ﬁles, and perform a reboot, to successfully change a system’s host name.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; The /etc/nodename ﬁle&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; The /etc/hostname.xxn ﬁle&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; The /etc/inet/hosts ﬁle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# cat /etc/nodename&amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to view a systems /etc/nodename file&lt;br /&gt;
sys41&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# cat /etc/inet/ipnodes&lt;br /&gt;
# cat /etc/hosts</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5197576949846124321/posts/default/6862915257694136577'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5197576949846124321/posts/default/6862915257694136577'/><link rel='alternate' type='text/html' href='http://solaris10commands.blogspot.com/2010/09/describing-interface-configuration.html' title='Describing Interface configuration ( assign IP address )'/><author><name>krishna moorthi</name><uri>http://www.blogger.com/profile/16554817105973672492</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/-lNMwYkqifIY/T2WLHvNdrEI/AAAAAAAAA6E/zB22irt8Vuo/s220/KM.png'/></author></entry><entry><id>tag:blogger.com,1999:blog-5197576949846124321.post-2484902897213942955</id><published>2010-09-02T00:58:00.000+05:30</published><updated>2010-09-02T00:58:32.645+05:30</updated><title type='text'>Configuring printer services (add , remove,modify ) A - Z solaris 10</title><content type='html'># svcs -a | grep ’print’&amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to check the status of the print service&lt;br /&gt;
&lt;br /&gt;
# svcadm enable svc:/application/print/server:default&amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to enable print &lt;br /&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; service&lt;br /&gt;
&lt;br /&gt;
# svcadm disable svc:/application/print/server:default&amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to disable print &lt;br /&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; service&lt;br /&gt;
&lt;br /&gt;
# svcs -a | grep ’print/server’&lt;br /&gt;
&lt;br /&gt;
# /usr/sbin/printmgr &amp;amp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to conﬁgure local or network printer &lt;br /&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; with Solaris OS Print Manager&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b style=&quot;color: red;&quot;&gt;Setting the System’s Default Printer&lt;/b&gt;&lt;br /&gt;
# lpadmin -d printername&amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to set a system’s default destination &lt;br /&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; printer&lt;br /&gt;
&lt;br /&gt;
# lpstat -d&amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to verify if the system’s default destination printer &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; has been set&lt;br /&gt;
&lt;br /&gt;
# lp &amp;lt;filename&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to send a print request&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b style=&quot;color: red;&quot;&gt;Removing a Client’s Printer Configuration&lt;/b&gt;&lt;br /&gt;
# lpadmin -x printername&amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to delete a printer from the system &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b style=&quot;color: red;&quot;&gt;&lt;br /&gt;
Starting and Stopping the LP Print Service&lt;/b&gt;&lt;br /&gt;
The LP print service is started by the lpsched daemon and is shut down by the lpshut command.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# svcadm enable application/print/server&amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to start lpsched daemon&lt;br /&gt;
&lt;br /&gt;
# svcadm disable print/server&amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to stop the print server service&lt;br /&gt;
&lt;br /&gt;
# svcs -a | grep print&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b style=&quot;color: red;&quot;&gt;To submit a print job to the default printer or to another printer&lt;/b&gt;&lt;br /&gt;
Using lp&lt;br /&gt;
&lt;br /&gt;
$ /usr/bin/lp filename&lt;br /&gt;
&lt;br /&gt;
$ /usr/bin/lp -d printername filename&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Using lpr&lt;br /&gt;
&lt;br /&gt;
$ /usr/ucb/lpr filename&lt;br /&gt;
&lt;br /&gt;
$ /usr/ucb/lpr -P printername filename&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To submit a print request that uses the POSIX style&lt;br /&gt;
&lt;br /&gt;
$ /usr/bin/lp -d hostname:printername filename&amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; hostname - print server &lt;br /&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; name&lt;br /&gt;
&lt;br /&gt;
$ /usr/ucb/lpr -P hostname:printername filename&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b style=&quot;color: red;&quot;&gt;LP Print Service Administration Commands&lt;/b&gt;&lt;br /&gt;
&amp;nbsp;accept&amp;nbsp;&amp;nbsp; Permits print requests to be queued for the speciﬁc printers &lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;reject&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; Prevents print requests from being queued for the speciﬁc printers &lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;enable&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; Activates the speciﬁed printers&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;disable&amp;nbsp; Deactivates the speciﬁed printers&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;lpmove&amp;nbsp;&amp;nbsp; Moves print requests from one printer destination to another&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b style=&quot;color: red;&quot;&gt;Accepting Print Jobs&lt;/b&gt;&lt;br /&gt;
# /usr/sbin/accept destination(s)&lt;br /&gt;
&lt;br /&gt;
# accept printername&amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to permit print requests to be queued on the &lt;br /&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; speciﬁed printer&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b style=&quot;color: red;&quot;&gt;&lt;br /&gt;
Rejecting Print Jobs&lt;br /&gt;
&lt;/b&gt;To prevent print requests from queuing &amp;amp; stop users from submitting requests to the printer queues&lt;br /&gt;
&lt;br /&gt;
# /usr/sbin/reject -r “reason&quot; destination(s)&lt;br /&gt;
&lt;br /&gt;
# reject -r &quot;Replacing Toner Cartridge&quot; printername &lt;br /&gt;
&lt;br /&gt;
&lt;b style=&quot;color: red;&quot;&gt;&lt;br /&gt;
Enabling Printers&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
To activate printers, which enables printing of requests submitted to the print queues&lt;br /&gt;
&lt;br /&gt;
# /usr/bin/enable destination(s)&lt;br /&gt;
&lt;br /&gt;
# enable printername&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b style=&quot;color: red;&quot;&gt;&lt;br /&gt;
Disabling Printers&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
To deactivate speciﬁed printers, which disables them from printing print requests waiting in the print queues&lt;br /&gt;
&lt;br /&gt;
# /usr/bin/disable -c | -W -r “reason” destination&lt;br /&gt;
&lt;br /&gt;
# disable -W -r “Printer down for maintenance” printername&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
$ lpstat -a&amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to view the printer status by a user&lt;br /&gt;
$ lpstat -t&amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to view the printer status by a user&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b style=&quot;color: red;&quot;&gt;Moving Print Jobs&lt;/b&gt;&lt;br /&gt;
To move one or all print requests from one printer destination to another printer destination.&lt;br /&gt;
&lt;br /&gt;
# /usr/sbin/lpmove source_destination target_destination&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&lt;br /&gt;
1. Become the root user on the print server.&lt;br /&gt;
&lt;br /&gt;
2. Use the reject command to prevent any further print requests from&lt;br /&gt;
&amp;nbsp;&amp;nbsp; being sent to the print queue. This step notiﬁes users that the printer&lt;br /&gt;
&amp;nbsp;&amp;nbsp; is not accepting requests.&lt;br /&gt;
&lt;br /&gt;
# reject -r “PrinterC is down for repairs” printerC&lt;br /&gt;
&lt;br /&gt;
destination “printerC” will no longer accept requests&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
3. Use the lpstat command to display the print queue to see how&lt;br /&gt;
&amp;nbsp;&amp;nbsp; many print requests are to be moved. This step is needed to identify&lt;br /&gt;
&amp;nbsp;&amp;nbsp; print request identiﬁcation numbers (IDs) only if selected print&lt;br /&gt;
&amp;nbsp;&amp;nbsp; requests are going to be moved to another printer.&lt;br /&gt;
&lt;br /&gt;
# lpstat -o&lt;br /&gt;
&lt;br /&gt;
printerC-29 sys41!user1 61426 Jan 07 12:30&lt;br /&gt;
printerC-30 sys41!user1&amp;nbsp; 9560 Jan 07 12:30&lt;br /&gt;
printerC-31 sys42!user2&amp;nbsp;&amp;nbsp; 845 Jan 07 12:30&lt;br /&gt;
printerC-32 sys42!user2&amp;nbsp;&amp;nbsp; 845 Jan 07 12:30&lt;br /&gt;
printerC-33 sys42!user2&amp;nbsp;&amp;nbsp; 845 Jan 07 12:30&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
4. Use the lpstat command to verify that the destination printer is&lt;br /&gt;
&amp;nbsp;&amp;nbsp; accepting print requests.&lt;br /&gt;
&lt;br /&gt;
# lpstat -a printerA&lt;br /&gt;
&lt;br /&gt;
printer printerA accepting requests since Tue Jan 1&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
5. Move the print requests.&lt;br /&gt;
&lt;br /&gt;
a. For example, to move all print requests from printerC over to printerA&lt;br /&gt;
&lt;br /&gt;
# lpmove printerC printerA&lt;br /&gt;
&lt;br /&gt;
move in progress ...&lt;br /&gt;
total of 5 requests moved from printerC to printerA&lt;br /&gt;
&lt;br /&gt;
b. For example, to move one or more individual print requests&lt;br /&gt;
&amp;nbsp;&amp;nbsp; from printerC to printerA&lt;br /&gt;
&lt;br /&gt;
# lpmove printerC-32 printerC-33 printerA&lt;br /&gt;
&lt;br /&gt;
total of 2 requests moved to printerA&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
6. If all print requests were moved from printerC, in step 5a,&lt;br /&gt;
&amp;nbsp;&amp;nbsp; printerC has a reject automatically applied to it. When&lt;br /&gt;
&amp;nbsp;&amp;nbsp; printerC is available again, use the accept command to allow print&lt;br /&gt;
&amp;nbsp;&amp;nbsp; jobs to queue to printerC.&lt;br /&gt;
&lt;br /&gt;
# accept printerC&lt;br /&gt;
&lt;br /&gt;
destination “printerC” now accepting requests&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Removing a Server’s Printer Configuration&lt;br /&gt;
&lt;br /&gt;
1. Log in as the root user on the print server on which the printer is&lt;br /&gt;
&amp;nbsp;&amp;nbsp; conﬁgured.&lt;br /&gt;
&lt;br /&gt;
2. Stop queuing print requests on the printer.&lt;br /&gt;
&lt;br /&gt;
# reject printername&lt;br /&gt;
&lt;br /&gt;
3. Stop the printer.&lt;br /&gt;
&lt;br /&gt;
# disable printername&lt;br /&gt;
&lt;br /&gt;
4. Delete the printer from the print server.&lt;br /&gt;
&lt;br /&gt;
# lpadmin -x printername&lt;br /&gt;
&lt;br /&gt;
This action deletes conﬁguration information for the printer from the print server’s /etc/lp/printers directory and /etc/printers.conf ﬁle.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b style=&quot;color: red;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; CONFIGURING A PRINTER&lt;/b&gt;&lt;br /&gt;
The host name and IP address of the print server must exist in the local systems /etc/inet/hosts ﬁle. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
1. Log in as the root user and open two terminal windows. In one of the windows, use the tty command to identify the pseudo-terminal device it uses. Use this device name as the port for the new printer. &lt;br /&gt;
&lt;br /&gt;
# tty&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2. In the other terminal window, run the Solaris OS print manager.&lt;br /&gt;
&lt;br /&gt;
# /usr/sbin/printmgr &amp;amp;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
3. In the Select Naming Service panel, verify that files is selected, and click OK. From the print manager menu, select the Show Command Line Console option. Position the Command Line Console in a convenient location.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
4. From the Printer menu, select the New Attached Printer option.&lt;br /&gt;
&lt;br /&gt;
5. Fill in the ﬁelds according to the Table. To name your printer, use a name different from that of your system.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Field&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; Selection or Entry&lt;br /&gt;
&lt;br /&gt;
Printer name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Your choice.&lt;br /&gt;
Description&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Your choice.&lt;br /&gt;
Printer Port&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Select the Other option. Enter the device name of&lt;br /&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; the terminal window found in Step 1.&lt;br /&gt;
Printer Make&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Lexmark.&lt;br /&gt;
Printer Model&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Lexmark Optra E310.&lt;br /&gt;
Printer Driver&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Foomatic/Postscript (recommended).&lt;br /&gt;
Fault Notiﬁcation&amp;nbsp;&amp;nbsp; Write to superuser.&lt;br /&gt;
Default Printer&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Select the box.&lt;br /&gt;
Always Print Banner Do not select the box.&lt;br /&gt;
User Access List&amp;nbsp;&amp;nbsp;&amp;nbsp; No change.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
6. Click OK when you are ﬁnished. Notice the command-line entries that appear on the console window.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
7. Test your printer conﬁguration by printing the /etc/inet/hosts ﬁle to the default printer. Observe the output on the other terminal window.&lt;br /&gt;
&lt;br /&gt;
# lp /etc/inet/hosts&lt;br /&gt;
&lt;br /&gt;
You should see the contents of the /etc/inet/hosts ﬁle converted to the format a Lexmark Optra E310 would expect, scroll through the other window.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
8.&amp;nbsp; From the Printer menu, select the Add Access to Printer option.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
9.&amp;nbsp; Fill in the ﬁelds according to the Table.&lt;br /&gt;
&lt;br /&gt;
Field&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Selection or Entry&lt;br /&gt;
&lt;br /&gt;
Printer name&amp;nbsp;&amp;nbsp;&amp;nbsp; Enter the name of a printer on another system.&lt;br /&gt;
Printer server&amp;nbsp; Enter the name of the system on which the&lt;br /&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; preceding printer is deﬁned. Ensure this system&lt;br /&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; name and IP address are in your /etc/inet/hosts&lt;br /&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; ﬁle.&lt;br /&gt;
Description&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Your choice.&lt;br /&gt;
Default printer Do not select the box.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
10. Click OK when you are ﬁnished.&lt;br /&gt;
&lt;br /&gt;
Notice the command-line entries that appear in the console window.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
11. Test your new conﬁguration by printing the /etc/inet/hosts ﬁle to&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; the remote printer. Observe the output on the other system.&lt;br /&gt;
&lt;br /&gt;
# lp -d printername2 /etc/inet/hosts&lt;br /&gt;
&lt;br /&gt;
You should see the contents of the /etc/inet/hosts ﬁle converted to the format a Lexmark Optra E310 would expect, scrolling through the other window.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
12. In an available terminal window, use the lpstat command to&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; display the current status information of the printers on your system.&lt;br /&gt;
&lt;br /&gt;
# lpstat -t&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
13. Disable print output for your default printer.&lt;br /&gt;
&lt;br /&gt;
# disable printername1&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
14. Send the following four ﬁles to your default printer:&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; /etc/inet/hosts, /etc/inittab, /etc/dfs/dfstab, and&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; /etc/skel/local.profile.&lt;br /&gt;
&lt;br /&gt;
# lp /etc/inet/hosts&lt;br /&gt;
# lp /etc/inittab&lt;br /&gt;
# lp /etc/dfs/dfstab&lt;br /&gt;
# lp /etc/skel/local.profile&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
15. Check the print queue to ﬁnd the request ID for each job.&lt;br /&gt;
&lt;br /&gt;
# lpstat -o&lt;br /&gt;
&lt;br /&gt;
The four print jobs should be listed with sequential numbers.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
16. Use the request IDs to cancel two of the requests. Verify the result.&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Use the following syntax to cancel the requests:&lt;br /&gt;
&lt;br /&gt;
# cancel printername1-# printername1-#&lt;br /&gt;
&lt;br /&gt;
# lpstat -o&lt;br /&gt;
&lt;br /&gt;
Two of the print jobs should be gone.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
17. Cancel the other two jobs by indicating the user who sent them.&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Verify the result. For example:&lt;br /&gt;
&lt;br /&gt;
# cancel -u root&lt;br /&gt;
# lpstat -o&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
18. Enable printing for your default printer.&lt;br /&gt;
&lt;br /&gt;
# enable printername1&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
19. Set your default printer to reject requests, and display a reason for&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; doing so. For example:&lt;br /&gt;
&lt;br /&gt;
# reject -r “Printer is down for maintenance” printername1&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
20. Attempt to send a job to the default printer. Observe the messages&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; displayed.&lt;br /&gt;
&lt;br /&gt;
# lp /etc/inet/hosts&lt;br /&gt;
&lt;br /&gt;
Your message should say printername1: Requests are not being accepted.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
21. Use the lpstat command to display the reason that the printer is&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; not accepting requests. Use the following syntax:&lt;br /&gt;
&lt;br /&gt;
# lpstat -a printername1&lt;br /&gt;
&lt;br /&gt;
Your message should say printername1: your reason from step 20.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
22. Set your default printer to again accept requests.&lt;br /&gt;
&lt;br /&gt;
# accept printername1&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
23. Test your printer conﬁguration by printing the /etc/inet/hosts&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; ﬁle to the default printer. Observe the output on the other terminal&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; window.&lt;br /&gt;
&lt;br /&gt;
# lp /etc/inet/hosts&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
24. Before removing the printers, prevent any further print requests&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; from being queued:&lt;br /&gt;
&lt;br /&gt;
# reject -r &quot;removing printer&quot; printername1&lt;br /&gt;
destination “printername1” will no longer accept requests&lt;br /&gt;
&lt;br /&gt;
# reject -r &quot;removing printer&quot; printername2&lt;br /&gt;
destination “printername2” will no longer accept requests&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
25. Remove both printers.&lt;br /&gt;
&lt;br /&gt;
# lpadmin -x printername1&lt;br /&gt;
# lpadmin -x printername2</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5197576949846124321/posts/default/2484902897213942955'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5197576949846124321/posts/default/2484902897213942955'/><link rel='alternate' type='text/html' href='http://solaris10commands.blogspot.com/2010/09/configuring-printer-services-add.html' title='Configuring printer services (add , remove,modify ) A - Z solaris 10'/><author><name>krishna moorthi</name><uri>http://www.blogger.com/profile/16554817105973672492</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/-lNMwYkqifIY/T2WLHvNdrEI/AAAAAAAAA6E/zB22irt8Vuo/s220/KM.png'/></author></entry><entry><id>tag:blogger.com,1999:blog-5197576949846124321.post-6647621855249439547</id><published>2010-09-02T00:51:00.000+05:30</published><updated>2010-09-02T00:51:50.126+05:30</updated><title type='text'>Backuping the mounted file system an UFS snapshot</title><content type='html'>&lt;b style=&quot;color: red;&quot;&gt;&lt;br /&gt;
Creating a UFS Snapshot&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Use fssnap command to create, query, or delete temporary read-only snapshots of ufs ﬁle systems.&lt;br /&gt;
&lt;br /&gt;
&lt;b style=&quot;color: red;&quot;&gt;&lt;br /&gt;
Syntax to create a UFS snapshot:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
# fssnap -F ufs -o bs=backing_store_path /file-system&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note – The backing_store_path can be a raw device, the name of an existing directory, or the name of a ﬁle that does not already exist.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&lt;br /&gt;
# fssnap -F ufs -o bs=/var/tmp /export/home&amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to create a snapshot of &lt;br /&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; /export/home ﬁle system&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Limiting the Size of the Backing-Store File&lt;br /&gt;
&lt;br /&gt;
To limit the backing-store ﬁle to 500 Mbytes&lt;br /&gt;
&lt;br /&gt;
# fssnap -F ufs -o bs=/var/tmp,maxsize=500m /export/home&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Displaying Information for a ufs File System Snapshot&lt;br /&gt;
&lt;br /&gt;
# fssnap -i&amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to list all current UFS snapshots on the system&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# /usr/lib/fs/ufs/fssnap -i /export/home&amp;nbsp;&amp;nbsp; ==&amp;gt; to display detailed &lt;br /&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; information for a speciﬁc UFS &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; snapshot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Backing Up the UFS Snapshot File&lt;br /&gt;
&lt;br /&gt;
Use the tar command or the ufsdump command to back up a UFS snapshot.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Using the tar Command to Back Up a Snapshot File&lt;br /&gt;
&lt;br /&gt;
Mount the snapshot before backing it up &lt;br /&gt;
&lt;br /&gt;
1. Create the mount point for the block virtual device.&lt;br /&gt;
&lt;br /&gt;
# mkdir -p /backups/home.bkup&lt;br /&gt;
&lt;br /&gt;
2. Mount the block virtual device to the mount point.&lt;br /&gt;
&lt;br /&gt;
# mount -F ufs -o ro /dev/fssnap/0 /backups/home.bkup&lt;br /&gt;
&lt;br /&gt;
3. Change directory to the mount point.&lt;br /&gt;
&lt;br /&gt;
# cd /backups/home.bkup&lt;br /&gt;
&lt;br /&gt;
4. Use the tar command to write the data to tape.&lt;br /&gt;
&lt;br /&gt;
# tar cvf /dev/rmt/0 .&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b style=&quot;color: red;&quot;&gt;&lt;br /&gt;
Using the ufsdump Command&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Specify the raw virtual device during the backup&lt;br /&gt;
&lt;br /&gt;
# ufsdump 0uf /dev/rmt/0 /dev/rfssnap/0&lt;br /&gt;
&lt;br /&gt;
# ufsdump 0ufN /dev/rmt/0 /dev/rdsk/c0d1s7 /dev/rfssnap/0&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Verify that the UFS snapshot is backed up.&lt;br /&gt;
&lt;br /&gt;
# ufsrestore tf /dev/rmt/0&amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; t - to list the table of contents of the &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; backup media&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Performing an Incremental Backup Using a UFS Snapshot&lt;br /&gt;
&lt;br /&gt;
To create an incremental backup of a snapshot&lt;br /&gt;
&lt;br /&gt;
# ufsdump 1ufN /dev/rmt/0 /dev/rdsk/c0d1s7 /dev/rfssnap/0&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Use the ufsdump command with the N option to create an incremental UFS snapshot, which writes the name of the device being backed up, rather than the name of the snapshot device to the /etc/dumpdates ﬁle.&lt;br /&gt;
&lt;br /&gt;
Note – It is important to note the use of the N argument when backing up&lt;br /&gt;
a snapshot. This argument ensures proper updates to the /etc/dumpdates ﬁle.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To verify that the UFS snapshot is backed up to tape&lt;br /&gt;
&lt;br /&gt;
# ufsrestore tf /dev/rmt/0 &lt;br /&gt;
&lt;b style=&quot;color: red;&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
Performing incremental backups of snapshots&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
1. Create a snapshot of the /extra ﬁle system that is going to be &lt;br /&gt;
&amp;nbsp;&amp;nbsp; backed up while the ﬁle system is mounted.&lt;br /&gt;
&lt;br /&gt;
# fssnap -o bs=/var/tmp /extra&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2. Verify that the snapshot was successful, and view detailed&lt;br /&gt;
&amp;nbsp;&amp;nbsp; information about the snapshot.&lt;br /&gt;
&lt;br /&gt;
# fssnap -i&lt;br /&gt;
&lt;br /&gt;
# /usr/lib/fs/ufs/fssnap -i /extra&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
3. Make a directory that will be used to mount and view the snapshot&lt;br /&gt;
&amp;nbsp;&amp;nbsp; data.&lt;br /&gt;
&lt;br /&gt;
# mkdir /extrasnap&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
4. Mount the snapshot to the new mount point, and compare the size of&lt;br /&gt;
&amp;nbsp;&amp;nbsp; the ﬁle system and the snapshot device.&lt;br /&gt;
&lt;br /&gt;
# mount -o ro /dev/fssnap/0 /extrasnap&lt;br /&gt;
&lt;br /&gt;
# df -k | grep extra&lt;br /&gt;
&lt;br /&gt;
/dev/dsk/c0d1s3&amp;nbsp;&amp;nbsp;&amp;nbsp; 1294023&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 9 1242254 1% /extra&lt;br /&gt;
/dev/fssnap/0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1294023&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 9 1242254 1% /extrasnap&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
5. Edit a ﬁle under the /extra directory and make it larger, and then&lt;br /&gt;
&amp;nbsp;&amp;nbsp; compare the size of the ﬁle system and the snapshot device.&lt;br /&gt;
&lt;br /&gt;
# df -k |grep extra&lt;br /&gt;
&lt;br /&gt;
/dev/dsk/c0d1s3&amp;nbsp;&amp;nbsp; 1294023 20 1242243 1% /extra&lt;br /&gt;
/dev/fssnap/0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1294023&amp;nbsp; 9 1242254 1% /extrasnap&lt;br /&gt;
&lt;br /&gt;
Observe that the ﬁle system grew in size while the snapshot ﬁle did not.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
6. Perform a full backup with the N option of the ufsdump command.&lt;br /&gt;
&lt;br /&gt;
# ufsdump 0ufN /dev/rmt/0 /dev/rdsk/c0d1s3 /dev/rfssnap/0&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
7. Verify the backup.&lt;br /&gt;
&lt;br /&gt;
# ufsrestore tf /dev/rmt/0&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
8. Unmount the back up device and remove the snapshot &amp;amp; backing-store ﬁle.&lt;br /&gt;
&lt;br /&gt;
# umount /extrasnap&lt;br /&gt;
&lt;br /&gt;
# fssnap -d /extra&lt;br /&gt;
&lt;br /&gt;
# rm /var/tmp/snapshot0&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
9. Make some changes to the /extra ﬁle system, such as copying some&lt;br /&gt;
&amp;nbsp;&amp;nbsp; ﬁles, and then re-create the snapshot.&lt;br /&gt;
&lt;br /&gt;
# fssnap -o bs=/var/tmp /extra&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
10. Re-mount the snapshot device, and compare the size of the ﬁle&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; system and the snapshot device.&lt;br /&gt;
&lt;br /&gt;
# mount -o ro /dev/fssnap/0 /extrasnap&lt;br /&gt;
&lt;br /&gt;
# df -k | grep extra&lt;br /&gt;
&lt;br /&gt;
/dev/dsk/c0d1s3&amp;nbsp;&amp;nbsp;&amp;nbsp; 1294023&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 46 1242217 1% /extra&lt;br /&gt;
/dev/fssnap/0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1294023&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 46 1242217 1% /extrasnap&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
11. Perform an incremental backup with the N option of the ufsdump&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; command.&lt;br /&gt;
&lt;br /&gt;
# ufsdump 1ufN /dev/rmt/0 /dev/rdsk/c0d1s3 /dev/rfssnap/0&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
12. Verify the backup.&lt;br /&gt;
&lt;br /&gt;
# ufsrestore tf /dev/rmt/0&lt;br /&gt;
&lt;br /&gt;
Notice that the backup of the snapshot contains only the ﬁles that were added since the previous Level 0 backup.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Restoring Data From a UFS Snapshot Backup&lt;br /&gt;
&lt;br /&gt;
Data written to a tape by ufsdump is simply data, whether it is a snapshot or a ﬁle system.&lt;br /&gt;
&lt;br /&gt;
Restore a UFS snapshot from a backup tape in the same manner as you would from the backup of an original ﬁle system.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b style=&quot;color: red;&quot;&gt;Deleting a UFS Snapshot&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
1. First, unmount the snapshot device&lt;br /&gt;
2. Delete the snapshot &lt;br /&gt;
3. Finally remove the backing-store ﬁle.&lt;br /&gt;
&lt;br /&gt;
# umount /dev/fssnap/0&lt;br /&gt;
&lt;br /&gt;
# fssnap -d /export/home&lt;br /&gt;
&lt;br /&gt;
# rm /backing_store_file</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5197576949846124321/posts/default/6647621855249439547'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5197576949846124321/posts/default/6647621855249439547'/><link rel='alternate' type='text/html' href='http://solaris10commands.blogspot.com/2010/09/backuping-mounted-file-system-ufs.html' title='Backuping the mounted file system an UFS snapshot'/><author><name>krishna moorthi</name><uri>http://www.blogger.com/profile/16554817105973672492</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/-lNMwYkqifIY/T2WLHvNdrEI/AAAAAAAAA6E/zB22irt8Vuo/s220/KM.png'/></author></entry><entry><id>tag:blogger.com,1999:blog-5197576949846124321.post-5007005504212443328</id><published>2010-09-02T00:46:00.000+05:30</published><updated>2010-09-02T00:46:10.914+05:30</updated><title type='text'>Performing File system Restore including incremental back up (solaris 10)</title><content type='html'>The ufsrestore command copies ﬁles to the disk, relative to the current&lt;br /&gt;
working directory, from backup tapes that were created by the ufsdump command.&lt;br /&gt;
&lt;br /&gt;
&lt;b style=&quot;color: red;&quot;&gt;The syntax for the ufsrestore command is:&lt;/b&gt;&lt;br /&gt;
ufsrestore option(s) argument(s) filesystem&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following procedure demonstrates how to use the ufsrestore command to restore the /export/home ﬁle system on the c0d1s7 slice.&lt;br /&gt;
&lt;br /&gt;
1. Create the new ﬁle system structure.&lt;br /&gt;
&lt;br /&gt;
# newfs /dev/rdsk/c0d1s7&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2. Mount the ﬁle system to the /export/home directory, and change to that directory.&lt;br /&gt;
&lt;br /&gt;
# mount /dev/dsk/c0d1s7 /export/home &lt;br /&gt;
&lt;br /&gt;
# cd /export/home&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
3. Restore the entire /export/home ﬁle system from the backup tape.&lt;br /&gt;
&lt;br /&gt;
# ufsrestore rf /dev/rmt/0&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note – Always restore a ﬁle system by starting with the Level 0 backup tape, continuing with the next-lower-level tape, and continuing through the highest-level tape.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
4. Remove the restoresymtable ﬁle.&lt;br /&gt;
&lt;br /&gt;
# rm restoresymtable&lt;br /&gt;
&lt;br /&gt;
Remove the restoresymtable ﬁle when the restore is complete.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
5. Unmount the new ﬁle system.&lt;br /&gt;
&lt;br /&gt;
# cd /&lt;br /&gt;
&lt;br /&gt;
# umount /export/home&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
6. Use the fsck command to check the restored ﬁle system.&lt;br /&gt;
&lt;br /&gt;
# fsck /dev/rdsk/c0d1s7&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
7. Perform a full backup of the ﬁle system.&lt;br /&gt;
&lt;br /&gt;
# ufsdump 0uf /dev/rmt/0 /dev/rdsk/c0d1s7&lt;br /&gt;
&lt;br /&gt;
The ufsrestore command repositions the ﬁles and changes the inode allocation.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
8. init 6&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b style=&quot;color: red;&quot;&gt;&lt;br /&gt;
Using the ufsrestore Command to Restore a Critical File System&lt;/b&gt;&lt;br /&gt;
The following procedure demonstrates how to restore the /usr ﬁle system on Slice 6 of the boot disk.&lt;br /&gt;
&lt;br /&gt;
1. Insert the Solaris 10 Software 1 CD-ROM or DVD, and boot from it with the &amp;nbsp;&amp;nbsp;&amp;nbsp; single-user mode option.&lt;br /&gt;
&lt;br /&gt;
ok boot cdrom -s&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2. Create the new ﬁle system structure.&lt;br /&gt;
&lt;br /&gt;
# newfs /dev/rdsk/c0t0d0s6&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
3. Mount the ﬁle system to the mount point /a, and change to that directory.&lt;br /&gt;
&lt;br /&gt;
# mount /dev/dsk/c0t0d0s6 /a &lt;br /&gt;
&lt;br /&gt;
# cd /a&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
4. Restore the entire /usr ﬁle system from the backup tape.&lt;br /&gt;
&lt;br /&gt;
# ufsrestore rf /dev/rmt/0&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
5. Remove the restoresymtable ﬁle.&lt;br /&gt;
&lt;br /&gt;
# rm restoresymtable&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
6. Unmount the new ﬁle system.&lt;br /&gt;
&lt;br /&gt;
# cd /&lt;br /&gt;
# umount /a&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
7. Use the fsck command to check the restored ﬁle system.&lt;br /&gt;
&lt;br /&gt;
# fsck /dev/rdsk/c0t0d0s6&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
8. Perform a full backup of the ﬁle system.&lt;br /&gt;
&lt;br /&gt;
# ufsdump 0uf /dev/rmt/0 /dev/rdsk/c0t0d0s6&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
9. Reboot the system.&lt;br /&gt;
&lt;br /&gt;
# init 6&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b style=&quot;color: red;&quot;&gt;Invoking an Interactive Restore&lt;/b&gt;&lt;br /&gt;
The following procedure demonstrates how to use the ufsrestore i command to extract individual ﬁles from a backup tape.&lt;br /&gt;
&lt;br /&gt;
1. Become the root user, and change to the temporary directory that you want &amp;nbsp;&amp;nbsp;&amp;nbsp; to receive the extracted ﬁles.&lt;br /&gt;
&lt;br /&gt;
# cd /export/home/tmp&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2. Perform the ufsrestore i command.&lt;br /&gt;
&lt;br /&gt;
# ufsrestore ivf /dev/rmt/0&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
3. Display the contents of the directory structure on the backup tape.&lt;br /&gt;
&lt;br /&gt;
ufsrestore &amp;gt; ls&lt;br /&gt;
.:&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2 *./&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 13 directory1 15 directory3 11 file2&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2 *../&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 14 directory2 10 file1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 12 file3&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
4. Change to the target directory on the backup tape.&lt;br /&gt;
&lt;br /&gt;
ufsrestore &amp;gt; cd directory1&lt;br /&gt;
ufsrestore &amp;gt; ls&lt;br /&gt;
./directory1:&lt;br /&gt;
&amp;nbsp; 3904 ./&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2 *../ 3905 file1 3906 file2 3907 file3&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
5. Add the ﬁles you want to restore to the extraction list.&lt;br /&gt;
&lt;br /&gt;
ufsrestore &amp;gt; add file1 file2&lt;br /&gt;
Make node ./directory1&lt;br /&gt;
&lt;br /&gt;
Files you want to restore are marked with an asterisk (*) for extraction. &lt;br /&gt;
If you extract a directory, all of the directory contents are marked for extraction.&lt;br /&gt;
&lt;br /&gt;
In this example, two ﬁles are marked for extraction. &lt;br /&gt;
The ls command displays an asterisk in front of the selected ﬁle names, file1 and file2.&lt;br /&gt;
&lt;br /&gt;
ufsrestore &amp;gt; ls&lt;br /&gt;
./directory1:&lt;br /&gt;
&amp;nbsp; 3904 *./&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2 *../ 3905 *file1 3906 *file2 3907 file3&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
6. To delete a ﬁle from the extraction list, use the delete command.&lt;br /&gt;
&lt;br /&gt;
ufsrestore &amp;gt; delete file1&lt;br /&gt;
&lt;br /&gt;
The ls command displays the file1 ﬁle without an asterisk.&lt;br /&gt;
&lt;br /&gt;
ufsrestore &amp;gt; ls&lt;br /&gt;
./directory1:&lt;br /&gt;
&amp;nbsp; 3904 *./&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2 *../ 3905 file1 3906 *file2 3907 file3&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
7. To view the ﬁles and directories marked for extraction, use the marked &lt;br /&gt;
&amp;nbsp;&amp;nbsp; command.&lt;br /&gt;
&lt;br /&gt;
ufsrestore &amp;gt; marked&lt;br /&gt;
./directory1:&lt;br /&gt;
&amp;nbsp; 3904 *./&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2 *../ 3906 *file2&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
8. To restore the selected ﬁles from the backup tape, perform the command:&lt;br /&gt;
&lt;br /&gt;
ufsrestore &amp;gt; extract&lt;br /&gt;
&lt;br /&gt;
Extract requested files&lt;br /&gt;
You have not read any volumes yet.&lt;br /&gt;
Unless you know which volume your file(s) are on you should start&lt;br /&gt;
with the last volume and work towards the first.&lt;br /&gt;
Specify next volume #: 1&lt;br /&gt;
&lt;br /&gt;
extract file ./directory1/file2&lt;br /&gt;
Add links&lt;br /&gt;
Set directory mode, owner, and times.&lt;br /&gt;
set owner/mode for ‘.’? [yn] n&lt;br /&gt;
&lt;br /&gt;
Answering y sets ownership and permissions of the temporary directory to those of the mount point on the tape.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
9. To exit the interactive restore after the ﬁles are extracted, perform the&lt;br /&gt;
&amp;nbsp;&amp;nbsp; command:&lt;br /&gt;
&lt;br /&gt;
ufsrestore&amp;gt; quit&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
10. Move the restored ﬁles to their original or permanent directory&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; location, and delete the ﬁles from the temporary directory.&lt;br /&gt;
&lt;br /&gt;
# mv /export/home/tmp/directory1/file2 /export/home&lt;br /&gt;
&lt;br /&gt;
# rm -r /export/home/tmp/directory1&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note – You can use the help command in an interactive restore to display a list of available commands.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b style=&quot;color: red;&quot;&gt;&lt;br /&gt;
Performing an Incremental Restore&lt;br /&gt;
&lt;/b&gt;The following procedure demonstrates how to restore the /export/home ﬁle system from incremental tapes.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note – This procedure makes use of the interactive restore to assist in showing the concept of incremental restores. You would typically use a command, such as ufsrestore rf, for restoring entire ﬁle systems.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
1. View the contents of the /etc/dumpdates ﬁle for information about&lt;br /&gt;
&amp;nbsp;&amp;nbsp; the /export/home ﬁle system.&lt;br /&gt;
&lt;br /&gt;
# more /etc/dumpdates | grep c0t0d0s7&lt;br /&gt;
&lt;br /&gt;
/dev/rdsk/c0t0d0s7&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 Wed Apr 07 09:55:34 2004&lt;br /&gt;
/dev/rdsk/c0t0d0s7&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1 Web Apr 07 09:57:30 2004&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2. Create the new ﬁle system structure for the /export/home ﬁle system.&lt;br /&gt;
&lt;br /&gt;
# newfs /dev/rdsk/c0t0d0s7&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
3. Mount the ﬁle system and change to that directory.&lt;br /&gt;
&lt;br /&gt;
# mount /dev/dsk/c0t0d0s7 /export/home&lt;br /&gt;
&lt;br /&gt;
# cd /export/home&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
4. Insert the Level 0 backup tape.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
5. Restore the /export/home ﬁle system from the backup tapes.&lt;br /&gt;
&lt;br /&gt;
# ufsrestore rvf /dev/rmt/0&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
6. Load the next lower-level tape into the tape drive.&lt;br /&gt;
&lt;br /&gt;
# ufsrestore rvf /dev/rmt/0&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b style=&quot;color: red;&quot;&gt;&lt;br /&gt;
Alternative Steps&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
The following steps are an alternative to the previous Steps 5 and 6.&lt;br /&gt;
&lt;br /&gt;
5. Restore the /export/home ﬁle system from the backup tapes. (This&lt;br /&gt;
&amp;nbsp;&amp;nbsp; example uses an interactive, verbose restore to provide more detailed&lt;br /&gt;
&amp;nbsp;&amp;nbsp; information.)&lt;br /&gt;
&lt;br /&gt;
# ufsrestore ivf /dev/rmt/0&lt;br /&gt;
&lt;br /&gt;
ufsrestore &amp;gt; ls&lt;br /&gt;
&lt;br /&gt;
The system lists ﬁles from the last Level 0 backup.&lt;br /&gt;
&lt;br /&gt;
ufsrestore &amp;gt; add *&lt;br /&gt;
&lt;br /&gt;
ufsrestore &amp;gt; extract&lt;br /&gt;
&lt;br /&gt;
Specify next volume #: 1&lt;br /&gt;
&lt;br /&gt;
set owner/mode for ’.’? [yn] n&lt;br /&gt;
&lt;br /&gt;
Directories already exist, set modes anyway? [yn] n&lt;br /&gt;
&lt;br /&gt;
ufsrestore &amp;gt; q&lt;br /&gt;
#&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
6. The information in the /etc/dumpdates ﬁle shows an incremental&lt;br /&gt;
&amp;nbsp;&amp;nbsp; backup that was taken after the Level 0 backup. Load the next tape&lt;br /&gt;
&amp;nbsp;&amp;nbsp; and perform the incremental restore.&lt;br /&gt;
&lt;br /&gt;
# ufsrestore ivf /dev/rmt/0&lt;br /&gt;
&lt;br /&gt;
ufsrestore &amp;gt; ls&lt;br /&gt;
&lt;br /&gt;
ufsrestore &amp;gt; add *&lt;br /&gt;
&lt;br /&gt;
ufsrestore &amp;gt; extract&lt;br /&gt;
&lt;br /&gt;
Specify next volume #: 1&lt;br /&gt;
&lt;br /&gt;
set owner/mode for ’.’? [yn] n&lt;br /&gt;
&lt;br /&gt;
ufsrestore &amp;gt; q</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5197576949846124321/posts/default/5007005504212443328'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5197576949846124321/posts/default/5007005504212443328'/><link rel='alternate' type='text/html' href='http://solaris10commands.blogspot.com/2010/09/performing-file-system-restore.html' title='Performing File system Restore including incremental back up (solaris 10)'/><author><name>krishna moorthi</name><uri>http://www.blogger.com/profile/16554817105973672492</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/-lNMwYkqifIY/T2WLHvNdrEI/AAAAAAAAA6E/zB22irt8Vuo/s220/KM.png'/></author></entry><entry><id>tag:blogger.com,1999:blog-5197576949846124321.post-358464648346578760</id><published>2010-09-02T00:35:00.000+05:30</published><updated>2010-09-02T00:35:58.118+05:30</updated><title type='text'>Performing File system Backup ( solaris 10 )</title><content type='html'>&lt;b style=&quot;color: red;&quot;&gt;&lt;br /&gt;
Strategies for Scheduled Backups&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
A full backup is a complete ﬁle system backup.&lt;br /&gt;
&lt;br /&gt;
An incremental backup copies only ﬁles in the ﬁle system that have been added or modiﬁed since a previous lower-level backup. &lt;br /&gt;
&lt;br /&gt;
Backups are often referred to as dumps.&lt;br /&gt;
&lt;br /&gt;
Use dump level 0 to perform a full backup. &lt;br /&gt;
&lt;br /&gt;
Use dump levels 1 through 9 to schedule incremental backups&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# ufsdump 0S filesystem_name&amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to determine the size of the ﬁle system &lt;br /&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; to be backed up&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; or&lt;br /&gt;
&lt;br /&gt;
# ufsdump 3S filesystem_name &lt;br /&gt;
&lt;br /&gt;
S - size estimate&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The /etc/dumpdates ﬁle records backups if the -u option is used with the ufsdump command. &lt;br /&gt;
&lt;br /&gt;
# cat /etc/dumpdates&lt;br /&gt;
&lt;br /&gt;
&lt;b style=&quot;color: red;&quot;&gt;&lt;br /&gt;
Backing Up an UNMOUNTED File System&lt;/b&gt;&lt;br /&gt;
/usr/sbin/ufsdump &lt;br /&gt;
&lt;br /&gt;
The syntax for the ufsdump command is:&lt;br /&gt;
&lt;br /&gt;
ufsdump option(s) argument(s) filesystem_name&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b style=&quot;color: red;&quot;&gt;Tape Back Ups&lt;/b&gt;&lt;br /&gt;
Perform the following steps to use the ufsdump command to start a tape backup:&lt;br /&gt;
&lt;br /&gt;
1. Become the root user to change the system to single-user mode, and&lt;br /&gt;
&amp;nbsp;&amp;nbsp; unmount the ﬁle systems.&lt;br /&gt;
&lt;br /&gt;
# /usr/sbin/shutdown -y -g300 “System is being shutdown for backup”&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2. Verify that the /export/home ﬁle system was unmounted with the&lt;br /&gt;
&amp;nbsp;&amp;nbsp; shutdown command. If not, unmount it manually.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
3. Check the integrity of the ﬁle system data with the fsck command.&lt;br /&gt;
&lt;br /&gt;
# fsck /export/home&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
4. Perform a full (Level 0) backup of the /export/home ﬁle system.&lt;br /&gt;
&lt;br /&gt;
# ufsdump 0uf /dev/rmt/0 /export/home&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# ufsrestore tf /dev/rmt/0&amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; t - to list the table of contents of the &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; backup media&lt;br /&gt;
&lt;br /&gt;
# ufsrestore tvf /dev/rmt/0&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;Remote Backups to a Tape&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
To perform a backup on a remote tape device.&lt;br /&gt;
&lt;br /&gt;
ufsdump options remotehost:tapedevice filesystem&lt;br /&gt;
&lt;br /&gt;
To perform remote backups across the network, the system with the tape drive must have an entry in its /.rhosts ﬁle for every system that uses the tape drive.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following example shows how to perform a full (Level 0) backup of the &lt;br /&gt;
/export/home ﬁle system on the host1 system, to the remote tape device on the host2 system.&lt;br /&gt;
&lt;br /&gt;
# ufsdump 0uf host2:/dev/rmt/0 /export/home</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5197576949846124321/posts/default/358464648346578760'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5197576949846124321/posts/default/358464648346578760'/><link rel='alternate' type='text/html' href='http://solaris10commands.blogspot.com/2010/09/performing-file-system-backup-solaris.html' title='Performing File system Backup ( solaris 10 )'/><author><name>krishna moorthi</name><uri>http://www.blogger.com/profile/16554817105973672492</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/-lNMwYkqifIY/T2WLHvNdrEI/AAAAAAAAA6E/zB22irt8Vuo/s220/KM.png'/></author></entry><entry><id>tag:blogger.com,1999:blog-5197576949846124321.post-2466617615384011051</id><published>2010-09-02T00:24:00.000+05:30</published><updated>2010-09-02T00:24:16.876+05:30</updated><title type='text'>User Creation and Remove commands in solaris 10</title><content type='html'>&lt;b style=&quot;color: red;&quot;&gt;Creating User Accounts&lt;br /&gt;
&lt;br /&gt;
To create a user account:&lt;/b&gt;&lt;br /&gt;
# useradd -u 100 -g other -d /export/home/newuser1 -m -s /bin/ksh -c&lt;br /&gt;
&quot;Regular User Account&quot; newuser1&lt;br /&gt;
&lt;br /&gt;
# passwd newuser1&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# /usr/sadm/bin/smuser add -- -n newuser2 -u 500 -g other -d&lt;br /&gt;
/export/home/newuser2 -c &quot;Regular User Account 2&quot; -s /bin/ksh -x&lt;br /&gt;
autohome=N&lt;br /&gt;
&lt;br /&gt;
# passwd newuser2&lt;br /&gt;
&lt;br /&gt;
&lt;b style=&quot;color: red;&quot;&gt;&lt;br /&gt;
Modifying User Accounts&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
To change the login name and home directory for newuser1 to usera.&lt;br /&gt;
&lt;br /&gt;
# usermod -m -d /export/home/usera -l usera newuser1&lt;br /&gt;
&lt;br /&gt;
To change the login name and home directory for newuser2 to userb.&lt;br /&gt;
&lt;br /&gt;
# /usr/sadm/bin/smuser modify -- -n newuser2 -N userb -d /export/home/userb&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b style=&quot;color: red;&quot;&gt;Deleting User Accounts&lt;/b&gt;&lt;br /&gt;
# userdel usera&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to remove the user account&lt;br /&gt;
&lt;br /&gt;
# userdel -r usera&amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to remove both the users account &amp;amp; home directory&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# /usr/sadm/bin/smuser delete -- -n userb&amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; the users home directory &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; should be deleted manually&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b style=&quot;color: red;&quot;&gt;Creating a Group Entry&lt;/b&gt;&lt;br /&gt;
# groupadd -g 301 class1&lt;br /&gt;
&lt;br /&gt;
# /usr/sadm/bin/smgroup add -- -n workgroup -g 123 -m usera&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b style=&quot;color: red;&quot;&gt;Modifying a Group Entry&lt;/b&gt;&lt;br /&gt;
# groupmod -g 400 class1&amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to change group ID&lt;br /&gt;
&lt;br /&gt;
&lt;b style=&quot;color: red;&quot;&gt;To change group name&lt;/b&gt;&lt;br /&gt;
# /usr/sadm/bin/smgroup modify -- -n workgroup -N schoolgroup&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b style=&quot;color: red;&quot;&gt;Deleting a Group Entry&lt;/b&gt;&lt;br /&gt;
# groupdel class1&lt;br /&gt;
&lt;br /&gt;
# /usr/sadm/bin/smgroup delete -- -n schoolgroup&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# vi /etc/default/passwd&amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to control the properties for all users’ &lt;br /&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; passwords on the system:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# ls -l /usr/sadm/defadduser&amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to display default values for useradd &lt;br /&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; command&lt;br /&gt;
&lt;br /&gt;
# useradd -D&lt;br /&gt;
&lt;br /&gt;
# cat /usr/sadm/defadduser</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5197576949846124321/posts/default/2466617615384011051'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5197576949846124321/posts/default/2466617615384011051'/><link rel='alternate' type='text/html' href='http://solaris10commands.blogspot.com/2010/09/user-creation-and-remove-commands-in.html' title='User Creation and Remove commands in solaris 10'/><author><name>krishna moorthi</name><uri>http://www.blogger.com/profile/16554817105973672492</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/-lNMwYkqifIY/T2WLHvNdrEI/AAAAAAAAA6E/zB22irt8Vuo/s220/KM.png'/></author></entry><entry><id>tag:blogger.com,1999:blog-5197576949846124321.post-379539518189791813</id><published>2010-09-02T00:14:00.000+05:30</published><updated>2010-09-02T00:14:45.697+05:30</updated><title type='text'>Package administration in solaris 10</title><content type='html'>&lt;b style=&quot;color: red;&quot;&gt;Administering Packages&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; pkgadd&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; Installs software packages to the system &lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; pkgrm&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; Removes a package from the system &lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; pkginfo&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; Displays software package information &lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; pkgchk&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; Checks package installation state &lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; pkgtrans&amp;nbsp;&amp;nbsp;&amp;nbsp; Translates packages from one format to another &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# more /var/sadm/install/contents&amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to list all installed software &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; packages&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# pkginfo | more&amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to display information about installed software &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; packages&lt;br /&gt;
&lt;br /&gt;
# pkginfo -l | more&amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to view additional information&lt;br /&gt;
&lt;br /&gt;
# pkginfo -l SUNWman&amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to view information of a specific package&lt;br /&gt;
&lt;br /&gt;
# pkginfo | wc -l&amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to find how many packages are currently installed&lt;br /&gt;
&lt;br /&gt;
&lt;b style=&quot;color: red;&quot;&gt;&lt;br /&gt;
To view information about packages that are located on the DVD&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
# pkginfo -d /cdrom/cdrom0/s0/Solaris_10/Product | more &lt;br /&gt;
&lt;br /&gt;
# pkginfo -d /cdrom/cdrom0/Solaris_10/Product | more&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b style=&quot;color: red;&quot;&gt;Checking a Package Installation&lt;/b&gt;&lt;br /&gt;
The pkgchk command checks to determine if a package has been installed on the system. If the pkgchk command does not display a message, it indicates the package was installed successfully and that no changes have been made&lt;br /&gt;
to any ﬁles or directories in the package.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# pkgchk SUNWladm&amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to check the contents &amp;amp; attributes of a &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; currently installed package &lt;br /&gt;
&lt;br /&gt;
# pkgchk -v SUNWladm&amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to list the ﬁles contained in a software package&lt;br /&gt;
&lt;br /&gt;
# pkgchk -p /etc/shadow&amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to find if the contents &amp;amp; attributes of a ﬁle &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; have changed since it was installed with its &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; software package&lt;br /&gt;
&lt;br /&gt;
# pkgchk -l -p /usr/bin/showrev&amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to list information about selected ﬁles &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; that make up a package&lt;br /&gt;
&lt;br /&gt;
# pkgchk -l -P showrev&amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to find if a particular ﬁle is installed &amp;amp; to &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; ﬁnd the directory in which it is located &lt;br /&gt;
&lt;br /&gt;
If -p option is used, the full path must be typed to get information about the ﬁle. If -P option is used, a partial path name can be used.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b style=&quot;color: red;&quot;&gt;&lt;br /&gt;
Adding a Software Package from DVD&lt;/b&gt;&lt;br /&gt;
Example: To transfer the SUNWvts software package from CD-ROM &amp;amp; install it&lt;br /&gt;
&lt;br /&gt;
# cd /cdrom/cdrom0/Solaris_10/ExtraValue/CoBundled/SunVTS_6.0/Packages&lt;br /&gt;
&lt;br /&gt;
# pkgadd -d . SUNWvts&lt;br /&gt;
&lt;br /&gt;
&lt;b style=&quot;color: red;&quot;&gt;&lt;br /&gt;
Adding Packages by Using a Spool Directory&lt;/b&gt;&lt;br /&gt;
The pkgadd command, by default, looks in the /var/spool/pkg directory for any packages speciﬁed on the command line.&lt;br /&gt;
&lt;br /&gt;
The default directory for packages that have been spooled, but not installed is /var/spool/pkg.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To copy a package from the Solaris DVD into the /var/spool/pkg directory&lt;br /&gt;
&lt;br /&gt;
# pkgadd -d /cdrom/cdrom0/s0/Solaris_10/Product -s spool SUNWauda &lt;br /&gt;
&lt;br /&gt;
The -s option with the keyword spool copies the package into the /var/spool/pkg directory by default.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# ls -al /var/spool/pkg&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to verify if the package exists in the &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; spool directory&lt;br /&gt;
&lt;br /&gt;
# pkgadd SUNWauda&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to add the package from the spool area&lt;br /&gt;
&lt;br /&gt;
# pkgrm -s spool SUNWauda&amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to remove a package from the spool area &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b style=&quot;color: red;&quot;&gt;&lt;br /&gt;
To use an alternative spooling directory&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
# pkgadd -d /cdrom/cdrom0/s0/Solaris_10/Product -s /export/pkg SUNWauda&lt;br /&gt;
&lt;br /&gt;
# pkgrm -s /export/pkg SUNWauda&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to remove a package from the &lt;br /&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; spool directory&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b style=&quot;color: red;&quot;&gt;&lt;br /&gt;
Removing a Software Package&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Caution – Be cautious of the dependency warnings you receive when removing a package. The system allows you to remove these packages even though they may be required by a different package.&lt;br /&gt;
&lt;br /&gt;
# pkgrm SUNWauda&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b style=&quot;color: red;&quot;&gt;PACKAGE FORMATS&lt;/b&gt;&lt;br /&gt;
File system (or Directory) format: Multiple ﬁles and directories.&lt;br /&gt;
&lt;br /&gt;
A package (SUNWrsc) in ﬁle system format:&lt;br /&gt;
&lt;br /&gt;
# ls -ld SUNWrsc&lt;br /&gt;
&lt;br /&gt;
# cd SUNWrsc&lt;br /&gt;
# ls -l&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b style=&quot;color: red;&quot;&gt;Data stream format: Single file.&lt;/b&gt;&lt;br /&gt;
A package in data stream format:&lt;br /&gt;
&lt;br /&gt;
# ls -l SUNWrsc.pkg&lt;br /&gt;
&lt;br /&gt;
# file SUNWrsc.pkg&lt;br /&gt;
&lt;br /&gt;
# head SUNWrsc.pkg&lt;br /&gt;
&lt;br /&gt;
&lt;b style=&quot;color: red;&quot;&gt;&lt;br /&gt;
Translating Package Formats&lt;/b&gt;&lt;br /&gt;
To translate a package from ﬁle system format in /var/tmp to data stream format&lt;br /&gt;
&lt;br /&gt;
# pkgtrans /var/tmp /tmp/SUNWrsc.pkg SUNWrsc&lt;br /&gt;
&lt;br /&gt;
First argument is the directory where ﬁle system format package is stored. Second argument is the package data stream ﬁle.&lt;br /&gt;
Third argument is the package to translate.&lt;br /&gt;
&lt;br /&gt;
If no package name is given a list of all packages in the directory is displayed&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# pkgadd -d /tmp/SUNWrsc.pkg all&amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to install packages in a data &lt;br /&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; stream format&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&lt;br /&gt;
To create a data streamed package&lt;br /&gt;
&lt;br /&gt;
# cd /cdrom/cdrom0/s0/Solaris*&lt;br /&gt;
&lt;br /&gt;
# pkgtrans -s Product /var/tmp/stream.pkg SUNWzlib SUNWftpr SUNWftpu&lt;br /&gt;
&lt;br /&gt;
# file /var/tmp/stream.pkg&lt;br /&gt;
&lt;br /&gt;
# head -5 /var/tmp/stream.pkg&lt;br /&gt;
&lt;br /&gt;
# pkgadd -d /var/tmp/stream.pkg</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5197576949846124321/posts/default/379539518189791813'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5197576949846124321/posts/default/379539518189791813'/><link rel='alternate' type='text/html' href='http://solaris10commands.blogspot.com/2010/09/package-administration-in-solaris-10.html' title='Package administration in solaris 10'/><author><name>krishna moorthi</name><uri>http://www.blogger.com/profile/16554817105973672492</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/-lNMwYkqifIY/T2WLHvNdrEI/AAAAAAAAA6E/zB22irt8Vuo/s220/KM.png'/></author></entry><entry><id>tag:blogger.com,1999:blog-5197576949846124321.post-9165561053665827233</id><published>2010-09-02T00:07:00.000+05:30</published><updated>2010-09-02T00:07:30.900+05:30</updated><title type='text'>Performing Mount and unmount</title><content type='html'>&lt;b style=&quot;color: red;&quot;&gt;To view which ﬁle systems are currently mounted&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
# mount&lt;br /&gt;
# more /etc/mnttab&lt;br /&gt;
# df -h&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b style=&quot;color: red;&quot;&gt;Temporary mount&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
# mount /dev/dsk/c0d1s6 /directoryname&lt;br /&gt;
&lt;br /&gt;
&lt;b style=&quot;color: red;&quot;&gt;&lt;br /&gt;
To mount a filesystem permanently&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
# vi /etc/vfstab&lt;br /&gt;
&lt;br /&gt;
/dev/dsk/c0d1s6 /dev/rdsk/c0d1s6 /mountpoint&amp;nbsp;&amp;nbsp;&amp;nbsp; ufs 2&amp;nbsp;&amp;nbsp; yes&amp;nbsp; -&lt;br /&gt;
&lt;br /&gt;
:wq&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b style=&quot;color: red;&quot;&gt;Mount Options&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
syntax: mount -o option,option,... device_name mount_point&lt;br /&gt;
&lt;br /&gt;
# mount -o ro,nosuid /dev/dsk/c0d1s6 /mountpoint&lt;br /&gt;
# mount -o noatime /dev/dsk/c0d1s6 /mountpoint&lt;br /&gt;
# mount -o nolargefiles /dev/dsk/c0d1s6 /mountpoint&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# mountall &amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to mount all ﬁle systems listed in /etc/vfstab ﬁle &lt;br /&gt;
&lt;br /&gt;
# mountall -l &amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to mount only local ﬁlesystems listed in /etc/vfstab ﬁle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Mounting Different Types of File Systems&lt;br /&gt;
&lt;br /&gt;
# fstyp /dev/rdsk/c0d1s7 &amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to view a filesystem type&lt;br /&gt;
&lt;br /&gt;
# mount -F hsfs -o ro /dev/dsk/c0d0s0 /cdrom&amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to mount a CD-ROM&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To mount a ﬁle system that resides on a diskette when the Volume Management (vold) services are stopped&lt;br /&gt;
&lt;br /&gt;
# mkdir /pcfs&lt;br /&gt;
# mount -F pcfs /dev/diskette /pcfs&lt;br /&gt;
&lt;br /&gt;
&lt;b style=&quot;color: red;&quot;&gt;&lt;br /&gt;
Unmounting File Systems&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
# umount /export/home&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; unmount using directory mount point&lt;br /&gt;
&lt;br /&gt;
# umount /dev/dsk/c0d1s7&amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; unmount using logicak disk device name&lt;br /&gt;
&lt;br /&gt;
# umountall&amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to unmount all ﬁlesystems listed in /etc/mnttab ﬁle&lt;br /&gt;
&lt;br /&gt;
# umountall -l &amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to unmount only local ﬁlesystems &lt;br /&gt;
&lt;br /&gt;
The umountall unmounts all ﬁle systems speciﬁed in the vfstab ﬁle except &lt;br /&gt;
/ (root), /usr, /proc, /dev/fd, /var, /var/run, and /tmp.&lt;br /&gt;
&lt;br /&gt;
&lt;b style=&quot;color: red;&quot;&gt;&lt;br /&gt;
Unmounting a Busy File System&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
# umount -f mountpoint&amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to force unmount a filesystem&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# fuser -cu mountpoint&amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to list all processes accessing the ﬁlesystem&lt;br /&gt;
&lt;br /&gt;
# fuser -ck mountpoint&amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to kill all processes accessing the ﬁle system&lt;br /&gt;
&lt;br /&gt;
# fuser -c mountpoint&amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to verify if all processes are killed&lt;br /&gt;
&lt;br /&gt;
# umount mountpoint&lt;br /&gt;
&lt;b style=&quot;color: red;&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
Restricting Access to Mounted Diskettes, CD-ROMs, or DVDs&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
# /etc/init.d/volmgt stop&amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to stop Volume Management (vold) service&lt;br /&gt;
&lt;br /&gt;
# /etc/init.d/volmgt start&amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to start Volume Management service</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5197576949846124321/posts/default/9165561053665827233'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5197576949846124321/posts/default/9165561053665827233'/><link rel='alternate' type='text/html' href='http://solaris10commands.blogspot.com/2010/09/performing-mount-and-unmount.html' title='Performing Mount and unmount'/><author><name>krishna moorthi</name><uri>http://www.blogger.com/profile/16554817105973672492</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/-lNMwYkqifIY/T2WLHvNdrEI/AAAAAAAAA6E/zB22irt8Vuo/s220/KM.png'/></author></entry><entry><id>tag:blogger.com,1999:blog-5197576949846124321.post-7853935214559633314</id><published>2010-09-02T00:02:00.000+05:30</published><updated>2010-09-02T00:02:04.722+05:30</updated><title type='text'>Managing solaris os file system</title><content type='html'>&lt;b style=&quot;color: red;&quot;&gt;Creating a New ufs File System&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
# newfs /dev/rdsk/c0d1s6&amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to create a new filesystem&lt;br /&gt;
&lt;br /&gt;
# fstyp -v /dev/rdsk/c0d1s6 | head &amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to view minfree value&lt;br /&gt;
&lt;br /&gt;
# newfs -m 2 /dev/dsk/c0d1s6&amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to set minfree value for a new filesystem&lt;br /&gt;
&lt;br /&gt;
# tunefs -m 1 /dev/rdsk/c0d1s6&amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to change minfree value on an existing &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; file system&lt;br /&gt;
&lt;br /&gt;
&lt;b style=&quot;color: red;&quot;&gt;&lt;br /&gt;
Checking the File System&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Never run the fsck command on a mounted ﬁle system. &lt;br /&gt;
&lt;br /&gt;
# fsck /dev/rdsk/c0d1s6&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to check an unmounted filesystem&lt;br /&gt;
&lt;br /&gt;
# fsck /export/home&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to check using the mount point directory&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# fsck -o f,p /dev/rdsk/c0d1s6&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; f - forces a ﬁle system check&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; p - checks and ﬁxes the ﬁle system noninteractively (preen). The&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; program exits immediately if a problem requiring intervention is &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; found.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# fsck -o b=32 /dev/rdsk/c0d1s6&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to use a backup superblock&lt;br /&gt;
&lt;br /&gt;
# newfs -N /dev/rdsk/c0d1s6&amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to list the locations of all the &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; alternative backup superblocks&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; N - to view the ﬁle system parameters without actually creating the &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ﬁle system&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# fsck -o b=518432 /dev/rdsk/c0d1s6&amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to use an alternative superblock &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; number&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# newfs -N -T /dev/rdsk/c1t3d0s7&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; T - allows the ﬁle system to be a multi-Terabyte ﬁle system&lt;br /&gt;
&lt;br /&gt;
&lt;b style=&quot;color: red;&quot;&gt;&lt;br /&gt;
Monitoring File System Use&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
To display the capacity of ﬁle systems&lt;br /&gt;
&lt;br /&gt;
# df -k&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;gt; disk allocation in Kbytes&lt;br /&gt;
&lt;br /&gt;
# df -h &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; human readable format&lt;br /&gt;
&lt;br /&gt;
# df -k /dev/dsk/c0d1s6&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to view available space on a device&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To display disk usage&lt;br /&gt;
&lt;br /&gt;
# cd /opt&lt;br /&gt;
# du -k&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; disk usage in kilobytes&lt;br /&gt;
&lt;br /&gt;
# du -h /opt | more&amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; human readable format&lt;br /&gt;
&lt;br /&gt;
# du -ak /opt&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; disk usage including ﬁles&lt;br /&gt;
&lt;br /&gt;
# du -sk /opt&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; summary of disk usage&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# quot -af&amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to display disk space used by users on all mounted ﬁle &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; systems in kb&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; a - reports on all mounted file systems&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; f - number of files&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# quot -f /dev/dsk/c0d1s6&amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to display disk space used by users for &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; a speciﬁc ﬁle system</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5197576949846124321/posts/default/7853935214559633314'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5197576949846124321/posts/default/7853935214559633314'/><link rel='alternate' type='text/html' href='http://solaris10commands.blogspot.com/2010/09/managing-solaris-os-file-system.html' title='Managing solaris os file system'/><author><name>krishna moorthi</name><uri>http://www.blogger.com/profile/16554817105973672492</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/-lNMwYkqifIY/T2WLHvNdrEI/AAAAAAAAA6E/zB22irt8Vuo/s220/KM.png'/></author></entry><entry><id>tag:blogger.com,1999:blog-5197576949846124321.post-849377287088891449</id><published>2010-09-01T23:58:00.000+05:30</published><updated>2010-09-01T23:58:27.819+05:30</updated><title type='text'>Managing Local disk devices (solaris 10)</title><content type='html'>To display a physical device name&lt;br /&gt;
&lt;br /&gt;
# ls -l /dev/dsk/c0d1s0&lt;br /&gt;
&lt;br /&gt;
# ls -l /dev/rdsk/c0d1s0&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Instance names are abbreviated names assigned by the kernel for each device on the system. An instance name is a shortened name for the physical device name.&lt;br /&gt;
&lt;br /&gt;
# cat /etc/path_to_inst&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to view the physical name and instance &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; name of devices &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# prtconf&amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to display the system’s conﬁguration information&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# format &amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to display both logical and physical device names&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Ctrl+d&amp;nbsp; -&amp;nbsp; to exit the format utility&lt;br /&gt;
&lt;br /&gt;
&lt;b style=&quot;color: red;&quot;&gt;&lt;br /&gt;
Disk Partition Tables&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
# format&lt;br /&gt;
&lt;br /&gt;
format&amp;gt; verify&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to read a disks VTOC (Volume Table of Contents)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# prtvtoc /dev/dsk/c0d1s0&amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to read a disks VTOC&lt;br /&gt;
&lt;br /&gt;
# prtvtoc /dev/dsk/c0d1s2&lt;br /&gt;
&lt;br /&gt;
&lt;b style=&quot;color: red;&quot;&gt;&lt;br /&gt;
Relabeling a Disk&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
# prtvtoc /dev/dsk/c0d1s2 &amp;gt; /var/tmp/c0d1.vtoc&amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to save a disk’s VTOC to &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; a ﬁle &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b style=&quot;color: red;&quot;&gt;To relabel a disk&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
# fmthard -s /var/tmp/c0d1.vtoc /dev/rdsk/c0d1s2&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To initialize the VTOC of a disk &lt;br /&gt;
&lt;br /&gt;
# fmthard -s /dev/null /dev/rdsk/c0d1s2&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# fdisk -W - /dev/rdsk/c0d1p0&amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to view fdisk partition table details&lt;br /&gt;
&lt;br /&gt;
# fdisk -W /var/tmp/c0d1p0 /dev/rdsk/c0d1p0&amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to save fdisk partition &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; details to a file&lt;br /&gt;
&lt;br /&gt;
# fdisk -F /var/tmp/c0d1p0 /dev/rdsk/c0d1p0&amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to restore fdisk &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; partition table&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b style=&quot;color: red;&quot;&gt;Solaris Management Console&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
# smc &amp;amp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to start Solaris Management Console&lt;br /&gt;
&lt;br /&gt;
# /etc/init.d/init.wbem status&amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to determine if SMC server is running&lt;br /&gt;
&lt;br /&gt;
# /etc/init.d/init.wbem stop&amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to stop the SMC server&lt;br /&gt;
&lt;br /&gt;
# /etc/init.d/init.wbem start&amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; to start the SMC server</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5197576949846124321/posts/default/849377287088891449'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5197576949846124321/posts/default/849377287088891449'/><link rel='alternate' type='text/html' href='http://solaris10commands.blogspot.com/2010/09/managing-local-disk-devices-solaris-10.html' title='Managing Local disk devices (solaris 10)'/><author><name>krishna moorthi</name><uri>http://www.blogger.com/profile/16554817105973672492</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/-lNMwYkqifIY/T2WLHvNdrEI/AAAAAAAAA6E/zB22irt8Vuo/s220/KM.png'/></author></entry><entry><id>tag:blogger.com,1999:blog-5197576949846124321.post-7975414083939917854</id><published>2010-08-31T18:44:00.000+05:30</published><updated>2010-08-31T18:44:04.176+05:30</updated><title type='text'>Init levels (solaris 10)</title><content type='html'>&lt;h2&gt;&lt;a href=&quot;http://techmenya.wordpress.com/2009/10/23/session-2-init-levels/&quot;&gt;&lt;/a&gt;&lt;/h2&gt;&lt;br /&gt;
/etc/init.d/…..&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Script file which contains all init levels&lt;br /&gt;
&lt;strong&gt;Init levels :&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
Have Seen the SPARC machine (Really an&amp;nbsp;Un believable Performance )&lt;br /&gt;
SPARC machine which has super concept called &lt;strong&gt;Ok Prompt &lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;with out booting to Os we can able to control some of Admin   activity…which really admire me……&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;ok&amp;gt;&amp;nbsp; boot&amp;nbsp;–S&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Ok prompt not available in Intel X86 machine…&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;while working in SPARC Machine an special type of keyboard  with extra  16 keys …Specially designed&lt;/strong&gt;&lt;br /&gt;
Stop + A&amp;nbsp;&amp;nbsp;&amp;nbsp; ——-&amp;gt;which enter into ok prompt with Single User   Mode…….&lt;br /&gt;
Mostly the key disable while running in SPARC machine For Security  reasons  ….&lt;br /&gt;
&lt;br /&gt;
To Disable :&lt;br /&gt;
&lt;br /&gt;
bash&amp;gt;kbd&amp;nbsp;–a disable&lt;br /&gt;
where&lt;br /&gt;
kbd——&amp;gt;keyboard Input Devices&lt;br /&gt;
&lt;br /&gt;
Disable and Enable&amp;nbsp; are options….&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;(BOTH FOR SPARC AND INTEL X86)&lt;/strong&gt;&lt;br /&gt;
&lt;strong&gt;SPARC-Scalable Processor architecture&amp;nbsp;&amp;nbsp;&amp;nbsp; (RISC)&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
init 0——————&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Hardware Maintenance Mode…….&amp;nbsp;&amp;nbsp;(Any hardware   changes all are hot plug able devices)&lt;br /&gt;
&lt;br /&gt;
init 1——————&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Single User Mode&lt;br /&gt;
&lt;br /&gt;
init 2——————&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Multiuser Mode(without &amp;nbsp;NFS file  system)&lt;br /&gt;
&lt;br /&gt;
init 3——————&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Multiuser Mode (with&amp;nbsp;NFS File system)&lt;br /&gt;
&lt;br /&gt;
init 4——————&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; N/A&amp;nbsp;&amp;nbsp; (Feature use)&lt;br /&gt;
&lt;br /&gt;
init 5—————–&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Shutdown the machine..&lt;br /&gt;
&lt;br /&gt;
init 6——————&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Reboot the machine..&lt;br /&gt;
&lt;br /&gt;
init S——————&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; All Administrative Repairs with highly  Admin  commands</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5197576949846124321/posts/default/7975414083939917854'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5197576949846124321/posts/default/7975414083939917854'/><link rel='alternate' type='text/html' href='http://solaris10commands.blogspot.com/2010/08/init-levels-solaris-10.html' title='Init levels (solaris 10)'/><author><name>krishna moorthi</name><uri>http://www.blogger.com/profile/16554817105973672492</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/-lNMwYkqifIY/T2WLHvNdrEI/AAAAAAAAA6E/zB22irt8Vuo/s220/KM.png'/></author></entry><entry><id>tag:blogger.com,1999:blog-5197576949846124321.post-3660707947580067047</id><published>2010-08-31T18:21:00.000+05:30</published><updated>2010-08-31T18:21:11.008+05:30</updated><title type='text'>Soft Link &amp; Hard Link</title><content type='html'>&lt;div class=&quot;snap_preview&quot;&gt;&lt;strong&gt; &lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Soft Link &amp;amp; Hard Link&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
* link means to linking some thing (or) relationship&lt;br /&gt;
&lt;br /&gt;
* changes made in one file it reflects in another file.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;Two types normally :&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
1.Soft link —————–&amp;gt; Different Inode&amp;nbsp; Number.&amp;nbsp;&amp;nbsp; .eg&amp;nbsp;&amp;nbsp; Inode&amp;nbsp;  (30021) any number depending upon the system maping&lt;br /&gt;
2.Hard link—————&amp;gt;Same Inode .&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Command Need to Look Up:&lt;/strong&gt;&lt;br /&gt;
ls—–&amp;gt; list all the parameters include user,type of  file,permission,&lt;strong&gt;Inode&lt;/strong&gt;………&lt;br /&gt;
ls -lia—-&amp;gt; list in detail&lt;br /&gt;
ln—–&amp;gt;link&lt;br /&gt;
&lt;strong&gt;usage:&amp;nbsp;&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Soft link:&lt;br /&gt;
&lt;/strong&gt;&lt;br /&gt;
bash &amp;gt;&amp;nbsp; ln -s&amp;nbsp; &amp;lt; old file&amp;gt;&amp;nbsp; &amp;lt;new file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
-s&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; denotes soft link&lt;br /&gt;
&amp;lt;old file&amp;gt; already present file&lt;br /&gt;
&amp;lt;new file&amp;gt; point to new file right now create by u.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Example :&lt;/strong&gt;&lt;br /&gt;
bash&amp;gt; ln -s&amp;nbsp; first&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; second&lt;br /&gt;
&lt;br /&gt;
* If the first file is deleted second file also deleted by OS it  self.&lt;strong&gt;&lt;br /&gt;
&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Hard link:&lt;/strong&gt;&lt;br /&gt;
bash &amp;gt; ln&amp;nbsp; first second&lt;br /&gt;
*if the first file is deleted the second file not deleted …..&lt;/div&gt;&lt;!-- footer ................................. --&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5197576949846124321/posts/default/3660707947580067047'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5197576949846124321/posts/default/3660707947580067047'/><link rel='alternate' type='text/html' href='http://solaris10commands.blogspot.com/2010/08/soft-link-hard-link.html' title='Soft Link &amp; Hard Link'/><author><name>krishna moorthi</name><uri>http://www.blogger.com/profile/16554817105973672492</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/-lNMwYkqifIY/T2WLHvNdrEI/AAAAAAAAA6E/zB22irt8Vuo/s220/KM.png'/></author></entry></feed>