分类:
2009-09-07 11:43:28
|
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 -a使所有出现在 /etc/swapspaces文件中的设备可用 |
swapon -a |
|
Startup script |
/etc/rc /etc/rc 的内容是特定的安装。如果成功完成了所有必需的操作,文件退出时为 0 返回码,它允许 init 命令启动日志程序以完成正常初始化和启动。 |
/sbin/rc |
|
Kernel |
/usr/lib/boot/unix_up |
/stand/vmunix |
|
Initialize system |
install_assist 或configassist |
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 –s |
uname -r 如显示B.11.11 |
|
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 |