注册   |  登录
 
最新动态
调查
您对本公司网站评价如何?



 
您必须登录才可以投票.
 
  技术交流  技术交流  小型机  AIX和HPUX比较
前一个 前一个
 
下一个 下一个
新邮件 2009-8-17 10:22
  xh
37 posts
没有排名


AIX和HPUX比较 
 
安装和卸载
AIX
HP-UX
Install Software
installp –a
swinstall
Uninstall software
installp –u
swremove
List installed software
lslpp -L all
swlist
Verify installed software
lppchk –v
swlist -l fileset -a state
List all files
lslpp -f fileset
swlist -l fileset
List installed patches
instfix –i
swlist -l patch
Package owner
lslpp -w path
swlist -l file | grep path
SW Directory
/usr/lpp
/var/adm/sw/
磁盘与逻辑卷命令
AIX
HP-UX
Filesystem table
/etc/filesystems
/etc/fstab
Free disk blocks
df –k
bdf
Device listing
lsdev –C
/sbin/ioscan
Disk information
bootinfo -s hdisk# 
diskinfo /dev/rdsk/c#t#d#
Disk Label
lspv -l hdisk#
pvdisplay -v /dev/dsk/C#t#d#
Journal Filesystem type
Jfs
vxfs
Default volume group
/dev/rootvg
/dev/vg00
Display volume group
lsvg -l rootvg
vgdisplay -v vg00
Modify physical volume
Chpv
pvchange
Prepare physical disk
mkdev -c disk -l hdisk#
pvcreate
List physical volume
Lspv
pvdisplay
Remove disk from volume group
Reducevg
vgreduce
Move logical volumes
Migratepv
pvmove
Create volume group
Mkvg
vgcreate
Remove volume group
 
vgremove
Volume group availability
Chvg   varyonvg    varyoffvg
vgchange
Restore volume group
 
vgcfgrestore
Exports volume group
Exportvg
vgexport
Imports volume group
Importvg
vgimport
Volume group listing
Lsvg
vgscan
Change lv characteristics
Chlv
lvchange
List logical volume
Lslv
lvdisplay
Make logical volume
Mklv
lvcreate
Extend logical volume
Extendlv
lvextend
Reduce logical volume
reduce LV
lvreduce
Remove logical volume
Rmlv
lvremove
Prepare boot volumes
bootlist -m normal
lvlnboot
Remove boot volumes
 
lvrmboot
Extend File system
chfs
extendfs    fsadm
Split mirrors
Rmlvcopy
lvsplit
Merge mirrors
 
lvmerge
Create mirrors
mklv -c 2
lvcreate -m 1
Add mirrors
mklvcopy lv 2 
lvextend -m 1
Create striped volumes
mklv -u 3 -S 64K
lvcreate -i 3 -I 64
System recovery tape
mksysb -i /dev/rmt0
/opt/ignite/bin/make_recovery
Backup
savevg -i rootvg
fbackup
Restore
restvg 
frecover
TCP-IP相关设置
AIX
HP-UX
Network IP configuration
 
/etc/rc.config.d/netconf
Hosts IP addresses
/etc/hosts
/etc/hosts
Name service switch
/etc/netsvc.conf
/etc/nsswitch.conf
Network parameters
no –a
ndd -h
Routing daemon
Gated
gated
NIC Configurations
ifconfig –a
lanscan -v
Secondary IP Address
ifconfig en0 alias IP 
ifconfig lan0:1 IP 
Maximum # of ptys
512
{MAXUSERS}
Remote Shell
Remsh    rsh
remsh
目录结构
AIX
HP-UX
Root filesystem
/              {/dev/hd4}
/          {/dev/vg00/lvol1}
Home Directory  
/home          {/dev/hd1}
/home      {/dev/vg00/lvol4}
/tmp           {/dev/hd3}
/tmp       {/dev/vg00/lvol6}
/usr           {/dev/hd2}
/usr       {/dev/vg00/lvol7}
/var        {/dev/hd9var}
/var       {/dev/vg00/lvol8}
常用命令
AIX
HP-UX
Unique host ID
Hosted
uname -i
Administrator
Smit
sam
Performance monitor
Top   monitor
Top     glance
Error logs
alog -o -t boot,    errpt
dmesg
Swap device
/dev/hd6
/dev/vg00/lvol2
Swap file type
/etc/swapspaces
swap
Display swap size
lsps –a
swapinfo -a
Activate Swap
swapon –a
swapon -a
Startup script
/etc/rc
/sbin/rc
Kernel
/usr/lib/boot/unix_up
/stand/vmunix
Initialize system
install_assist
set_parms initial
Physical RAM
bootinfo –r
Grep -i Physical /var/adm/syslog/syslog.log
Kernel Bits
bootinfo –k
getconf KERNEL_BITS
Machine model
uname -m,      bootinfo -m
Model         uname -m
OS Level
Oslevel
uname -r
Run Level
who –r
who -r
Core dump files
/var/adm/ras
/var/adm/crash
Boot single user
Key F4 on service mode
Boot from CD/Tape
Select Maintenance
Limited function Shell
>boot
Interact with IPL ? Y
ISL>hpux -iS
Maintenance mode
 
>boot
Interact with IPL ? Y
ISL>hpux -lm
Timezone Management
/etc/environment
/etc/TIMEZONE
NTP Daemon
/etc/ntp.conf
startsrc -s xntpd
/etc/rc.config.d/netdaemons
/sbin/init.d/xntpd
Startup script
/etc/rc
/sbin/rc
设备管理相关
AIX
HP-UX
Devices
/dev
/dev
Attached peripherals
cfgmgr –v
insf -e
Remove device
rmdev –l
rmsf
Device drivers
Lscfg
lsdev
CPU
lsdev -Cc processor
ioscan -fnC processor
List Terminal
lsdev -Cc tty
ioscan -fnC tty
Diagnostics
Diag
stm
Whole Disk
/dev/hdisk#
/dev/dsk/c#t#d0
CDROM
/dev/cd0
/dev/dsk/c#t2d0
CDROM file type
Cdrfs
cdfs
Rewinding tape drive
/dev/rmt0
/dev/rmt/0m
Non-rewinding tape drive
/dev/rmt0.1
/dev/rmt/0mn
用户帐号的设置
AIX
HP-UX
密码文件
/etc/passwd
/etc/security/passwd
/etc/passwd
/tcb/files/auth/r/root
组文件
/etc/group
/etc/security/group
/etc/group
/etc/logingroup
允许远程登录的用户文件设置
/etc/security/user
{rlogin=true}
/etc/securetty
{console}
用户“nobody”的用户ID
4294967294
-2
“nobody”组的ID号
4294967294
-2(nogroup)
创建新用户
Mkuser
useradd
删除用户
Rmuser
userdel
列出用户
lsuser -f ALL
logins
修改用户帐号
chuser –a
usermod
 
 
前一个 前一个
 
下一个 下一个
  技术交流  技术交流  小型机  AIX和HPUX比较
版权所有 2008-2010 河北思捷 | 服务条款 | 隐私声明