반응형

굉장히 도움이 될 것 같아서 퍼옴..

출처 : http://cafe.daum.net/oddtip/Jxkw/94?docid=1CBe5Jxkw9420081218175643]

 

AIX, HP-UX, SOLARIS 특징 및 명령어 비교
     
Directory AIX HP-UX SOLARIS
Root filesystem / {/dev/hd4} / {/dev/vg00/lvol1} / {/dev/vx/dsk/rootvol}
Home Directory /home {/dev/hd1} /home {/dev/vg00/lvol4} /export/home
      /dev/vx/dsk/home}
  /tmp {/dev/hd3} /tmp {/dev/vg00/lvol6} /tmp
      /dev/vx/dsk/swapvol}
  /usr {/dev/hd2} /usr {/dev/vg00/lvol7} /usr
  /var {/dev/hd9var} /var {/dev/vg00/lvol8} /var
Sample configuration files - /usr/newconfig  
User Accounts AIX HP-UX Solaris
Password files /etc/passwd /etc/passwd /etc/passwd
  /etc/security/passwd /tcb/files/auth/r/root /etc/shadow
Groups file /etc/group /etc/group /etc/group
  /etc/security/group /etc/logingroup  
Maximum # of user ID 4294967295 2147483647 2147483647
Allow/Deny remote login /etc/security/user /etc/securetty /etc/default/login
  {rlogin=true} {console} {CONSOLE=/dev/console}
User nobody's id # 4294967294 -2 60001 & 65534(nobody4)
Group nobody's id # 4294967294 -2(nogroup) 60002 & 65534(nogroup)
Recover root password boot from CD/Tape ISL>hpux -is boot cdrom -s
  Installation/Maintenance vi /tcb/files/auth/r/root mount /dev/c0t0d0s0 /mnt
  Start Limited Shell vi /etc/shadow vi /mnt/etc/shadow
  getrootfs hdisk0    
  vi /etc/security/passwd    
Create new user mkuser useradd useradd
Delete user rmuser userdel userdel
List users lsuser -f ALL logins logins
Modify user account chuser -a usermod usermod
General Commands AIX HP-UX Solaris
Unique host ID hostid uname -i hostid
Administrator smit sam admintool
Performance monitor top top top
  monitor glance  
System activity reporter sar sar sar
Virtual Memory statistics vmstat vmstat vmstat
I/O statistics iostat iostat iostat
Error logs alog -o -t boot dmesg dmesg
  errpt    
