利用 Glance 監視系統

glance 是 HP-UX 系統監控的一套工具
除了平常可以直接下 glance 看 系統 CPU, Memory, DISK IO 等效能的數據
glance 也可以利用 “-adviser_only" 在 command line 觀看系統效能
詳細的參數請見 glance 文件 /opt/perf/paperdocs/gp/C/adviser.pdf

下面是一個簡單的範例

# vi testmetrics
print gbl_cpu_user_mode_util, gbl_cpu_sys_mode_util, gbl_cpu_idle_util

執行
# glance -adviser_only -syntax ./testmetrics -j 10
4.0 1.3 94.7
0.2 0.7 99.1
# glance -adviser_only -syntax ./testmetrics -j 10 > data.out

廣告

HPUX – Monut CDROM

1. 沒有光碟機的 Server 1 , 借 Server 2 的光碟機
a. 借光碟機來 mount
——————
server2# bdf
server2# ioscan -nfkCdisk | more
server2# mount /dev/dsk/cXtXdX /cdrom
server2# exportfs -i -o ro /cdrom

b. server1 用 nfs mount 到 server2

server1# mount 192.168.0.2:/cdrom /cdrom
server1# ll /cdrom
server1# swinstall -s /cdrom/DIAGNOSTICS/B.11.00
server1# umount /cdrom

3.解除
server1# exportfs -u /cdrom
server1# exportfs
server1# umount /cdrom

2. Mount Options

windows 光碟 -> CDFS
mount -F cdfs -o cdcase /dev/dsk/cXtXdX /cdrom

oracle 光碟 -> 加上 rr
mount -F cdfs -o rr /dev/dsk/cXdYtZ /cdrom

hpux snmp 正確重起法

若不照此步驟 snmp 將無法正常 work

可由 cacti 驗證, 看圖是否有畫出

1. /sbin/init.dSnmpMaster stop
2. snmpd

cerpdb:/>/sbin/init.d/SnmpMaster stop
snmpdm stopped
cerpdb:/>snmpd
Start SNMP Master Network Management daemon
SNMP Research SNMP Agent Resident Module Version 14.2.1.7
Copyright 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997 SNMP Research, Inc.
cerpdb:/>Start SNMP HP-UNIX Network Management subAgent
Start SNMP MIB-2 Network Management subAgent
Start SNMP Trap Dest Network Management subAgent
Start SNMP PCI FDDI Network Management subAgent

HP-UX Sendmail without DNS

好像很多人因為系統裝了 sendmail
就以為 sendmail 只能當 mail server 來用
卻不知 sendmail 也可以直接寄信 – 如果你只想寄出去而已
甚至信寄不出去 就認定 sendmail 有問題
其實是 DNS 或是 HOSTS Files 沒設好而已

ex. mail -s “test1″ user1@acty.com.tw < /tmp/somefile
它會去問 acty.com.tw 的 DNS 的 MX 或是 HOST File 的 IP
假設今天用 HOSTS FILE 也在裡面 acty.com.tw 的 IP
它就會寄到那個 IP 去

Step:
1)
use SAM for looking up “Name Service Switch"
for hosts (in Networking and Communications).
On the working 11.0 node i found /etc/hosts as first source,
in the 11.11 node there was DNS as first, NIS as second
and /etc/hosts as third source configured.

Please change /etc/hosts as first and none as second source.

don’t reboot the machine but restarted sendmail

2) or
cp -p /etc/nsswitch.file /etc/nsswitch.conf

HPUX SNMP Installation Notice

HP-UX SNMP must install the newest patch for SNMP

ITRC recommend PH_26138 or the newest PH_27858

HP-UX CIFS mount

ex
Windows SERVER: SERVER1 share folder /share

mount -F cifs -o username=user1,password=passwd1 SERVER1:/share /share
#su – user1 -c “cifslogin SERVER1 user1 -P passwd1″

umount /share

HP-UX JetDirect Software Download Link

Title: HP-UX JetDirect Software Download Link

http://h20180.www2.hp.com/apps/Lookup?h_query=jet+direct+
printer+installer&h_tool=software&h_lang=en

or you can go HP “Support & Drivers" , search “jet direct printer installer"