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

9.24.2015

add web-site url to chrome shelf

add a website or url to the chome shelf:

basically go to the "hamburger" menu  in chrome browser, "more tools", "add to shelf"

8.31.2015

convert hex to binary in bash shell on linux

remember hex must be in uppercase for BC command on most linux / unix distros

echo "ibase=16;obase=2;000000004B817EFB" | bc
results:
1001011100000010111111011111011
space it out to make it easier to read:
alias spc=" sed 's/./& /g'"
echo "ibase=16;obase=2;000000004B817EFB" | bc | spc
1 0 0 1 0 1 1 1 0 0 0 0 0 0 1 0 1 1 1 1 1 1 0 1 1 1 1 1 0 1 1 

chrome remote desktop host component install for centos / rpm based distros

http://fedora-centos.blogspot.ca/2014/07/using-alien-to-convert-deb-to-rpm-and.html
basically convert the deb install file to rpm format using the alien tool, then rebuild the rpm file with rpmrebuild tool.

8.19.2015

find last ignite server used by client

find last ignite server used by client

file:  /var/opt/ignite/recovery/previews  contains information of last ignite recovery ( make_recovery / make_net_recovery ) completed or done on that server.

5.09.2015

swpackage error / copy depot bundle to file

ERROR:   The fileset XXXXX will not fit on the tape

         "/tmp/XXX.depot".  The fileset requires 4249089 Kbytes of

         tape space, but the tape provides only 1298828 Kbytes.  The

         fileset requires a larger tape.

 

Fix by:

swpackage -s /source/dir -x allow_large_serial_depot=true -x media_capacity=50000 -x target_type=tape @ /ignite/r11.depot bundle/package/etc


media_capacity=larger than depot file

4.10.2015

ldapclientd won't start hpux

mmap failed or messages like that on ldapclientd.rc startup ---

remove the status file:
/var/spool/ldapcltd/status

1.15.2015

sendmail errors: Deferred: local mailer (/usr/bin/rmail) exited with EX_TEMPF

-----Q-ID----- --Size-- -----Q-Time----- ------------Sender/Recipient-----------
t0F800jK001682      255 Thu Jan 15 02:00 root
                 (Deferred: local mailer (/usr/bin/rmail) exited with EX_TEMPF)
                                         root
t0F7o3vI001264      704 Thu Jan 15 01:50 root
                 (Deferred: local mailer (/usr/bin/rmail) exited with EX_TEMPF)
                                         root
t0F6F19E026586       58 Thu Jan 15 00:15 MAILER-DAEMON
                 (Deferred: local mailer (/usr/bin/rmail) exited with EX_TEMPF)
                                         root

it can't deliver local mail since the /var/mail didn't exist in this case....
/var/mail needs to be created and bin:mail ownership and 775 permissions