ifconfig a

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 MAC address is listed as 8 0 20 93 c9 af in this example. You can also retrieve the MAC address from a system that has not yet been booted by performing the banner command at the ok prompt.

Configuring the Sections of Makefile

The first section of the Makefile file contains the following macro definitions The second section of the Makefile file contains the first target, all. all passwd group hosts ipnodes ethers networks rpc services protocols netgroup bootparams aliases publickey netid netmasks c2secure timezone auto.master auto.home auth.attr exec.attr prof.attr user.attr audit.user The all target has several dependencies, each of which represents one of the NIS maps to be built. This feature enables the entire...

TradeOffs When Using Mirrors

A RAID-1 mirror volume maintains identical copies of the data in RAID-0 volumes. Mirroring requires more disks. You need at least twice as much disk space as the amount of data to be mirrored. After configuring a mirror, you can use it as if it were a physical slice. With multiple copies of data available, data access time is reduced if the mirror read and write policies are properly configured. You then use read and write policies to distribute the access to the submirrors evenly across the...

Using a Flash Archive With Interactive Install

You can perform interactive installation of the Solaris OE by using the suninstall program. The Solaris suninstall program only installs the Solaris OE software. After you install the Solaris OE software, you must use other installation programs to install additional software. 1. Insert Solaris 9 OE Installation 1 of 2 CD-ROM. 2. Boot the Flash clone system from the Boot PROM prompt as follows ok boot cdrom - nowin After the pre-installation phase completes, a series of character-based curses...

Tasks Sgu

To determine the amount of disk space used by a swapfs file system, complete the following steps What is the total number of bytes actually allocated and currently in use What is the number of bytes allocated and not currently in use, but reserved by processes for possible future use What is the total amount of swap space, both allocated and reserved What is the total swap space currently available for future reservation and allocation List the physical swap area configured on your system. How...

coreadm

4 per-process core dumps enabled 5 global setid core dumps disabled 6 per-process setid core dumps disabled 7 global core dump logging disabled Note - The line numbers in the example are not part of the configuration. They are part of the example only to assist with the following description of the file. Line 1 of the output identifies the name to use for core files placed in a global directory. When generated, a global core file is created with mode 600 and is owned by the superuser....

Logical Volume

The Solaris Volume Manager software uses virtual disks called logical volumes to manage physical disks and their associated data. Historically, a logical volume is functionally identical to a physical slice. However, a logical volume can span multiple disk members. The Solaris Volume Manager software converts I O requests directed at a volume into I O requests to the underlying member disks. You can create the Solaris Volume Manager software volumes from slices disk partitions or from other...

Monitoring a syslog File in Real Time

You can monitor the designated syslog file, in the var adm directory, in real time using the command tail -f. The tail -f command holds the file open so that you can view messages being written to the file by the syslogd daemon. To view messages sent to the var adm messages file, perform the command

grep rpcbind etcservices

Some rpcbind services start only on demand. The port numbers are registered with the rpcbind process during boot. Figure 2-5 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. inetd.conf spray 1 rpc.sprayd rpc.sprayd portnnnnn inetd.conf spray 1...

The coreadm Command Options

The following are some options to the coreadm command. Note - Only the superuser can use all options, except for the -p option, which a regular user can use. -i pattern Sets the per-process core file name pattern from init to pattern. This option is the same as the coreadm -p pattern 1 command, except that the setting is persistent after a reboot. -e option Enables the specified core file option, where option is global - Enables core dumps by using the global core pattern. process - Enables...

Executing the metaroot Command

When creating mirrors of mounted file systems, you must update the etc vfstab file to change the mount point from a slice, such as dev dsk c t d s , to a volume, such as dev md dsk d . When mirroring any mounted file system other than root , you can use the vi editor to update the etc vfstab file. When mirroring the root file system, use the metaroot command to modify the etc vfstab and etc system files, as follows where devicespecifies either the metadevice or the conventional disk device...

Task 1 Status Stopping and Starting the Solaris Management Console 1

1. Log in to your system, and reboot the system to establish a known starting condition for the system's operating environment. What is the current status of the Solaris Management Console server Solaris Management Console server not running on port 898. 2. Start the Solaris Management Console. Allow the toolboxes to launch completely before proceeding. What is the current status of the Solaris Management Console server Solaris Management Console server version 2.l.0 running on port 898. 3....

