cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
397
Views
0
Helpful
1
Replies

Digital Optical Monitoring - shutdown interface when attenuation is >17dB

brriapol
Cisco Employee
Cisco Employee

Team,

Is it difficult to write a script which performs a shutdown on a Cat3650 interface once attenuation has reached >17dB (29.5 is current in the output below)?  

Thank you,

Switch#show interface transceiver

If device is externally calibrated, only calibrated values are printed.
++ : high alarm, +  : high warning, -  : low warning, -- : low alarm.
NA or N/A: not applicable, Tx: transmit, Rx: receive.
mA: milliamperes, dBm: decibels (milliwatts).
                                 Optical   Optical
           Temperature  Voltage  Tx Power  Rx Power
Port       (Celsius)    (Volts)  (dBm)     (dBm)
---------  -----------  -------  --------  --------
Gi1/1/1      29.4       3.30      -5.5     -29.5 --
1 Reply 1

salekar
Cisco Employee
Cisco Employee

Hi.

I believe it isnt difficult.

Here are some steps that you can follow :

-- telnet into CAT 3560 with proper credentials
-- issue the command "show interface transreceiver"

-- parse the output of the command for "RX POWER" and take its value in some variable.

-- compare it with 17

-- If its more than 17 then, issue the commands :

-- "configure terminal"

-- interface <interface number>

-- shut

-- exit

let me know if this helps.