Giter Site home page Giter Site logo

random_scripts's Introduction

random_scripts

create_tf_var_files.py : Create Terraform variables.tf and terraform.tfvars file using variable names specified in *.tf files. Create *.tf files with references to variables. E.g. Name = var.ntp_name The script will add a "ntp_name" variable definition in variables.tf file and will add a variable in terraform.tfvars file.

findCIMC.ps1 : Get UCS CIMC Product,Vendor Info using Redfish API without Auth

Note: This will only work with CIMC version 3.0 or higher which has Redfish API support.

Sample Run:

> ./findCIMC.ps1
Please enter the subnet id in format [198.19.216]: 198.19.216 
Please enter the start IP last octet [163]: 150
Please enter the end IP last octet [167]: 165
Target: 198.19.216.150, Not Reachable
Target: 198.19.216.151, Not a Cisco UCS Server: Status Code: 404
Target: 198.19.216.152, Not a Cisco UCS Server: Status Code: 404
Target: 198.19.216.153, Not a Cisco UCS Server: Status Code: 404
Target: 198.19.216.154, Not a Cisco UCS Server: Status Code: 500
Target: 198.19.216.155, Not a Cisco UCS Server: Status Code: 500
Target: 198.19.216.156, Not a Cisco UCS Server: Status Code: 500
Target: 198.19.216.157, Not a Cisco UCS Server: Status Code: 500
Target: 198.19.216.158, Not Reachable
Target: 198.19.216.159, Not Reachable
Target: 198.19.216.160, Not Reachable
Target: 198.19.216.161, Not Reachable
Target: 198.19.216.162, Product Id: UCSC-C220-M5SX, Company: Cisco Systems Inc.                                         
Target: 198.19.216.163, Product Id: UCSC-C220-M5SX, Company: Cisco Systems Inc.                                         
Target: 198.19.216.164, Product Id: UCSC-C220-M5SX, Company: Cisco Systems Inc.                                         
Target: 198.19.216.165, Product Id: UCSC-C220-M5SX, Company: Cisco Systems Inc.   

aci_signed_query.py : Script to make ACI API calls using Signature Based Authentication

# ./apic_query_certsig.py 
Enter APIC IP: x.x.x.x
Enter API Path: /api/node/class/fvTenant.json
Enter Username: admin
Enter Private Key filename: admin.key

Response Status Code: 200
Response Data: 
{'imdata': [{'fvTenant': {'attributes': {'annotation': '',
                                         'childAction': '',
                                         'descr': '',
                                         'dn': 'uni/tn-mgmt',
                                         'extMngdBy': '',
                                         'lcOwn': 'local',

random_scripts's People

Contributors

sandkum5 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.