Code Monkey home page Code Monkey logo

dp-config-batch-import's Introduction

dp-config-batch-import

Batch import configuration packages to IBM DataPower Gateway.

GitHub release GitHub

Pre-requisites

XML Management Interface

Since this script is designed to upload files via the XML management interface the xml-mgmt object must be enabled and up in the default domain of the gateway you wish to target. You can validate this easily by logging into the CLI of the gateway and checking as follows:

idg# show xml-mgmt

xml-mgmt [up]
--------
 admin-state enabled
 ip-address 0.0.0.0
 port 5550
 acl xml-mgmt  [up]
 slm-peering 10 Seconds
 mode any+soma+v2004+amp+slm+wsrr-subscription
 ssl-config-type server

Installation

  1. Clone, fork, or download the repository

    $ git clone [email protected]:IBM/dp-config-batch-import.git
    $ cd dp-config-batch-import/
  2. Install package via pip3

    $ pip3 install .

    Note: Installing via pip3 adds the dp-config-batch-import executable to your PATH.

  3. Validate the installation

    $ dp-config-batch-import --version

Usage

This script can be used to import a single configuration package, or multiple packages, to a target DataPower Gateway application domain. You control the behavior of the script through command-line arguments. The minimum usage would be as follows:

$ dp-config-batch-import my.datapower.com my_domain export.zip

This would import the configuration package export.zip into the my_domain application domain on the DataPower Gateway at hostname my.datapower.com.

Since no other arguments were provided, some defaults were used:

  • user defaults to admin
  • password defaults to admin
  • port defaults to 5550

You can specify each of these via command-line argument. For example:

$ dp-config-batch-import \
    --user "myaccount" \
    --password "mypassword" \
    --port 9550 \
    my.datapower.com my_domain export.zip

You can also import / deploy multiple configuration packages at once, using either wildcards or specifying multiple filenames manually.

# using wildcards
$ dp-config-batch-import my.datapower.com my_domain export_*.zip

# specifying each manually
$ dp-config-batch-import my.datapower.com my_domain export_1.zip export_2.zip export_3.zip

Troubleshooting

You can enable verbose output via the -V, --verbose command line argument to get a little more detail from the script as it runs. If this does not help to solve your problem, please feel free to open an issue.

dp-config-batch-import's People

Contributors

aharbis avatar stevemar avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.