View CdpNeighborList.py
from easysnmp import Session | |
''' | |
EasySnmp does support SNMPv1/v2c/3 implimentations. | |
This was a simple test of using a common SNMPv2c implimentation. | |
From CLI example output: | |
Give me an IP to search for neighbors: 192.168.1.2 | |
---------- |
View updated.sh
#!/bin/bash | |
## | |
## Insanely simiple way to run updates if you don't have automatic updates enabled | |
## | |
## 1. copy this to a file on to your favorite host \ | |
## 2. chmod +x ./<yourfile_name> (makes the script executable) | |
## 3. run your new script by "./<yourfile_name> | |
## 4. you'll be prompted for you password (sudo), then off to the races.. | |
## | |
echo "Time to update!" |
View latency_finder.sh
#!/bin/bash | |
host=$1 | |
echo "------" | |
echo "MTR Trace Report - UDP" | |
echo "______________________" | |
mtr -r -w -c 10 --show-ips -u $host | |
echo "------" |
View resolve2active.py
!/usr/bin/python | |
import os | |
import socket | |
with open('loggers.txt') as f: | |
a = [a.strip('\n') for a in f.readlines()] | |
print('\n' + 'Unknown destination addresses seen and need to be resolved!') | |
for name in a: | |
print('original IP -> ' + name) |