Start a Conversation

This post is more than 5 years old

Solved!

Go to Solution

5798

March 16th, 2017 22:00

UEMCLI Error code: 0x1000002

Hi all,

On Linux machine, I am trying to execute following uemcli command using GO language.

/opt/emc/uemcli-1.5.4.1.0027/bin/uemcli.sh -d ipaddress -port 443 -u 'username' -p 'password' -sslPolicy accept -t 240 -noheader /stor/config/pool show -output csv

This command gives following error

Operation failed. Error code: 0x1000002

The system encountered an unexpected error. Record the error code and go to the EMC Online Support website for all your support options. (Error Code:0x1000002)

When I execute given command directly on console it gives valid output. But when I execute through GO language gives above error. What is the problem and how can I resolve this. Kindly help me on this.

Thanks,

Ashok Kumar

169 Posts

March 17th, 2017 16:00

Most likely, it is not passing the environments/arguments correctly via GO.

See if you can echo the eval statement and compare the diff when running directly.

8 Posts

March 20th, 2017 03:00

Thanks maniemc.

January 17th, 2018 00:00

Vistara, did you manage to solve the problem? I'm facing the same issue with a Perl script and can't find the solution.

1 Message

November 4th, 2019 03:00

Hi,

For reference.

I had the same issue calling uemcli.sh from bash script from icinga monitoring. It works from shell, but not from app. Apparently icinga/nagios do not pass home dir and user in shell environment when calling scripts.

Likely you have the same problem with your environment?

I added this to export the relevant user environment from my bash script, before calling uemcli.sh.

export HOME=/home/icinga
export USER=icinga
export USERNAME=icinga

 

          goran

No Events found!

Top