02-08-2017 06:52 AM
Hi
Is there a way to make a EEM script to shutdown E1 interface when SyncE QL goes under SSU-A?
I don't what to match sh log output
02-12-2017 04:46 AM
Please provide the step-by-step instructions on how you would do this manually. If it can be done manually through SNMP or CLI, then it should be doable with EEM.
02-13-2017 01:28 AM
Hi
Thank you for your replay, this would really help me
1. If a QL announcement arrives from the network, like "%NETCLK-6-QL_CHANGE:" or if the router looses the communication to all clocks in the network and starts to use the internal clock "%NETCLK-6-ENTER_HOLDOVER:" then...
2. Wait for about 5 minutes.
3. Then If the output from "show network-clocks synchronization" shows either QL-PRC or QL-SSU-A, then bring up 8 interfaces. But if the output show neither of QL-PRC or SSU-A then shutdown 8 interfaces and save configuration.
4. Run step 3 every 30 minutes
02-13-2017 01:56 AM
This is not enough information. What does the output of "show network-clocks synchronization" look like when it's healthy? When it's not? On what platform is this? What version of software?
02-13-2017 02:17 AM
Hi
This is the output, it's a ASR 920 IOS XE 3.18.1s
In this output I have QL-PRC from both interfaces.
If the show command doesn't show either QL-PRC or QL-SSU-A anyware in the output, then shutdown 8 interfaces (controller e1 0/1/0 - 8)
router#sh network-clocks synchronization
Symbols: En - Enable, Dis - Disable, Adis - Admin Disable
NA - Not Applicable
* - Synchronization source selected
# - Synchronization source force selected
& - Synchronization source manually switched
Automatic selection process : Enable
Equipment Clock : 2048 (EEC-Option1)
Clock Mode : QL-Enable
ESMC : Enabled
SSM Option : 1
T0 : TenGigabitEthernet0/0/15
Hold-off (global) : 300 ms
Wait-to-restore (global) : 10 sec
Tsm Delay : 180 ms
Revertive : Yes
Nominated Interfaces
Interface SigType Mode/QL Prio QL_IN ESMC Tx ESMC Rx
Internal NA NA/Dis 251 QL-SEC NA NA
Te0/0/14 NA Sync/En 3 QL-PRC - -
*Te0/0/15 NA Sync/En 2 QL-PRC - -
02-15-2017 02:07 AM
And this is the output when the eem/tcl should shutdown the interfaces, in the output both PRC and SSU-A is missing
drwrdc1rout1d#sh network-clocks synchronization
Symbols: En - Enable, Dis - Disable, Adis - Admin Disable
NA - Not Applicable
* - Synchronization source selected
# - Synchronization source force selected
& - Synchronization source manually switched
Automatic selection process : Enable
Equipment Clock : 2048 (EEC-Option1)
Clock Mode : QL-Enable
ESMC : Enabled
SSM Option : 1
T0 : TenGigabitEthernet0/0/14
Hold-off (global) : 300 ms
Wait-to-restore (global) : 10 sec
Tsm Delay : 180 ms
Revertive : Yes
Nominated Interfaces
Interface SigType Mode/QL Prio QL_IN ESMC Tx ESMC Rx
Internal NA NA/Dis 251 QL-SEC NA NA
*Te0/0/14 NA Sync/En 3 QL-SSU-B - -
02-27-2017 07:43 AM
I think this will work for you.
event manager environment q "
event manager environment cr $_cli_result
event manager environment rr $_regexp_result
!
event manager applet clock-sync
event syslog pattern "NETCLK-6-(QL_CHANGE|ENTER_HOLDOVER)"
action 001 cli command "enable"
action 002 cli command "config t"
action 003 cli command "event manager applet clock-sync-timer"
action 004 cli command "event timer countdown time 300"
action 005 cli command "action 001 cli command enable"
action 006 cli command "action 002 cli command $q show network-clocks synchronization | inc (QL-PRC|QL-SSU-A)$q"
action 007 cli command "action 003 regexp $q *(QL-PRC|QL-SSU-A)$q $cr"
action 008 cli command "action 004 if $rr eq 0"
action 009 cli command "action 005 cli command $q config t$q"
action 010 cli command "action 006 cli command $q int range Te0/0/1 - 8$q"
action 011 cli command "action 007 cli command $q shut$q"
action 012 cli command "action 008 else"
action 013 cli command "action 009 cli command $q config t$q"
action 014 cli command "action 010 cli command $q int range Te0/0/1 - 8$q"
action 015 cli command "action 011 cli command $q no shut$q"
action 016 cli command "action 012 end"
action 017 cli command "action 013 cli command $q no event manager applet clock-sync-timer$q"
action 018 cli command "action 014 cli command end"
action 019 cli command "action 015 cli command $q write mem$q"
action 020 cli command "end"
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: