psrinfo -pv --显示物理处理器个数与相关的虚拟处下器个数
isainfo -v --32bit或者64bit处理器
hostid --显示硬件主机id
bash-3.00# showrev
Hostname: rac1
Hostid: 4951b0c
Release: 5.10
Kernel architecture: i86pc
Application architecture: i386
Hardware provider:
Domain:
Kernel version: SunOS 5.10 Generic_139556-08
bash-3.00#
bash-3.00# prtconf
System Configuration: Sun Microsystems i86pc
Memory size: 800 Megabytes
cat /etc/motd ---里面就是每次用户登陆的提示信息
如何更改主机名:
在以下文件中更改系统的主机名:
■ /etc/nodename
■ /etc/hostname.*interface
■ /etc/inet/hosts
■ /etc/inet/ipnodes-仅适用于Solaris 10 的某些发行版。
管理solaris的语言环境
bash-3.00# localeadm -a ceu -d /product --添加对应的语言环境
Log file is /var/sadm/install/logs/localeadmin_install.2009-01-21
locale/region name is ceu
Adding packages for Central Europe (ceu)
Region ceu will be installed.
Warning! The directory specified does not exist
(/product)
Please enter the path to this image/disk, or enter 'q' to quit:
(if this image is on CD-ROM, please mount the disk and give the path to the CD-ROM drive e.g. /cdrom/cdrom0)
> q
bash-3.00# localeadm -r ceu --删除语言环境
Log file is /var/sadm/install/logs/localeadmin_uninstall.2009-01-21
locale/region name is ceu
Removing packages for Central Europe (ceu)
Region ceu is not fully installed on this machine. Exiting
bash-3.00#
bash-3.00# localeadm -l --查看语言环境
Checking for installed packages. This could take a while.
Checking for Australasia region (aua)
(c_solaris packages)
|...|
Not all packages found (1 out of 3).
Checking for Central America region (cam)
(c_solaris packages)
|...|
Not all packages found (1 out of 3).
Checking for Central Europe region (ceu)
(c_solaris packages)
|...|
Not all packages found (1 out of 3).
Checking for Eastern Europe region (eeu)
(c_solaris packages)
|...|
Not all packages found (1 out of 3).
Checking for Middle East region (mea)
(c_solaris packages)
|...|
Not all packages found (1 out of 3).
Checking for Northern Africa region (naf)
(c_solaris packages)
|^Cbash-3.00# localeadm -q ceu --查看指定的语言环境
locale/region name is ceu
Checking for Central Europe region (ceu)
(c_solaris packages)
|...|
Not all packages found (1 out of 3).
The Central Europe region (ceu) is not installed on this system
bash-3.00#
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/9240380/viewspace-613524/
,如需转载,请注明出处,否则将追究法律责任。