Hello, everybody!
Every morning I get the email from Netsight:
Netsight Critical Alarm: Device Down
Device: 192.168.251.161 (This is a stack of 5 switches)
Severity: Critical
Message: SNMP Contact Lost: No SNMP reply from device 192.168.251.161 caused by SNMP Error: Timeout [4098], last uptime was 10 Days
Could be it caused by these scripts? Especially the last one?
# Module upm configuration.#
create upm profile blackhole1
set var portb 0
set var portb $TCL(string range ${EVENT.LOG_PARAM_0} 36 39)
disable port $portb
create log entry "Port $portb blocked by UPM"
delete var portb
.
create upm profile mac_move
set var portb1 0
set var portb2 0
set var mac 0
set var portb1 $EVENT.LOG_PARAM_2
set var portb2 $EVENT.LOG_PARAM_3
set var mac $EVENT.LOG_PARAM_0
disable port $portb1
disable port $portb2
create log entry "Port $portb1 and $portb2 was disabled by UPM sript (mac_move), flapping MAC is $mac "
delete var portb1
delete var portb2
delete var mac
.
create upm profile tftp-save
enable cli scripting
set var CLI.OUT " "
show switch
set var base_list2 $TCL(split ${CLI.OUT} "\n")
set var baseSystemTime $TCL(clock seconds)
set var systemTime $TCL(clock format $baseSystemTime -format {%d.%m.%Y_%H.%M.%S})
set var systemname $TCL(lindex $base_list2 1)
set var systemname $TCL(string replace $systemname 0 17 {})
delete var "CLI.OUT"
#set var filename "$(systemname)_$(systemTime)"
set var filename "$(systemname)"
delete var systemname
#delete var systemtype
delete var systemTime
delete var baseSystemTime
delete var base_list2
upload config 192.168.251.1 cfg/$(filename).cfg VR-Default
delete var filename
.
#
Many thanks in advance,
Ilya