The following code blocks are the required modules and initial example from the developers manual for working with the RPC-based client library for programatic control of cmd.
The example is not yet working, possibly due to python version differences. In 8.2 the library is build for python 2.7.5.
```
!pip install pyOpenSSL==17.5.0 ply lxml tabulate monotonic humanfriendly six
```
%% Cell type:code id: tags:
```
from pythoncm.cluster import Cluster
from pythoncm.settings import Settings
```
%% Cell type:code id: tags:
```
settings = Settings(host='master',
port=8081,
cert_file='~/.cm/cert.pem',
key_file='~/.cm/cert.key',
ca_file='pythoncm/etc/cacert.pem')
```
%% Cell type:code id: tags:
```
cluster = Cluster(settings) #, check_api=False)
```
%% Cell type:markdown id: tags:
use rest api for now to avoid RPC issues with library.
convert curl command for currnet power to rest query