Directory Mappings HP-UXLINUXSOLARISAIX
Root filesystem/          {/dev/vg00/lvol1}/                  {/dev/sda1}/  {/dev/vx/dsk/rootvol}/              {/dev/hd4}
Home Directory/home      {/dev/vg00/lvol4} /export/home/home          {/dev/hd1}
       /dev/vx/dsk/home}
 /tmp       {/dev/vg00/lvol6} /tmp /tmp           {/dev/hd3}
    /dev/vx/dsk/swapvol}
 /usr       {/dev/vg00/lvol7} /usr /usr           {/dev/hd2}
 /var       {/dev/vg00/lvol8} /var/var        {/dev/hd9var}
Sample configuration files/usr/newconfig   -
User AccountsHP-UXLINUXSolarisAIX
Password files/etc/passwd/etc/passwd/etc/passwd /etc/passwd
/tcb/files/auth/r/root/etc/shadow/etc/shadow/etc/security/passwd
Groups file/etc/group/etc/group/etc/group/etc/group
/etc/logingroup/etc/security/group
Maximum # of user ID21474836476553521474836474294967295
Allow/Deny remote login/etc/securetty/etc/securetty/etc/default/login/etc/security/user
{console}{ttyp1}{CONSOLE=/dev/console}{rlogin=true}
User nobody's id #-29960001 & 65534(nobody4)4294967294
Group nobody's id #-2(nogroup)9960002 & 65534(nogroup)4294967294
Recover root password>bootlinux Sboot cdrom -sboot from CD/Tape
Interact with IPL ? Yvi /etc/shadowmount /dev/c0t0d0s0 /mntInstallation/Maintenance
ISL>hpux -is vi /mnt/etc/shadowStart Limited Shell
vi /tcb/files/auth/r/root  getrootfs hdisk0
vi /etc/shadow  vi /etc/security/passwd
Create new useruseradduseradduseraddmkuser
Delete useruserdeluserdeluserdelrmuser
List userslogins loginslsuser -f ALL
Modify user accountusermodusermodusermodchuser -a
General CommandsHP-UXLINUXSolarisAIX
Unique host IDuname -ihostidhostidhostid
Administratorsamlinuxconfadmintoolsmit
Performance monitortop ,  gpmtoptop , perfmetertop  , topas , xmperf
glancemonitor , netmon
System activity reportersar sarsar
Virtual Memory statisticsvmstatvmstatvmstatvmstat
I/O statisticsiostat iostatiostat
하드웨어 상태 점검  /usr/platform/sun4u/sbin/prtdiag -v  
Error logsdmesgdmesg dmesgalog -o -t boot
errpt
Physical RAM4TB64 GB {>2.3.24}16TB1M TB 
Shared Memory8TBsysctl kernel.shmmax 64K TB 
Process Data Space4TB900 MB  384K TB 
Swap device/dev/vg00/lvol2/dev/sda2/dev/vx/dsk/swapvol/dev/hd6
Swap file typeswappartition type 82 swap/etc/swapspaces
Display swap sizeswapinfo -afreeswap -llsps -a
Activate Swapswapon -aswapon -aswap -aswapon -a
PrintersHP-UXLINUXSolarisAIX
Printer Queues/etc/lp/interface/*/var/spool/lpd/lp/*/etc/lp/interfaces/*/etc/qconfig
Stop LP lpshut/etc/init.d/lpd stop/usr/lib/lp/lpshutstopsrc -s lpd
Start LPlpsched/etc/init.d/lpd start/usr/lib/lp/lpschedstartsrc -s lpd
Submit print jobslplprlpenq
lprlp
 lpr
 qprt
LP statisticslpstatlpqlpstatenq -A
lpq
lpstat
qchk
Remove print jobscancellprmcancelcancel
lprmlprm
 qcan
 enq -x
Add printer queuelpadmin -p pqprinttoollpadmin -p pqsmit mkpq
Remove Printer queuelpadmin -x pq lpadmin -x pqsmit rmpq
Make default printerlpadmin -d pq lpadmin -d pqexport LPDEST="pq"
TCP/IPHP-UXLINUXSolarisAIX
Network IP configuration/etc/rc.config.d/netconf/etc/sysconfig/network-scripts/ /etc/hostname.*lsattr -E -l inet0
/etc/inet/*
/etc/defaultrouter
Hosts IP addresses/etc/hosts/etc/hosts/etc/inet/hosts/etc/hosts
Name service switch/etc/nsswitch.conf/etc/nsswitch.conf/etc/nsswitch.conf/etc/netsvc.conf
Network parametersndd -hsysctl -a | grep netndd /dev/[tcp|ip] ?no -a
Routing daemongatedroutedin.routedgated
NIC Configurationslanscan –vifconfig -aifconfig -aifconfig -a
lanadmin
Secondary IP Addressifconfig lan0:1 IP modprobe ip_aliasifconfig hme0:1 IP upifconfig en0 alias IP 
ifconfig eth0:1 IP
Login prompttelnetd -b /etc/issue /etc/issueBANNER @HERALD @
/etc/default/telnetd/etc/security/login.cfg 
Increase the # of pseudo-terminalsrebuild your kernel with these new values NPTY=# cd /dev{/etc/system}odmget -q "attribute=num and uniquetype=pty/pty/pty" PdAt | sed "s/0-64/0-512/" |
NSTRPY=# ./MAKEDEV -v ptyset pt_cnt = #   {SYSV}odmchange -q "attribute=num and uniquetype=pty/pty/pty" -o PdAt 
  set npty = #      {BSD}  
reboot   chdev -l pty0 -anum=256 -P
  {/etc/iu.ap}reboot
insf -d ptys -n # ptsl 0 # ldterm ttcompat  
insf -d ptym -n #   
insf -d pts -s # -e -v halt 
  boot -r 
Maximum # of ptys{MAXUSERS}256176                {BSD}512
3000              {SYSV}
Remote Shellremshrshrshremsh
rsh
YP/NIS service binder/usr/lib/netsvc/yp/ypbind /sbin/ypbind/usr/lib/netsvc/yp/ypbind/usr/lib/netsvc/yp/ypbind 
System FilesHP-UXLINUXSolarisAIX
NFS exported/etc/exports/etc/exports/etc/dfs/dfstab/etc/exports
/etc/dfs/sharetab
NFS Client mounted directories/etc/xtab/var/lib/nfs/xtab/etc/rmtab/etc/xtab
Max File System128 GB2 TB 1 TB128 GB
Max File Size128 GB2 GB     {512B block size} 1 TB64 GB
8192 GB  {8KB block size} 
Max # File Descriptors60~ Ksysctl fs.file-max64 K64 K
DISK/LVM CommandsHP-UX:Disk &FilesystemLINUXSOLARISAIX
Filesystem table/etc/fstab/etc/fstab/etc/vfstab/etc/filesystems
Free disk blocksbdfdf -kdf -kdf -k
Device listing/sbin/ioscancat /proc/devicessysdeflsdev -C
Disk informationdiskinfo /dev/rdsk/c#t#d#cat /proc/scsi/scsi0/sda/modelformat -d c#t#d#bootinfo -s hdisk# 
format>current
format>inquiry
Disk Labelpvdisplay -v /dev/dsk/C#t#d#fdisk -lprtvtoclspv -l hdisk#
LVM Conceptslogical extentslogical extentssub diskPartition 
 logical volumelogical volumeVolumeVolume
   Plex 
 volume groupvolume groupdisk groupVolume group
Journal Filesystem typevxfsext2vxfsjfs
Default volume group/dev/vg00 /dev/vx/dsk/rootdg/dev/rootvg
Display volume groupvgdisplay -v vg00vgdisplay -vvxprint -l -g rootdglsvg -l rootvg
Modify physical volumepvchangepvchange chpv
Prepare physical diskpvcreatepvcreatevxdiskaddmkdev -c disk -l hdisk#
List physical volumepvdisplaypvdisplayvxprint -dllspv
Remove disk from volume groupvgreducevgreducevxdg rmdiskreducevg
Move logical volumes to another physical volumespvmovepvmovevxassist movemigratepv
Create volume groupvgcreatevgcreatevxdg initmkvg
Remove volume groupvgremovevgremove  
Volume group availabilityvgchangevgchange chvg
varyonvg
varyoffvg
Restore volume groupvgcfgrestorevgcfgrestore  
Exports volume groupvgexportvgexportvxdg deportexportvg
Imports volume groupvgimportvgimportvxdg importimportvg
Volume group listingvgscanvgscan lsvg
Change logical volume characteristics lvchangelvchange vxedit setchlv
List logical volumelvdisplaylvdisplayvxprint -vllslv
Make logical volumelvcreatelvcreatevxassist makemklv
Extend logical volumelvextendlvextendvxassist growtoextendlv
Reduce logical volumelvreducelvreduceAIX reduce LVextendlv
Remove logical volumelvremovelvremovevxedit rmrmlv
Prepare boot volumeslvlnbootlilovxbootsetupbootlist -m normal
Remove boot volumeslvrmboot   
Extend File systemextendfs /dev/vg00/lvol8resize2fsvxvachfs -a size=#
fsadm -F vxfs -b {LE * 1024}mkfs -M
Reduce/Split mirrorslvsplitlvsplit rmlvcopy
Merge mirrorslvmergelvmerge  
Create mirrorslvcreate -m 1 vxassist mirrormklv -c 2
Add mirrorslvextend -m 1  mklvcopy lv 2 
Create striped volumeslvcreate -i 3 -I 64lvcreate -i 3 -I 64vxassist make vol 100mb layout=raid5mklv -u 3 -S 64K
System recovery tape/opt/ignite/bin/make_recovery  mksysb -i /dev/rmt0
BackupFbackup`tar cvf /dev/rst0 /tar cvf /dev/rmt/0 ./etcsavevg -i rootvg
tar cvf /dev/rmt/0m   ./usr ./var ./etc 
tar cvf /dev/rmt/0mn  ./usr ./var ./etctar cvf /dev/rmt0 ./usr 
 tar cvf /dev/rmt1 ./usr
Restorefrecovertar xvf /dev/rst0 ufsrestorerestvg 
MISCHP-UXLINUXSOLARISAIX
Startup script/sbin/rc/etc/rc.d/rc/sbin/init.d/etc/rc
Kernel/stand/vmunix/boot/vmlinuz/kernel/genunix/usr/lib/boot/unix_up
Kernel Parameterssysdef sysctl -asysdef -ilsattr -E -l sys0
kmtune 
kmsystem
Reconfigure the kernelcd /stand/buildcd /usr/src/linux vi /etc/system 
/usr/lbin/sysadm/system_prep -v -s systemmake mrproper rebootchdev -l sys0 -a 
vi systemmake menuconfig   
mk_kernel -s systemmake dep   
cd /standmake clean   
mv system system.prevmake bzimage  
mv vmunix vmunix.prevmake install  
mv dlkm dlkm.prevmake modules  
mv /stand/build/system systemmake modules_install   
kmupdate /stand/build/vmunix_test   
 cp arch/i386/boot/bzImage /boot/vmlinuz-2.2.16  
 mkinitrd /boot/initrd-2.2.16.img  
 vi /etc/lilo.conf  
 lilo   
List moduleskmadmin -sLsmodmodinfo 
Load modulekmadmin -LInsmodmodload 
Unload modulekmadmin -URmmodmodunload 
Initialize systemset_parms initialNetconfsys-unconfiginstall_assist
Physical RAMgrep -i Physical /var/adm/syslog/syslog.logFreeprtconfbootinfo -r
Kernel Bitsgetconf KERNEL_BITSgetconf WORD_BITisainfo –kv  (getconf WORD_BIT)getconf WORD_BIT
Crash utilityadblcrashcrashcrash
Trace System CallstuscStracetrusssyscalls
Machine modelmodeluname –muname -impuname -m
uname -mbootinfo -m
OS Leveluname -runame –runame -roslevel
Run Levelwho -rRunlevelwho -rwho -r
Core dump files/var/adm/crash /var/crash/`uname -n`/var/adm/ras
Boot single user>bootlinux Sok boot -sKey on service mode/F4
Interact with IPL ? YBoot from CD/Tape
ISL>hpux -iSSelect Maintenance
 Limited function Shell
Maintenance mode>boot ok boot -as 
Interact with IPL ? Y
ISL>hpux -lm
Interrupt Keycontrol-B Stop-A 
Return to consoleCo ok go 
Timezone Management/etc/TIMEZONE/etc/sysconfig/clock/etc/TIMEZONE/etc/environment
/etc/default/init/etc/profile
 .profile .profile/etc/environment
Path setenv /etc/profile/etc/profile/etc/profile
 /etc/PATH  ,  /etc/MANPATH .profile
     
NTP Daemon/etc/rc.config.d/netdaemons/etc/ntp.conf/etc/inet/ntp.conf/etc/ntp.conf
/sbin/init.d/xntpd/etc/rc.d/init.d/xntpd/etc/init.d/xntpdstartsrc -s xntpd
SoftwareHP-UXLINUXSOLARISAIX
Install Softwareswinstallrpm -i packagepkgaddinstallp -a
Uninstall softwareswremoverpm -e packagepkgrminstallp -u
List installed softwareswlistrpm –qapkginfolslpp -L all
Verify installed softwareswlist -l fileset -a staterpm -V packagepkginfo -ilppchk -v
pkginfo -p
List all filesswlist -l file filesetrpm -ql packagepkgchk -l packagelslpp -f fileset
List installed patchesswlist -l patch patchadd -pinstfix -i
what /stand/vmunix
Package ownerswlist -l file | grep pathrpm -qf filepkgchk -l -p pathlslpp -w path
SW Directory/var/adm/sw//var/lib/rpm/var/sadm/usr/lpp
DevicesHP-UXLINUXSOLARISAIX
Devices/dev/dev/devices/dev
Install devices for attached peripheralsinsf –e/dev/MAKEDEVdrvconfigcfgmgr -v
devlinks
disks
tapes
ports
Remove deviceRmsf rem_drvrmdev -l
Device driversLsdev prtconf -Dlscfg
CPUioscan -fnC processor psrinfo -vlsdev -Cc processor
List Terminalioscan -fnC tty pmadm -llsdev -Cc tty
DiagnosticsStm /usr/platform/`uname -m`/diag
sbin/prtdiag
ok test-all
/opt/SUNWvts/bin/sunvts
Whole Disk/dev/dsk/c#t#d0/dev/sda/dev/c#t#d0s2/dev/hdisk#
CDROM/dev/dsk/c#t2d0/dev/cdrom/dev/dsk/c#t6d0s2/dev/cd0
mount –r /dev/~mount –r –t hsfs /dev/~mount –r –v cdrfs
 자동 mount 되며 mount 되지 않을 시
다음의 daemon restart
/etc/init.d/volmgt stop
/etc/init.d/volmgt start
cd 뺄때 eject
 
CDROM file typeCdfsiso9660hsfscdrfs
Rewinding tape drive/dev/rmt/0m/dev/rst0             { c 9 0}/dev/rmt/0/dev/rmt0
Non-rewinding tape drive/dev/rmt/0mn/dev/nrst0         { c 9 128 }/dev/rmt/0n/dev/rmt0.1
Floppy drive-/dev/fd0/dev/diskette/dev/rfd0

+ Recent posts