Solaris 시스템 정보 확인 명령어 정리 (System Administrator Guide)
Solaris 운영 환경에서는 시스템 장애 분석, 성능 점검, 하드웨어 확인, 패치 관리 등을 위해 다양한 기본 명령어를 제공합니다.
1. Solaris 기본 시스템 정보 확인
1.1 uname -a
운영체제, 커널, 호스트명, 플랫폼 정보를 확인합니다.
uname -a
SunOS sun 5.10 Generic_127127-11 sun4u sparc SUNW,Sun-Fire-480R
1.2 Solaris Release 확인
cat /etc/release
Solaris 10 8/11 s10s_u10wos_17b SPARC
- 운영체제 설치 버전 및 Update 정보를 확인할 수 있습니다.
1.3 설치 Release 정보 확인
cat /var/sadm/softinfo/INST_RELEASE
운영체제 SunOS
서버명 sun
버전은 5.10
커널 패치127127이며
커널 패치의 리비전은 11
애플리케이션 아키텍쳐 sun4u
시스템 모델 Sun-Fire-480R
1.4 Kernel Architecture 확인
/bin/isainfo -kv
64-bit sparcv9 kernel modules
의미
- 64bit Kernel 사용
- SPARC v9 Architecture
2. 시스템 장치 및 하드웨어 확인
2.1 prtdiag
Solaris SPARC 시스템의 하드웨어 상태 확인 명령입니다.
/usr/platform/`uname -i`/sbin/prtdiag
상세 정보
/usr/platform/`uname -i`/sbin/prtdiag -v
Brd Type MHz Slot Name Model
1 SBus 25 0 SUNW,sbus-gem
참고
prtdiag는 SPARC Solaris에서 주로 사용되며 Intel Solaris에서는 제공되지 않는 경우가 있습니다.
3. Solaris Patch 확인
3.1 설치된 모든 Patch 확인
showrev -p
Patch: 114433-10
Obsoletes: 115485-01
Requires:
Packages:
SUNWcsu
SUNWcsl
항목 의미
- Patch : 설치된 패치
- Obsoletes : 대체되어 제거된 패치
- Requires : 필요 선행 패치
- Packages : 영향받는 패키지
3.2 Kernel Patch 확인
uname -srv
SunOS 5.10 Generic_127127-11
- 커널에 적용된 최신 패치 확인 가능
4. Memory/Swap 확인
4.1 Swap 확인
현재 Swap 사용량
swap -s
total: 45544k bytes allocated + 18984k reserved = 64528k used, 722236k available
Swap Device
swap -l
swapfile dev swaplo blocks free
/dev/dsk/c1d1s1 102,129 8 1048936 1048936
5. Disk 정보 확인
5.1 인식된 Disk 확인
cat /etc/path_to_inst | grep sd
또는
prtconf | grep disk
5.2 Device Mapping 확인
ls -l /dev/rdsk/*s2
lrwxrwxrwx 1 root root 54 Dec 7 04:20 /dev/rdsk/c0d0s2 -> ../../devices/pci@0,0/pci-ide@7,1/ide@0/cmdk@0,0:c,raw
Solaris Disk Naming
cXtYdZsN
c : Controller
t : Target
d : Disk
s : Slice
5.3 Disk 제조사 및 모델 확인
iostat -nE
확인
- Vendor
- Model
- Error Count
- Disk 상태
6. Disk Partition 확인
prtvtoc
Disk Slice 정보를 확인합니다.
prtvtoc /dev/rdsk/c0d0s2
Partition Map
filesystem 사용량
df -h
Filesystem size used avail capacity Mounted on
/dev/dsk/c1d1s7 1.9G 2M 1.8G 1% /export/home
Directory별 사용량
du -sh *
7. Device 정보 확인
전체 Device 확인
cat /etc/path_to_inst
Graphic Card 확인
prtconf | grep -i m64
상세 설정
m64config -prconf
확인
- Resolution
- Refresh Rate
Network Interface 확인
cat /etc/path_to_inst | grep hme
또는
ifconfig -a
8. CPU 정보 확인
Processor 확인
psrinfo
0 on-line since 10/15/2007
상세 정보
psrinfo -pv
The i386 physical processor has 1 virtual processor
확인
- CPU 개수
- Online 상태
- Processor Type
9. Memory 확인
Physical Memory
prtconf | grep Memory
Memory size: 352 Megabytes
Kernel Memory
sar -k 1 1
Free Memory
vmstat 3
procs memory page disk faults cpu
r b w swap free re mf pi po fr de sr f0 s2 s3 s4 in sy cs us sy id
0 0 0 81832 74792 0 12 75 4 93 0 36 0 1 1 1 265 1940 303 5 1 93
10. Process Memory 확인
Memory 사용량 Top Process
ps -elf | head -1
ps -elf | sort -k 10 -r | head
Memory 계산
Memory = SZ × pagesize
pagesize 확인
pagesize
4096 bytes
특정 Process Memory 분석
PID 확인
ps -ef
Memory Map
/usr/proc/bin/pmap -x PID
확인
- RSS
- Shared Memory
- Heap
- Library
11. Kernel Module 확인
Kernel Object 확인
sysdef
...
* Hostid
* Devices
* Loadable Objects
...
Load Module 확인
modinfo
Id Loadaddr Size Info Rev Module Name
5 fe933000 3f32 1 1 specfs (filesystem for specfs)
12 fe96a962 18f - 1 fssnap_if (File System Snapshot Interface)
...
특정 Module
modinfo -i module_id
Id Loadaddr Size Info Rev Module Name
5 fe933000 3f32 1 1 specfs (filesystem for specfs)
12. Network 정보 확인
Interface 확인
ifconfig -a
lo0: flags=1000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4> mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
Routing Table
netstat -nr
Routing Table: IPv4
Destination Gateway Flags Ref Use Interface
-------------------- -------------------- ----- ----- ------ ---------
192.168.8.0 192.168.8.2 U 1 61 pcn0
224.0.0.0 192.168.8.2 U 1 0 pcn0
default 192.168.8.254 UG 1 62
127.0.0.1 127.0.0.1 UH 21 74190 lo0
DNS 설정
cat /etc/resolv.conf
nameserver 168.126.63.1
Network Session 확인
netstat -an
UDP: IPv4
Local Address Remote Address State
-------------------- -------------------- -------
*.512 Idle
*.517 Idle
...
Network Buffer 확인
netstat -m
streams allocation:
cumulative allocation
current maximum total failures
streams 238 272 1794 0
queues 674 740 3895 0
mblk 791 1270 39888 0
...
Interface Traffic 확인
netstat -i 2
input pcn0 output input (Total) output
packets errs packets errs colls packets errs packets errs colls
44725 0 44926 0 0 45538 0 45739 0 0
11 0 11 0 0 11 0 11 0 0
...
- 2초 간격 Network 통계 출력
13. 사용자 Disk Quota 확인
quot -af
14. Server Model 확인
prtconf -vp | grep banner-name
15. PROM 설정 확인
Solaris SPARC 환경의 OpenBoot PROM 설정 확인
eeprom
확인 가능
- boot-device
- auto-boot?
- diag-switch?
'맥(솔라리스)' 카테고리의 다른 글
| SecureCRT에서 로그 설정을 구성하는 방법 (0) | 2021.01.07 |
|---|---|
| [솔라리스] snoop 명령어 (0) | 2013.09.07 |
| Mac OS에서 한글 영문 변환 단축키 (1) | 2013.07.19 |
| M1에서 Docker 이미지 실행 시 no matching manifest 에러 해결하기 (0) | 2013.07.11 |
| Solaris 서버 정보 확인 명령어 (0) | 2013.06.25 |