MD5 cert

openssl x509 -noout -modulus -in .crt | openssl md5

For your RSA private key: openssl rsa -noout -modulus -in .key | openssl md5

Posted in wrk | Leave a comment

Debug autofs

sudo systemctl stop autofs ; sudo automount -f -v
Posted in wrk | Leave a comment

NFS mount : no device

mount.nfs: mount(2): No such device
mount.nfs: No such device
------------------
 depmod -av <kernel version>
# modprobe nfsd
# mount 10.0.0.1:/NFS/Share /mountpoint -vvv 

							
Posted in Uncategorized | Leave a comment

HP check UEFI via iLo

1. Connect to iLO by CLI.
2. Type "dir /system1/bootconfig1" and example result is following
Posted in Uncategorized | Leave a comment

Add repo RHEL6/7/8

add Repo on Satellite to the host:

then login to the host

yum update yum subscpiton-manager katello-agent

subscription-manager repos

subscription-manager repos –enable OE_Elastic_ELK_stack_Filebeat7

sudo subscription-manager repos –enable=OE_InfluxDB_InfluxDB_RHEL7_x86_64

yum install metricbeat-7.2.1 filebeat-7.2.1

 

Posted in wrk | Leave a comment

VCS common stuff

UUID

/opt/VRTSvcs/bin/uuidconfig.pl -clus -configure node_a

ODM

cat /etc/vx/odm.config | grep START
ODM_START=0

/etc/init.d/vxodm start

GUI

haconf -makerw

hauser -add admin  -priv Administrator

VCS ERROR V-16-1-11502 IV value is NULL or not dumped in memory.
VCS ERROR V-16-1-11399 Failed to create user.
[root@chicldb37a sysconfig]# hauser -list

[root@chicldb37a sysconfig]# hauser -add admin
Enter Password:

Enter Again:

VCS ERROR V-16-1-11502 IV value is NULL or not dumped in memory.
VCS ERROR V-16-1-11399 Failed to create user.
[root@chicldb7a sysconfig]# hastatus -sum

— SYSTEM STATE
— System State Frozen

A chicldb37a RUNNING 0
[root@chicldb7a sysconfig]# haconf -dump -makero
[root@chicldb7a sysconfig]# haconf -makerw
[root@chicldb7a sysconfig]# hauser -add admin -priv Administrator
Enter Password:

Enter Again:

Oracle

Oracle:ora_TPDBR1P:monitor:Attribute PDBName not found in the argument list.

hatype -modify Oracle       ArgList                Sid Owner   Home    Pfile   StartUpOpt      ShutDownOpt     DBAUser DBAPword        EnvFile AutoEndBkup     User    Pword   Table   MonScript       Encoding        MonitorOption   DBName  ManagedBy PDBName UseSystemD

ntfr

2021/09/14 13:10:45 VCS WARNING V-16-10031-8503 NotifierMngr:ntfr:monitor:Expected correct SNMP and | or SMTP options

+

IP

IP:vip_tpdbrdbprd:online:Attribute PingTimeout not found in the argument list

 

To resolve this issue, copy over the types.cf from /etc/VRTSvcs/conf/ to /etc/VRTSvcs/conf/config/. This will ensure VCS has the correct types.cf configuration. Apply as follows:

1. Stop the cluster on ALL nodes (applications will continue to run, but not failover) using –
# hastop -all -force

2. On all cluster nodes, backup the original types.cf file using –
# mv /etc/VRTSvcs/conf/config/types.cf /etc/VRTSvcs/conf/config/types.cf.<date>

3. On all cluster nodes, copy the types.cf file –
# cp /etc/VRTSvcs/conf/types.cf /etc/VRTSvcs/conf/config/types.cf

4. Verify the size both types.cf file again; they should be identical –
# ls -l /etc/VRTSvcs/conf/types.cf
# ls -l /etc/VRTSvcs/conf/config/types.cf

5. On all cluster nodes, start VCS –
# hastart

 

Posted in Uncategorized | Leave a comment

Rescan multipath for RW

multipath -ll | grep wp
m=lvm-mdbrdb-prd-vol1
ODEVS=$( multipath -ll $m | grep “active ready running” | awk ‘{print $3}’ )
for d in $ODEVS ; do cat /sys/block/${d}/ro ; done
for d in $ODEVS ; do echo 1 > /sys/block/${d}/device/rescan ; done
for d in $ODEVS ; do cat /sys/block/${d}/ro ; done

multipath -ll | grep wp

Posted in wrk | Leave a comment

HP iLo cmd

ILO: Using Virtual Media with the Command-Line Interface

ISOs may be loaded from an HTTP server using Virtual Media with the iLO command-line interface.

Example:

$ ssh -l ilo-admin 10.215.14.5
User:ilo-admin logged-in to ilo.(10.215.14.5)
iLO Advanced 1.82 pass1 at 15:53:34 Aug 22 2005
Server Name: ilo
Server Power: On

hpiLO-> vm cdrom insert http://10.251.20.20/RHEL4.6-i386-ES.iso

Note: use IPs when specifying an HTTP server.

hpiLO-> vm cdrom get
VM Applet = Disconnected
Boot Option = NO_BOOT
Write Protect = Yes
Image Inserted = Connected
Image URL = http://10.251.20.20/RHEL4.6-i386-ES.iso

Note: the “NO_BOOT” means that the system will not boot off the “connected” image. And the “Image URL” option is not shown with ILO version 1.

hpiLO-> vm cdrom set boot_once

Note: The next boot will be from the connected image. You can also use “vm cdrom set connect” to permanently connect the ISO image. If you want to get rid of the ISO image, use “vm cdrom eject”.

hpiLO-> power reset

Posted in wrk | Leave a comment

HP ILo reset password

nano passwd_reset_ilo.xml 

<ribcl VERSION=”2.0″>  
<login USER_LOGIN=”Administrator” PASSWORD=”boguspassword”>    
<user_INFO MODE=”write”>     
<mod_USER USER_LOGIN=”Administrator”>      
<password value=”newpass”/>     
</mod_USER>    
</user_INFO>  
</login>  
</ribcl>

hponcfg -f passwd_reset_ilo.xml

HP Lights-Out Online Configuration utility
Version 5.5.0 Date 5/30/2019 (c) 2005,2019 Hewlett Packard Enterprise Development LP
Firmware Revision = 2.78 Device type = iLO 4 Driver name = hpilo
Script succeeded

Posted in Uncategorized | Leave a comment

Android app

RewriteCond %{REQUEST_URI} ^/\.well-known
RewriteRule ^ – [END,S=1]

Posted in wrk | Leave a comment