Sei sulla pagina 1di 7

/etc/rc.config.

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}

Number of lines in a file


$awk END {print NR} file_name
Number of columns in each row of a file

$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

ifconfig lan0:0 inet 20.3.3.3


/etc/rc.config.d/netconf
scsictl
scsictl
scsictl
scsictl
scsictl
export
export
export
export

-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

du -sk * | sort -nr


ioscan -funC disk | sed -n '/dsk/p' | awk '{print $1}' | sed '/s[1-3]/d'
vgdisplay -v| sed -n -e '/VG Name/p' -e '/PV Name/p'
swlist -l patch | grep -i A7173A
sed -e '/sshd/d' -e '/ftp/d' -e '/su/d' syslog.log
to know the last mount point added to the system
bdf | awk '{ print $6 }' | grep -i oradata | sort
grep "Boot device" /var/adm/syslog/syslog.log
> file-name 2>&1
swinstall s /depot
fjweihan
/usr/bin/cancel

x autoreboot=true -x match_target=true

/opt/resmon/bin/resdata -R 162136066 -r /storage/events/disks/default/0_4_1_0.0.


0.1.0 -n 162136386 -a
IF the FAILED DISK has A new CTD and the old CTD gone
lvreduce -m 0 -k /dev/vg00/lvol1 /dev/dsk/c9t1d0 -> this is the failed or unpre
sented physical volume
vgreduce -f vg00
do as they said
mv /etc/lvmtab /etc/lvmtab.old
vgscan -v
pvcreate -f -B /dev/rdsc/c...
vgextend vg00 /dev/dsk/c...
lvextend -m 1 /dev/vg00/lvolX /dev/dsk/c...
Taking the last 3 octets of the disk HW address,
0.13.6
you can calculate the LUN from the array by:
LUN= $(( 128*0 + 8*13 + 6 )) = 110
or generally by 128*3rd + 8*2nd + 1st
for i in `ioscan -m dsf | grep -i rdisk | awk '{print $1}'`
> do
> echo $i
> scsimgr get_info -D $i | grep -i WWID
> done
sed -n '/dev/p' luns_fc_faulty | sed 's/rdsk/dsk/g'
to insert a line at the 8th line:
sed '8 i PasswordEncryotion' account.settings
sed '8 i \ PasswordEncryotion = clear;' account.settings
sed -n '2,3p' file1
print lines 2 and 3 from a file
x=`grep -n "0345-0000" luns_fc | awk -F: '{print $1}'`
let y=$x+8
sed -n "`echo $x`,`echo $y`p" luns_fc
to add "chmod 640" at the beginning of each line
sed 's/.*/chmod 640 &/' files2
../evainfo_hpux11_23_IA -W | grep -i "Lun WWN" | awk '{print $3}' | wc -l
#
>
>
>

for i in ` ../evainfo_hpux11_23_IA -W | grep -i "Lun WWN" | awk '{print $3}'`


do
../evainfo_hpux11_23_IA -w $i > $i
done

for i in `vgdisplay -v vg02 | grep -i "PV Name" | awk '{print $3}' | awk -F/ '{p
rint $4}'`
do
grep -n $i *
done

lvdisplay -vk /dev/vg08/lvol2 | head -25 | sed -n '/\/dev\/dsk/p' | awk '{print


$1}' | awk -F/ '{print $4}'
jestin.chacko@hp.com, aliasgar.gheewala@hp.com
ch_rc -a -p NIS_CLIENT=0 /etc/rc.config.d/namesvrs
ndd -setr /dev/ip ip_forwarding
for i in `grep "PV Name" vgdisplay.vg03 | awk '{print $3}' | awk -F/ '{print $4}
'`
sh PHSS_34124
swinstall -x autoreboot=true -x patch_match_target=true -x mount_all_filesystem
s=false -s /var/PHSS_41491.depot
swverify -F -x fix=true
du -sk * | sort -n
Menu> bo pri
It will ask, do you want to interact with IPL Y/N ?
Give "Y" . It will take you to ISL prompt. In ISL give this command.
ISL> hpux -is
IA64 HPUX>boot -is vmunix
# mount /usr
# /usr/sbin/lvextend -L 1024 /dev/vg00/lvol6
->>>> /usr/sbin/lvexten
d -l 1250 /dev/vg00/lvol8
# /usr/sbin/extendfs -F vxfs /dev/vg00/rlvol6
->>>> /usr/sbin/extend
fs -F vxfs /dev/vg00/rlvol8
since the /etc/default/fs is hfs, unless u want to amend the file to vxfs
# lvdisplay /dev/vg00/lvol8
# mount /var
# bdf
for j in `ls`
> do
> for i in `ls -l $j | sed '/Aug\ 2/d' | awk '{print $9}'`
> do
> rm $j/$i
> done
> done
export http_proxy=http://........
use %40 rather than @
export http_proxy=http://maref:Kazanova%40123@192.168.21.70:8080/
/opt/ssh/utils/ssh_chroot_setup.sh
swlist -s DR-UMACT:/var/internet_A.17.00-001_HP-UX_B.11.23_IA_PA.depot
swlist -l product -s DR-UMACT:/var/internet_A.17.00-001_HP-UX_B.11.23_IA_PA.depo
t
To see the depots on a remote machine:
# swlist -l depot @192.168.20.35
to test if the java is 64 or not:
/opt/java6/bin/java -d64 -version

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

umn_test:/usr/bin/X11 # export DISPLAY=192.168.11.164:0.0


umn_test:/usr/bin/X11 # xhost +
access control disabled, clients can connect from any host
umn_test:/usr/bin/X11 # ./xterm
last -R
systemctl restart rsyslog.service
/etc/opt/resmon/lbin/monconfig
show_patches
sed -n "${line}{p;q}" test
list all the files in the directories and subdirectories with only owner, group
and permissions:
find . -exec ls -dl \{\} \; | awk '{print $3, $4, $9}'
can be used to print out octal notation.
stat -c '%n %a %A'
swacl -l root -M any_other:rt
swacl -l root -D any_other
kconfig -e kernel from original
scp kernel to other system
kconfig -i kernel on the other system
---------------------------------------------send snmp traps
/opt/perf/bin/ovtrap -s Normal 192.168.31.64 test
/usr/newconfig/etc/SnmpAgent.d/snmpd.conf
---------------------------------------------------------wireshark:
filter -> ip.addr == 192.168.20.10

---------------------------------------------------------/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" maref@umniah.com < 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
ef@umniah.com < /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
--------------------------------------------------------------------------------------------

Potrebbero piacerti anche