Directory 


AIX


SOLARIS


Root filesystem


/              {/dev/hd4}


/  {/dev/vx/dsk/rootvol}


Home Directory


/home          {/dev/hd1}


/export/home


       /dev/vx/dsk/home}


 


/tmp           {/dev/hd3}


/tmp 


    /dev/vx/dsk/swapvol}


 


/usr            {/dev/hd2}


/usr 


 


/var        {/dev/hd9var}


/var


Sample configuration files



 


User Accounts


AIX


Solaris


Password files


/etc/passwd


/etc/passwd 


/etc/security/passwd


/etc/shadow


Groups file


/etc/group


/etc/group


/etc/security/group


Maximum # of user ID


4294967295


2147483647


Allow/Deny remote login


/etc/security/user


/etc/default/login


{rlogin=true}


{CONSOLE=/dev/console}


User nobody’s id #


4294967294


60001 & 65534(nobody4)


Group nobody’s id #


4294967294


60002 & 65534(nogroup)


Recover root password


boot from CD/Tape


boot cdrom -s


Installation/Maintenance


mount /dev/c0t0d0s0 /mnt


Start Limited Shell


vi /mnt/etc/shadow


getrootfs hdisk0


 


vi /etc/security/passwd


 


Create new user


mkuser


useradd


Delete user


rmuser


userdel


List users


lsuser -f ALL


logins


Modify user account


chuser -a


usermod


General Commands


AIX


Solaris


Unique host ID


hostid


hostid


Administrator


smit


admintool


Performance monitor


top


top


monitor


System activity reporter


sar


sar


Virtual Memory statistics


vmstat


vmstat


I/O statistics


iostat


iostat


Error logs


alog -o -t boot


dmesg


errpt


Physical RAM


1M TB 


16TB


Shared Memory


64K TB 


 


Process Data Space


384K TB 


 


Swap device


/dev/hd6


/dev/vx/dsk/swapvol


Swap file type


/etc/swapspaces


swap


Display swap size


lsps -a


swap -l


Activate Swap


swapon -a


swap -a


Printers


AIX


Solaris


Printer Queues


/etc/qconfig


