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/expect | |
set user digicom_noc | |
set pass "digicom@)!#" | |
set hostname [lindex $argv 0] | |
#set config | |
set timeout 120 | |
spawn ssh $user@$hostname | |
# -------------- do not edit below -------------- # | |
#get data from remote devices | |
expect "password:" |
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 | |
OK=0 | |
CRITICAL=2 | |
STATE=0 | |
PLUGIN_PATH="/usr/local/nagios/libexec/plugins" | |
outputfile=/var/log/bgp.log | |
OID_sysDescr=SNMPv2-MIB::sysDescr.0 | |
OID_hostname=SNMPv2-MIB::sysName.0 | |
COMMUNITY=***************** | |
DBname=************ |
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/expect | |
#!/bin/bash | |
## TomDV | |
## http://blog.penumbra.be/2010/02/expect-scripts-backup-cisco-config/ | |
# ---------------- configuration ---------------- # | |
#set ciscoHCM 10.255.0.222 | |
#set ciscoIPLC 10.255.0.251 | |
#set huaweiTKC 10.255.0.233 | |
#set ciscoHCM2 10.223.0.250 |
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 | |
#Ussage: Check input bandwidth on each switch port | |
########## ./check_bw $IP_of_switch $port_No_with_slash $max_threshold $min_threshold##### | |
########## Version 2.0 ######################################## | |
################################################################ | |
########### Created by Thanh.ha ############################## | |
######## ########################### | |
############################################################### | |
############################################################### | |
print_usage() { |
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 | |
OK=0 | |
CRITICAL=2 | |
STATE=0 | |
PLUGIN_PATH="/usr/local/nagios/libexec/plugins" | |
outputfile=/var/log/bgp.log | |
OID_sysDescr=SNMPv2-MIB::sysDescr.0 | |
OID_lag=1.2.840.10006.300.43.1.1.1 | |
COMMUNITY=bimat | |
VERSION="1.0" |
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 | |
OK=0 | |
CRITICAL=2 | |
STATE=0 | |
PLUGIN_PATH="/usr/local/nagios/libexec/" | |
OID_sysDescr=SNMPv2-MIB::sysDescr.0 | |
OID_hostname=SNMPv2-MIB::sysName.0 | |
COMMUNITY=bimat | |
VERSION="1.1" | |
author="hafthanhf" |