分类: 系统运维
2007-06-08 05:23:41
其它命令
Startup script
/etc/rc
/etc/rc
/sbin/rc
Kernel
/usr/lib/boot/unix_up
/kernel
/stand/vmunix
Kernel Parameters
lsattr -E -l sys0
sysctl -a
sysdef
kmtune
kmsystem
Reconfigure the kernel
chdev -l sys0 -a cd /sys/i386/conf
vi KERNEL
config KERNEL
cd ../../compile\
/KERNEL
make depend
make
make installcd /stand/build\
/usr/lbin/sysadm\
/system_prep -v -s system
vi system
mk_kernel -s system
cd /stand
mv system system.prev
mv vmunix vmunix.prev
mv dlkm dlkm.prev
mv /stand/build\
/system system
kmupdate /stand/build\
/vmunix_test
List modules
genkex
kldstat
kmadmin -s
Load module
kldload
kmadmin -L
Unload module
kldunload
kmadmin -U
Initialize system
install_assist
/stand/sysinstall
set_parms initial
Physical RAM
bootinfo -r
sysctl hw.physmem
grep -i Physical\ /var/adm/syslog\
/syslog.log
Kernel Bits
bootinfo -k
getconf KERNEL_BITS
Crash utility
crash
crash
adb
Trace System Calls
syscalls
truss
tusc
Machine model
uname -m
bootinfo -muname -m
model
uname -m
OS Level
oslevel
uname -r
uname -r
Run Level
who -r
who -r
Core dump files
/var/adm/ras
/var/adm/crash
Boot single user
Key on service mode/F4
Boot from CD/Tape
Select Maintenance
Limited function Shellok boot -s
>boot
Interact with IPL ? Y
ISL>hpux -iS
Maintenance mode
ok boot -as
>boot
Interact with IPL ? Y
ISL>hpux -lm
Interrupt Key
control-B
Return to console
co
Timezone Management
/etc/environment
/etc/profile/etc/localtime
/etc/TIMEZONE
NTP Daemon
/etc/ntp.conf
startsrc -s xntpd/etc/rc.conf {xntpd_enable="YES"}
/etc/rc.network/etc/rc.config.d\
/netdaemons
/sbin/init.d/xntpd