svcs l nfsserver

require_any error svc milestone network online require_all error svc network nfs nlockmgr online optional_all error svc network nfs mapid online require_all restart svc network rpc bind online optional_all none svc network rpc keyserv disabled optional_all none svc network rpc gss online require_all error svc system filesystem local online

The zonecfg Resources Parameters

Resource types within the zonecfg utility include the following zone name - Defines the zone name and identifies the zone to the configuration utility. zonepath - Defines the zone path resource and is the path to the zone root. fs - Assigns resource parameters for file systems. Use of the special parameter allows the local zone to mount global system resources under separate directories. Table 15-2 shows parameters associated with the fs resource. Table 15-2 The fs Resource Parameters Table...

The NFSv4 Finish script

A sample script is delivered as part of the JumpStart sample files in the CD's s0 Solaris_l0 Misc jumpstart_sample directory. This finish script allows the user to specify the NFS4 domain, within the script, and have the sysidcfg finish.sh script call it. The provided script sets the NFSMAPID_DOMAIN setting in etc default nfs and create the etc .NFS4inst_state.domain state file. Upon first system boot, sysidnfs4 is executed by sysidconfig as explained above, but the existence of the state file...

eject cdrom

6. If you use CD-ROM media, insert the Solaris 10 OS Software 2 CD-ROM in the CD-ROM drive, and allow the vold daemon to automatically mount it. a. Change the directory to the location of the add_to_install_server script. b. Run the add_to_install_server script to copy the remainder of the installation image to the local disk this process can take about 20 minutes . c. When add_to_install_server finishes, change the directory to root , and eject the CD-ROM. 7. Repeat step 6 for the remaining...

inetadm p

Note - The Internet daemon inetd provides services for many network protocols, including the Telnet and File Transfer Protocol FTP protocols. You can enable the trace option for each inetd-managed service to send messages to the syslogd daemon. Use the inetadm command to modify the settings of the service to enable TCP tracing. When you enable the trace option, it uses the daemon.notice to log the client's IP address and TCP port number, and the name of the service. To enable tracing TCP...

The swapfs File System

When the kernel runs a process, swap space for any private data or stack space for the process must be reserved. The reservation occurs in case the stack information or private data might need to be paged out of physical memory, for example, if there are multiple processes contending for limited memory space. Because of the virtual swap space provided by the swapfs file system in the Solaris 10 OS, there is less need for physical swap space on systems with a large available memory. The...

Configuring the DNS Client During Installation

During the system identification phase of a Solaris 10 OS installation, you use several windows to configure the name service. You use function keys or the Escape key to continue through the different windows, depending on the type of installation. For this demonstration, the Escape keys are used. Note - Text in these screens has been edited for readability, and to fit on the page. To configure the system to use DNS, complete the following steps 1. In the Name Service window, select DNS as the...

Starting RPC Services on Demand

Some rpcbind services start only on demand. The port numbers are registered with the rpcbind process during boot. Figure 2-7 shows the steps involved in requesting an RPC port address. When a client application requests a service, the rpcbind process returns the port number of the service to the client machine. The client machine generates a new request using the port number that it just received for the requested service. spray 1 rpc.sprayd rpc.sprayd portnnnnn spray 1 rpc.sprayd rpc.sprayd...

Constructing the sysidcfg File

The sysidcfg file lets you specify many different identification items. Entries in the sysidcfg file must conform to the following rules Independent keywords can be listed in any order. Keywords are not case sensitive. Keyword values can be optionally enclosed in single ' or double quotation marks. Dependent keyword values must be enclosed in curly braces to tie them to their associated independent keyword. Only the first instance of a keyword is valid. If a keyword is specified more than once,...

svcs a grep nfs egrep e serverclient

12 17 32 svc network nfs server default 12 18 18 svc network nfs client default d. If the NFS server daemons are already running, perform the command to share the new directory listed in the etc dfs dfstab file. 11. Create one user account for each member of your lab team. Note - Create their respective home directories in export home for example export home userl for userl, export home user2 for user2, and so on. If you use the Solaris Management Console application to create the user...

coreadm g varcorecorefp e global

For example, the core file name pattern var core core. f. p causes the xyz program with PID 1234 to generate the core file var core core.xyz.1234. Note - In the above coreadm examples, the corefiles file and the core directory must be created manually. The coreadm command does not create them automatically. To verify that this parameter is now part of the core file configuration, run the coreadm command again global core file pattern global core file content init core file pattern init core...

Task Summary Cxf

Monitor the network traffic throughout the exercise. Check that the FTP application is listed in the etc inetd.conf file and the etc services file. Record the name of the FTP server daemon. On both systems, check if the FTP application or server daemon is running. Use one system as the FTP client and the other as the FTP server. Establish an FTP connection, and check again for ftp command-related applications and daemons. Record your observations. Terminate your FTP connection. Check the port...

