4.29.2022

no inq or syminq - using scsimgr to get lun details

for i in 0 1 2

do

echo ; echo disk10$i

scsimgr get_info -D /dev/rdisk/disk10$i | grep -e WWID -e "Serial number" -e "V

endor id" -e "Product id" -e "Product revision"

done

 #SaveSoil

4.11.2022

easy HPUX expand examples

bdf /ora01 /grid

 

ioscan ; insf

(PRO TIP:  do NOT use insf -e unless you know what you are doing.  you could kill the oracle asm or any device special file ownership or permissions)

ioscan -funNH $(grep vmunix /var/adm/syslog/syslog.log | grep 64000 | tail -1 | awk '{print $6}')

 

pvcreate /dev/disk/disk112

vgextend vg01 /dev/disk/disk112

 

lvdisplay /dev/vg01/lvora01 | grep -i "LV size"

NEWSIZE=$(expr `lvdisplay /dev/vg01/lvora01 | grep -i "LV size" | awk '{print $4}'` + 20480)

lvextend -L ${NEWSIZE} /dev/vg01/lvora01

fsadm -F vxfs -b ${NEWSIZE}m /ora01

 

lvdisplay /dev/vg01/lvgrid | grep -i "LV size"

NEWSIZE=$(expr `lvdisplay /dev/vg01/lvgrid | grep -i "LV size" | awk '{print $4}'` + 20480)

lvextend -L ${NEWSIZE} /dev/vg01/lvgrid

fsadm -F vxfs -b ${NEWSIZE}m /grid

 

bdf /ora01 /grid

 

 

#SaveSoil – it's a generational responsibility, Let's make it happen

4.05.2022

get EMC Lun ID serial number without EMC tools

Get EMC Lun ID without inq or syminq or symcli sympd commands:

 

scsimgr get_attr -D /dev/rdisk/disk112 -a serial_number

 

yep, that easy


#SaveSoil


3.31.2022

can't connect to ILO

Their offerdiffie-hellman-group1-sha1 root@shoesdekho

Solution:

ssh -o KexAlgorithms=diffie-hellman-group1-sha1 test@123.123.123.123


yea


#SaveSoil

Thanks for reaching out.  I'm not in the job market currently.


However I'm requesting your attention to the most urgent responsibility we have:  #SaveSoil

Please visit:  savesoil.com   http://savesoil.com


  The magic of Soil is

     it turns death into life


 Depleted Soils will not quench the fire of hunger

   unquenched hunger can burn the very world


this is a generational responsibility


Save Soil


Let's make it happen


3.24.2022

F8 Is Not Working On Smart Array P410i

https://community.hpe.com/t5/System-Administration/F8-Is-Not-Working-On-Smart-Array-P410i/td-p/5556455#.Yjz0FprMJqs

F8 Is Not Working On Smart Array P410i

instead of banging your head on wall, changing terminal keyboard settings for function keys in putty or whatever, just do this:

press ESC followed by 8  That's HP genius equivalent to F8.

This is needed to create a logical drive or delete or change controller mode.  

3.16.2022

random HPUX notes, nwmgr.log, OVO commands, ldap tweak



/tmp/AAA issue


/opt/OV/bin/opctemplate -d "HP Logins_DS021"

#/opt/OV/bin/opctemplate -e "HP Logins_DS021"

> /var/adm/wtmp ; > /var/adm/btmp ; > /var/adm/wtmps ; > /var/adm/btmps ; > /var/adm/wtmpx



bdf /tmp


unalias rm


> /tmp/nwmgr_apa.log ; rm /tmp/nwmgr_apa.log ; ln -s /dev/null /tmp/nwmgr_apa.log


bdf /tmp


ll /tmp/nwmgr_apa.log




file system OV OM agent repeat:

/var/opt/OV/local/log/dskmon.log to see if the alarm has cleared.

The monitor fires every 15 minutes, so may need to wait a bit to check.

If you donĂ­t see a message like the one high-lighted below, you may need to recycled opcagt:

/opt/OV/bin/opcagt -stop

/opt/OV/bin/opcagt -start




LDAPUX update:

/sbin/init.d/ldapclientd.rc stop


swinstall -x mount_all_filesystems=false -s host:/path/11.31.v PHCO_41855

swinstall -x mount_all_filesystems=false -s host:/path/11.31.v PHCO_44582

swinstall -x mount_all_filesystems=false -s host:/path/11.31.v LDAPUX

vi /etc/default/nssgrenh

30000

15

chmod 755 /etc/default/nssgrenh


ndd -set /dev/sockets socket_buf_max 2530032


vi /etc/rc.config.d/nddconf


TRANSPORT_NAME[31]=sockets

NDD_NAME[31]=socket_buf_max

NDD_VALUE[31]=2530032


/sbin/init.d/pwgr stop

/sbin/init.d/pwgr start


/sbin/init.d/ldapclientd.rc start


/usr/dt/bin/dtconfig -kill

/usr/dt/bin/dtconfig -e

/sbin/init.d/dtlogin.rc start



1.26.2022

mount ILO Virtual Media in HPUX

find the device:
ll /dev/deviceFileSystem/Usb/MassStorage/dsk/disk*

add entry to /etc/fstab:
/dev/deviceFileSystem/Usb/MassStorage/dsk/disk@UnknownDevice-1008+4902=00226402b917 /vmedia cdfs rr 0 2

copy OnlineJFS bundle from 2008 Application DVD CD 1:
swcopy -x enforce_dependencies=false -x autoselect_dependencies=false -s /vmedia B3929EA @ /var/spool/sw

creating a file system over 2TB 
vxfs mkfs: V-3-20000: mkfs: You don't have a license to create a file system of size  > 2147483648 sectors (2048 GB)