The ‘Solaris system administration’ Archives
Posted March 24, 2005 by

Solaris 10: view or list all running zones

The zoneadm command can be used to list active or running zones.

Posted December 21, 2004 by

Solaris: Mount filesystem with UFS Logging Enabled

When UFS logging is enabled, UFS write operations are broken into transactions which are stored to a log before being committed to the filesystem. The use of UFS logging maintains filesystem consistency and prevents the need to run fsck against the filesystem. This can significantly reduce the time required to reboot a system.

Posted September 14, 2004 by

Determine if Solaris is Running in 32 or 64 Bit Mode

The isainfo command can be used to determine if a Solaris system has been configured to run in 32 or 64 bit mode.

Posted April 11, 2004 by

Delete Solaris Files Older Than a Certain Date and Time

Deleting files conditionally based on their age is sometimes useful. This tech-recipe describes a procedure for deleting aged files using the UNIX find command.

Posted April 9, 2004 by

Create/Modify a UNIX File with an Arbitrary Timestamp

The touch command in UNIX creates a file if it does not exist or updates the modification time of an existing file to the current time. An option of the touch command allows the modification timestamp to be set to any arbitrary time.

Posted March 31, 2004 by

Solaris: Generate a Core Dump from a Running Process with gcore

A core dump is a snapshot of the memory occupied by a process plus additional debugging information. Core files are typically generated when a process terminates unexpectedly. This tech-recipe describes how to generate a core file manually from a running process.

Posted March 31, 2004 by

Prevent Solaris Core Files Creation with coreadm

Core files provide debugging information about a process that has terminated unexpectedly. Unless you are developing an application, core files are typically of little use and can cause serious problems by filling up filesystems. This tech-recipe describes how to configure Solaris to turn off core file creation for processes.

Posted January 30, 2004 by

Determine the CD-ROM Device Target ID in Solaris

Different Sun platforms have different default device targets for the CD-ROM drive. This simple command will display the drives in the system and allow you to easily determine the CD-ROM target id.

Posted January 26, 2004 by

Install a Solaris Datastream Package

Datastream packages, such as those obtained from sunfreeware.com, can be installed though translation to a directory-based package or directly, using pkgadd.

Posted October 13, 2003 by

Set the ethernet MAC address in Solaris

The ethernet hardware (MAC) address can be configured on Sun systems. Trouble can result from duplicate MAC addresses in a subnet, so use with caution.

Posted October 13, 2003 by

Configure unique MAC addresses on multiple interfaces

The same ethernet hardware (MAC) address is used by default on Sun systems with multiple ethernet interfaces. This works fine for failover load balancing or failover groups. It presents a problem when the two interfaces are connected to the same subnet.