This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# from 35c3 event, dump digitemp 1wire sensor data in prometheus text collector format | |
# Inspired by SuperQ's node_exporter/text_collector_examples/ntpd_metrics.py | |
# Author: Matt Peterson <[email protected]> | |
import subprocess | |
import sys | |
digitemp_command = ['digitemp_DS9097U','-q','-a','-o%R %C','-c','/root/.digitemprc'] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# | |
# Fetch list of Juniper/Arista devices via Netbox, query optics info via Netconf, write to CSV file | |
# | |
# Written at 34c4 in Leipzig, Germany | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- name: "DNSMadeEasy example" | |
hosts: localhost | |
vars: | |
dnsmadeeasy_api_key: "YOUR API KEY" # https://cp.dnsmadeeasy.com/account/info | |
dnsmadeeasy_api_secret: "YOUR API SECRET" | |
dns_entries: | |
- { record_name: '10', record_type: 'PTR', record_value: 'xe-2-0-1.sfo01.example.net.', domain: '2.0.192.in-addr.arpa' } |