Coder Social home page Coder Social logo

taftsanders / sat6showhostwithpackage Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sideangleside/sat6showhostwithpackage

0.0 1.0 0.0 10 KB

Script to show which systems have a package (by NVREA)

License: GNU General Public License v2.0

Python 100.00%

sat6showhostwithpackage's Introduction

sat6ShowHostWithPackage

Script to show which systems have a package (by NVREA)

Purpose:

Given an NVREA (name,version,release,epoch & arch) of a package, show which systems have it installed'

Requirements

  • Red Hat Satellite 6.1 or later
  • Python 2.6 or later

Usage

./sat6ShowHostWithPackage.py -h
Usage: sat6ShowHostWithPackage.py [options]

Options:
  -h, --help            show this help message and exit
  -l LOGIN, --login=LOGIN
                        Login user
  -p PASSWORD, --password=PASSWORD
                        Password for specified user. Will prompt if omitted
  -s SERVER, --server=SERVER
                        FQDN of sat6 instance
  -n nvrea, --nvrea=nvrea
                        NVREA of the package

Example Output

./sat6ShowHostWithPackage.py -l admin -s satellite.example.com -n bash-4.2.46-12.el7.x86_64
Attempting to connect: https://satellite.example.com/katello/api/systems?per_page=1000
hosts with package bash-4.2.46-12.el7.x86_64 :
dev-node-001.example.com
dev-node-002.example.com
dev-node-005.example.com
dev-node-008.example.com
dev-node-009.example.com
infra-node-001.example.com
infra-node-002.example.com

sat6showhostwithpackage's People

Contributors

sideangleside avatar

Watchers

 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.