Swap Slices

The primary swap space on the system is a disk slice. In the Solaris 10 OS, the default location for the primary swap space is slice 1 of the boot disk, which by default, starts at cylinder 0. You can change the default location during a custom installation. Each time you reboot the system, an entry in the etc vfstab file determines the configuration of the swap partition. As additional swap space becomes necessary, you can configure additional swap slices. Plan your swap slice location...

The mountd Daemon

The mountd daemon handles NFS file system mount requests from remote systems and provides access control. The mountd daemon checks the etc dfs sharetab file to determine whether a particular file or directory is being shared and whether the requesting client has permission to access the shared resource. When an NFS client issues an NFS mount request, the mount command on the client contacts the mountd daemon on the server. The mountd daemon provides a file handle to the client.File handles are...

Examples of the sysidcfg File

The following is an example of the sysidcfg file configuring a single network interface network_interface hme0 primary protocol_ipv6 no netmask 255.255.255.0 default_route 192.10.10.1 Note - The encrypted root_password entry in this example represents the password cangetin. The following example shows a sysidcfg file which is used to configure multiple network interfaces. The capability to configure multiple network interfaces in the sysidcfg file was introduced in Solaris 9 9 04 ....

Task 5 Adding a Custom Map to the NIS Master Database

If entries for an auto_direct map do not exist in the Makefile file that you are using, complete the following steps to add them 1. On the NIS master server, edit the var yp Makefile file, and make the following changes a. Add auto.direct to the list of maps associated with the target all. These entries exist in the second section of the var yp Makefile file all passwd group hosts ipnodes ethers networks rpc services protocols netgroup bootparams aliases publickey netid netmasks c2secure...

Running the addinstallclient Script

The add_install_client script configures the boot server to provide the network boot services that JumpStart clients require. Options to the add_install_client script also let you specify what servers and what directories offer identification, configuration, and installation services. Before you run the add_install_client script, edit the etc inet hosts and etc ethers files on the boot server, and add a JumpStart client entry to each file. The following example shows how an entry for clientl in...

JumpStart Using a Flash Archive

Use either the init 0 or the shutdown command to bring the clone to the ok prompt, then boot the clone to the network. SunOS Release 5.10 Version s10 64-bit Copyright 1983-2005 Sun Microsystems, Inc. All rights reserved. SUNW,hme0 100 Mbps half duplex link up Using RPC Bootparams for network configuration information. Attempting to configure interface hme0 Searching for configuration file s Using sysid configuration file 192.168.30.30 export config sysidcfg Search complete. Discovering...

Modifying a Role

To modify the login information of a role on a system, use the rolemod command. The rolemod command changes the definition of the specified role and makes the appropriate login-related changes to the system file and file system. The fields in the rolemod command are -e expire Specifies the expiration date for a role. -l new_logname Specifies the new login name for the role. -P profile Specifies one or more comma-separated rights profiles, as defined in the etc security prof_attr file. -s shell...

Displaying the Current Swap Configuration

Figure 4-3 shows the relationship between the used swap space, which consists of allocated and reserved swap spaces, and the available swap space. Memory paging affects the amount of memory allocated space Task activation affects the amount of memory reserved space Arrow up swap -d subtracts the amount of available swap space Memory paging affects the amount of memory allocated space Task activation affects the amount of memory reserved space Arrow up swap -d subtracts the amount of available...

Configuring the nfslogd Daemon Behavior

The configuration information in the etc default nfslogd file controls the logging behavior of the nfslogd daemon. The etc default nfslogd file defines default parameters used for NFS server logging. Table 6-10 describes some of the NFS logging parameters. Sets the amount of time that the nfslogd daemon sleeps before checking the buffer file for more information. It also determines how often the configuration file is checked. The default value is 300 seconds. Increasing this number can improve...

Introducing NIS Fundamentals

NIS facilitates the creation of server systems that act as central repositories for several of the administrative files found on UNIX systems. The benefits of NIS include Centralized administration of configuration files Better scaling of configuration file administration as networks grow Figure 14-2 shows that NIS is organized into named administrative domains. Conceptually, within each domain there is one NIS master server, zero or more slave servers, and one or more clients. Figure 14-2...

inetadm l telnet

user root default bind_addr default bind_fail_max -1 default bind_fail_interval -1 default max_con_rate -1 default max_copies -1 default con_rate_offline -1 default failrate_cnt 40 default failrate_interval 60 default inherit_env TRUE tcp_trace TRUE default tcp_wrappers FALSEgrep inetd etc init.d inetsvc Note - The change is immediately recognized. There is no requirement to restart any daemon process. The etc syslog.conf file configures the syslogd daemon so that it selectively distributes...

Starting RPC Services at Boot Time