Physical RAM 1M TB 4TB 16TB
Shared Memory 64K TB 8TB  
Process Data Space 384K TB 4TB  
Swap device /dev/hd6 /dev/vg00/lvol2 /dev/vx/dsk/swapvol
Swap file type /etc/swapspaces swap swap
Display swap size lsps -a swapinfo -a swap -l
Activate Swap swapon -a swapon -a swap -a
Printers AIX HP-UX Solaris
Printer Queues /etc/qconfig /etc/lp/interface/* /etc/lp/interfaces/*
Stop LP stopsrc -s lpd lpshut /usr/lib/lp/lpshut
Start LP startsrc -s lpd lpsched /usr/lib/lp/lpsched
Submit print jobs enq lp lp
  lp   lpr
  lpr    
  qprt    
LP statistics enq -A lpstat lpstat
  lpq    
  lpstat    
  qchk    
Remove print jobs cancel cancel cancel
  lprm   lprm
  qcan    
  enq -x    
Add printer queue smit mkpq lpadmin -p pq lpadmin -p pq
Remove Printer queue smit rmpq lpadmin -x pq lpadmin -x pq
Make default printer export LPDEST="pq" lpadmin -d pq lpadmin -d pq
TCP/IP AIX HP-UX Solaris
Network IP configuration lsattr -E -l inet0 /etc/rc.config.d/netconf /etc/hostname.*
      /etc/inet/*
      /etc/defaultrouter
Hosts IP addresses /etc/hosts /etc/hosts /etc/inet/hosts
Name service switch /etc/netsvc.conf /etc/nsswitch.conf /etc/nsswitch.conf
Network parameters no -a ndd -h ndd /dev/[tcp|ip]
Routing daemon gated gated in.routed
NIC Configurations ifconfig -a lanscan -v ifconfig -a
Secondary IP Address ifconfig en0 alias IP ifconfig lan0:1 IP ifconfig hme0:1 IP up
       
Login prompt HERALD @ telnetd -b /etc/issue BANNER @
  /etc/security/login.cfg   /etc/default/telnetd
Increase the # of pseudo-terminals odmget -q "attribute=num and uniquetype=pty/pty/pty" PdAt | sed "s/0-64/0-512/" | rebuild your kernel with these new values NPTY=# {/etc/system}
  odmchange -q "attribute=num and uniquetype=pty/pty/pty" -o PdAt NSTRPY=# set pt_cnt = # {SYSV}
      set npty = # {BSD}
  chdev -l pty0 -anum=256 -P reboot  
  reboot   {/etc/iu.ap}
    insf -d ptys -n # ptsl 0 # ldterm ttcompat
    insf -d ptym -n #  
    insf -d pts -s # -e -v halt
      boot -r
Maximum # of ptys 512 {MAXUSERS} 176 {BSD}
      3000 {SYSV}
Remote Shell remsh remsh rsh
  rsh    
YP/NIS service binder /usr/lib/netsvc/yp/ypbind /usr/lib/netsvc/yp/ypbind /usr/lib/netsvc/yp/ypbind
System Files AIX HP-UX Solaris
NFS exported /etc/exports /etc/exports /etc/dfs/dfstab
      /etc/dfs/sharetab
NFS Client mounted directories /etc/xtab /etc/xtab /etc/rmtab
Max File System 128 GB 128 GB 1 TB
Max File Size 64 GB 128 GB 1 TB
Max # File Descriptors 64 K 60~ K 64 K
DISK/LVM Commands AIX HP-UX:Disk &Filesystem SOLARIS
Filesystem table /etc/filesystems /etc/fstab /etc/vfstab
Free disk blocks df -k bdf df -k
Device listing lsdev -C /sbin/ioscan sysdef
Disk information bootinfo -s hdisk# diskinfo /dev/rdsk/c#t#d# format -d c#t#d#
      format>current
      format>inquiry
Disk Label lspv -l hdisk# pvdisplay -v /dev/dsk/C#t#d# prtvtoc
LVM Concepts Partition logical extents sub disk
  Volume logical volume Volume
      Plex
  Volume group volume group disk group
Journal Filesystem type jfs vxfs vxfs
Default volume group /dev/rootvg /dev/vg00 /dev/vx/dsk/rootdg
Display volume group lsvg -l rootvg vgdisplay -v vg00 vxprint -l -g rootdg
Modify physical volume chpv pvchange  
Prepare physical disk mkdev -c disk -l hdisk# pvcreate vxdiskadd
List physical volume lspv pvdisplay vxprint -dl
Remove disk from volume group reducevg vgreduce vxdg rmdisk
Move logical volumes to another physical volumes migratepv pvmove vxassist move
Create volume group mkvg vgcreate vxdg init
Remove volume group   vgremove  
Volume group availability chvg vgchange  
  varyonvg    
  varyoffvg    
Restore volume group   vgcfgrestore  
Exports volume group exportvg vgexport vxdg deport
Imports volume group importvg vgimport vxdg import
Volume group listing lsvg vgscan  
Change logical volume characteristics chlv lvchange vxedit set
List logical volume lslv lvdisplay vxprint -vl
Make logical volume mklv lvcreate vxassist make
Extend logical volume extendlv lvextend vxassist growto
Reduce logical volume AIX reduce LV lvreduce vxassist shrinkto
Remove logical volume rmlv lvremove vxedit rm
Prepare boot volumes bootlist -m normal lvlnboot vxbootsetup
Remove boot volumes   lvrmboot  
Extend File system chfs -a size=# extendfs -F vxfs -s # vxva
    fsadm -F vxfs -b {LE * 1024} mkfs -M
Reduce/Split mirrors rmlvcopy lvsplit  
Merge mirrors   lvmerge  
Create mirrors mklv -c 2 lvcreate -m 1 vxassist mirror
Add mirrors mklvcopy lv 2 lvextend -m 1  
Create striped volumes mklv -u 3 -S 64K lvcreate -i 3 -I 64 vxassist make vol 100mb layout=raid5
System recovery tape mksysb -i /dev/rmt0 /opt/ignite/bin/make_recovery  
Backup savevg -i rootvg fbackup ufsdump
Restore restvg frecover ufsrestore
MISC AIX HP-UX SOLARIS
Startup script /etc/rc /sbin/rc /sbin/init.d
Kernel /usr/lib/boot/unix_up /stand/vmunix /kernel/genunix
Kernel Parameters lsattr -E -l sys0 kmtune sysdef- i
    kmsystem  
Reconfigure the kernel   cd /stand/build vi /etc/system
  chdev -l sys0 -a /usr/lbin/sysadm/system_prep -v -s system reboot
    vi system  
    mk_kernel -s system  
    cd /stand  
Reconfigure the kernel   mv system system.prev  
    mv vmunix vmunix.prev  
    mv dlkm dlkm.prev  
    mv ./build/system system  
    kmupdate /stand/build  
       
List modules   kmadmin -s modinfo
Load module   kmadmin -L modload
Unload module   kmadmin -U modunload
Initialize system install_assist set_parms initial sys-unconfig
Physical RAM bootinfo -r grep -i Physical /var/adm/syslog/syslog.log prtconf
Kernel Bits getconf WORD_BIT getconf KERNEL_BITS isainfo -kv
Crash utility crash crashutil crash
Machine model uname -m model uname -imp
  bootinfo -m uname -m  
OS Level oslevel uname -r uname -r
Run Level who -r who -r who -r
Core dump files /var/adm/ras /var/adm/crash /var/crash/`uname -n`
Boot single user Key on service mode/F4 ISL>hpux -iS ok boot -s
  Boot from CD/Tape    
  Select Maintenance    
  Limited function Shell    
Maintenance mode   ISL>hpux -lm ok boot -as
Interrupt Key   control-B Stop-A
Return to console   co ok go
Software AIX HP-UX SOLARIS
Install Software installp -a swinstall pkgadd
Uninstall software installp -u swremove pkgrm
List installed software lslpp -L all swlist pkginfo
Verify installed software lppchk -v swlist -l fileset -a state pkginfo -i
      pkginfo -p
List all files lslpp -f fileset swlist -l file fileset pkgchk -l package
List installed patches instfix -i swlist -l patch patchadd -p
    what /stand/vmunix  
Package owner lslpp -w path swlist -l file | grep path pkgchk -l -p path
SW Directory /usr/lpp /var/adm/sw/ /var/sadm
Devices AIX HP-UX SOLARIS
Devices /dev /dev /devices
Install devices for attached peripherals cfgmgr -v insf -e drvconfig
      devlinks
      disks
      tapes
      ports
Remove device rmdev -l rmsf rem_drv
Device drivers lscfg lsdev prtconf -D
CPU lsdev -Cc processor ioscan -fnC processor psrinfo -v
List Terminal lsdev -Cc tty ioscan -fnC tty pmadm -l
Diagnostics diag stm /usr/platform/`uname -m`/
      sbin/prtdiag
      ok test-all
      /opt/SUNWvts/bin/sunvts
Whole Disk /dev/hdisk# /dev/dsk/c#t#d0 /dev/c#t#d0s2
CDROM /dev/cd0 /dev/dsk/c#t2d0 /dev/dsk/c#t6d0s2
CDROM file type cdrfs cdfs hsfs
Rewinding tape drive /dev/rmt0 /dev/rmt/0m /dev/rmt/0
Non-rewinding tape drive /dev/rmt0.1 /dev/rmt/0mn /dev/rmt/0n
Floppy drive /dev/rfd0 - /dev/diskette
Links AIX HP-UX SOLARIS
FAQ AIX-FAQ HP-UX FAQ Solaris 2 FAQ
Online Manual AIX 4.3 Books HP-UX 11.00 Collection Solaris 7 Documentation
Technical Support RS/6000 TechSupport IT Resource Center SunSolve
Phone Number 1-800-CALL-AIX 1-800-633-3600 1-800-USA-4SUN
Free Software Bull HP-UX Ports Sun Freeware
Certification www.ibm.com education.hp.com suned.sun.com

 

잘 알아놓고 두고두고 써야겠당

 

 

 

반응형

'OS > Common' 카테고리의 다른 글

유닉스 언어 설정 확인 및 변경  (0) 2013.10.02
Z 확장자 압축해제  (0) 2013.07.09
해당 바이너리의 비트 확인하기  (0) 2012.05.21
ftp 사용법 [명령어]  (0) 2011.10.20
Tar 와 Gzip Bzip2사용법  (0) 2011.10.20
반응형

 

AIX에서 사용하는 컴파일러는 기본적으로 xl c/C 인데

xlc는 c Compiler이며 xlC는 C++ Compiler가 되겠다.

 

리눅스는 gcc/g++ , HP-UX는 cc/aCC 와 매칭되는 컴파일러들인데

해당 시스템에 해당 컴파일러가 어디에 위치하고 설치되어 있는데 그리고 각각 어떠한 Fileset을 가지고 있는지 알아보자

 

우선 일반적으로 AIX 시스템에는 /usr/bin에 해당 컴파일러들의 심볼릭 링크가 걸려있는데 xlc, xlC 등의 실행은 이곳에서도 실행 시킬 수 있다.

문제는 각각 C/C++ Compiler Fileset이 설치가 되어 있는지 안 되어 있는지 확인하고자 할 때 어떻게 해야 하냐는 건데

 

우선 일반적으로 바이너리가 설치되는 위치를 살펴보자.

 

/usr/vac/bin     <- XL C Compiler Binary 설치 위치

/usr/vacpp/bin  <- XL C++ Compiler Binary 설치 위치

 

각각의 디렉토리에 가보면 xlc, xlc_r, xlC, xlC_r 부터 시작해서 뭐 이상한 바이너리가 잔뜩 있는데...

ls -la 해서 가만히 살펴보면 심볼릭 링크가 되어 있는 것을 따라가다 보면 신기하게도 죄다 xlc로 귀결된다.

어떤 바이너리를 실행시켜도 결국에는 xlc가 실행된다는건데, 이는 AIX의 XL 컴파일러가 내부적으로 실행 시킨 바이너리 파일을 기준으로

다른 전처리 옵션을 타는게 아닌가 싶은데.. 뭐 자세한 동작 원리는 아직 잘 모르겠다.

 

우선적으로 AIX 시스템의 경우 /usr/lpp에 보면 xlC 부분도 있긴 한데 이는 SW Directory로 해당 소프트웨어의 Description을 확인할 수 있는 뭐... 그런거 같다. 정확하게는 이것도 아직 공부 중임. 어쨋거나 AIX에서 소프트웨어가 설치될때 installp 를 사용하는데 이를 사용하여 설치된 소프트웨어는 /usr/lpp에서 관리된다는 사실 알아놓으면 좋을꺼 깥다.

 

그렇다면 IBM 공식 홈페이지에 적혀 있는 각각 Compiler의 Fileset을 살펴보자

각각의 Fileset이 현재 AIX 서버 머신에 설치되어 있는지 확인하고자 한다면

 

lslpp -la | grep [fileset 명] 을 입력해주면 되겠다.

 

(XL C/C++ V8.0 for AIX 기준)

 

XL C compiler filesets

The following filesets are included in the XL C compiler.

Table 3. XL C compiler filesets
Fileset name Fileset description
vac.C IBM XL C compiler
vac.include IBM XL C compiler include files
vac.man.LANG
Note:
LANG is one of: en_US, EN_US, ja_JP, Ja_JP, JA_JP, zh_CN, Zh_CN, ZH_CN.
IBM XL C compiler manual pages
vac.lib IBM XL C compiler libraries
vac.aix50.lib IBM XL C compiler libraries for AIX 5
vac.lic IBM XL C license files
Note:
For licensed customers only
vac.msg.LANG.C
Note:
LANG is one of: en_US, EN_US, ja_JP, Ja_JP, JA_JP, zh_CN, ZH_CN.
IBM XL C compiler messages

 

XL C++ compiler filesets

The following filesets are included in the XL C/C++ compiler.

Note:
All of the filesets required for the XL C compiler, except vac.ndi and vac.licAgreement, are also required for the XL C/C++ compiler.

Table 4. XL C/C++ compiler filesets
Fileset name Fileset description
vacpp.cmp.aix50.lib IBM XL C/C++ libraries for AIX 5.1, 5.2 and 5.3
vacpp.cmp.aix50.tools IBM XL C/C++ tools for AIX 5.1, 5.2 and 5.3
vacpp.cmp.core IBM XL C/C++ compiler
vacpp.cmp.include IBM XL C/C++ compiler include files
vacpp.cmp.lib IBM XL C/C++ libraries
vacpp.cmp.rte IBM XL C/C++ compiler application runtime
vacpp.cmp.tools IBM XL C/C++ tools
vacpp.lic IBM XL C/C++ license files
vacpp.licAgreement IBM XL C++ electronic license agreement files
vacpp.memdbg.aix50.lib IBM XL C/C++ user heap/memory debug AIX 5.1, 5.2 and 5.3 libraries
vacpp.memdbg.aix50.rte IBM XL C/C++ user heap/memory debug AIX 5.1, 5.2 and 5.3 runtime
vacpp.memdbg.lib IBM XL C/C++ user heap and memory debugger static library
vacpp.memdbg.rte IBM XL C/C++ user heap and memory debugger runtime
vacpp.msg.LANG.cmp.core
Note:
LANG is one of: en_US, EN_US, ja_JP, Ja_JP, JA_JP, zh_CN, ZH_CN.
IBM XL C/C++ compiler messages
vacpp.msg.LANG.cmp.tools
Note:
LANG is one of: en_US, EN_US, ja_JP, Ja_JP, JA_JP, zh_CN, ZH_CN.
IBM XL C/C++ tools messages
vacpp.man.LANG
Note:
LANG is one of: en_US, EN_US, ja_JP, Ja_JP, JA_JP, zh_CN, ZH_CN.
IBM XL C/C++ compiler manual pages

C++ runtime filesets

The following filesets are included in the IBM XL C/C++ Enterprise Edition V8.0 for AIX compiler installation package, and must be installed with the compiler.

Table 5. C++ runtime filesets
Fileset name Fileset description
xlC.adt.include C Set ++ application development toolkit
xlC.aix50.rte C Set ++ runtime for AIX 5.1, 5.2 and 5.3
xlC.msg.LANG.rte
Note:
LANG is one of: en_US, ja_JP, Ja_JP.
C Set ++ runtime messages
xlC.rte C Set ++ runtime

 

 

 

반응형

'OS > AIX::' 카테고리의 다른 글

AIX xlc 컴파일러 비트 설정  (0) 2014.01.09
AIX의 2가지의 프로그래밍 모델  (0) 2014.01.09
AIX Thread Dump 분석 방법  (0) 2012.08.22
AIX 라이브러리 버전 확인  (0) 2012.07.12
AIX 컴파일 정보  (0) 2011.10.05

+ Recent posts