cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1753
Views
0
Helpful
2
Replies

Python Guess Shell - Response to Syslog messages

@mforman2
Level 1
Level 1

Greetings community,

 

For some reason event manager was removed from the features on:

C9407R

Cisco IOS XE Software, Version 16.10.01

 

So EEM is not an option as that would make this easy.

 

So I'm attempting to use the python guest shell to capture syslog traffic to make changes to an interface.

 

%CDP-4-NATIVE_VLAN_MISMATCH: Native VLAN mismatch discovered on {var1} (1), with Switch GigabitEthernet2/0/52 {var2}.

 

How can I capture these two variables using the python guest shell? Is that possible?

 

End result, it captures the variables and changes the local interface with a script to match the remote end.

 

Thanks for your time and consideration,

-@mforman2

 

2 Replies 2

balaji.bandi
Hall of Fame
Hall of Fame

It does not.

"Please note, this package[eem] is ONLY for EEM Python Scripts."

EEM feature is not available for me otherwise I'd just use that.

>>> import eem
Please note, this package[eem] is ONLY for EEM Python Scripts