Enable EEM based on interface description...

I want to enable EEM based on interface description...
ex int gigabitethernet 0/0
description man_link
The basic requirement is we need to monitor those links .... as we keep changing the link from one port to another so therefore we need to enable based on description.
Please let me know if its posible.

I don't understand the question.  What do you want to monitor exactly?  There is no event detector for interface description, so any kind of reaction would likely have to be through a timer.

Similar Messages

  • Tcl script help -- include interface description in status message

    Hi there,
    I'm trying to create a script that will email me when an interface goes down, and include the interface description in the email.  I've found a script that successfully emails me when the status changes, and I found another script that will parse for the interface description, but I can't seem to get them to work together.  I've mashed them up together into the below script:
    # EEM policy that will monitor SYSLOG for Interface status changes.
    # If UPDOWN message is detected, send an email with interface information.
    ### The following EEM environment variables are used:
    ### _email_server
    ### - A Simple Mail Transfer Protocol (SMTP)
    ### mail server used to send e-mail.
    ### Example: _email_server mailserver.example.com
    # Register for a Syslog event. Event Detector: Syslog
    # Match pattern for Interface Status change
    ::cisco::eem::event_register_syslog pattern "%LINK-3-UPDOWN"
    # NAMESPACE IMPORT
    namespace import ::cisco::eem::*
    namespace import ::cisco::lib::*
    # Set array for event_reqinfo
    # Array is populated with additional event information
    array set Syslog_info [event_reqinfo]
    set msg $Syslog_info(msg)
    # Set routername variable for use later
    set routername [info hostname]
    # Parse output for interface name
    if { ! [regexp {: ([^:]+)$} $msg -> info] } {
        action_syslog msg "Failed to parse syslog message"
    regexp {Line protocol on Interface ([a-zA-Z0-9]+)} $info -> interface 
    # ------------------- cli open -------------------
    if [catch {cli_open} result] {
    error $result $errorInfo
    } else {
    array set cli $result
    # Go into Enable mode
    if [catch {cli_exec $cli(fd) "enable"} result] {
    error $result $errorInfo
    #Find interface description
    if [catch {cli_exec $cli(fd) "show interface $interface | inc Description" } description] {
            error $description $errorInfo
    #--------------------- cli close ------------------------
    cli_close $cli(fd) $cli(tty_id)
    set time_now [clock seconds]
    set time_now [clock format $time_now -format "%T %Z %a %b %d %Y"]
    # EMAIL MESSAGE
    # This manually creates a text message with specific format to be used by the
    # smtp_send_email command later to send an email alert.
    # Ensure the following are configured:
    # ip domain-name <domain.com>
    # If a hostname is used for mailservername, ensure the following are configured:
    # ip name-server <dns-server>
    # ip domain-lookup
    # NOTE: Change environment variable _email_server to your SMTP server
    # The email below references the following variables:
    # $routername: hostname of device
    # $time_now: time when specific Syslog message was detected
    # $msg: Syslog message received
    set email_message "Mailservername: $_email_server
    From: [email protected]
    To: $_email_to
    Cc:
    Subject: EEM: Critical interface status change on $routername
    This email is generated by EEM.
    $time_now
    $msg
    $description
    # Send email message
    if {[catch {smtp_send_email $email_message} result]} {
    set result "Email send failed"
    } else {
    set result "Email Sent"
    # Debug message to check email transmission status
    action_syslog msg "$result"
    When I trigger an interface UPDOWN message, I'm getting the following error on the command line:
    Oct 17 23:56:19.355 HKT: %HA_EM-6-LOG: CriticalLinkStatus.tcl: can't read "interface": no such variable
    Oct 17 23:56:19.355 HKT: %HA_EM-6-LOG: CriticalLinkStatus.tcl:     while executing
    Oct 17 23:56:19.355 HKT: %HA_EM-6-LOG: CriticalLinkStatus.tcl: "cli_exec $cli(fd) "show interface $interface | inc Description" "
    Oct 17 23:56:19.355 HKT: %HA_EM-6-LOG: CriticalLinkStatus.tcl:     invoked from within
    Oct 17 23:56:19.355 HKT: %HA_EM-6-LOG: CriticalLinkStatus.tcl: "$slave eval $Contents"
    Oct 17 23:56:19.355 HKT: %HA_EM-6-LOG: CriticalLinkStatus.tcl:     (procedure "eval_script" line 7)
    Oct 17 23:56:19.355 HKT: %HA_EM-6-LOG: CriticalLinkStatus.tcl:     invoked from within
    Oct 17 23:56:19.355 HKT: %HA_EM-6-LOG: CriticalLinkStatus.tcl: "eval_script slave $scriptname"
    Oct 17 23:56:19.359 HKT: %HA_EM-6-LOG: CriticalLinkStatus.tcl:     invoked from within
    Oct 17 23:56:19.359 HKT: %HA_EM-6-LOG: CriticalLinkStatus.tcl: "if {$security_level == 1} {       #untrusted script
    Oct 17 23:56:19.359 HKT: %HA_EM-6-LOG: CriticalLinkStatus.tcl:      interp create -safe slave
    Oct 17 23:56:19.359 HKT: %HA_EM-6-LOG: CriticalLinkStatus.tcl:      interp share {} stdin slave
    Oct 17 23:56:19.359 HKT: %HA_EM-6-LOG: CriticalLinkStatus.tcl:      interp share {} stdout slave
    Oct 17 23:56:19.359 HKT: %HA_EM-6-LOG: CriticalLinkStatus.tcl: ..."
    Oct 17 23:56:19.359 HKT: %HA_EM-6-LOG: CriticalLinkStatus.tcl:     (file "tmpsys:/lib/tcl/base.tcl" line 50)
    Oct 17 23:56:19.359 HKT: %HA_EM-6-LOG: CriticalLinkStatus.tcl: Tcl policy execute failed: can't read "interface": no such variable
    Can anyone help me figure out where I'm going wrong? 
    Thanks in advance,
    Brandon

    Hi Dan,
    Thanks for the reply.   I've made the changes you suggested but I'm still getting the error:
    Oct 18 21:41:50.446 HKT: %HA_EM-6-LOG: CriticalLinkStatus.tcl: can't read "interface": no such variable
    Oct 18 21:41:50.446 HKT: %HA_EM-6-LOG: CriticalLinkStatus.tcl:     while executing
    Oct 18 21:41:50.446 HKT: %HA_EM-6-LOG: CriticalLinkStatus.tcl: "cli_exec $cli(fd) "show int $interface | inc Description""
    Is there any additional debugging I could place in my script?  Normally I would try and print the variables after each line to see what's being populated, but I'm not sure how I can test that from within EEM.
    --Brandon

  • Alert Parameters to Get Interface Description (i.e. Something Meaningful to Network Admins)

    Hi All,
    We have recently deployed OpsMgr 2012 R2 inparallel to our legacy 2007 environment.
    For network device monitoring in the 2007 environment we used the xSNMP Management Pack on top-of the native capabilities.
    On of the positive aspects of the 2007 set-up was that we were able to leverage the xSNMP Management Packs ability to expose the interface alias/description which our Network admins populate to identify the connection/purpose of an interface within the SMS
    Channel format.
    Basically, the Network Admins would give me a list of critical interfaces and using the combination of Path and Alias/Description I would be able to confidently enable interface monitoring and alerting for those interfaces.
    In 2012, however, all that has been changed.  Now, interfaces are identified by an Interface Name value that is not really meaningful or relevant to the way our Network Admins work.  Wjat I also find problematic is the way that interfaces seem
    to have been divorced from the the source device in such a way that the default email alert format doesn't even include the Path (source device) on which the interface generating the alert is associated with.  This is even the case when trying to create
    a custom monitored interfaces State view in that the Path column is populated by the MAC address rather than with the host device that the interface is on which is what really matters.  Who deals in MAC addresses?
    What we require is a way to expose the host device and Interface Description and Alias  values as part of an SMS/email alert as that is crucial information that an on-call engineer being woken-up at 2:00 AM needs to know rather than scratching
    their head with some guff about IF-20 without even the parent device of that interface given so that they can at least know what device to log-on to manually try and identify which interface connection/service  is down even though they should not have
    to do that.
    I have already tried to customize the SMS Channel format from its default format to the following:
    State: $Data[Default='Not Present']/Context/DataItem/ResolutionStateName$ $Data/Context/DataItem/ManagedEntityFullName$ $Data/Context/DataItem/AlertName$
    using the list of alert parameters from Kevin Holman's blog but even with the $Data/Context/DataItem/ManagedEntityFullName parameter the information is not satisfactory.
    For all the improvement in SNMP and network monitoring it seems that something that was actually good and useful in 2007 has now been lost because of the way interfaces/ports  have been divorced from the parent Managed Network Node device.
    Can anyone advise how I might be able to get sensible interface alerts in my email and SMS notifications that provide the host router/switch Display Name, and the Interface Description and Alias of the Interface?
    Points given to all considered replies.
    Kind Regards,
    Michael

    Yeah, that's kind of a mess...
    You can create a workaround to change the name similar like that:
    http://www.vroege.biz/?p=746
    But it needs some authoring knowledge and must run every time after a network discovery. Since this means a class property change it is a performance consuming workflow and should not run top often.
    HTH, Patrick
    Please remember to click “Mark as Answer” on the post that helped you.
    Patrick Seidl (System Center and Private Cloud)
    Website: http://www.syliance.com
    Blog: http://www.systemcenterrocks.com

  • Including Interface Description in Cisco PRime Infrastructure Alarm Message

    Hi all,
    i succesfully configured a Cisco Prime Infrastructure 2.1 applliance to display an alarm and to send me an e-mail when switch uplink ports goes down.
    The text displayed in alarm message is :
    port 'interface_id' is down on device 'device_ip_address'
    I'd like to include in this text also the interface description so the text will display :
    port 'interface_id'  'interface_descriprion' is down on device 'device_ip_address' 
    Is this possible?
    Thankyou in advance

    Hi,
    i followed these steps :
    SWITCH SIDE
    - configured Prime Infrastructure as snmp-server host;
    - enabled snmp-traps for linkup and linkdown events globally;
    - disabled snmp-traps for linkup and linkdown on non relevant interfaces using the no snmp trap link-status command
    PRIME INFRASTRUCTURE SIDE
    - under "Deploy/Monitor Deployment" i deployed template "Interface Health"  for all the interested switches
    -  under "Administration/System Settings/Mail Server Configuration" configured my internal SMTP server to make Prime Infrastructure able to send e-mails
    - under "Operate/Alarms & Events" click on "Email Notifications" , then on "Switches and Hubs"
       - check the "critical" box ,  insert the destination e-mail address into the "To" field then click "Save"
     -  check the "switches and Hubs" box and then click Save
    As i know is possible to avoid to configure every single not-interesting port on the switches with "no snmp trap link-status" command (it's a bit annoying when you have tens of switches), using Port Grouping configuration on PI but i tried it without success.
    Hope this helps.
    Best Regards,

  • How to generate a report based on account description

    Hi Experts,
    How to generate the report based on account description, that means
    i want to generate a report on G/L account and which account numbers are having 'CASH' description.
    for Ex: G/L a/c no: 25010026-Cash and Bank balance(des)
    G/L a/c no: 101000-Cash-freight
    like this.
    please help to do this,
    good answer will be appreciated with points,
    Thanks in advance
    Venkat

    Hi shana,
    my requirement is
    I have G/L account numbers, that account numbers having some descriptions, in these some descriptions are belongs to cash transactions, i want to generate the report on these cash transactions, and the report is " G/L account, debit cash, credit cash, balance".
    is it possible or not,
    thanks in advance,
    Venkat

  • Err ORA-00439 feature not enabled: function-based indexes

    How can I enable function based indexes?
    Database Version is 8i Release 8.1.6.0.0.
    I've done the following steps:
    The init-parameter compatible is set to 8.1.0.0.0.
    I've altered the session parameters
    QUERY_REWRITE_INTEGRITY to TRUSTED and
    QUERY_REWRITE_ENABLED to TRUE.
    But it still doesn't work.
    I would appreciate your help.
    Martin

    Function Based Index feature is not available in the Standard Edition of Oracle. This feature is available ONLY in the Enterprise and Personal Editions.
    Use the V$OPTION view to see the list of installed options.
    If the option is installed, you will see for "Function-based indexes":
    PARAMETER VALUE
    Function-based indexes TRUE
    null

  • Oracle EBS Based and Interface tables

    Hi,
    Where can I find the list of all Based and Interface tables used in Oracle EBS R12 Applications. OM, INV, AR, AP, GL, & PO (Purchasing).
    I have been told that they are available in "My Oracle Support" please send me the path.
    Thanks,
    Amorsolo.

    Please see old threads, it should answer your question -- http://forums.oracle.com/forums/search.jspa?threadID=&q=Interface+AND+Tables&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    Thanks,
    Hussein

  • Fm to display material details based on material description

    Hi,
    Is there any bapi or fm to display material details based on material description
    Regards,

    Hi,
    Get the material number from material description from MAKT table and then use the FM BAPI_MATERIAL_GET_DETAIL.
    Regards,
    Nagaraj

  • What r the steps to create task based user interface for interaction center

    Hi all,
                Can any one please let me know the steps to create task based user interface for interaction center? It would be great
                if anyone can share document with step by step.
    Thanks,
    Baasanthi

    Hi all,
                Can any one please let me know the steps to create task based user interface for interaction center? It would be great
                if anyone can share document with step by step.
    Thanks,
    Baasanthi

  • Enable profile based on location

    I currently have a entreprise profile for accessing emails and enforcing password. But I don't want to receive business emails or enter passwords when I'm at home. Is there a way to have this location triggered?
    For instance, as soon as I approach the office, the iPad locks down. Once I enter my password, the emails etc show up. Otherwise, it's as if I never had the entreprise profile.

    I don't understand the question.  What do you want to monitor exactly?  There is no event detector for interface description, so any kind of reaction would likely have to be through a timer.

  • Generate front panel based on xml description

    Is there a method to read an xml file and generate a front panel based on the description contained in the xml file?

    Hello mcu_guy!
    Thanks for contacting National Instruments!  This sounds like more of a Visual Basic 6.0 issue rather than a Measurement Studio issue, so perhaps Microsoft will be a better reference for you?   One great resource is Microsoft's Developer Network (MSDN).  I have also taken the liberty to dig through some of the documents I've seen before regarding dynamic creation of Form objects and I believe that this KnowledgeBase article on the MSDN should be a great start for you. 
    Best of luck with your application, mcu_guy!
    Derrick S.
    Product Manager
    NI DIAdem
    National Instruments

  • Cisco PI 2.0 API - GET Device Interface Description

    Hi,
    we are using Cisco Prime Infrastructure 2.0 as our central device discovery and inventory for all network equipment. Then we export the database to multiple other systems, primary through the REST API. My question is if anyone have used the PI API to retrive a device interface descriptions?
    Looking at the documentation at https://[prime IP]/webacs/api/v1/data/InventoryDetails?_docs you'll see under the value PhysicalPort[] a description field, but it seems like it only get the port name i.e. FastEthernet1/1. Basically the same as the Name field.
    Do anyone know how to get the description on an interface through the Cisco PI 2.0 API?
    Cheers // Mattias

    Because you would think that GET InventoryDetails -> PhysicalPort -> Description would be it... but no, it shows exactly the same thing as "name"!?
    PhysicalPort[]
    physicalPort
    This nested field provides information about the physical ports associated with this device.
    Type
    Attribute Name
    Description
    String
    description
    The port description (i.e. Fast Ethernet Port, etc.).
    long
    deviceId
    An internal id to recognize the device, which is the id of the associated management network element associated with this device.
    long
    equipmentId
    The ID of the equipment object that this port is contained in.
    String
    name
    The name of the port.
    String
    residingModule
    The module that contains the port.
    String
    vendorEquipmentType
    The vendor equipment type.

  • Enable time based publishing on more tha one folder

    Is it possbile to enable time base publishing on more than one folder at a time? I have a large hierarchy and it would be nice if I didn't have to change alle the folders.

    Hi Ingvild,
    It is possible to enable Time-based publishing in multiple folders.
    But you need to write some custom code to make it possible.
    Regards,
    Sudip

  • Some folder is empty when enabled access-based enumeration + Deduplication

    Hi Everyone,
    Background:
    Recently we migrated the file server to win2012 r2.  We have enabled dedupication and enabled access-based enumeration. 
    The data stored in D drive vm, so we just connected the D drive to the new 2012 r2 server.  Security rights all the same as before.  
    Problem:
    People reported that they can see their files and folders directly under their client folders, however some of the sub-folders are empty. when we checked from our file server, those sub-folder have files
    inside.  
    We did some test, we tried to disabled access-based enumeration, checked from user shared drive and see the files are visible again inside the folder.
    Has anyone experienced that before and can give me the solution?
    Thanks!!
    MT

    Hi,
    From the symptom it should related to Access Based Enumeration which means it is affected by NTFS permission settings. Please help list the NTFS permission settings on folders and an affect file. 
    Meanwhile you can try to create another share folder with basic NTFS permissions such as:
    Domain Admins: Full Control - This folder, subfolders and files.
    Creator Owner: Full Control - subfolders and files only.
    A testuser group: Modify (on a specific subfolder and its files).
    Everyone - Read - This folder only. 
    Then add the additional permissions which is added on your real shares to the test share one by one to see which one causes the issue. 
    If you have any feedback on our support, please send to [email protected]

  • LMS Interface reports ( Polling Interface Descriptions)

    Hi, is it possible to poll interface descriptions when creating interface reports e.g. ( Utilization, Availability, Errors), current reports are useless because it just gives me interface number for example of ( Switch A), so I'm always asked to manually add descriptions which is horrible.
    Version: 4.2
    Any help will be appreciated
    Thanks

    unfortunately it is not possible :( 
    I don't see any option  to do that...
    Thanks-
    Afroz
    ***Ratings Encourages Contributors ***

Maybe you are looking for

  • Including attachments from PDF in Save as Draft and Submit as XDP

    When I wrote the first large process years ago, I ran into the problem of saving attachments that are in the PDF. If you ask the question, the response will be that you have to submit as PDF. That in turn has it's own other problems which when trying

  • Latest Music Player update on my N8 Belle makes pl...

    Unlocked N8- Belle 111.030.0609.269.01 Adding songs to a playlist a PIA. Hopefully , someone knows an easier way. Just recently installed an update pushed for the Music Player. Now has tabs, but apparently its harder to add a song to a playlist (*alr

  • WebLogic Server - JDBC - Oracle

    Hi, I'm a JDBC beginner and I got an ORA-24327 error when accessing Oracle database with IBM WebLogic Server and JDBC OCI 1.2 on a Sun Solaris 2.6 host whith Sun JDK 1.2.2. Who can help me ? PASCAL

  • QuickTime I/O error #36 from Xsan

    Anyone have an idea or a pointer to a RTFM regarding quicktime i/o error #36. Happens with certain QTs when they are played from the Xsan. The same QT works fine from the desktop. The permissions are wide open, so that isn't the problem. Thanks in ad

  • Create materialized View fails with "table or view does not exist"

    DB: 10.2.0.4 OS: Win 2003 Hi, Here in my tests, i have 2 databases (A(source) and B(backup)), and i am trying to create an mview in database B to replicate data from one test table from database A, only for test purpose. I'm getting the error "table