نمایش نتایج: از شماره 1 تا 2 از مجموع 2

موضوع: Send e-mail with your Cisco router

  
  1. #1
    نام حقيقي: 1234

    مدیر بازنشسته
    تاریخ عضویت
    Jul 2009
    محل سکونت
    5678
    نوشته
    5,634
    سپاسگزاری شده
    2513
    سپاسگزاری کرده
    272

    Send e-mail with your Cisco router

    کد:
    http://blogs.techrepublic.com.com/networking/?p=454
    Did you know your Cisco router could send you an e-mail? Until recently, I would have said that it wasn’t possible, but today, I’ll show you how to do it. And we won’t stop there: I’ll tell you where to find some other scripts that you can use on your Cisco router. Let’s see how the Cisco IOS Tool Command Language (TCL) can make your Cisco administration easier.
    A while ago, I wrote an article introducing TCL — “Get to know Cisco’s Tool Command Language (TCL)” — and I told you how you can create your own scripts using TCL. To run TCL, your router needs to be running Cisco IOS 12.3(2)T or later.
    While TCL offers many uses for your Cisco router, it needs to be able to communicate with the Cisco IOS. Traditionally, when an event happens on a Cisco router, it sends that event to a management station on your network for some subsequent action. However, with Cisco’s introduction of the Embedded Event Manager (EEM), Cisco routers now have more intelligence and can take actions on their own.
    Cisco originally released EEM 1.0 in IOS versions 12.0(26)S and 12.3(4)T. Today, with IOS versions 12.4(2)T, 12.2(31)SB3, 12.2(33)SRB, we’re up to EEM version 2.2, and we’ve gained many features along the way. To learn more, check out Cisco’s Embedded Event Manager Overview.
    I suspect that TCL and EEM sound only moderately interesting to most of you because, like any scripting language, it can be difficult to envision what you can do with it. To help you understand the power of EEM, Cisco has created the Embedded Event Manager (EEM) Scripting Community.
    Thanks to this site, you can not only download many useful scripts, but you can also submit your own to share with other Cisco users. Kudos to Cisco for this excellent resource!
    Send e-mail with your router

    To better understand the uses of TCL and EEM, let’s look at an example. Here’s a simple demonstration of how a router can send an e-mail that contains the output of the show version command.
    First, I went to the EEM Scripting Community and downloaded the Send Email script. I unzipped the script and ended up with a simple text file called Sendmail.tcl.
    Next, I stated my TFTP server on my PC, and I used TFTP on the router to transfer the modified script from my PC to the router’s flash. Figure A shows you what it looked like.
    Figure A
    Next, I ran the following command while in Global Configuration Mode:
    Router(config)# event manager directory user policy flash: Then, according to the instructions included in the script’s comments, I set the following environmental variables on the router to fit my particular configuration (still in Global Configuration Mode), as shown in Figure B:
    Router(config)#

    event manager environment _email_server 10.10.10.10

    Router(config)#

    event manager environment _email_from router-123@cisco.com

    Router(config)#

    event manager environment _email_to noc@cisco.com
    Figure B
    Next, I registered the script using the following command:
    Router(config)# event manager policy sendmail.tcl Finally, I ran the script using the event manager run sendmail.tcl command. If all goes well, there’s no output. Figure C shows the e-mail message.
    Figure C
    You can also modify this script to run on triggered events. For example, there’s a script called showtech that you can use to e-mail the output from the show tech-support command directly to Cisco or to yourself. For more information, check out Cisco’s video tutorials on using TCL/EEM router scripts.
    More uses for TCL and EEM

    While this article has focused on using TCL and EEM to send an e-mail with your router, I want to stress that there are so many more practical uses for TCL and EEM with the Cisco IOS. For example, one of the most useful things you can do with TCL and EEM is use a set of diagnostic scripts dubbed IOS Service Diagnostics. Such scripts are available for OSPF, BGP, and QoS.
    With these scripts running on your router, when abnormal events occur (such as losing an OSPF Neighbor), your router can automatically attempt to diagnose the issue, perhaps take action to solve it, or, if nothing else, notify you of the issue along with all of the relevant information needed to resolve it. In other words, the scripts can provide for a shorter Mean Time To Repair (MTTR) — which equates to cost savings. In addition, the scripts can increase network uptime, quickly identify root causes, and automatically collect network troubleshooting data.
    Here are some of the other interesting scripts available:

    • Memory Health
    • Power and Temperature Health
    • Composite Device Health — Interface Errors
    • HSRP State Change
    • L3 Path Failure Detection — EIGRP Neighbor Change
    • VPN Failure Detection
    • WAN Load Alarm

    Conclusion

    According to Cisco’s IOS Service Diagnostic Web site, Cisco plans on introducing a management interface to help administrators manage these types of scripts on Cisco routers. I look forward to trying that out as soon as it’s available. In the meantime, we have a lot of powerful scripts available to test and learn about. In fact, you could even write your own




    موضوعات مشابه:





  2. #2
    نام حقيقي: 1234

    مدیر بازنشسته
    تاریخ عضویت
    Jul 2009
    محل سکونت
    5678
    نوشته
    5,634
    سپاسگزاری شده
    2513
    سپاسگزاری کرده
    272
    کد:
    http://www.cisco.com/en/US/prod/iosswrel/ps6537/ps6555/ps9421/networking_solutions_products_genericcontent0900aecd80719ee6.html


    Cisco IOS Diagnostic Tools for Commercial

    Automated Diagnostics for Commercial Networks





    The following list contains simple, easy-to-use scripts and applets that allow network engineers managing Commercial networks to automate common diagnostics and customize complex network tasks.
    The scripts and applets use Cisco IOS® Embedded Event Manager (EEM), a powerful device and system management technology integrated into specific Cisco switches and routers. EEM helps customers harness the network intelligence intrinsic to Cisco IOS Software and gives them the ability to customize behavior based on network events as they happen.
    Requirements:

    • Hardware platform: Cisco 1800, 2800, 3800 ISRs
    • Cisco IOS® Software Release: Scripts written using Release 12.4(9)T4


    Composite Device Health - Interface Errors
    Download Script
    View Video

    Composite Device Health - Memory
    Download Script
    View Video

    Power and Temperature Health
    Download Script

    Memory Health
    Download Script

    Forwarding Path Health
    Download Script

    HSRP State Change
    Download Script

    L2 WAN Failure Detection
    Download Script

    L3 Path Failure Detection - EIGRP Neighbor Change
    Download Script

    L3 Path Failure Detection - IP Route Tracking
    Download Script

    VPN Failure Detection
    Download Script
    View Video

    Server Failure Detection - Down State
    Download Script
    View Video

    Server Failure Detection - Up State
    Download Script
    View Video

    Application Failure Detection
    Download Script

    Priority Queue Threshold
    Download Script
    View Video

    WAN Load Alarm
    Download Script

    Log New Configuration After Updates
    Download Script

    Log Config Diffs After Updates
    Download Script
    View Video

    Log User Name Information
    Download Script

    Send Show-tech via Email
    Download Script

    Send Email
    Download Script
    View Video







کلمات کلیدی در جستجوها:

how to upgrade ios in cisco router persian

cisco router 2800 e1

example of a script

router 2800 config tcl

l3 path failure detection - ip route tracking script

cisco eem scripts

cisco path failure detection mail

sendmail.tcl cisco 1800

download script tcl cisco sendmail.tcl

Embedded Event Manager configuration: policy file sendmail.tcl could not be found

download ios cisco

forums.cisco.com/eforum L2_WAN

configuring cisco sendmail tcl

برچسب برای این موضوع

مجوز های ارسال و ویرایش

  • شما نمی توانید موضوع جدید ارسال کنید
  • شما نمی توانید به پست ها پاسخ دهید
  • شما نمی توانید فایل پیوست ضمیمه کنید
  • شما نمی توانید پست های خود را ویرایش کنید
  •