Giter Club home page Giter Club logo

mvapp's Introduction

mvApp.py

###Requirements This script requires some additional libraries to be installed. You can install all dependencies with: python -m pip install -r requirements.txt - from python in windows

mvApp is a python script for the purpose of moving large amounts of applications from one application group to another within the App Definition Groups on an SCC. The script has 6 separate options and some basic rules.

The fqdn of the SCC and the REST API access code for the SCC must be added to the script before it can be used.

###Config file parameters:

Each one of the following options are exclusive options. They cannot be used with any other option.

collect: The collect option creates a defaultGroups.txt file from the current applications on the SCC.

restore: The restore option restores or moves all of the applications back to their default groups, as defined in the defaultGroups.txt file. All custom applications will move to group 10.

group_restore: The group_restore option restores or moves all of the applications from an original group back to that group, as defined in the defaultGroups.txt file.

The following options are required to be used together.

from_group: The from_group option identifies the group to remove all of the applications from. If the built_in_only option is not used, ALL applications in this group will be moved.

to_group: The to_group option identifies the group to move all of the applications from the from_group to.

######Optional option for use with the from_group and to_group option. built_in_only: The built_in_only option will ensure that custom applications are not moved when used with the from_group and to_group options.

Some additional rules:

The collect option should be ran before any other option so you have a backup to restore from.

The group number must be between 1 and 10

 Current Application Group Id's
    1: Business Bulk
    2: Business Critical
    3: Business Productivity
    4: Business Standard
    5: Business VDI
    6: Business Video
    7: Business Voice
    8: Recreational
    9: Standard Bulk
   10: Custom Applications

Running the script.

usage: mvApp.py [-h] [-f FROM_GROUP] [-t TO_GROUP] [-b] [-g GROUP_RESTORE]
                [-r] [-c]

optional arguments:
  -h, --help            show this help message and exit
  -f FROM_GROUP, --from_group FROM_GROUP
                        The group_id to remove applications from
  -t TO_GROUP, --to_group TO_GROUP
                        The group_id to move applications to
  -b, --built_in_only   Move only default applications, do not move custom
                        apps
  -g GROUP_RESTORE, --group_restore GROUP_RESTORE
                        Move a select group of applications to the default
                        group
  -r, --restore         Move all applications to their default groups
  -c, --collect         Create a defaultGroups.txt file from a SCC

Caveats

/steelscript/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py:730: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.org/en/latest/security.html (This warning will only appear once by default.)
  InsecureRequestWarning)

This warning is about using self signed certificates and the root CA not found for the SteelCentral Controller for SteelHead SSL certificate, if this is the case, is perfectly normal to ignore.

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.