Deleting ACLs Using the File Manager GUI

Figure 10-9 shows the confirmation that appears when you delete an ACL. To delete an ACL entry, click Delete in the Properties Delete Confirmation window. Figure 10-9 shows the confirmation that appears when you delete an ACL. To delete an ACL entry, click Delete in the Properties Delete Confirmation window. Figure 10-9 Properties Delete Confirmation Window To confirm the delete operation, click Delete.

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...

Configuring the nscd Daemon

The etc nscd.conf file contains the configuration information for the nscd daemon. Each line specifies either an attribute and a value, or an attribute, a cache name, and a value. An example of an attribute and a value is An example of an attribute, a cache name, and a value is Copyright c 1994-2001 by Sun Microsystems, Inc. ident nscd.conf 1.6 01 01 26 SMI Currently supported cache names passwd, group, hosts, ipnodes exec_attr, prof_attr, user_attr

Starting RPC Services

RPC services are services developed using a set of utilities developed by Sun Microsystems, Inc. While RPC services are assigned a unique program number by the programmer when they are written, the RPC services are not typically assigned to well-known ports. Services that start by default at system boot time Services that do not start automatically at boot and must start on RPC services started at boot time with startup scripts run on available ports above 32768. The rpcbind process associates...

Finish Scripts

Finish scripts are Bourne scripts that JumpStart clients run after installing the Solaris OE but before they reboot. Finish scripts allow you to perform a variety of post-installation tasks on the JumpStart client, including Setting the power-management configuration Retrieving backed-up data from a server on the network Copying selected files from a JumpStart server to the client The following example finish script causes the JumpStart client to turn off automatic shutdown for power...

Recalculating an ACL Mask

You can globally control the effective permissions of a custom ACL entry by using the ACL mask. However, examples in this module show that the ACL mask sometimes does not allow you to set some of the requested permissions that are indicated in the list of ACL entries. Therefore, recalculate the ACL mask, and modify it to allow all the requested permissions in the list of ACL entries. After recalculating the ACL mask, the effective permission of each ACL entry allows the full set of requested...

Verifying AutoFS Entries in the etcmnttab File

The etc mnttab file is a file system that provides read-only access to the table of mounted file systems for the current host. Mounting a file system adds an entry to this table. Unmounting a file system removes the entry from this table. Each entry in the table is a line of fields separated by spaces in the form of special mount_point fstype options time where The name of the resource to be mounted The path name of the directory on which the file system is mounted The time at which the file...

date

Wed Mar 6 15 52 33 MST 2002 date 03061600 usage date -u mmddHHMM cc yy .SS date -u format date -a - sss .fff In summary, you built a regular user account named user1. This account has access to perform regular user commands. However, when it is necessary to perform a software package removal that requires root access, user1 must switch to a role that is configured with the required execution profile. In the role of pkguser and using the Package Administrator rights profile, user1 acquires the...

Reducing the autohome Map to a Single Line

The following entry reduces the auto_home file to a single line. The use of substitution characters specifies that for every login ID, the client remotely mounts the export home loginID directory from the NFS server serverl onto the local mount point home loginID. Figure 7-5 Mounting a Directory on a Local Mount Point Figure 7-5 shows that this entry uses the wildcard character to match any key. The substitution character amp at the end of the location is replaced with the matched key field....

The service not responding Error

The following message appears during the boot process or in response to an explicit mount request, and indicates that an accessible server is not running the NFS server daemons. dbserver NFS Service not responding retrying mntpoint To solve the service not responding error condition, complete the following steps 1. Enter the who -r command on the server to see if it is at run level 3. If the server is not, change to run level 3 by entering the init 3 command. 2. Enter the ps -e command on the...

Task 2 The rpcbind Service Operations

1. Use the rpcinfo command to display information for the rpcbind process. Which port number does the rpcbind process use Which protocols does the rpcbind process use 2. Check that the rpcbind service is listed in the etc services file, and that the listed port number matches the output from the rpcinfo command in the previous step. 3. Use the rpcinfo command to display information for the sprayd service. Which port number is the sprayd service using Which program number is the sprayd service...

Subnet Restrictions

