Start a Conversation

Unsolved

This post is more than 5 years old

5768

January 18th, 2012 03:00

symcli offline mode

Hi,

Just to practise I want to use the symcli in offline mode. I have done the below steps :

1. Installed the Solutions Enabler version 7.2 in my system

2. Copied the symapi_db.bin from the production host and copied it to C:\Program files\EMC\SYMAPI\db in my local system

3. I am trying to run the symcli commands in this path in windows command prompt : C:\Program files\EMC\symcli

Then I have set the following two variables :

c:\Program files\EMC\SYMCLI>Set SYMCLI_DB_FILE = C:\Program Files\EMC\SYMAPI\db\symapi_db.bin

c:\Program files\EMC\SYMCLI>Set SYMCLI_OFFLINE=1

While setting these two variables in this path I didnot get any error messages.

But when I try to execute any symcli commands I am getting an error as "symcli is not recognized as an internal or external command,operable program or batch file.

Could anyone pls help me out with this. Is that the path I have chosen is wrong ?

36 Posts

January 18th, 2012 04:00

Change your path to C:\Program Files\EMC\SYMCLI\bin>

11 Posts

January 21st, 2012 11:00

Hi,

Thanks for the info. I have changed the path and tried to run the symcli command and it gave me the symcli version in use.

But none of the other symm commands(symdev,symcfg commands) are working. I am getting the message as the "function call failed "

Do I need to alter anything in the netcnfg file ?

859 Posts

January 22nd, 2012 20:00

HI Brindha,

It could be due to multiple issues. remote server is not contactable or security issues. Please try the following:

1) On SERVER, modify the daemon option file. Search for this parameter storsrvd:security_level  = SECURE and change the SECURE to NONSECURE (make sure you remove the # from the starting of the line). Save the file, restart the storsrvd daemon.

2) On Client, modify the netcnfg file to something like this. We need to change the last parameter to ANY.

SYMAPI_SECURE  -  TCPIP  SE_SuSE10sp2_VApp  10.31.136.74  2707  ANY

3) Restart the storapid daemon on the client and then do a symcfg discover. If it does not work then post the content of the symapi logs from the client and storsrvd logs from the server.

4) If it works then we can guess it was due to the security issue and certificate might need to be regenerated.

regards,

Saurabh

3 Apprentice

 • 

420 Posts

January 30th, 2012 04:00

Brindha,

sounds like the environment variables are set correctly

you only need to set  SYMCLI_OFFLINE mode

The symcli variable SYMCLI_DB_FILE only needs to be set if you are goiny to place the bin file in something other than the default and you are renaming it.  e.g you have a bin file as followc:\binfiles\production_bin.bin

run symcli -def

command you should see this set

C:\>symcli -def


Symmetrix Command Line Interface (SYMCLI) Version V7.3.2.0 (Edit Level: 1404)
built with SYMAPI Version V7.3.2.0 (Edit Level: 1404)


Current settings of the SYMCLI environmental variables:

  SYMCLI_OFFLINE        : 1

To test that it's working run symcfg list then and you should see your arrays listed in the bin file.  Some commands that need to query the array directly will not work in offline mode and you will see an error like the one you have listed.

You don't need to worry about netcfg files are you are not trying to connect to a remote server for the offline setup you should be set to connect to local which is default. 

No Events found!

Top