9.26.2024

HP Smart Array P410i controller - change mode from RAID to HBA mode

This is the easiest way I found to do this on i2 (and maybe i4/i6) bl860c i2 blades:

launch the efi shell
drivers
# in first column, find the driver that corresponds to Smart Array SAS Driver
# in my case it was A3
devices
# in first column, find the device, Smart Array P420i Controller
# in my case it was A1
drvcfg -s a3 a1

sometimes you get a "drvcfg: Driver image handle [A3] does not support Driver Configuration Protocol"
that is most likely the version of the EFI driver, v3.54 supports this, but at least v3.50 does not


3.08.2023

ftp issue HPUX to windows

if you are transferring file from HPUX to windows and you get this error:
ftp R:ICMP port unreachable

the transfer says complete, but the file does not show up in windows.

it's likely the file you're transferring contains a colon (common with ignite archive image) or other character(s) that are permissible in Unix, but not windows


2.06.2023

MobaXterm home directory in Windows

C:\Users\%username%\AppData\Roaming\MobaXterm\home

Or

 %userprofile%\AppData\Roaming\MobaXterm\home

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)

11.17.2021

Solaris su error

Solaris 11 and others?

$ su -

Password:

Roles can only be assumed by authorized users

su: Sorry

 

fix:

vi /etc/user_attr

USERNAME::::roles=root

 

 

Solaris equilalent of Linux /etc/security/access.conf

/etc/users.allow

 

In ldap environments: To change ldap password on Solaris:

kpasswd

 

Change local account passwords:

passwd -r files

2.06.2019

ERROR: Retrieving Ignite-UX version on the server: fully.qualied.domain

ERROR:   Retrieving Ignite-UX version on the server: fully.qualied.domain

FIX:

Add swacl for client and server:

client:

swacl -l root -M other:@ignite.server.fqdn:rt

Ignite server:

swacl -l root -M other:@client.hostname.fqdn:rt


1.11.2018

ilo ssh -- Received disconnect from XXXX: 11: Client Disconnect

From an HPUX box, if you can't connect to an ilo / ilo2 and you get this: Received disconnect from XXXX: 11:  Client Disconnect

 

The fix is to either use putty or a linux host to ssh from, or use the following options:

 

ssh -o HostKeyAlgorithms=ssh-rsa,ssh-dss -o KexAlgorithms=diffie-hellman-group1-sha1 -o Ciphers=aes128-cbc,3des-cbc -o MACs=hmac-md5,hmac-sha1 ILO_IP


12.29.2017

NFS Service Guard packages

For a big NFS server:

grep -e ^NFSD_SERVERS -e ^MAX_STATD_THREADS /etc/default/nfs

 

ch_rc -a -p NFSD_SERVERS=400 /etc/default/nfs

ch_rc -a -p MAX_STATD_THREADS=1600 /etc/default/nfs

 


12.21.2017

ERROR: Retrieving Ignite-UX version on the server

New IGNITE server install.  Make_net_recovery on client fails with this: ERROR:   Retrieving Ignite-UX version on the server

 

Fix by:

swacl -l host -M 'any_other:-r--t'

swacl -l root -M 'any_other:-r--t'

 

then run make_recovery again.

 

12.29.2015

Google Now on Tap doesn't turn on

if Google Now on Tap (Android Marshmallow or better) doesn't turn on or turns on, but quickly turns off, then you probably have an account on google apps.  Your domain administrator needs to do the following (referenced from:  https://productforums.google.com/d/msg/websearch/hLazcAVC5MA/0kV53XllqFkJ)

open admin console (admin.google.com), then choose Apps, then Additional Google services. Then disable filter "Top featured services" near the top half of the page. This is important (!). When you turn filter off you will see a long list of google services, you have to find "Web history" and turn it on. 

10.08.2015

lp printer save / restore

if the restore don't work, make sure /var/sam/lp and contents are owned by lp:lp

10.04.2015

chrome / chromebook sync issues

try resetting the sync data stored on the cloud - "reset sync" button at bottom of this page:  https://www.google.com/settings/chrome/sync