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.
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
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.
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.
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.
dynamox
11 Legend
•
20419 Posts
•
87439 Points
637
0
Posted 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