内に含ま
その他のドキュメント
サポート リソース
| PDF 文書ファイルをダウンロードする
Examining and Changing System Information
5
- This chapter contains the following sections:
-
Examining System Information
- This section describes how to examine system information such as host name, amount of memory, or IP address.
Determining the PROM Version
- Refer to Administration Supplement for Solaris Platforms for instructions on determining the PROM version of a system.
· How to Determine the Host Name
-
* Type uname -n and press Return.
-
· How to Print the Host ID number
-
* Type sysdef -h and press Return.
-
# sysdef -h
*
* Hostid
*
51025dec
#
|
- The host ID is shown in hexadecimal format.
· How to Determine the Amount of Memory
-
* Type prtconf | grep Memory and press Return.
-
# prtconf | grep Memory
Memory size: 28 Megabytes
#
|
· How to Determine the Kernel Architecture Type
-
* Type uname -m and press Return.
-
· How to Determine the Processor Type
-
* Type uname -p and press Return.
-
· How to Determine the Operating System Release
-
* Type uname -r and press Return.
-
· How to Display System Information With the Workspace Menu
-
* Choose Workstation Info from the OpenWindows Workspace menu.
- A window similar to the following is displayed.
-

The /etc/system File
- The /etc/system file is used to customize the Solaris operating system kernel. The commands in the system file are read by the kernel during initialization at boot time.
Format of the /etc/system File
- The /etc/system file is a list of commands that consist of keyword and value pairs. A command line must be 80 characters or less in length. Comment lines must begin with an asterisk and end with a newline character. The following command sets the maximum number of users that can be logged in to the system to 40:
-
- Commands can modify the loadable kernel modules, root device, root file system type, swap device, swap file system type, and kernel parameters. For information on the commands that can be used in the /etc/system file, see the system(4) manual page.
- For more information on modifying kernel parameters, see "Changing System Information" on page 54. For a list of configurable kernel parameters, see Security, Performance, and Accounting Administration.
- The following example shows the default /etc/system file.
-
Table 5-1 The Default /etc/system File
-
*ident"@(#)system1.1592/11/14 SMI" /* SVR4 1.5 */
*
* SYSTEM SPECIFICATION FILE
*
* moddir:
*
* Set the search path for modules. This has a format similar to the
* csh path variable. If the module isn't found in the first directory
* it tries the second and so on. The default is /kernel /usr/kernel
*
|
-
Table 5-1 The Default /etc/system File (Continued)
-
* Example:
* moddir: /kernel /usr/kernel /other/modules
* root device and root filesystem configuration:
*
* The following may be used to override the defaults provided by
* the boot program:
*
* rootfs: Set the filesystem type of the root.
*
*
* rootdev:Set the root device. This should be a fully
* expanded physical pathname. The default is the
* physical pathname of the device where the boot
* program resides. The physical pathname is
* highly platform and configuration dependent.
*
* Example:
* rootfs:ufs
* rootdev:/sbus@1,f8000000/esp@0,800000/sd@3,0:a
*
* (Swap device configuration should be specified in /etc/vfstab.)
* exclude:
*
* Modules appearing in the moddir path which are NOT to be loaded,
* even if referenced. Note that 'exclude' accepts either a module name,
* or a filename which includes the directory.
*
* Examples:
* exclude: win
* exclude: sys/shmsys
* forceload:
*
|
-
Table 5-1 The Default /etc/system File (Continued)
-
* Cause these modules to be loaded at boot time, (just before mounting
* the root filesystem) rather than at first reference. Note that
* forceload expects a filename which includes the directory. Also
* note that loading a module does not necessarily imply that it will
* be installed.
*
* Example:
* forceload: drv/foo
* set:
*
* Set an integer variable in the kernel or a module to a new value.
* This facility should be used with caution. See system(4).
*
* Examples:
*
* To set variables in 'unix':
*
* set nautopush=32
* set maxusers=40
*
* To set a variable named 'debug' in the module named 'test_module'
*
* set test_module:debug = 0x13
|
Changing System Information
- Some system changes require modifying the /etc/system file. Before editing the /etc/system file, you should save a copy of the original file.
· How to Set the Number of Processes per User
-
-
Edit the /etc/system file with a text editor and add the following line: set maxuprc=value
where value is the number of processes a user can run at one time.
-
-
Type touch /reconfigure and press Return.
-
Reboot the system.
· How to Change the Host Name of a System
-
-
Edit the following files with a text editor, changing the host name in each file:
-
-
· /etc/nodename
· /etc/hostname.ethernet_device_interface (for example,
/etc/hostname.le0 or /etc/hostname.smc0)
· /etc/inet/hosts
· /etc/net/ticlts/hosts
· /etc/net/ticots/hosts
· /etc/net/ticotsord/hosts
-
-
Reboot the system.
· How to Increase the Number of Pseudo-ttys to 256
-
-
Edit the /etc/system file with a text editor and add the following line:
-
-
set pt_cnt=256
-
-
Type touch /reconfigure and press Return.
-
Reboot the system.
· How to Increase the Number of Lock Requests
- The default number of lock requests that may occur simultaneously is 512. As users log out, they lock files, including utmp. If more than 512 users are likely to log out simultaneously (within a few seconds), the number of file locks allowed must be increased, as follows:
-
-
Edit the /etc/system file with a text editor and add the following line:
-
-
set tune_t_flckrec=1024
-
-
Type touch /reconfigure and press Return.
-
Reboot the system.
· How to Increase Shared Memory Segments
- The following instructions show how to increase the kernel parameter values for shared memory. The values used are appropriate for a system with a large amount of memory (for example, 128 MBytes) that is running a large database application.
-
-
Edit the /etc/system file with a text editor and add the following lines:
-
-
set shmsys:shminfo_shmmax=268435456
set semsys:seminfo_semmap=250
set semsys:seminfo_semmni=500
set semsys:seminfo_semmns=500
set semsys:seminfo_semmsl=500
set semsys:seminfo_semmnu=500
set semsys:seminfo_semume=100
set shmsys:shminfo_shmmin=200
set shmsys:shminfo_shmmni=200
set shmsys:shminfo_shmseg=200
-
-
Type touch /reconfigure and press Return.
-
Reboot the system.
|
|