This post is more than 5 years old

3 Apprentice

 • 

318 Posts

12583

January 17th, 2019 02:00

uemcli lockbox access error ? Error code: 0x1000030

Seeing

Operation failed. Error code: 0x1000030
HOME file system status checking is failed. Please make sure that your home directory is in a good status. (Error Code:0x1000030)

 when running uemcli command against unity box within a monitoring application

Weird thing is changing nothing and running script interactively everything works.

Has anyone come across the error above while using uemcli. I suspect its throwing an error while trying to access the local lockbox.

3 Apprentice

 • 

318 Posts

March 18th, 2019 03:00

app = check mk

3 Apprentice

 • 

318 Posts

January 18th, 2019 02:00

to reference, answer is calling uemcli from python made the HOME enviromental variable unset and it was needed to find the lockbox location. Solution was to modify how its called via;

import subprocess

myenv={ 'HOME': '/root'}

p1 = subprocess.Popen('uemcli -d 10.170.95.45   -silent /metrics/value/hist -path sp.*.cpu.summary.utilization show -interval 60 ',shell=True,env=myenv, stdout=subprocess.PIPE)

 

and the script runs in the monitoring process ( Check_mk )

 

[root@dubstormgmt8003 local]#  telnet 127.0.0.1 6556 | tail -10

Connection closed by foreign host.

<< >>

postfix:the Postfix mail system is running:PID:1310

<< >>

<< >>

<<< >>>

0 [LC_PB]SPA_CPU cpu=4.670 4.670

0 [LC_PB]SPB_CPU cpu=44.28 44.28

<<<<>>>> 

<< >>

Moderator

 • 

239 Posts

January 18th, 2019 06:00

Hi @cadencep45,

Are you saying you only get this error when running it "within a monitoring app"?

What app would this be?

If it works fine outside it, I would be looking at what this app add to the equation.

1 Message

April 15th, 2019 03:00

Could you elaborate more how to fix?

1 Message

April 15th, 2019 16:00

I had this problem for a Nagios plugin made in Bash Scripting, I solved it by adding the following lines at the beginning of the script:

HOME=/home/nagios
export HOME
UEMCLI_INSTALL_PATH=/opt/emc/uemcli
export UEMCLI_INSTALL_PATH
LD_LIBRARY_PATH=$UEMCLI_INSTALL_PATH/lib:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH


LUN_INFO=$(/opt/emc/uemcli/bin/uemcli -silent -d "$UNITY_HOST" -u "$UNITY_USER" -p $UNITY_PASS /stor/prov/luns/lun -name $UNITY_LunName show -filter "ID,Storage pool ID,Storage pool,SP owner" -output csv | tail -n 1|sed 's/"//g')
.......
.......

No Events found!

Top