Thursday, April 20, 2017

#561 Using A-Team's REPL based ICS management utility

This post leads on from the previous one, which pointed you to the A-Team blog.
Here you can download all of the files described below.

If you haven't already done so, read the previous post, before continuing.

The A-Team utility is python based, so step 1 is to install python -

Install Python


Download python -

















Install/update pip
from Wikipedia - pip is a package management system used to install and 
manage software packages written in Python
python -m pip install -U pip setuptools
pip install directory







Install requests, tabulate, pyreadline and pytz
requests -














tabulate -









pyreadline -








pytz -


Check out the REPL resources

A -Team REPL install directory










servers.txt --> configure for your ICS instance

Here is an extract from the A-Team configuration instructions -

Execution requires a special file – the “server password” file. This file has a specific format: semi-colon separated fields, containing four values:
;;;
URL is the URL of the ICS server. https://mypodname-myiddomain.integration.us2.oraclecloud.com for example. This is the “root” of your usual ICS URL: https://mypodname-myiddomain.integration.us2.oraclecloud.com/ics/faces/global (look when you are logged in to an ICS console).
Alias is a short, unique, nickname for the server, that will be used by the REPL to refer to it. See the “connect” command below.
Username and Password are valid administrative credentials for authentication to the ICS instance.
https://myICSPod;NiallICS;niall.commiskey@oracle.com;myPwd

Now I unzip the repl.zip file







I put python in my PATH










Ok, so let's try it out - python repl.py --servers Path2YourServers.txt 




connect - using the alias from my servers.txt, in my case, NialICS.




list all of my integrations -







Now I just want to retrieve my integrations, they contain the prefix NC.
All I need to do is append the command as follows -

list_integrations - NC
















Now back to the A-Team blog post - here the example script that one can
use for moving ICS artifacts from test to production, simply via the cmdline.












Again, kudos to Christian from the A-Team for creating this!






















No comments:

Post a Comment