HP UX Notes
HP UX Notes
HP UX Notes
d/netconf
/etc/inetd.conf
/etc/lvmrc
/etc/rc.config.d/cmcluster
shc files:
/var/opt/hpsmc/shc/data/UMEBCDB/shc
/opt/hpsmc/shc/bin/shcconfig
/tmp/shc_14_jun
strings /etc/lvmtab | sed -n '/dev/p' | sed -e '/dsk\/c*t*d*/d' -e '/disk\/disk/
d' | awk -F / '{print $3}'
for i in `strings /etc/lvmtab | sed -n '/dev/p' | sed -e '/dsk\/c*t*d*/d' -e '/d
isk\/disk/d' | awk -F / '{print $3}'`
do
vgexport -p -s -v -m /tmp/$i.`date '+%d_%b'`.map $i
done
#
#
#
#
#
#
#
#
#
#
#
#
#
#
>
>
>
>
>
>
>
>wtmp
>wtmps
> utmp
>sulog
>OLDsulog
>btmps
>btmp
>/var/adm/syslog/mail.log
> shutdownlog
> rc.log
> rc.log.old
cd /var/mail
>/var/adm/cron/log
>/var/stm/logs/sys/memlogd_activity_log
/var/adm/sw/swagent.log
/var/adm/sw/swagentd.log
/var/adm/sw/swconfig.log
/var/adm/sw/swinstall.log
/var/stm/logs/sys/activity_log
/var/stm/logs/sys/diaglogd_activity_log
/var/stm/logs/sys/scan_hw_log
??????/opt/omni/tmp/rcvcat29218.exp
echo "selclass qualifier memory;info;wait;infolog" | /usr/sbin/cstm
echo "selclass qualifier cpu;info;wait;infolog" | /usr/sbin/cstm
echo "selall;info;wait;infolog;view;done" | /usr/sbin/cstm
cm>df -all
ls
al |awk
$5 == 0 {print $9}
$awk
{print NF } file_name
List all file names whose file size is greater than 512bytes and owner is "oracl
e"
$ls al |awk $3 == "oracle" && $5 > 512 {print $9}
https://192.168.20.25:2372/
hq-um-swp-01
FRU Entry # 16 :
FRU NAME
FRU ID
JEDEC SPD Rev
JEDEC Mfg ID
JEDEC Mfg Location
JEDEC Mfg Part #
JEDEC Mfg Revision Code
JEDEC Mfg Year
JEDEC Mfg Week
JEDEC Mfg Serial #
Mfg Unique Serial #
:
:
:
:
:
:
:
:
:
:
:
MemExt0 DIMM0A
0128
0x10
0x7F94FFFFFFFFFFFF
0x02
AB565AX-SC-IC-IC
0x00FF
0x07
0x18
0x02FE030C
0x019402071802FE030C
-a
-a
-a
-a
-a
/dev/rdsk/c8t0d0
/dev/rdsk/c8t0d1
/dev/rdsk/c8t0d5
/dev/rdsk/c8t0d6
/dev/rdsk/c8t0d7
PS1="$(hostname):\$PWD\ # "
EDITOR=vi
HISTFILE=.sh_history
HISTSIZE=1000
x autoreboot=true -x match_target=true
for i in `vgdisplay -v vg02 | grep -i "PV Name" | awk '{print $3}' | awk -F/ '{p
rint $4}'`
do
grep -n $i *
done
PHCO_32220
s700_800 11.23 HP-UX Patch Tools
sysdiff host1 host2 -> to compare patches
/usr/contrib/bin/sysdiff
cat /.sw/sessions/swinstall.last
/opt/hpws/apache/bin
export SHLIB_PATH=/usr/local/lib/hpux32/:/opt/gtk2.6/lib/:/opt/java1.5/lib/:/ora
cle/product/10.2.0/lib:/nikira_data01/NIKIRATOOLS/local/lib
to see check that the file exists in one of our paths or not:
/usr/bin/ls -ld `/usr/bin/echo $PATH | /usr/bin/awk -F: '{for (x=1;x<=NF;x++){pr
int $x}}'`
find . -user oprod -exec rm {} \;
/usr/contrib/bin/X11/dr_dt
to check dtlogin
---------------------------------------------------------/sbin/init.d/ipfboot stop
/sbin/init.d/ipfboot start
---------------------------------------------------------pssh -h new -i "hostname ; /opt/fcms/bin/fcmsutil /dev/fcd0 | grep 'N_Port Port
World Wide Name'" | grep -B 1 'N_Port Port World Wide Name'
--------------------------------------------------------------/sbin/passwd in order to re-use an already used password in trusted mode system
--------------------------------------------------------------to know what is the physical volume that the path is for in the syslog
ls -l /dev/dsk* | grep -i
------------------------------------------------------------------pssh -h all -P "getconf MACHINE_SERIAL" | sed '/:22/d'
for only two hosts:
pssh -P -H "192.168.20.71 192.168.20.70" "date"
------------------------------------------------------------------Install the software without entering the interactive mode:
swinstall -x mount_all_filesystems=false -x autoreboot=false -s /tmp/cfg2html_hp
ux_5.26-20120601-33105.depot \*
pssh -h test -P "/usr/sbin/swinstall -x mount_all_filesystems=false -x autoreboo
t=true -s /tmp/fw_upgrade/HP-UX_11.31_10GigEthr-02_B.11.31.1209_HP-UX_B.11.31_IA
.depot \*"
--------------------------------------------------------------------------------------------------------------------pssh -h new -P "getconf MACHINE_SERIAL"
------------------------------------------------------------------------------------------------/opt/iexpress/net-snmp/sbin/snmpd -c /opt/iexpress/net-snmp/etc/snmp/snmpd.conf
------------------------------------------------------------------------------------To check the lan driver from the kerenl dump:
what /stand/vmunix /stand/current/mod/* | grep -i iexgbe
what /stand/vmunix /stand/current/mod/* | grep -i sas
------------------------------------------------------------------------------------to register a depot file on a remote server and allow remote swistall:
swreg -l depot /ignite/archive/software/patch-delivery-43721.depot
swcopy -x enforce_dependencies=false -s /ignite/archive/software/patch-delivery43721.depot \* @ /ignite/archive/software
------------------------------------------------------------------------------------send file to mail through hp ux:
mailx -s "report" [email protected] < daily_print_queue.sh
------------------------------------------------------------------------------------to add logs for cron job:
0 3 * * * xxxxxxxxxxxx
> /tmp/queue_cleanup_log 2>&1
28 12 * * * /sbin/sh /test > /tmp/queue_cleanup_log 2>&1 ; mailx -s "report" mar
[email protected] < /tmp/queue_cleanup_log
------------------------------------------------------------------------------------if msgmni kernel parameter is full:
see ipcs output
Message Queues:
....
....
commnad ipcrm used to empty the message queue (be careful)
--------------------------------------------------------------------------------
------------/var/opt/cmom/cmomd.log
-------------------------------------------------------------------------------------------swlist -l depot @ UMACTBIL
swreg -l depot @ /depot
swlist -l depot @ UMACTBIL
swlist -l product @ /depot
swsinstall -s /depot
-------------------------------------------------------------------------------------------lvdisplay -v /dev/vg62/lvol1 | grep -i stale | wc -l
-------------------------------------------------------------------------------------------to check the hardware controller form the shell:
Shell> drivers
A3 00000350 B X X 1 2 Smart Array SAS Driver v3.50
MemoryMapped(0xB,0x
the above line should be there, A3 is
Shell> drvcfg
---------------------------------------------Drv[A3] Ctrl[A1] Lang[eng]
the above line whih concerns the A3, and shows that the Ctrl is A1
Shell> drvcfg -s A3 A1
and the hardware raid utility starts
-------------------------------------------------------------------------------------------/opt/sfm/bin/
/opt/sfm/bin/evweb eventviewer -L -x -f
evweb logviewer -E -r -i 615
/opt/propplus/bin/cprop
--------------------------------------------------------------------------------------------