RPC services started at boot time with startup scripts run on available ports above 32768. The rpcbind process associates RPC program numbers with port numbers. The rpcbind service must be running on the server system for you to make RPC requests to the server. When an RPC service starts at boot, it communicates the following information to the rpcbind process The port with which it is associated If a client wants to make an RPC call to a given program number, it must first contact the rpcbind...

share o ro usrlocaldata

By default, NFS-mounted resources are available with read and write privileges based on standard Solaris OS file permissions. Access decisions are based on a comparison of the user ID UID of the client and the owner. The following share command options shown in Table 6-4 restrict the read and write capabilities for NFS clients and enable superuser access to a mounted resource. Informs clients that the server accepts only read requests Allows the server to accept read and write requests from the...

No Server Available

If your domain name is set correctly, the ypbind daemon is running, and you get messages indicating that the client cannot communicate with a server, it can indicate a number of different problems Does the client have a var yp binding domainname ypservers file containing a list of servers to which it can bind If not, enter the ypinit -c command, and specify the servers that this client should bind to, in the order of preference. If the client has a var yp binding domainname ypservers file, does...

defaultdomain

4. Use the ypinit command as follows to set up this system as an NIS client a. Use the ypinit -c command to start the setup process. ypinit -c b. When prompted for a list of NIS servers, enter the name of the NIS master server followed by the name of the local host which subsequently becomes a slave server . Press Control-D to terminate the list. 5. Copy the etc nsswitch.nis template to the etc nsswitch.conf file.

Using the zonecfg Command

The zonecfg command is used to configure a zone. The zonecfg command can be used in interactive mode, in command-line mode, or in command-file mode. The following operations can be performed using this command You can create or delete a zone configuration. You can set properties for resources added to a configuration. You can query or verify a configuration. You can commit to a configuration. You can revert to a previous configuration. You can exit from a zonecfg session. Note - There are many...

The Service Configuration Repository

The repository database stores information about the state of each service instance. It also stores configuration information about the services and system. The repository is distributed among local memory and local disk-based files. The disk-based database is etc svc repository.db. This file can only be manipulated using the SMF interface utilities svccfg and svcprop. The repository is managed by the svc.configd daemon. The svc.configd daemon backs up the repository before applying any changes...

inetadm grep telnet

To list the current state of all network facilities To list the current state of all network facilities network security ktkt warn default 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.

Topics Not Covered

This course does not cover the following topics. Many of these topics are covered in other courses offered by Sun Educational Services Basic UNIX commands - Covered in SA-100 UNIX Essentials Featuring the Solaris 10 Operating System The vi editor - Covered in SA-100 UNIX Essentials Featuring the Solaris 10 Operating System Basic UNIX file security - Covered in SA-100 UNIX Essentials Featuring the Solaris 10 Operating System Software package administration - Covered in SA-200 Intermediate System...

Displaying the IP Address

The ifconfig -a command displays the current configuration for the network interfaces. With the -a option, the ifconfig command displays the current configuration for all network interfaces in the system. lo0 mtu 8232 index 1 inet 127.0.0.1 netmask ff000000 hme0 mtu 1500 index 2 inet 192.168.30.41 netmask ffffff00 broadcast 192.168.30.255 ether 8 0 20 93 c9 af The previous example shows that the loopback interface lo0 is up, running, and configured with an IP address of 127.0.0.1. The hme0...

IPv4 Interface Files

The etc hostname.xxn file contains an entry that configures a corresponding interface. The variable component of the file name is replaced by an interface type and a number that differentiates between multiple interfaces of the same type configured in the system. Table 1-1 shows some examples. Table 1-1 The etc hostname.xxn File Entries and Corresponding Interfaces Table 1-1 The etc hostname.xxn File Entries and Corresponding Interfaces First hme Ethernet interface in the system Second hme...

Introducing the Internet Service Daemon inetd

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. The inetd daemon is the server process for both the standard Internet services and Sun Remote Procedure Call Sun RPC services. The inetd daemon starts at boot time by svc.startd. There is a legacy configuration file for inetd, etc inet inetd.conf. Services listed in this file are imported into the Service Management Facility SMF by the inetconv...

Performing the Exercises

You have the option to complete any one of three versions of a lab. To decide which to choose, consult the following descriptions of the levels Level 1 - This version of the lab provides the least amount of guidance. Each bulleted paragraph provides a task description, but you must determine your own way of accomplishing each task. Level 2 - This version of the lab provides more guidance. Although each step describes what you should do, you must determine which commands and options to input....

Changing the System Host Name

The host name of a system is contained in three files on the system. You must modify all of these files, and perform a reboot, to successfully change a system's host name. The files that contain the host name of a system are Note - If crash dump is enabled on the system, the system name needs to be changed under var crash. Older versions of Solaris also had the hostname in files located under etc net tic . Each Solaris OS has a canonical name, which is the official name used when referring to a...