Pwdadm -c [사용자계정명] 이렇게 하면 패스워드 변경 안물어본다
ex) Pwdadm -c jeus 등등
-c kbirPwjd 이렇게 하면 패스워드 변경 안물어본다
OS별 시스템 정보보기
n 설치된 OS명
▷ AIX, Solaris, HP-UX
# uname -s
n 설치된 OS 버전
▷ AIX
# oslevel
▷ Solaris, HP-UX
# uname -r
OS 설치 된 날짜
/usr/sbin/getlvcb -AT hd4
n 모델명
▷ AIX
# lsattr -E -l sys0 | awk '/modelname/ {print $2}'
▷ Solaris
# uname -i
▷ HP-UX
# uname -m
CPU 관련 정보
n CPU 갯수
▷ AIX
• # lsdev -Cc processor | wc -l
▷ Solaris
# psrinfo | wc -l
▷ HP-UX
# ioscan -fknC processor | grep processor | wc -l
n CPU 속도
▷ AIX
# value=`lscfg -vp | grep "PS=" | head -1 | awk -F"PS=" '{print $2}' | awk -F"," '{print $1}'`
# value="0x$value"
# value=`printf "%dn" $value`
# expr $value / 1000000
▷ Solaris
# psrinfo -v `psrinfo | awk '{print $1}' | head -1` | awk '/operates/ {print $6}'
▷ HP-UX
# echo itick_per_user/D | adb -k /stand/vmunix /dev/mem | tail -1 | awk '{print $2}'
메모리 관련 정보
n 메모리 갯수
▷ AIX
# lsdev -C | grep -i memory | wc -l
n 메모리 용량
▷ AIX
# lsattr -E -l mem0 -a size | awk '{print $2}'
▷ Solaris
# prtconf | awk '/Memory size/ {print $3}'
▷ HP-UX
# value=`dmesg | grep Physical | grep Kbytes | awk '{print $2}'`
# expr $value / 1024
디스크 관련 정보
n 디스크 갯수
▷ AIX
# lsdev -Cc disk | wc -l
▷ Solaris
# format <<-! > /tmp/format.dat
> 0
> q
> !
# cat /tmp/format.dat | grep cyl | wc -l
▷ HP-UX
# ioscan -fknC disk | grep disk | grep -v "CD-ROM" | grep -v "DVD-ROM" | wc -l
n 디스크 용량
▷ AIX
# lspv hdisk0 | grep "TOTAL PPs" | awk -F"(" '{print $2}' | awk '{print $1}'
▷ Solaris
# bps=`prtvtoc /dev/dsk/c0t0d0s0 | grep "bytes/sector" | awk '{print $2}'`
# sectors=`prtvtoc /dev/dsk/c0t0d0s0 | grep -v "*" | grep "^ *2" | awk '{print $5}'`
# bc -l << !
> scale=0
> $sectors * $bps / 1024 / 1024
> !
▷ HP-UX
# hwpath=`ioscan -fknC disk | grep disk | grep -v "CD-ROM" | grep -v "DVD-ROM" | head -1`
# name=`ioscan -fkn -H $hwpath | grep "/rdsk/" | awk '{print $2}'`
# value=`diskinfo $name | awk '/size:/ {print $2}'`
# expr $value / 1024
AIX Hardware 확인
1. CPU
# lsdev -Cc processor
# lsattr -El proc0
====================
root@AIX-***:/>lsdev -Cc processor
proc0 Available 00-00 Processor
....
root@AIX-***:/>lsattr -El proc0
frequency 1452000 Processor Speed False
.....
state enable Processor state False
type PowerPC_POWER99 Processor type False
====================
2. Memory
# lsdev -Cc memory
# lsattr -El mem0 : 상세 속성
# lscfg -vp |grep Size : memory bank에 장착된 개별 memory size와 수량
====================
root@AIX-***:/>lsdev -Cc memory
L2cache0 Available L2 Cache
mem0 Available Memory
root@AIX-***:/>lsattr -El mem0
goodsize **92 Amount of usable physical memory in Mbytes False
size **92 Total amount of physical memory in Mbytes False
root@AIX-***:/>lscfg -vp |grep Size
Size........................1024
Size........................1024
....................
====================
3. Disk
# lsdev -Cc disk
# lscfg -vp |grep disk : disk size
# lsattr -El hdisk0
====================
root@AIX-***:/>lsdev -Cc disk
hdisk0 Available 1Z-98-99-8,0 16 Bit LVD SCSI Disk Drive
........
hdisk3 Defined 1A-998-82 **** Disk Array (Fibre)
hdisk4 Defined 1A-998-82 **** Disk Array (Fibre)
.......
root@AIX-***:/>lscfg -vp |grep disk
hdisk0 U0.1-P*/Z*-A* 16 Bit LVD SCSI Disk Drive (7**00 MB)
hdisk1 .....
Name: disk
Node: disk@0
root@AIX-***:/>lsattr -El hdisk0
PCM PCM/friend/scsiscsd Path Control Module False
algorithm fail_over Algorithm True
dist_err_pcnt 0 Distributed Error Percentage True
dist_tw_width 50 Distributed Error Sample Time True
.......
====================
4. Adapter
# lsdev -Cc adapter
# lsslot -c pci
# lsslot -c pci -l scsi1
====================
root@AIX-***:/>lsdev -Cc adapter
ent0 Available 1c-08 10/100 Mbps Ethernet PCI Adapter II (****ff01)
fcs0 Defined 1D-08 FC Adapter
........
root@AIX-***:/>lsslot -c pci
# Slot Description Device(s)
U0.1-P2-I1 PCI-X capable, 64 bit, 133MHz slot Empty
.......
====================
root@AIX-***:/>lsslot -c pci -l scsi1
슬롯 이름 설명 연결된 장치
U0.4-**1-**1 PCI 64비트, 33MHz, 5볼트 슬롯 scsi1
5. DAT 및 CDROM
# lsdev -Cc tape
# lsdev -Cc cdrom
====================
root@AIX-***:/>lsdev -Cc tape
rmt0 Available 1Z-**-**-0,0 LVD SCSI 4mm Tape Drive
root@AIX-***:/>lsattr -El rmt0
block_size 1024 BLOCK size (0=variable length) True
compress yes Use data COMPRESSION True
......
root@AIX-***:/>lsdev -Cc cdrom
cd0 Available 1Z-08-**-*,0 16 Bit LVD SCSI DVD-ROM Drive
root@AIX-***:/>lsattr -El cd0
prevent_eject yes PREVENT ejection of media when open True
queue_depth 3 Queue DEPTH False
.......
====================
6. Error Report(errpt)
# errpt
- IDENTIFIER : 에러 식별자
- TIMESTAMP : 에러발생 시간소인(월일시분년)
- T : 가능한 에러유형
. PEND : 장치의 손실 가능성이나 곧 문제가 발생할 구성요소
. PERF : 장치의 성능이나 접근레벨이 감소
. PERM : 복원불가 조건인 몇 가지 에러
. TEMP : 실패 시도 횟수후에 복원되는 조건
. UNKN : 에러 분별하는데 불가능
. INFO : 정보 엔트리
- C
. H : 하드웨어
. S : 소프트웨어
. O : 정보 메세지
. U : 분석 못함
- RESOURCE_NAME : 실패된 리소스 이름
- DESCRIPTION : 에러 요약
# errpt -aj AA8AB333 |more
- a : 에러정보 자세히 출력
- j errorID
# errclear 0
- 에러로그 삭제
# errclear -d S 0
- 에러로그에서 엔트리 선택적으로 삭제
- 소프트웨어에 해당하는 모든 엔트리 삭제
====================
root@AIX-***:/>errpt
IDENTIFIER TIMESTAMP T C RESOURCE_NAME DESCRIPTION
***AB*** ***615**** T O OPERATOR OPERATOR NOTIFICATION
***F4*** ***615**** I O RMCdaemon The daemon is started.
......
root@AIX-***:/>errpt -aj AA8AB*** |more
---------------------------------------------------------------------------
LABEL: OPMSG
IDENTIFIER: **8*B***
Date/Time: 20**년 **월 **일 월요일 15시 14분 02초
Sequence Number: **46***
Machine Id: 00*********
Node Id: AIX-***
Class: O
Type: TEMP
Resource Name: OPERATOR
Description
OPERATOR NOTIFICATION
User Causes
ERRLOGGER COMMAND
Recommended Actions
REVIEW DETAILED DATA
Detail Data
MESSAGE FROM ERRLOGGER COMMAND
.....
====================
1. OS
(1)OS 버전
-AIX : oslevel
-LINUX: OS(cat /etc/redhat-release)
-HP-UX: uname -a
(2)bit 확인
-AIX : getconf -a |grep KERN
-LINUX: uname -a
-HP-UX: getconf KERNEL_BITS
2. CPU
(1)CPU 모델명
-AIX : prtconf |grep -i processor
-LINUX: cat /proc/cpuinfo
-HP-UX: machinfo
(2)Core 수
-AIX : lsdev -Cc processor | wc -l
-LINUX: cat /proc/cpuinfo |grep processor |wc -l
-HP-UX: machinfo ioscan -fknC processor |grep processor |wc -l
(3)CPU이용률 확인
-AIX : topas
-LINUX: top
-HP-UX: glance 또는 top
3. Memory
(1)메모리 Size
-AIX : lsattr -E -l mem0 -a size | awk '{print $2}'
-LINUX: free |grep Mem | awk '{print $2}'
-HP-UX: machinfo |grep Memory
(2)메모리 이용률 확인
-AIX : svmon -G 또는 svmon -f
-LINUX: top
-HP-UX: glance -> m
4.Disk
-AIX : df -gP
-LINUX: df -h //mirror 및 RAID 구성은 확인 어려움
-HP-UX: bdf
*hp-ux 디스크 용량 Print Script
df -Pk | awk '
BEGIN {print "Filesystem Mount Point Total GB Avail GB Used GB Used"
print "----------------------------------- ------------------------- ---------- ---------- ---------- -----"}
END {print ""}
/dev/ || /^[0-9a-zA-Z.]*:\// {
printf ("%-35.35s %-25s %10.2f %10.2f %10.2f %4.0f%\n",$1,$6,$2/1024/1024,$4/1024/1024,$3/1024/1024,$5)
}'
OS별 시스템 정보보기
n 설치된 OS명
▷ AIX, Solaris, HP-UX
# uname -s
n 설치된 OS 버전
▷ AIX
# oslevel
▷ Solaris, HP-UX
# uname -r
OS 설치 된 날짜
/usr/sbin/getlvcb -AT hd4
n 모델명
▷ AIX
# lsattr -E -l sys0 | awk '/modelname/ {print $2}'
▷ Solaris
# uname -i
▷ HP-UX
# uname -m
CPU 관련 정보
n CPU 갯수
▷ AIX
• # lsdev -Cc processor | wc -l
▷ Solaris
# psrinfo | wc -l
▷ HP-UX
# ioscan -fknC processor | grep processor | wc -l
n CPU 속도
▷ AIX
# value=`lscfg -vp | grep "PS=" | head -1 | awk -F"PS=" '{print $2}' | awk -F"," '{print $1}'`
# value="0x$value"
# value=`printf "%dn" $value`
# expr $value / 1000000
▷ Solaris
# psrinfo -v `psrinfo | awk '{print $1}' | head -1` | awk '/operates/ {print $6}'
▷ HP-UX
# echo itick_per_user/D | adb -k /stand/vmunix /dev/mem | tail -1 | awk '{print $2}'
메모리 관련 정보
n 메모리 갯수
▷ AIX
# lsdev -C | grep -i memory | wc -l
n 메모리 용량
▷ AIX
# lsattr -E -l mem0 -a size | awk '{print $2}'
▷ Solaris
# prtconf | awk '/Memory size/ {print $3}'
▷ HP-UX
# value=`dmesg | grep Physical | grep Kbytes | awk '{print $2}'`
# expr $value / 1024
디스크 관련 정보
n 디스크 갯수
▷ AIX
# lsdev -Cc disk | wc -l
▷ Solaris
# format <<-! > /tmp/format.dat
> 0
> q
> !
# cat /tmp/format.dat | grep cyl | wc -l
▷ HP-UX
# ioscan -fknC disk | grep disk | grep -v "CD-ROM" | grep -v "DVD-ROM" | wc -l
n 디스크 용량
▷ AIX
# lspv hdisk0 | grep "TOTAL PPs" | awk -F"(" '{print $2}' | awk '{print $1}'
▷ Solaris
# bps=`prtvtoc /dev/dsk/c0t0d0s0 | grep "bytes/sector" | awk '{print $2}'`
# sectors=`prtvtoc /dev/dsk/c0t0d0s0 | grep -v "*" | grep "^ *2" | awk '{print $5}'`
# bc -l << !
> scale=0
> $sectors * $bps / 1024 / 1024
> !
▷ HP-UX
# hwpath=`ioscan -fknC disk | grep disk | grep -v "CD-ROM" | grep -v "DVD-ROM" | head -1`
# name=`ioscan -fkn -H $hwpath | grep "/rdsk/" | awk '{print $2}'`
# value=`diskinfo $name | awk '/size:/ {print $2}'`
# expr $value / 1024
'컴퓨터 활용(한글, 오피스 등) > 50_3.운영체제_AIX' 카테고리의 다른 글
AIX_ssh로 서버에 접속하는 방법 (0) | 2023.03.23 |
---|---|
PS 사용법 (0) | 2023.02.03 |