Start a Conversation

Unsolved

This post is more than 5 years old

1388

June 8th, 2010 11:00

Analyzer CLI won't work with cygwin (sometimes)

I prefer to use bash for my scripting, but I don't have a non-Windows box in the management network for my Clariions.  I have usually simply used cygwin to allow this.  Most naviseccli commands work just fine under cygwin.  I can retrieve .nar files easily.  However, I can't create dump files from those .nar files using cygwin:

manast@server304 ~
$ naviseccli -h array5002 analyzer -archivedump -data array5002.latest.nar -out array5002.latest-bash.csv
Error deleting file!
The archive file format is invalid
Not a valid archive file.

manast@server304 ~
$ ls -lart
total 53917
-rwxr-xr-x  1 manast         None               3754 2010-03-05 18:56 .bashrc
-rwxr-xr-x  1 manast         None               1461 2010-03-05 18:56 .inputrc
-rwxr-xr-x  1 manast         None               1150 2010-03-05 18:56 .bash_profile
drwxrwxrwt+ 1 EMC            Administrators        0 2010-06-08 16:25 ..
-rw-------  1 manast         None                342 2010-06-08 16:29 .bash_history
-rwxrwxrwx  1 manast         None            8212212 2010-06-08 16:39 array5002.latest.nar
-rwxrwxrwx  1 Administrators None           46931968 2010-06-08 17:56 array5002.latest.csv
-rwxrwxrwx  1 manast         None                  0 2010-06-08 17:58 array5002.latest-bash.csv
-rwxrwxrwx  1 manast         None                  0 2010-06-08 17:58 nar2
drwxrwxrwx+ 1 manast         None                  0 2010-06-08 17:58 .

The one in the directory which did work I executed from a Windows CMD prompt.

Is there some trick I'm missing here?

1 Rookie

 • 

20.4K Posts

June 8th, 2010 12:00

odd, i just tried it on my machine and it worked fine. The nar file is saved locally before i execute the command

uname -a

CYGWIN_NT-6.0-WOW64 my-workstation 1.7.1(0.218/5/3) 2009-12-07 11:48 i686 Cygwin

June 8th, 2010 13:00

Interesting.  I've tried this on two separate machines, both with the same results.  I'm willing to believe it's something weird in my environment, and I'll even change it if I can just figure out what it is.

$ uname -a
CYGWIN_NT-5.2 server304 1.7.1(0.218/5/3) 2009-12-07 11:48 i686 Cygwin

1 Rookie

 • 

20.4K Posts

June 9th, 2010 04:00

my first try was on my Vista x64 workstation, now i just tried on win2k3 server and it worked fine again. Hmmm

CYGWIN_NT-5.2 ecc 1.5.25(0.156/4/2) 2008-06-12 19:34 i686 Cygwin

I am running navi 6.28.

June 9th, 2010 09:00

Yes, I tried it on my laptop last night and it works just fine.  So clearly there's something up with the servers in the storage environment, but I don't even know where to start looking.

I was hoping not to have to run everything from my laptop (especially since I have to copy the .nar files to it via RDP, so not automated), but at least that's a workaround for now.

Thanks.

1 Rookie

 • 

20.4K Posts

June 9th, 2010 10:00

can you run ENV and set .. see if anything jumps out at you ..in terms of being different.

36 Posts

June 9th, 2010 10:00

When checking out the environment, look at the PATH setting. If the cygwin settings come first, there may be a conflict. Try moving the cygwin components to the end of the PATH. I don't know about analyzer, but I have seen conflicts with perl.exe, ld.exe, as well as things like zip.exe.

June 9th, 2010 11:00

Well...

If I run the same command using the same NaviCLI but under a Windows CMD.EXE prompt, it works just fine.  So I don't think it's necessarily a problem with a NaviCLI mismatch.  I think it's something to do with cygwin and possibly something with java.

To the other replies: I have been working on eliminating any possible environment variables or other variables that may be affecting this, but with no luck so far.  I appreciate the ideas, though.

4.5K Posts

June 9th, 2010 11:00

The version of Navisphere CLI and Analyzer CLI must match the version of FLARE on the array that the Archive came from.

Error deleting file!
The archive file format is invalid
Not a  valid archive file.

This usually indicates an vesrion mismatch. It can also mean that the file is bad - can you open this file in Navisphere?

glen

No Events found!

Top