Skip to content

Instantly share code, notes, and snippets.

@rus-kilian
rus-kilian / netmiko_exporter.py
Created July 7, 2021 20:14
Pull platform stats (like CoPP) from various Cisco platforms
#!/usr/bin/env python3
import time
import re
import yaml
import json
import os.path
import logging
import argparse
import socket
import pprint
@rus-kilian
rus-kilian / wlan_exporter.py
Last active October 17, 2023 10:04
WLAN client to prometheus exporter (inspired by WLAN-Pi)
#!/usr/bin/env python3
import time
import os
import sys
import subprocess # nosec: B404
import socket
import re
import http.client
import json
from urllib.request import build_opener, AbstractHTTPHandler
@rus-kilian
rus-kilian / aruba_exporter.py
Created July 7, 2021 20:07
Aruba API to prometheus exporter
#!/usr/bin/env python3
import yaml
import os.path
import pprint
import re
import time
import logging
import argparse
import requests
from requests.exceptions import Timeout
@rus-kilian
rus-kilian / aruba_compare_api.py
Created January 12, 2021 21:35
Compare Aruba https and SSH API calls
#!/usr/bin/env python3
import os
import sys
import time
import yaml
import pprint
import requests
import urllib3
from netmiko import ConnectHandler