This file contains 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
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 | |
---------- |
This file contains 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
#!/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!" |
This file contains 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
#!/bin/bash | |
host=$1 | |
echo "------" | |
echo "MTR Trace Report - UDP" | |
echo "______________________" | |
mtr -r -w -c 10 --show-ips -u $host | |
echo "------" |
This file contains 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/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) |