I'm trying to access the restful XML API for "EMC VNX Control Station Linux release 3.0 (NAS 7.0.53)". According to the "XML API Programmer Guide for VNX™ for File", page 181:
Note: In this release, EMC does not supply libraries that implement the session protocol. However, it provides Java and C++ source-level implementations. If you intend to use either of these implementations, you can skip this chapter.
I would really like to take a look at those as I'm running into some difficulty with the information returned from Celerra vs what is in the API guide. For example, if I:
This is all well and good except that I don't get back the CelerraConnector-Sess or JSESSIONID cookies needed, as far as I can tell, by the server for 'real' transactions. I am hoping that with vetted example code I can get arround this, seemingly, small problem. As an FYI, yes I will ultimately be interacting with the console via Java. I'm using command line above for simplicity of the example.
I assume that I'm missing some rather mundane detail but I've been spinning on this for too long. Any thougths you might have on this would be most apperciated.
Update: I was just missing the the session id, of course I noticed this about 3 seconds after sending the above message :-/ I still can't find the examples though. Any thoughts?
I'm trying to do the same thing but with Wget right now (against VNX File Simulator). After sending the empty request packet I do get login session cookie, tomcat session cookie and celerra connector session.
But, when I then send a simple query like CheckpointQueryParams, I am getting a 503 Service Unavailable error. I tried searching but could not find any log files within the simulator with relevant information.
Do you have any clue why I am getting this error ? Am I supposed to do anything to enable XML API access in the VNX Simulator !!
Thanks for the reply. I checked the VNX Simulator and it looks like the XML API Server was already enabled and running. I restarted 'nas' service and still get the same error. Maybe I am using Wget in wrong way.
I see that you are an expert in this matter. Would you be kind enough to share any shell script or C++/Java code that can demonstrate the usage of XML API ? Any help would be great !!
You have been great !! . The shell script worked just fine and now I am able to get XML API access to the VNX File Simulator (1 DM). Just one more problem though. I am getting the following error for CheckpointQueryParams when used with the simulator:
http://www.emc.com/schemas/celerra/xml_api ">
Appliance Layer (APL) subsystem that the XML API server talks to failed to execute a query. This indicates a problem with the APL subsystem in Control Station software.
If the problem persists, collect support materials by running the /nas/tools/collect_support_materials script or the newer /nas/tools/automaticcollection script. Note any symptoms. If you require more information on the materials collection process, refer to the Problem Resolution Roadmap for Celerra, available on EMC Powerlink, or EMC Knowledgebase Support Solution number emc135846. For more information on this message, use the text from the error message's brief description or the message's ID to search the Knowledgebase on Powerlink. After logging in to Powerlink, go to Support > Knowledgebase Search > Support Solutions Search.
baunk
2 Posts
2524
0
Posted November 28th, 2012 09:00
Update: I was just missing the the session id, of course I noticed this about 3 seconds after sending the above message :-/ I still can't find the examples though. Any thoughts?