Skip to content

Instantly share code, notes, and snippets.

View jcsmith's full-sized avatar

Joshua Smith jcsmith

View GitHub Profile
# vim: ft=ansible
---
- hosts: all
become: true
become_user: root
vars:
- mp: "/tmp"
tasks:
- debug:
@jcsmith
jcsmith / aws_summarize.py
Created January 9, 2019 19:30
Python script to summarize the IP's in the AWS JSON network list
#!/usr/bin/env python
from netaddr import *
import requests
import json
ip_range_info = requests.get('https://ip-ranges.amazonaws.com/ip-ranges.json').json()['prefixes']
ip_ranges=[item['ip_prefix'] for item in ip_range_info]
@jcsmith
jcsmith / get_vm_tags.py
Created August 3, 2017 16:47
POC of getting VM tags using REST API and python.
#!/usr/bin/env python3
import argparse
import json
import os
import requests
from requests.auth import HTTPBasicAuth
from requests.packages.urllib3.exceptions import InsecureRequestWarning
@jcsmith
jcsmith / vrops.md
Last active March 9, 2017 15:27
vrops 6.5

##vRealize Operations Manager 6.5 ###Released March 02 2017. Full Release Notes
[Blog with additional details] (https://blogs.vmware.com/management/2017/03/whats-new-vmware-vrealize-operations-6-5.html)

###Highlights for our environment.

  • Correlates logs and metrics in context for any monitored object using Log Insight within vRealize Operations Manager.
  • Understands Private Cloud costs and Public Cloud spends by accessing vRealize Business for Cloud from within vRealize Operations Manager.
  • Enhanced support for webhooks.
  • Direct integration with pagerduty.