Hi ,
i got it working fine . i need to  dig more in eem.
please ignore
On Sun, Mar 23, 2014 at 11:32 AM, Imran Ali <immrccie_at_gmail.com> wrote:
> hi expert !!
>
> my task  is  to ping all  our networking devices is generate en email to
> NOC .
>
> I am able to achieve this but  need some advice ,  on how to improve
>
>
> event manager applet EMAIL
>  event none
>  action 1 cli command "enable"
>  action 2 cli command "conf t"
>  action 3 cli command "macro global apply PING_SCRIPT"
>
>  action 4 mail server "mail.saudiamro.com" to "m.ali_at_saudiamro.com" from "
> NOC_at_ABC.COM" subject "YOUR CONNECTTIVITY REPORT TODAY" body " team please
> find your report below  $_cli_result"
> !
>
>
> IP HOST CORE1  10.1.2.3
> IP HOST CORE2  10.1.2.4
> macro name PING_SCRIPT
> do ping CORE1
> do ping CORE2
>
> @
> macro global apply PING_SCRIPT
>
>
>
> MY email is  as below
>
>
>  team please find your report below Type escape sequence to abort.
>
> Sending 5, 100-byte ICMP Echos to 10.1.2.3, timeout is 2 seconds:
>
> !!!!!
>
> Success rate is 100 percent (5/5), round-trip min/avg/max = 1/5/9 ms Type
> escape sequence to abort.
>
> Sending 5, 100-byte ICMP Echos to 10.1.2.4, timeout is 2 seconds:
>
> !!!!!
>
> Questions:
>
> i need  to make  this as
>
> ping CORE1     ==> Specify the name
> Sending 5, 100-byte ICMP Echos to 10.1.2.3, timeout is 2 seconds:
> !!!!!
>
>
> question 2
> how can i do  it with  a TCL  scrip ?   can be be done ?
Blogs and organic groups at http://www.ccie.net
Received on Sun Mar 23 2014 - 11:50:43 ART
This archive was generated by hypermail 2.2.0 : Thu Apr 03 2014 - 17:12:31 ART