Labels

hpunix (63) marathi kavita (52) linux (21) solaris11 (11) AWS (5) numerology (5)

Tuesday, August 18, 2020

scriptlet failed, exit status 127 + RPM error

RPM error "scriptlet failed, exit status 127"


Sometime while patching the server, we may get message to delete some patches which create conflict.

And while deleting those conflicting rpms we get error something like this:

E
[root@cloud home]# rpm -e --nodeps ILMT-TAD4D-agent.i386-cs-cam.noarch

/var/tmp/rpm-tmp.XIuSM4[137]: /var/itlm/utilities/cit/wcitinst: not found [No such file or directory]

error: %preun(ILMT-TAD4D-agent-7.5-1.i386) scriptlet failed, exit status 127


We are erasing the rpms using -e option and not removing the rpm dependency   (Reason : The dependencies could be part of other rpms and by removing it we may encounter problem for other rpms). 
--nodeps Do not verify dependencies
  

 Solution:

 Delete the rpm using --noscripts option. The --noscripts option tells the rpm command not to run any uninstallation scripts

--noscripts  = Do not execute verification script

[root@cloud home]# rpm -e --nodeps  --noscripts ILMT-TAD4D-agent.i386

Regards,
Kalyanjit

Tuesday, August 11, 2020

How To get ZFS storage serial number + ZFS

How To get ZFS storage serial number, model number and OS details: 

Login to ZFS

zfsc1:> configuration version show

or 

zfsc1:> maintenance hardware show


Regards,

Kiran Jaddhav


How to generate (ak) Support bundles on ZFS storage

How to generate (ak) Support bundles on ZFS storage:

Step 1 : Login to ZFS

 zfsc1:> maintenance system bundle

bundle   bundles

zfsc1:> maintenance system bundle    ---> Main command

The support data you requested is being built in 3 files. Use 'send <srn>' with each bundle to associate the bundle with a Service Request Number and send it to

Oracle Support. Alternatively, you may download the bundles via the appliance BUI.

    ak.938k008c-9e13-4593-9305-b54d87659710.tar.gz

    ak.3b22kdbf-c95i-4b6a-be85-d89f58b18b97.tar.gz

    ak.eee2580k-bfi8-6442-defe-e9faccd32fb7.tar.gz


then 

zfsc1:> confirm shell              ----- We will get shell prompt

step 2 : Go to location where bundles get stored

# cd /var/ak/bundles           -- bundles will be stored here with the current date

step 3: We can check the same in ps command as well.

#ps -ef |grep -i bund = to check support bundle process are running or not


Example:

zfsc1# ps -ef |grep -i bund

    root 16467   389   0 13:03:19 ?           0:10 /usr/bin/bash -p /usr/bin/akbundle -b 938k008c-9e13-4593-9305-b54d87659710 -c C

    root  2251 16467   0 13:13:19 ?           0:05 /usr/bin/bash -p /usr/bin/akbundle -b 938k008c-9e13-4593-9305-b54d87659710 -c C


Regards,

Kiren Jadhav