This page was exported from phaq
[ http://phaq.phunsites.net ] Export date: Sat Jun 10 0:27:21 2023 / +0000 GMT |
Well, here's just a quick snippet on how to intercept Cisco's "write net" command. Why would I want to do it? Because people are lazy and tend to forget. So instead of forcing them to remember, that they need to add the '/incoming' directory for config writebacks, I just let an EEM applet do the trick. How is it working? The EEM applet is intercepting the 'write net' cli command by matching all inputs against the pattern given. Whenever the command is seen, it will run my own commands instead. Nice, huh? ;-? Enough talking, here's the code:
|
Powered by [ Universal Post Manager ] plugin. HTML saving format developed by gVectors Team www.gVectors.com |