I must integrate external system with Voyence Control via API. As I know, it is part of Ionix now, but customer want still use it....
I have only Application Programming Interface Cookbook, javadoc from server and WSDL. I can do export via UI using popup menu->Navigation->Interfaces_in_Device information like this:
Interface Name,Technology Type,If Index,Mac Address,Admin State,Operational State,Description,Last Update Time,Ip Redirects,Ip Proxy Arp,Speed,Encapsulation,Send Unreachable
GigabitEthernet6/1,Ethernet,14,001b.904a.2400,Up,Up,critical- <<To OCT02 PE1 OCT02M15F00PE01 Gi0/1/1/3>>,2011-01-26 11:25:47.263,true,Enabled,nonegotiate,arpa,true
Please, help me find out If Index,Mac Address,Description,Last Update Time,Ip Redirects,Ip Proxy in API sevice. I don't observe anything like this in WSDL and javadoc Help....
Thanks you in advance!!!
Solved! Go to Solution.
What you are trying to do is not possible thru the Public API but is possible with the DSAPI (Data Services API). DSAPI has a WebServices interface to the reporting product. In the reporting product, we offer several prebuilt reports (some related to the information you are looking for) that can be executed via the DSAPI. The data from the DSAPI is returned in an XML format. In NCM 4.1.0, we added the adhoc reporting capability which gives you lot more flexibility in customizing the report to your needs and these adhoc reports can also be executed thru the DSAPI. Hope this helps.
Thanks a lot. But I have only Application Programming Interface Cookbook P/N 300-007-475 REV A01. It book has a short description only how to connect to this service via RMI or WS. Nothing about available classes, methods, etc. And where I can find appropriate JAR with this API?
Thanks in advance,
DSAPI samples and Javadoc can be found under $TOMCAT_HOME/webapps/web/dsapi on the Reporting Server. Thanks
I'm downloading all needed goods from the server. I generate the JAR from WSDL and attach one to samples sources as library. I also take following JARs from sevrer:
Also I generated the VoyenceDataAPI.jar from WSDL which gotten via http://your-report-server:8882/ws/dsapi/20/services/DataApiService?wsdl
But DataApiService.JNDI_NAME was not found out in any case. And I have troubles in AttributedModelQuerySample with Param.class definition.
What's is wrong? Please, help me
Thanks you in advance,
To clarify, there are two separate, distinct ways to access the DSAPI:
From your last comments, it looks like you are referencing the documentation for both, which would explain any confusion. If you are integrating with Voyence using Java, I would recommend using the RMI interface just to keep everything in the Java ecosystem.
Connecting to the DSAPI's RMI interface is simple. If you have connected to the VoyenceControl API using the J2EE interface before, you are 99% there! The method of connecting to the VoyenceControl API J2EE interface is identical to connecting to the DSAPI RMI interface with one small exception: when you make the context.lookup("...") call, use the DataApiService.JNDI_NAME field like this:
Context context = ... // See the DSAPI RMI samples for retrieving the context. There is a standard way. Also, this is the same context used for connecting to the VoyenceControl API (J2EE)
DataApiService dsapi = (DataApiService) context.lookup(DataApiService.JNDI_NAME);
... // make your calls to the DSAPI
If you haven't already seen the "Overview" javadoc page, take a look. It gives a full description of how to connect to the two different API interfaces.
Don't forget to look at the samples for some easy cut-and-paste boilerplate code to save you some time and trouble.
If you still have trouble, I'm here to help
I found needed JARs for me and successfully complied test from provided sources. But I'm permanently getting following error:
Exception in thread "main" javax.naming.NameNotFoundException: 20DataApiService not bound
(lot of lines skipped.....)
I'm using following JARs in CLASSPATH:
PS How can I do myself reports? I'm extremely need get MAC addresses per each one interface...
Thanks you in advance,
I am trying this RMI interface.
But getting compiler error at this - DataApiService.JNDI_NAME
I have generate the java classes from axis tool. It also generates the DataApiService class. But this class would not have JNDI_NAME parameter.
Can someone please help ?