/etc/lp/interfaces/*


Stop LP 


stopsrc -s lpd


/usr/lib/lp/lpshut


Start LP


startsrc -s lpd


/usr/lib/lp/lpsched


Submit print jobs


enq


lp


lp


lpr


lpr


 


qprt


 


LP statistics


enq -A


lpstat


lpq


lpstat


qchk


Remove print jobs


cancel


cancel


lprm


lprm


qcan


 


enq -x


 


Add printer queue


smit mkpq


lpadmin -p pq


Remove Printer queue


smit rmpq


lpadmin -x pq


Make default printer


export LPDEST=”pq”


lpadmin -d pq


TCP/IP


AIX


Solaris


Network IP configuration


lsattr -E -l inet0


/etc/hostname.*


/etc/inet/*


/etc/defaultrouter


Hosts IP addresses


/etc/hosts


/etc/inet/hosts


Name service switch


/etc/netsvc.conf


/etc/nsswitch.conf


Network parameters


no -a


ndd /dev/[tcp|ip] ?


Routing daemon


gated


in.routed


NIC Configurations


ifconfig -a


ifconfig -a


Secondary IP Address


ifconfig en0 alias IP 


ifconfig hme0:1 IP up


Login prompt


HERALD @


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/” |


{/etc/system}


odmchange -q “attribute=num and uniquetype=pty/pty/pty” -o PdAt


set pt_cnt = #   {SYSV}


 


set npty = #      {BSD}


chdev -l pty0 -anum=256 -P


 


reboot


{/etc/iu.ap}


 


ptsl 0 # ldterm ttcompat


 


 


 


halt


 


boot -r


Maximum # of ptys


512


176                {BSD}


3000              {SYSV}


Remote Shell


remsh


rsh


rsh


YP/NIS service binder


/usr/lib/netsvc/yp/ypbind 


/usr/lib/netsvc/yp/ypbind


System Files


AIX


Solaris


NFS exported


/etc/exports


/etc/dfs/dfstab


/etc/dfs/sharetab


NFS Client mounted directories


/etc/xtab


/etc/rmtab


Max File System


128 GB


1 TB


Max File Size


64 GB


1 TB


Max # File Descriptors


64 K


64 K


DISK/LVM Commands


AIX


SOLARIS


Filesystem table


/etc/filesystems


/etc/vfstab


Free disk blocks


df -k


df -k


Device listing


lsdev -C


sysdef


Disk information


bootinfo -s hdisk# 


format -d c#t#d#


format>current


format>inquiry


Disk Label


lspv -l hdisk#


prtvtoc


LVM Concepts


Partition 


sub disk


 


Volume


Volume


 


 


Plex


 


Volume group


disk group


Journal Filesystem type


jfs


vxfs


Default volume group


/dev/rootvg


/dev/vx/dsk/rootdg


Display volume group


lsvg -l rootvg


vxprint -l -g rootdg


Modify physical volume


chpv


 


Prepare physical disk


mkdev -c disk -l hdisk#


vxdiskadd


List physical volume


lspv


vxprint -dl


Remove disk from volume group


reducevg


vxdg rmdisk


Move logical volumes to another physical volumes


migratepv


vxassist move


Create volume group


mkvg


vxdg init


Remove volume group


 


 


Volume group availability


chvg


 


varyonvg


varyoffvg


Restore volume group


 


 


Exports volume group


exportvg


vxdg deport


Import!s volume group


import!vg


vxdg import!


Volume group listing


lsvg


 


Change logical volume characteristics 


chlv


vxedit set


List logical volume


lslv


vxprint -vl


Make logical volume


mklv


vxassist make


Extend logical volume


extendlv


vxassist growto


Reduce logical volume


AIX reduce LV


vxassist shrinkto


Remove logical volume


rmlv


vxedit rm


Prepare boot volumes


bootlist -m normal


vxbootsetup


Remove boot volumes


 


 


Extend File system


chfs -a size=#


vxva


mkfs -M


Reduce/Split mirrors


rmlvcopy


 


Merge mirrors


 


 


Create mirrors


mklv -c 2


vxassist mirror


Add mirrors


mklvcopy lv 2 


 


Create striped volumes


mklv -u 3 -S 64K


vxassist make vol 100mb layout=raid5


System recovery tape


mksysb -i /dev/rmt0


 


Backup


savevg -i rootvg


ufsdump


Restore


restvg 


ufsrestore


MISC


AIX


SOLARIS


Startup script


/etc/rc


/sbin/init.d


Kernel


/usr/lib/boot/unix_up


/kernel/genunix


Kernel Parameters


lsattr -E -l sys0


sysdef- i


Reconfigure the kernel


 


vi /etc/system


chdev -l sys0 -a 


reboot


 


 


 


 


 


 


Reconfigure the kernel


 


 


 


 


 


 


 


 


 


 


 


 


List modules


 


modinfo


Load module


 


modload


Unload module


 


modunload


Initialize system


install_assist


sys-unconfig


Physical RAM


bootinfo -r


prtconf


Kernel Bits


getconf WORD_BIT


isainfo -kv


Crash utility


crash


crash


Machine model


uname -m


uname -imp


bootinfo -m


OS Level


oslevel


uname -r


Run Level


who -r


who -r


Core dump files


/var/adm/ras


/var/crash/uname -n


Boot single user


Key on service mode/F4


ok boot -s


Boot from CD/Tape


Select Maintenance


Limited function Shell


Maintenance mode


 


ok boot -as


Interrupt Key


 


Stop-A


Return to console


 


ok go


Software


AIX


SOLARIS


Install Software


installp -a


pkgadd


Uninstall software


installp -u


pkgrm


List installed software


lslpp -L all


pkginfo


Verify installed software


lppchk -v


pkginfo -i


pkginfo -p


List all files


lslpp -f fileset


pkgchk -l package


List installed patches


instfix -i


patchadd -p


Package owner


lslpp -w path


pkgchk -l -p path


SW Directory


/usr/lpp


/var/sadm


Devices


AIX


SOLARIS


Devices


/dev


/devices


Install devices for attached peripherals


cfgmgr -v


drvconfig 


devlinks


disks


tapes


ports


Remove device


rmdev -l


rem_drv


Device drivers


lscfg


prtconf -D


CPU


lsdev -Cc processor


psrinfo -v


List Terminal


lsdev -Cc tty


pmadm -l


Diagnostics


diag


/usr/platform/uname -m/


sbin/prtdiag


ok test-all


/opt/SUNWvts/bin/sunvts


Whole Disk


/dev/hdisk#


/dev/c#t#d0s2


CDROM


/dev/cd0


/dev/dsk/c#t6d0s2


CDROM file type


cdrfs


hsfs


Rewinding tape drive


/dev/rmt0


/dev/rmt/0


Non-rewinding tape drive


/dev/rmt0.1


/dev/rmt/0n


Floppy drive


/dev/rfd0


/dev/diskette


Links


AIX


SOLARIS


FAQ


AIX-FAQ


Solaris 2 FAQ


Online Manual


AIX 4.3 Books


Solaris 7 Documentation


Technical Support


RS/6000 TechSupport


SunSolve


Phone Number


1-800-CALL-AIX


1-800-USA-4SUN


Free Software


Bull


Sun Freeware


Certification


www.ibm.com


suned.sun.com


 


 

By haisins

오라클 DBA 박용석 입니다. haisins@gmail.com 으로 문의 주세요.

답글 남기기

이메일 주소를 발행하지 않을 것입니다. 필수 항목은 *(으)로 표시합니다