I'm wondering how to write an agent to get information from a ZIS.
To that end, I've been looking for example source files, preferably java, to demonstrate the technique involved.
The source at github, seems to have all sorts of examples, amongst them SIFQuery. Running it from the command line:
E:\sif\classes>java -cp ".;*" openadk.examples.sifquery.SIFQuery
Usage: SIFQuery /zone zone /url url [/events] [options]
/zone zone The name of the zone
/url url The zone URL
/sourceId name The name of the agent
/ver version Default SIF Version to use (e.g. 10r1, 10r2, etc.)
/debug level Enable debugging to the console
1 - Minimal
2 - Moderate
3 - Detailed
4 - Very Detailed
5 - All
/log file Redirects logging to the specified file
/pull Use Pull mode
/freq Sets the Pull frequency (defaults to 15 seconds)
/push Use Push mode
/port n The local port for Push mode (defaults to 12000)
/host addr The local IP address for push mode (defaults to any)
/noreg Do not send a SIF_Register on startup (sent by default)
/unreg Send a SIF_Unregister on exit (not sent by default)
/timeout ms Sets the ADK timeout period (defaults to 30000)
/opensif Ignores provisioning errors from OpenSIF
/Dproperty val Sets a Java System property
HTTPS Transport Options:
/https Use HTTPS instead of HTTP
/auth Require Client Authentication
/keystore file The keystore file to use
/kspwd password The keystore password
/truststore file The truststore file to use
/tspwd password The truststore password
Response Files:
To use a response file instead of typing arguments on the command-line,
pass the name of the response file as the first argument. This text
file may contain any combination of arguments on one or more lines,
which are appended to any arguments specified on the command-line.
Looks like I could get useful information back, if I knew what parameters to supply.
Plus, maybe I'd have to somehow tell the ZIS that it's allowed to respond to queries from this particular client.
Or perhaps there is reference code other than this that folks here are aware of.