Email CSQ status script for http trigger

Hello,
I have an email csq and need http trigger to monitor the emails, agents, calls etc
Does anyone have a basic script for it
Please let me know.
Thanks
Kads

Hi!
Can you please tell us who the initiator and the target for this call would be! You can of course have a UCCX script that initiates the call to a specific destination!
Also, please attach a screenshot of the script! Or at least the relevant part of it!
Thanks!
G!

Similar Messages

  • Sharepoint warmup script for https sites

    we want to warm up https site which is based on sharepoint 2010.
    When we run some sample powershells it shows access forbidden error so we are not able to warm up https site.
    Its slow on first load so need some warmup script for https sites.
    sharepointer

    Just ensure that the service account that you use to trigger the Powershell scripts has access to IIS and SharePoint.  Most often, the SharePoint Farm account would be used for scheduling the warm up scripts on the WFE server.
    I trust that answers your question...
    Thanks
    C
    http://www.cjvandyk.com/blog

  • Problem with Place call in a script with HTTP trigger

    Hi!
    I'm trying to develop a sample script, associated to an application that has an HTTP trigger. I'm working with UCCX Premium 8.5.1
    The trigger is working OK, but the place call output is allways "unsuccessful". The number to call and the redirect number are extensions of the same IPT platform.
    Below you will find print-screen of the script. Besides, I'm attaching the .aef file.
    Any help would be appreciated. Thanks in advance.
    Roy.

    The value in your "Call Control Group" must match the "Group ID" in your CM Telephony Call Control Group Configuration
    This is from my lab system so the "AgentsLoggedIn" variable would need to contain 1 or 3. You are telling the script which CTI port group to make the call with. You have a 0 in your AgentsLoggedIn so do you have a Group ID of 0?
    Your CTI group must be able to make the call so must have the correct partition/Calling Search Space
    Graham

  • Keep alive script for HTTPS service with GET method

    Hello,
    I tried to implement a keep alive to services that support HTPS connections. I’ve created a script that opens a tcp connection on port 443 and tries to do a GET of a test web page. This web page only displays “OK”.
    In a resumed form I used the following script commands:
    Socket connect host 192.168.136.134 port 443 tcp
    Socket send ${SOCKET} “GET /teste.template\n\n”
    Socket waitfor ${SOCKET}” 200 “ 2000
    Socket disconnect ${SOCKET} graceful
    I was unable to receive the expected “ 200 “response and received a message saying string not found, I used the socket inspect command to inspect the socket’s internal data buffer and the result was nothing, it seemed empty.
    I tried the same operation using a linux machine that has IP connectivity with the Webservers and I was successful.
    In the same CSS I have services configured to respond to HTTP sessions. I tried the following script and everything went well
    Socket connect host 192.168.136.151 port 80 tcp
    Socket send ${SOCKET} “HEAD /index.html\n\n”
    Socket waitfor ${SOCKET}” 200 “ 2000
    Socket disconnect ${SOCKET} graceful
    When I issued the socket inspect command I could in fact see the socket’s internal data buffer content.
    The CSS is running WebNS 5.0 build 66
    Can someone give me a help?
    Thanks,
    Ricardo Lourenço

    Hello,
    There is no direct no direct link between TCP and SSL.
    So, in spite of having success with the TCP port 443 connection the CSS will not be able to negotiate de security parameters necessary to establish the SSL session.
    This was the reason for not having success through the use of the socket commands, as i refered in my original message.
    Thanks for your collaboration,
    Ricardo Lourenço

  • Place call is not working in HTTP trigger script

    All,
    I have basic hello script with HTTP trigger and CUCM trigger configured as well. I am trying to dial out an extension and play an prompt in my script. Running UCCX 7.0.1 with premium license. The place call step doesnt start at all when I do the debug. HTTP trigger and response works fine. Anything I am missing in the script.
    Regards
    Soban

    Create a Contact-type variable. Set the Place Call and Play Prompt to this second contact. You cannot play a prompt or make a call to the triggering contact when the script was triggered by an HTTP contact instead of JTAPI.

  • Pointers re bash status script

    To try and come to grips with bash scripting, I have been working on a basic status script for my laptop. What I have at the moment has all the functionality that I need and, more importantly, it works.
    However, as it runs in a loop and as you never know what you don't know, I would really appreciate any comments about the approach I have used.
    Please don't rewrite the script, just point out things I might want to look at to make it more efficient and/or more elegant/correct. Apart from Procyon's line, most of it is stuff I have cobbled together. The $BAT stuff seems particularly kludgy...
    Brutal criticism is welcome, as long as it is constructive
    # edit - so much for extensive testing. Moved the $CHG line into the loop where it could actually update
    #!/bin/bash
    # Status script for wmfs
    RED="\\#BF4D80\\"
    YEL="\\#C4A1E6\\"
    BLU="\\#477AB3\\"
    GRN="\\#53A6A6\\"
    CYN="\\#6096BF\\"
    MAG="\\#7E62B3\\"
    GRY="\\#666666\\"
    WHT="\\#C0C0C0\\"
    while true;
    do
    # Collect system information
    CHG=`acpi -V | awk '{ gsub(/,/, "");} NR==1 {print $4}'`
    BAT=`acpi -V | if grep -q "on-line"; then echo $BLU"AC"; else echo $RED$CHG; fi`
    MEM=`free -m | awk '/Mem/ {print $3}'`
    # CPU line courtesy Procyon: https://bbs.archlinux.org/viewtopic.php?pid=661592
    CPU=`eval $(awk '/^cpu /{print "previdle=" $5 "; prevtotal=" $2+$3+$4+$5 }' /proc/stat); sleep 0.4;
    eval $(awk '/^cpu /{print "idle=" $5 "; total=" $2+$3+$4+$5 }' /proc/stat);
    intervaltotal=$((total-${prevtotal:-0}));
    echo "$((100*( (intervaltotal) - ($idle-${previdle:-0}) ) / (intervaltotal) ))"`
    HD=`df -h | awk '/^ |sd/ {if (NF==5) print $4; else if (NF==6) print $5}'`
    PCM=`exec "/home/jason/Scripts/pacman-up.pl"`
    INT=`host google.com>/dev/null; if [ $? -eq 0 ]; then echo $GRN"ON"; else echo $RED"NO"; fi`
    DATE=`date "+%I:%M"`
    # Pipe to status bar
    wmfs -s 0 "$GRY[BAT $BAT$GRY] [CPU $YEL$CPU%$GRY MEM $CYN$MEM$GRY] [HDD $MAG$HD$GRY] [PAC $BLU$PCM$GRY] [NET $INT$GRY] • $WHT$DATE"
    sleep 5
    done
    Last edited by jasonwryan (2010-12-28 06:52:25)

    Thanks rockin turtle. I tried your suggestion, but couldn't get it to play nicely with the rest of the
    script. So I am using Procyon's. I'm not sure what is wrong with eval, but I will live with it for the time being.
    I have made quite a few changes based on everyone's input. Thank you all.
    The finished product? At least for now:
    #!/bin/bash
    # Status script for wmfs
    RED="\\#BF4D80\\"
    YEL="\\#C4A1E6\\"
    BLU="\\#477AB3\\"
    GRN="\\#53A6A6\\"
    CYN="\\#6096BF\\"
    MAG="\\#7E62B3\\"
    GRY="\\#666666\\"
    WHT="\\#C0C0C0\\"
    # Collect system information
    CHG=$(acpi -V | awk '{ gsub(/,/, "");} NR==1 {print $4}')
    BAT=$(grep -q "on-line" <(acpi -V) && echo $BLU"AC" || echo $RED$CHG)
    MEM=$(awk '/Mem/ {print $3}' <(free -m))
    # CPU line courtesy Procyon: https://bbs.archlinux.org/viewtopic.php?pid=661592
    CPU=$(eval $(awk '/^cpu /{print "previdle=" $5 "; prevtotal=" $2+$3+$4+$5 }' /proc/stat); sleep 0.4;
    eval $(awk '/^cpu /{print "idle=" $5 "; total=" $2+$3+$4+$5 }' /proc/stat);
    intervaltotal=$((total-${prevtotal:-0}));
    echo "$((100*( (intervaltotal) - ($idle-${previdle:-0}) ) / (intervaltotal) ))")
    HD=$(awk '/^\/dev/{print $5}' <(df -P))
    PCM=$("$HOME/Scripts/pacman-up.pl")
    INT=$(host google.com>/dev/null && echo $GRN"ON" || echo $RED"NO")
    DTE=$(date "+%I:%M")
    # Pipe to status bar
    wmfs -s "$GRY[BAT $BAT$GRY] [CPU $YEL$CPU%$GRY MEM $CYN$MEM$GRY] [HDD $MAG$HD$GRY] [PAC $BLU$PCM$GRY] [NET $INT$GRY] • $WHT$DTE"

  • HTTP trigger script using ECC variable/Call sub flow - not working

    Hello all,
    I am trying to http trigger script which will show the real time stats of the CSQs. The script is based on "Day of week" and Time of day" checking the queue time and will update the HTML doc to show as real time data. The scripts for various CSQs has multiple boolean variable (parameter, set to false by default) like "open/night/emergency/meeting" which can be set to open or close the queue by the supervisor depending on the situation. For ex, if a variable is set to True in application page for any of the Queue, I am trying to send that "true" value to the http trigger script, so that these can be shown real time.
    Steps tried:
    1. Tried using ECC variable - setting a ECC variable to True in the main script and getting that value in the http trigger script to a local variable, if found True, the display as "CSQ1 = OPEN", else "CSQ1 = CLOSED" ; but the script gave an error as attached (http1.png)
    2. Tried using Call sub flow - Like Holiday check, under the "Rest" branch of "Time of Day" - will check the queue and will get the value returned to the local variable - Failed and it shows an error as attached (http2.png)
    As of now, I have completed the script with the logic of checking the logged in agents count in the CSQs and updating the Real time data. But it has some issues like, if an agent didnt logged out properly or if an agent is asked to login during OOH although the queue is closed, as per the logged in resource logic, the data is shown as OPEN.
    Please share your thoughts on this and if you have come across such a script, kindly share as a knowledge share.
    Thanks in advance.
    Bala.

    Hello all,
    I am trying to http trigger script which will show the real time stats of the CSQs. The script is based on "Day of week" and Time of day" checking the queue time and will update the HTML doc to show as real time data. The scripts for various CSQs has multiple boolean variable (parameter, set to false by default) like "open/night/emergency/meeting" which can be set to open or close the queue by the supervisor depending on the situation. For ex, if a variable is set to True in application page for any of the Queue, I am trying to send that "true" value to the http trigger script, so that these can be shown real time.
    Steps tried:
    1. Tried using ECC variable - setting a ECC variable to True in the main script and getting that value in the http trigger script to a local variable, if found True, the display as "CSQ1 = OPEN", else "CSQ1 = CLOSED" ; but the script gave an error as attached (http1.png)
    2. Tried using Call sub flow - Like Holiday check, under the "Rest" branch of "Time of Day" - will check the queue and will get the value returned to the local variable - Failed and it shows an error as attached (http2.png)
    As of now, I have completed the script with the logic of checking the logged in agents count in the CSQs and updating the Real time data. But it has some issues like, if an agent didnt logged out properly or if an agent is asked to login during OOH although the queue is closed, as per the logged in resource logic, the data is shown as OPEN.
    Please share your thoughts on this and if you have come across such a script, kindly share as a knowledge share.
    Thanks in advance.
    Bala.

  • Auto Email on event - EEM script for NxOS

    I generated EEM script for Duplicate IP address detection, but i do not know how to trigger email in NxOS.
    event manager environment emailto "[email protected]"
    event manager applet Duplicate_IP
      description "Detect Duplicate IP and Send Trap"
      event syslog pattern "%ARP-2-DUP_SRC_IP"
      action 1.0 snmp-trap strdata "Duplicate IP Detected on Host $hostname"
      action 2.0 cli sh logg last 100
      action 3.0 event-default
    Somebody know how to trigger email. There is no good document on EEM email triggering mechanism.

    Not sure if this would work in NxOS but I think it would go something like this;
    Specify the action of sending a short e-mail when the EEM applet is triggered via the event syslog pattern you already have defined:
         Router(config-applet)#  action label mail server server-address to to-address from from-address subject subject body body-text
    Remember to define the EEM environment variables first when setting up the applet as follows:
       event manager environment  _email_server
       event manager environment  _email_to
       event manager environment  _email_from

  • Script for getting the online/offline status

    Hi all,
    After enabling checkbox of "Enable assistive access device" is possible to get the online/ offline status.From Menu we will get the status.Without doing this i want to get the apple mail account online/offline status.hope some help scripts for this.

    [That script|http://discussions.apple.com/message.jspa?messageID=11012484#11012484] could change the Online Status of all mail accounts. The following one will just report their Online Status. Is this what you are (were) asking for?
    --BEGINNING OF SCRIPT
    tell application "Mail" to activate
    tell application "System Events" to tell process "Mail"
    set theMenu to menu "Mailbox" of menu bar 1
    if enabled of menu item "Take All Accounts Online" of theMenu then
    return "All accounts are currently offline"
    else
    return "All accounts are currently online"
    end if
    end tell
    --END OF SCRIPT

  • HTTP Trigger - Lands in a CSQ then to an agent

    Hello,
    I’m looking for a template script that will guide me through the following:
    •1)      From a web page enter a phone number you want to be called at.
    •2)      After clicking a submit key using an http trigger a phantom call will be made to the “web callback queue” - which holds your spot in queue.
    •3)      When it’s your turn in line an agent from the “web callback queue” will answer the phantom call
    •4)      then the system will auto dial the number that was entered on the web page.
    •5)      This will connect the agent to the web customer
    Can someone direct me to a website or manual that will have a template for me to follow?
    We are running:
    UCCX 7.0(1) SR5
    Call Manager 6.1.3
    Thank you.

    Hi Anthony/Geroges,
    I am exactly working on the Same task which also I need to include the Holiday Check as well. I am given two scripts but no idea how to make it work with our Website.
    I have attached the images.Any help would be appreciated.
    Hamed

  • Script for showing status

    Hi Guys,
    I need a script, that will show the status of the script
    for example,
    It is creating a paragraph styles then, Like vb label, it has to show,
    "Paragraphy style creating"
    something like this.
    regards,
    sudar.

    A JavaScript example:
    #targetengine "session"
    var myProgressPanel;
    var myMaximumValue = 100; // should be set to the amount of cycles (could be myDocument.pages.length, for a script looping all pages)
    var myProgressBarWidth = 300; // width in the window
    var myIncrement = myMaximumValue/myProgressBarWidth;
    myCreateProgressPanel(myMaximumValue, myProgressBarWidth);
    var myProgressPanel = myCreateProgressPanel(myMaximumValue, myProgressBarWidth);
    myProgressPanel.show();
    for (i = 0; i < myMaximumValue; i++) {
         myProgressPanel.myProgressBar.value = i;
         myProgressPanel.myStatus.text = "Cycle number: " + i ;
         for (n = 0; n < 10000; n++) {
             myProgressPanel.mySecondaryStatus.text = "Sub cycle number: " + n;
    myProgressPanel.close();
    function myCreateProgressPanel(myMaximumValue, myProgressBarWidth){
         myProgressPanel = new Window('window', 'Progress');
         with(myProgressPanel){
             myProgressPanel.myStatus = add('statictext', [12, 12, 300, 30], 'Working ...', {alignment: "left"});
             myProgressPanel.mySecondaryStatus = add('statictext', [12, 12, 300, 30], 'Working ...', {alignment: "left"});
             myProgressPanel.myProgressBar = add('progressbar', [12, 12, myProgressBarWidth, 24], 0, myMaximumValue);
         return myProgressPanel;
    Hope this helps you
    Thomas B. Nielsen
    http://www.nobrainer.dk

  • Tool Bar script for generating Email

    Hi experts,
    I have made the following script for sending a custom email.
    And i've the required jar files in the ftp drive on the same server where E-sourcing is installed.
    If anyone can look at this code and tell me whats wrong with it, i'll be realy grateful .
    addClassPath("D:/FTPHOME/MailJar/activation.jar");
    addClassPath("D:/FTPHOME/MailJar/javac.mail.jar");
    addClassPath("D:/FTPHOME/MailJar/mail.jar");
    import java.util.*;
    import javax.mail.*;
    import javax.mail.internet.*;
    import javax.activation.*;
    // Recipient's email ID needs to be mentioned.
    String to = "Email add of recipient";
    // Sender's email ID needs to be mentioned
    String from = "Email add of sender";
    // Assuming you are sending email from localhost
    String host = "IP address of the host ";
    // Get system properties
    Properties properties = System.getProperties();
    // Setup mail server
    properties.setProperty("mail.smtp.host", host);
    // Get the default Session object.
    Session session1 = Session.getDefaultInstance(properties);
    // Create a default MimeMessage object.
    MimeMessage message = new MimeMessage(session1);
    // Set From: header field of the header.
    message.setFrom(new InternetAddress(from));
    // Set To: header field of the header.
    message.addRecipient(Message.RecipientType.TO,
    new InternetAddress(to));
    // Set Subject: header field
    message.setSubject("This is the Subject Line!");
    // Now set the actual message
    message.setText("This is actual message");
    // Send message
    try{
    Transport.send(message);
    catch(Exception e)
    print(e);
    Thanks,
    Abhijit

    I'd like to get from somewhere Oracle tool for
    generating simple SQL script for generating table,
    indexes, constraint (like Toad) and it has to be
    Oracle tool but not Designer.
    SQL Developer is similar to Toad and is an Oracle tool.
    http://www.oracle.com/technology/products/database/sql_developer/index.html

  • Message monitoring Status Waiting for email receiver

    Hi Guru,
    Scenario:  SAP ECC will call Error Handling interface class. The communication channel for the Error Handling interface is Email Adapter.
    Below is CC setting:
    Adapter Type: Mail  (Receiver)
    Transport Protocol: SMTP
    Message Protocol: XIALL
    Adapter Engine: Integration Server
    URL: smtp://11.11.11.111/
    Check - Configure User Authentication
    User : user1
    Password: password
    Mail Attributes:
      From: [email protected]
      To    : [email protected]
      Subject : test
      Content Encoding: base64
    I encountered one problem where my email receiver status in message monitoring is always 'Waiting'. I do not know what went wrong in the setting? Does anyone know how to solve my problem ?
    Thanks in advance.
    Regards

    XI tries 3 times before changing the status of the message to System Error. One can Manually resend the error messages by using the RESEND button in RWB. In scenarios where XI was trying to send the message to an end system that was down for maintenance, you would want XI to resubmit the message automatically without human intervention. What would be nice is to able to tune the retries like IS_Retry which is available for Integration engine.
    We can achieve this by changing the retry count used by the Adapter Engine, by default its set to 3 times, 5 minutes apart. This count can be changed in Visual Admin->server->services-> SAP XI Adapter: XI.
    Here  change the number Retries parameter from 3 to 10 and change the retry retryInterval to around 10minutes. For these configuration changes to be picked up, restart SAP XI Adapter: XI.
    please visit the blog
    /people/sap.user72/blog/2005/11/29/xi-how-to-re-process-failed-xi-messages-automatically

  • Looking for an email discussion lists script.

    HI! I am looking for a email discussion lists script that
    works on a windows
    platform. I have looked on Google but only found Mailman
    which is good but
    only works on UNIX/Linux. The other I found has to be
    installed via a
    setup.exe which is only good if you own and have direct
    access to your own
    server.
    Does anyone out there know of a email discussion lists script
    in ASP or PHP
    or similar that uses an ms-access or ms-SQL database and
    works on a windows
    platform?
    Paul

    trlyka wrote:
    I can't, for the life of me, find an email address for order support. Or any other support for that matter.
    I believe the only email support Apple offers is for Photo Services and iTunes Customer Service.

  • Setting the source-interface in a tcl script for email.

    So once again I am trying to figure this out and failing miserably. The only thin I can think of at the moment is that I need to tell it to source from a specific vrf interface. I've tried looking through possible enviornment variables. Hoping I could set it that way but have yet to find one. I have read varios settings for source-interface and attempted them. But fail every time with:
    vpn_failure.tcl: smtp_send_email: error connecting to mail server:
    EEM Version:
    sho event manager version
    Embedded Event Manager Version 4.00
    Component Versions:
    eem: (rel4)1.0.4
    eem-gold: (rel1)1.0.2
    eem-call-home: (rel2)1.0.0
    Below is the stock format for sending the email from the script. If someone could guide me in the correct way to set this up to source the interface that would be awesome.
    # create mail form
      action_syslog msg "Creating mail header for vpn_failure.tcl script..."
      set body [format "Mailservername: %s" "$_email_server"]
      set body [format "%s\nFrom: %s" "$body" "$_email_from"]
      set body [format "%s\nTo: %s" "$body" "$_email_to"]
      set _email_cc ""
      set body [format "%s\nCc: %s" "$body" ""]
      set body [format "%s\nSubject: %s\n" "$body" "VPN Failure Detected: Router $routername Crypto tunnel is DOWN. Peer $remote_peer"]
      set body [format "%s\n%s" "$body" "Report Summary:"]
      set body [format "%s\n%s" "$body" "   - syslog message"]
      set body [format "%s\n%s" "$body" "   - summary of interface(s) in an up/down state"]
      set body [format "%s\n%s" "$body" "   - show ip route $remote_peer"]
      set body [format "%s\n%s" "$body" "   - show crypto isakmp sa"]
      set body [format "%s\n%s" "$body" "   - show crypto session detail"]
      set body [format "%s\n%s" "$body" "   - show crypto engine connection active"]
      set body [format "%s\n%s" "$body" "   - show ip nhrp detail (DMVPN only)"]
      set body [format "%s\n%s" "$body" "   - show log"]
      set body [format "%s\n\n%s" "$body" "---------- syslog message ----------"]
      set body [format "%s\n%s" "$body" "$syslog_msg"]
      set body [format "%s\n\n%s" "$body" "---------- summary of interface(s) in an up/down state ----------"]
      set body [format "%s\n\n%s" "$body" "$show_ip_interface_brief_up_down"]
      set body [format "%s\n\n%s" "$body" "---------- show ip route $remote_peer ----------"]
      set body [format "%s\n\n%s" "$body" "$show_ip_route"]
      set body [format "%s\n\n%s" "$body" "---------- show crypto isakmp sa ----------"]
      set body [format "%s\n\n%s" "$body" "$show_crypto_isakmp_sa"]
      set body [format "%s\n\n%s" "$body" "---------- show crypto session detail ----------"]
      set body [format "%s\n\n%s" "$body" "$show_crypto_session_detail"]
      set body [format "%s\n\n%s" "$body" "---------- show crypto engine connection active ----------"]
      set body [format "%s\n\n%s" "$body" "$show_crypto_engine_connection_active"]
      set body [format "%s\n\n%s" "$body" "---------- show ip nhrp detail (DMVPN only) ----------"]
      set body [format "%s\n\n%s" "$body" "$show_ip_nhrp_detail"]
      set body [format "%s\n\n%s" "$body" "---------- show log ----------"]
      set body [format "%s\n\n%s" "$body" "$show_log"]
      if [catch {smtp_send_email $body} result] {
        action_syslog msg "smtp_send_email: $result"

    I got this far, saw the MAXRUN error, bumped that out and then turned on debugging. I am still not connecting to the mail server. So I don't think I am reaching the mail server yet. I don't think it is using the sourceinterface. In debugging everyting in the script works except for the mail portion.
    Jul 29 16:01:00.334: %HA_EM-6-LOG: vpn_failure.tcl: Creating mail header for vpn_failure.tcl script...
    Jul 29 16:02:36.464: %HA_EM-6-LOG: vpn_failure.tcl: Process Forced Exit- MAXRUN timer expired.
    Jul 29 16:02:36.464: %HA_EM-6-LOG: vpn_failure.tcl:     while executing
    Jul 29 16:02:36.464: %HA_EM-6-LOG: vpn_failure.tcl: "action_syslog msg "smtp_send_email: $result""
    Jul 29 16:02:36.464: %HA_EM-6-LOG: vpn_failure.tcl:     invoked from within
    Jul 29 16:02:36.464: %HA_EM-6-LOG: vpn_failure.tcl: "$slave eval $Contents"
    Jul 29 16:02:36.464: %HA_EM-6-LOG: vpn_failure.tcl:     (procedure "eval_script" line 7)
    Jul 29 16:02:36.464: %HA_EM-6-LOG: vpn_failure.tcl:     invoked from within
    Jul 29 16:02:36.464: %HA_EM-6-LOG: vpn_failure.tcl: "eval_script slave $scriptname"
    Jul 29 16:02:36.464: %HA_EM-6-LOG: vpn_failure.tcl:     invoked from within
    Jul 29 16:02:36.464: %HA_EM-6-LOG: vpn_failure.tcl: "if {$security_level == 1} {       #untrusted script
    Jul 29 16:02:36.464: %HA_EM-6-LOG: vpn_failure.tcl:      interp create -safe slave
    Jul 29 16:02:36.464: %HA_EM-6-LOG: vpn_failure.tcl:      interp share {} stdin slave
    Jul 29 16:02:36.464: %HA_EM-6-LOG: vpn_failure.tcl:      interp share {} stdout slave
    Jul 29 16:02:36.464: %HA_EM-6-LOG: vpn_failure.tcl: ..."
    Jul 29 16:02:36.464: %HA_EM-6-LOG: vpn_failure.tcl:     (file "tmpsys:/lib/tcl/base.tcl" line 50)
    Jul 29 16:02:36.465: %HA_EM-6-LOG: vpn_failure.tcl: Tcl policy execute failed:
    Jul 29 16:02:36.465: %HA_EM-6-LOG: vpn_failure.tcl: Process Forced Exit- MAXRUN timer expired.
    Debugging On:
    Jul 29 16:28:51.471: [fh_smtp_debug_cmd]
    Jul 29 16:28:51.472: %HA_EM-6-LOG: vpn_failure.tcl : DEBUG(smtp_lib) : smtp_connect : attempt 2
    Jul 29 16:29:24.473: [fh_smtp_debug_cmd]
    Jul 29 16:29:24.473: %HA_EM-6-LOG: vpn_failure.tcl : DEBUG(smtp_lib) : smtp_connect : attempt 3
    Jul 29 16:29:57.475: [fh_smtp_debug_cmd]
    Jul 29 16:29:57.475: %HA_EM-6-LOG: vpn_failure.tcl : DEBUG(smtp_lib) : smtp_connect : attempt 4
    Jul 29 16:30:30.478: [fh_smtp_debug_cmd]
    Jul 29 16:30:30.479: %HA_EM-6-LOG: vpn_failure.tcl : DEBUG(smtp_lib) : smtp_connect : attempt 5
    Jul 29 16:31:00.482: %HA_EM-6-LOG: vpn_failure.tcl: smtp_send_email: error connecting to mail server:
    cannot connect to all the candidate mail servers
    Jul 29 16:31:00.483: %HA_EM-6-LOG: vpn_failure.tcl: vpn_failure.tcl script completed
    event manager environment _email_server 10.79.1.126
    event manager environment _email_from [email protected]
    event manager environment _email_to [email protected]
    interface Port-channel1.101
    description MGMT-1
    encapsulation dot1Q 101
    vrf forwarding MGMT-1
    ip address 10.79.1.252 255.255.255.0
    ip nat inside
    ip virtual-reassembly
    redundancy rii 101
    redundancy group 2 ip 10.79.1.254 exclusive decrement 10
    end
    #----------------------- send mail ----------------------
    # create mail form
      action_syslog msg "Creating mail header for vpn_failure.tcl script..."
      set body [format "Mailservername: %s" "$_email_server"]
      set body [format "%s\nFrom: %s" "$body" "$_email_from"]
      set body [format "%s\nTo: %s" "$body" "$_email_to"]
      set _email_cc ""
      set body [format "%s\nCc: %s" "$body" "[email protected]"]
      set body [format "%s\nSourceintf: %s" "$body" "port-channel1.101"]
      set body [format "%s\nSubject: %s\n" "$body" "VPN Failure Detected: Router $routername Crypto tunnel is DOWN. Peer $remote_peer"]
      set body [format "%s\n%s" "$body" "Report Summary:"]
      set body [format "%s\n%s" "$body" "   - syslog message"]
      set body [format "%s\n%s" "$body" "   - summary of interface(s) in an up/down state"]
      set body [format "%s\n%s" "$body" "   - show ip route $remote_peer"]
      set body [format "%s\n%s" "$body" "   - show crypto isakmp sa"]
      set body [format "%s\n%s" "$body" "   - show crypto session detail"]
      set body [format "%s\n%s" "$body" "   - show crypto engine connection active"]
      set body [format "%s\n%s" "$body" "   - show ip nhrp detail (DMVPN only)"]
      set body [format "%s\n%s" "$body" "   - show log"]
      set body [format "%s\n\n%s" "$body" "---------- syslog message ----------"]
      set body [format "%s\n%s" "$body" "$syslog_msg"]
      set body [format "%s\n\n%s" "$body" "---------- summary of interface(s) in an up/down state ----------"]
      set body [format "%s\n\n%s" "$body" "$show_ip_interface_brief_up_down"]
      set body [format "%s\n\n%s" "$body" "---------- show ip route $remote_peer ----------"]
      set body [format "%s\n\n%s" "$body" "$show_ip_route"]
      set body [format "%s\n\n%s" "$body" "---------- show crypto isakmp sa ----------"]
      set body [format "%s\n\n%s" "$body" "$show_crypto_isakmp_sa"]
      set body [format "%s\n\n%s" "$body" "---------- show crypto session detail ----------"]
      set body [format "%s\n\n%s" "$body" "$show_crypto_session_detail"]
      set body [format "%s\n\n%s" "$body" "---------- show crypto engine connection active ----------"]
      set body [format "%s\n\n%s" "$body" "$show_crypto_engine_connection_active"]
      set body [format "%s\n\n%s" "$body" "---------- show ip nhrp detail (DMVPN only) ----------"]
      set body [format "%s\n\n%s" "$body" "$show_ip_nhrp_detail"]
      set body [format "%s\n\n%s" "$body" "---------- show log ----------"]
      set body [format "%s\n\n%s" "$body" "$show_log"]
      if [catch {smtp_send_email $body} result] {
        action_syslog msg "smtp_send_email: $result"
      action_syslog msg "vpn_failure.tcl script completed"
    #------------------ end of send mail --------------------

Maybe you are looking for

  • Popup with 1 entry field?

    hi guys im looking for a FM with 1 entry field with text and numbers. this pop up must exist but i cant find it. tks in advance.

  • Usb keyboard not working in windows xp pro sp2 , drivers not installing rig

    I just got this mac book pro. Haven't owned a mac sense LC II. I got a stand for the notebook at www.raindesigninc.com the mstand and I got the $50 aluminum usb keyboard apple sells. I installed windows xp on a 50 gb partition, put the bootcamp in go

  • Number Range Issue-WIP

    Hi we are  doing WIP for production order executing tcode KO88, when executing this tcode msg says "Define Number range for settlement documents?, we created number range using tcode KO8N(Maintain number ranges for settlement documents) from number :

  • Partition of windows disappeared! help me

    I installed today lion mac osx .. and my Windows partition disappeared seven? I can not boot from the key option... help me please

  • Converting AS3 to AS2. Some movieclip buttons not working.

    25 movieclip buttons in frame 126 maintimeline. Buttons are on top layer above all other content. Buttons 1_1, 2_1, 3_1, 4_1, and 5_1 work. All buttons have correct instance name. The buttons are in a 5x5 grid. Hence the naming convention of column_r