JumpStart clients broadcast RARP requests when they attempt to boot from the network. Broadcast network traffic is normally not forwarded to networks other than the one where the broadcast traffic originated. This situation requires that a JumpStart boot server exist on the same subnet to which JumpStart clients are directly connected. The initial network requests for boot-related services are the only JumpStart client requests that are limited by these subnet restrictions. Identification...

The syslogd Daemon and the m4 Macro Processor

Figure 13-3 shows how the syslogd daemon, the m4 macro processor, and the etc syslog.conf file interact in conceptual phases to determine the correct message routing. These conceptual phases are described as 1. The syslogd daemon runs the m4 macro processor. 2. The m4 processor reads the etc syslog.conf file, processes any m4 statements in the input, and passes the output to the syslogd daemon. The syslogd daemon uses the configuration information output by the m4 processor to route messages to...

The securenets File

The var yp securenets file limits access to NIS services. If the var yp securenets file exists on an NIS server, the server only answers queries or supplies maps to hosts and networks whose IP addresses exist in the file. The server must be able to access itself. To access itself, the server can be a part of the subnet that is allowed to access the server, or you can add the following entry The following example describes a securenets file where The server is configured to access itself. A...

ping sys41

A response of no answer from sys41 indicates that you cannot contact host sys41. This implies a problem with host sys41, or a problem with the network. For the ping command to succeed, the following conditions must be satisfied The interface must be plumbed. The interface must be configured. The interface must be physically connected. The interface must have valid routes configured. Note - Configuration of routes is an advanced networking topic. Detailed network administration concepts are...

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 files Better scaling of file administration as networks grow Figure 16-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 16-2 shows that NIS is organized into...

Soft Partitions

As disks become larger, and disk arrays present larger logical devices to Solaris OEs, users must be able to subdivide disks or logical volumes into more than eight sections, often to create manageable file systems or partition sizes. Soft partitions provide a mechanism for dividing large storage spaces into smaller, more manageable, sizes. For example, large storage aggregations provide redundant storage of many gigabytes, but many scenarios would not require as much space. Soft partitions...

logger p localOcrit Critlevel message

What, if any, new messages does the tail command display Mar 30 15 24 43 host1 root ID 702911 local0.crit Crit-level message A message similar to this displays because crit is a higher level than notice, and the syslogd daemon is configured to recognize the notice level and higher for the local0 facility. 7. Run the logger command from Step 5 three times. Examine the output from the tail command in the other window. How many new messages appear in the var log local0.log file One. The syslogd...

iButton card

An iButton card is a microchip that is similar to those used in a Smartcard, but it is housed in round stainless steel button. The iButton supports Java Card 2.0 OpenCard standards and uses a special reader. The iButton can be worn as jewelry, such as the Java Ring. More information on the iButton can be found at http www.ibutton.com. Sun SCRI External Serial Card Terminal reader The Sun SCRI External Serial Card Terminal reader enables Smartcard functionality to be added to systems that were...

getfacl filel setfacl f file3 ls l

-rwxrw-r-- 1 userc sysadmin -rwxrw-r-- 1 userc sysadmin -rwxrw-r-- 1 userc sysadmin getfacl filel file3 0 Apr 18 15 44 file1 0 Apr 18 15 44 file2 0 Apr 29 14 30 file3 group sysadmin user rwx user usera rwx group rw-mask rwx other r-- Note - Conventional UNIX permissions are set to match the source files when you copy an ACL.

NFS Server

The NFS server contains file resources shared with other systems on the network. A computer acts as a server when it makes files and directories on its hard disk available to the other computers on the network. Hostl share export rdbms Figure 6-2 NFS Server Configuration Figure 6-2 shows how files and directories on an NFS server are made available to NFS clients. The NFS server is sharing the export rdbms directory over NFS.

ifconfig a 1

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 interface is up, running, and configured with an IP address of 192.168.30.41.

Displaying the MAC Address

The media access control MAC address is your computer's unique hardware address on a local area network LAN . The MAC address is also the Ethernet address on an Ethernet LAN. When you are connected to a LAN, an address resolution table maps your computer's physical MAC address to an Internet Protocol IP address on the LAN. Two ways to display the MAC address or the Ethernet address are Use the ifconfig -a command Use the boot programmable read-only memory PROM banner command Note - The MAC...