HP-UX 系统维护命令
2010-10-18 17:00
351 查看
1、机型
# model
ia64 hp server rx2620
2、cpu个数
top -n 10
System: hp Mon Oct 18 16:42:29 2010
Load averages: 0.00, 0.00, 0.00
117 processes: 99 sleeping, 18 running
Cpu states:
CPU LOAD USER NICE SYS IDLE BLOCK SWAIT INTR SSYS
0 0.00 0.0% 0.0% 0.0% 100.0% 0.0% 0.0% 0.0% 0.0%
1 0.00 0.0% 0.0% 0.0% 100.0% 0.0% 0.0% 0.0% 0.0%
--- ---- ----- ----- ----- ----- ----- ----- ----- -----
avg 0.00 0.0% 0.0% 0.0% 100.0% 0.0% 0.0% 0.0% 0.0%
Memory: 241236K (89832K) real, 412024K (183604K) virtual, 2973804K free Page# 1/12
CPU TTY PID USERNAME PRI NI SIZE RES STATE TIME %WCPU %CPU COMMAND
1 ? 52 root 152 20 2520K 2240K run 7:09 0.36 0.36 vxfsd
1 ? 1334 root 152 20 163M 60312K run 0:18 0.20 0.20 cimserver
0 ? 1713 root 152 20 102M 14508K run 0:13 0.14 0.14 vxsvc
0 ? 1328 root 152 20 25364K 3660K run 0:00 0.12 0.12 rpcd
0 ? 452 root 152 20 7892K 2080K run 0:07 0.10 0.10 utmpd
0 ? 38 root 152 20 288K 256K run 0:33 0.08 0.08 schedcpu
3、硬盘的大小信息
diskinfo /dev/rdsk/c2t1d0
SCSI describe of /dev/rdsk/c2t1d0:
vendor: HP 73.4G
product id: ST373454LC
type: direct access
size: 71687369 Kbytes
bytes per sector: 512
4、硬盘的个数
# ioscan -funC disk
Class I H/W Path Driver S/W State H/W Type Description
============================================================================
disk 0 0/0/2/0.0.0.0 sdisk CLAIMED DEVICE TEAC DV-28E-N
/dev/dsk/c0t0d0 /dev/rdsk/c0t0d0
disk 1 0/1/1/0.0.0 sdisk CLAIMED DEVICE HP 73.4GST373454LC
/dev/dsk/c2t0d0 /dev/dsk/c2t0d0s2 /dev/rdsk/c2t0d0 /dev/rdsk/c2t0d0s2
/dev/dsk/c2t0d0s1 /dev/dsk/c2t0d0s3 /dev/rdsk/c2t0d0s1 /dev/rdsk/c2t0d0s3
disk 2 0/1/1/0.1.0 sdisk CLAIMED DEVICE HP 73.4GST373454LC
/dev/dsk/c2t1d0 /dev/dsk/c2t1d0s2 /dev/rdsk/c2t1d0 /dev/rdsk/c2t1d0s2
/dev/dsk/c2t1d0s1 /dev/dsk/c2t1d0s3 /dev/rdsk/c2t1d0s1 /dev/rdsk/c2t1d0s3
5、查看操作系统版本和license
# uname -a
HP-UX hp B.11.23 U ia64 0981954047 unlimited-user license
6、如何查看内存
# dmesg
Oct 18 16:47
Found adjacent data tr. Growing size. 0x3448000 -> 0x7448000.
Pinned PDK malloc pool: base: 0xe000000100bb8000 size=119072K
Loaded ACPI revision 2.0 tables.
MMIO on this platform supports Write Coalescing.
Memory Information:
physical page size = 4096 bytes, logical page size = 4096 bytes
Phyhical: 4173976 Kbytes, lockable: 2945984 Kbytes, available: 3427740 Kbytes
7、如何查看文件系统
# bdf
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol3 524288 263144 259144 50% /
/dev/vg00/lvol1 311296 77696 231816 25% /stand
/dev/vg00/lvol8 4718592 1463392 3231600 31% /var
/dev/vg00/lvol7 6209536 2558936 3622104 41% /usr
/dev/vg00/lvol4 212992 8496 202904 4% /tmp
/dev/vg00/lvol6 4784128 2559584 2207176 54% /opt
/dev/vg00/lvol5 32768 8648 23936 27% /home
存在两个文件中:/etc/fstab /etc/mnttab
27、重新启动机器
#reboot
#shutdown
28、关闭机器
#shutdown -hy 0
#init 0
28、unix的集中运行的模式
多用户模式,但用户模式等等6种。
用如下命令可以看看它的运行模式:
#who -r
. run-level 3 Oct 15 14:34 3 0 S
29、普通的对话
#wall "hello!" (广播hello这个消息)
#banner "hello!"(放大hello这个消息)
#banner "hello!"|more (放大hello消息后再来广播它)
30、看当前的登录名
#logname
root
31、看所有登录用户
#whoiam #whoiam
32、看登录用户在干什么
#whodo
Mon Oct 18 17:24:14 EAT 2010
HP-UX
root 0 Oct 18 16:38
14989 0:00 sh
root 1 Oct 18 17:18
15168 0:00 sh
15234 0:00 whodo
15239 0:00 awk
15240 0:00 sort
15242 0:00 awk
15245 0:00 ps
root console Oct 18 12:47
14124 0:00 sh
33、看看进程
ps -ef|grep root (看root用户的进程,有时候console上执行的进程
够停止的话,那么就将console进程进程杀死,因为该进程是其它进程?
父进程。)
# model
ia64 hp server rx2620
2、cpu个数
top -n 10
System: hp Mon Oct 18 16:42:29 2010
Load averages: 0.00, 0.00, 0.00
117 processes: 99 sleeping, 18 running
Cpu states:
CPU LOAD USER NICE SYS IDLE BLOCK SWAIT INTR SSYS
0 0.00 0.0% 0.0% 0.0% 100.0% 0.0% 0.0% 0.0% 0.0%
1 0.00 0.0% 0.0% 0.0% 100.0% 0.0% 0.0% 0.0% 0.0%
--- ---- ----- ----- ----- ----- ----- ----- ----- -----
avg 0.00 0.0% 0.0% 0.0% 100.0% 0.0% 0.0% 0.0% 0.0%
Memory: 241236K (89832K) real, 412024K (183604K) virtual, 2973804K free Page# 1/12
CPU TTY PID USERNAME PRI NI SIZE RES STATE TIME %WCPU %CPU COMMAND
1 ? 52 root 152 20 2520K 2240K run 7:09 0.36 0.36 vxfsd
1 ? 1334 root 152 20 163M 60312K run 0:18 0.20 0.20 cimserver
0 ? 1713 root 152 20 102M 14508K run 0:13 0.14 0.14 vxsvc
0 ? 1328 root 152 20 25364K 3660K run 0:00 0.12 0.12 rpcd
0 ? 452 root 152 20 7892K 2080K run 0:07 0.10 0.10 utmpd
0 ? 38 root 152 20 288K 256K run 0:33 0.08 0.08 schedcpu
3、硬盘的大小信息
diskinfo /dev/rdsk/c2t1d0
SCSI describe of /dev/rdsk/c2t1d0:
vendor: HP 73.4G
product id: ST373454LC
type: direct access
size: 71687369 Kbytes
bytes per sector: 512
4、硬盘的个数
# ioscan -funC disk
Class I H/W Path Driver S/W State H/W Type Description
============================================================================
disk 0 0/0/2/0.0.0.0 sdisk CLAIMED DEVICE TEAC DV-28E-N
/dev/dsk/c0t0d0 /dev/rdsk/c0t0d0
disk 1 0/1/1/0.0.0 sdisk CLAIMED DEVICE HP 73.4GST373454LC
/dev/dsk/c2t0d0 /dev/dsk/c2t0d0s2 /dev/rdsk/c2t0d0 /dev/rdsk/c2t0d0s2
/dev/dsk/c2t0d0s1 /dev/dsk/c2t0d0s3 /dev/rdsk/c2t0d0s1 /dev/rdsk/c2t0d0s3
disk 2 0/1/1/0.1.0 sdisk CLAIMED DEVICE HP 73.4GST373454LC
/dev/dsk/c2t1d0 /dev/dsk/c2t1d0s2 /dev/rdsk/c2t1d0 /dev/rdsk/c2t1d0s2
/dev/dsk/c2t1d0s1 /dev/dsk/c2t1d0s3 /dev/rdsk/c2t1d0s1 /dev/rdsk/c2t1d0s3
5、查看操作系统版本和license
# uname -a
HP-UX hp B.11.23 U ia64 0981954047 unlimited-user license
6、如何查看内存
# dmesg
Oct 18 16:47
Found adjacent data tr. Growing size. 0x3448000 -> 0x7448000.
Pinned PDK malloc pool: base: 0xe000000100bb8000 size=119072K
Loaded ACPI revision 2.0 tables.
MMIO on this platform supports Write Coalescing.
Memory Information:
physical page size = 4096 bytes, logical page size = 4096 bytes
Phyhical: 4173976 Kbytes, lockable: 2945984 Kbytes, available: 3427740 Kbytes
7、如何查看文件系统
# bdf
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol3 524288 263144 259144 50% /
/dev/vg00/lvol1 311296 77696 231816 25% /stand
/dev/vg00/lvol8 4718592 1463392 3231600 31% /var
/dev/vg00/lvol7 6209536 2558936 3622104 41% /usr
/dev/vg00/lvol4 212992 8496 202904 4% /tmp
/dev/vg00/lvol6 4784128 2559584 2207176 54% /opt
/dev/vg00/lvol5 32768 8648 23936 27% /home
存在两个文件中:/etc/fstab /etc/mnttab
27、重新启动机器
#reboot
#shutdown
28、关闭机器
#shutdown -hy 0
#init 0
28、unix的集中运行的模式
多用户模式,但用户模式等等6种。
用如下命令可以看看它的运行模式:
#who -r
. run-level 3 Oct 15 14:34 3 0 S
29、普通的对话
#wall "hello!" (广播hello这个消息)
#banner "hello!"(放大hello这个消息)
#banner "hello!"|more (放大hello消息后再来广播它)
30、看当前的登录名
#logname
root
31、看所有登录用户
#whoiam #whoiam
32、看登录用户在干什么
#whodo
Mon Oct 18 17:24:14 EAT 2010
HP-UX
root 0 Oct 18 16:38
14989 0:00 sh
root 1 Oct 18 17:18
15168 0:00 sh
15234 0:00 whodo
15239 0:00 awk
15240 0:00 sort
15242 0:00 awk
15245 0:00 ps
root console Oct 18 12:47
14124 0:00 sh
33、看看进程
ps -ef|grep root (看root用户的进程,有时候console上执行的进程
够停止的话,那么就将console进程进程杀死,因为该进程是其它进程?
父进程。)
相关文章推荐
- HP-UX 系统维护命令------卷管理
- HP-UX 系统维护命令----网络管理
- (转载)HP-UX系统维护基本命令和常用配置文件
- HP-UX 系统维护基本命令和常用文件
- HP-UX 系统维护基本命令和常用文件
- hp-ux系统备份与恢复常用命令
- HP-UX系统安装常用命令
- HP-UX 主机巡检-nickel 脚本命令细细读--系统信息
- HP-UX一些文件系统查询命令
- AIX/Linux/Solaris/HP-UXAIX查看系统TCP keepalive值
- 维护系统必备命令:Chroot
- fsadm给文件系统扩容(HP_UX)
- Linux 命令之系统管理(长期维护)
- Solaris 系统维护常用命令
- hp-ux操作系统下tusc命令的使用
- AIX/Unix/Linux/HP-UX 系统中文字符集
- Glance监控命令在HP-UX上的使用
- HP-UX常用命令
- HP-UX登录MP解除系统告警--实战
- HP-UX常用命令