Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
webctrl/README
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
42 lines (26 sloc)
1.31 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Python-based command line tools for accessing a WebCTRL server via its WSDL interface | |
Prerequisits | |
------------ | |
1) Python 2.7 | |
2) In order to use the WSDL API you need to download and install the SUDS python package | |
Download suds-0.4.tar.gz here: https://pypi.python.org/pypi/suds | |
Install via command line: $ sudo pip install suds-0.4.tar.gz | |
3) If you don't want to execute the scripts from within an IDE (e.g. Pycharm) you could install | |
pythoninstaller to build the tools: $ sudo pip install pyinstaller | |
Building the tools | |
------------------ | |
webctrl$ ./build_project.sh | |
The executables can be found in ./dist/wc_*/wc_* | |
Add the directory to the PATH environment variable (in your ~/.bashrc) in order to be able to | |
execute the wc_* commands everywhere: | |
PATH=$PATH:$HOME/.../webctrl/dist/wc_query:$HOME/.../webctrl/dist/wc_getValue:... | |
Running the tools | |
----------------- | |
e.g.: webctrl$ ./dist/wc_query/wc_query | |
Use -h or --help with all tools in order to find out more about how to use them. | |
Short explanation of each tool | |
------------------------------ | |
wc_query : Query the paths and devices starting from /trees/geographic | |
wc_getReport : Retrieve a report for a directory or a specific device | |
wc_getValue : Retrieve the current value of a device | |
wc_getTrend : Retrieve data and date for a given time period and device | |