EEM http script returning "content problem"

Hi @ll,
I finished to record an HTTP script via EEM, but i got an error message "status: [503] content problem"
Can anyone explain what is this error message  means ?
please see the attach screen shot.
TIA,
Haim.

Derrick,
Just noticed your query.
The script seems to do what you have described. If both IP SLA probes are down, it would go an remove the static default route.
You are right, there is no recovery script, and I guess it was intended to be done manually.
For recovery, you would need to come up with a logic you like, because if you are getting a backup internet uplink through your MPLS network, then the IP SLA probes should recover, and there is no easy way to know the ISP uplink is working again...
You could have a script that recovers automatically later in the night (just adding the static route again), and if the IP SLA probes fail again, it would fail back again, and generate the syslog.
If you are adding the default route, and the script triggers, then it means something is wrong with the IP SLA probes... Are you sure the route is working?
Take a look at the "show ip sla stat" outputs to see what is wrong...
You could disable the script (just remove it from the config) and see if Internet actually works for you when you add the static route...
Arie

Similar Messages

  • CSADMIN configuration &Content server configure the HTTP script

    Hello Experts,
    i had install the Content server 640/MaxDB 7.6on Solories platform . how to configure the CSADMIN in R/3 system . when we are adding the R/3 system , it need to mention the HTTP script
    what i need to mention in the field: HTTP script(.i. e /ContentServer/ContentServer.dll not in Solories )
    when i am connecting on web browser it is serching for the same location (i.e /ContentServer/ContentServer.dll ).
    Please help how to resolve this issue .
    Thanks
    Rajasekhar

    here ContentServer.dll not available in Unix.if we not mentioned this in CSADMIN configuration ,it won't works in the web browser
    That's not what the installation manual says.
    It should be no different for UNIX... if your URL is not working just check that apache is started,
    Read,
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/53810394-0701-0010-e996-fea1d9eac135
    Regards
    Juan

  • Making HTTP requests with content-disposition

    I need to write a Java app that can access a web server that returns most content as files (ie. using content-disposition).
    Previously I have used something like this to make HTTP GET requests to return files on a web server.
    ��String strUrl = "http://www.yahoo.com/index.html";
    ��URL url = new URL( strUrl );
    ��URLConnection conn = url.openConnection();
    ��InputStream in = url.openConnection.getInputStream();
    ��byte[] buf = new byte[conn.getContentLength()];
    ��in.read( buf, 0, getContentLength() );
    This doesn't seem to work when the HTTP header has "content-disposition". Here is the header returned by the web server.
    ��Server=Microsoft-IIS/4.0
    ��Date=Thu, 04 Jul 2002 13:18:53 GMT
    ��Content-Disposition=filename=file.xyz
    ��Content-Type=text/html
    ��Cache-control=private
    ��Transfer-Encoding=chunked
    ��content-length=30306
    The number of bytes actually read (as returned by in.read()) is less than the number of bytes as indicated in the content-length.
    How can I handle this?
    Mike

    I have managed to discover that an incorrect content-type header is causing the problems that I have been encountering with file downloads from a web server.
    As I mentioned in a previous post the content-length header was not a good indicator of file download success.
    My program downloads pictures from the internet, almost always in .jpeg format. I have found that files are successfully downloaded only when the content-type header contains the words: image/jpeg. In some instances although I am trying to download a picture file the http content-type header is stated as being: text/html.
    In those instances where text/html is given as the content-type file download fails in so far as the files are not acutally viewable on the native system (Windows varieties in my case).
    To determine the error I used the following code:
    URLConnection urlConnect = myURL.openConnection();
    System.out.println("Http Header, Content-Type: "+urlConnect.getContentType());
    System.out.println("Http Header, Content-Length: "+urlConnect.getContentLength());Even though content-length mostly corresponded with the downloaded files length, if the Conten-Type header was wrong then the file was all but useless.
    Regards
    Davo

  • I am getting the Error as "Returned Content XMl is Empty" in SAP Jco Config

    Hi,
    I am facing the problem in SAP Jco Config in SAP_JCo_Interface Action,
    while searching the BAPI (I am Using search Pattern as BAPI*) I am getting the error like following
    "Returned Content XMl is Empty".
    this URL refer the same problem ... Re: Reg : JCOProxy error:null
    But I am able to connect the SAP R/3 system successfully .. because  from the Existing Transaction the BAPI is called successfully.
    Regards,
    Dhanabal T
    Edited by: Dhanabal Thangavel on Jan 15, 2009 8:30 AM
    Edited by: Dhanabal Thangavel on Jan 15, 2009 8:37 AM

    Hi,
    Are you deploying Office 365 with the latest Office Deployment Tool? Try to download the latest version of ODT from below link, then try again:
    http://www.microsoft.com/en-us/download/details.aspx?id=36778
    A similar issue was resolved here, you might want to have a look:
    http://social.technet.microsoft.com/Forums/en-US/eeb7b577-7868-487a-851d-a6d8c1c6bbda/office-c2r-installation-error-17002?forum=officeitpro
    BTW, Microsoft Office 365 Community > Forums > Deploy Office 365
    is a better source for this kind of problem and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us.
    Thanks,
    Ethan Hua CHN
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • Posted Form contents Problem

    I had this problem with 4.5.1 SP 5 and WebLogic told me it would be
    fixed in 5.1 SP 1 (I believe the issue number was 10214). I've just
    tried my simple test case again with 5.1 SP 3 on NT and it still fails.
    The problem is when text is posted from an HTML form to a servlet in
    WebLogic, WebLogic assumes the posted data is ALWAYS encoded in
    ISO-8859_1. So if your form posts Shift-JIS, WLS still incorrectly
    converts the text to unicode using the ISO8859 code page. The only
    work arround I can find is to take the bad JAVA unicode strings, get the
    bytes with the ISO8859 code page, and then create a new string using
    those bytes and the Shift-JIS code page. This is what the
    fixStringEncoding() method is doing below. This is unacceptable.
    How does the WebLogic server understand how to convert between IANA
    encodings and JAVA encodings when receiving a response? A browser will
    encode the form contents with the same encoding as the HTML page with
    the form is in. How does WLS know when it recieves the response to use
    SJIS (Java encoding) to convert Shift-JIS (IANA) encoded text to
    unicode? My test JSP page is included below. It's form that accepts
    Japanese text and posts it back to itself for display. If I don't "fix"
    the JAVA strings, the Japanese text comes out as garbage. BTW, I have
    verified that I'm using SP 3 correctly. Thanks.
    Kirk Everett
    <%@ page contentType="text/html; charset=Shift-JIS"%>
    <html>
    <head>
    <title></title>
    <meta http-equiv="content-type" content="text/html; charset=Shift-JIS">
    <meta http-equiv="expires" content="0">
    <meta http-equiv="pragma" content="no-cache">
    </head>
    <body>
    <form name="Dummy" action="dummySJIS.jsp" method="post">
    <table>
    <tr>
    <td align="right">DummyString:</td>
    <td><input type="text" name="dummy" size="30"
    maxlength="50"></td>
    </tr>
    </table>
    <input type="submit" value="submit">
    </form>
    <BR>
    DummyString with fixing= <%=
    fixStringEncoding(request.getParameter("dummy")) %>
    <BR>
    DummyString without fixing = <%= request.getParameter("dummy") %>
    <BR>
    Embedded (Shitf-JIS) Japanese --> ?X?V‚É?¬Œ÷‚µ‚Ü‚µ‚½?B
    </body>
    </html>
    <%!
    public String fixStringEncoding(String sourceString)
    String targetEncoding = "SJIS";
    String convertedString = null;
    if(sourceString != null)
    // get the array of bytes for the unicode string using the
    // 8859_1 code page
    try
    byte[] stringBytes = sourceString.getBytes("ISO8859_1");
    // now create a new string based of the array but do it
    // with the correct code page UTF8
    convertedString = new String(stringBytes, targetEncoding);
    catch(UnsupportedEncodingException uee)
    convertedString = "";
    return convertedString;
    %>

    The jsp directive does nothing to help the INPUT data handling. On the other hand, this is a html spec problem, not a weblogic one. RFC2070 has some recommendation on how to do i18n with HTML/HTTP, but neither Netscape nor IE supports it.
    --Ye
    Joseph Weinstein <[email protected]> wrote:
    Hi,
    The ideal approach is to employ the JSP directive for encoding.
    This is documented in the JSP spec. Also, if all your JSPs
    require the same encoding, there is an argument to our JSP
    servlet, to tell it what default charset encoding to use.
    Joe
    Kirk Everett wrote:
    I had this problem with 4.5.1 SP 5 and WebLogic told me it would be
    fixed in 5.1 SP 1 (I believe the issue number was 10214). I've just
    tried my simple test case again with 5.1 SP 3 on NT and it still fails.
    The problem is when text is posted from an HTML form to a servlet in
    WebLogic, WebLogic assumes the posted data is ALWAYS encoded in
    ISO-8859_1. So if your form posts Shift-JIS, WLS still incorrectly
    converts the text to unicode using the ISO8859 code page. The only
    work arround I can find is to take the bad JAVA unicode strings, get the
    bytes with the ISO8859 code page, and then create a new string using
    those bytes and the Shift-JIS code page. This is what the
    fixStringEncoding() method is doing below. This is unacceptable.
    How does the WebLogic server understand how to convert between IANA
    encodings and JAVA encodings when receiving a response? A browser will
    encode the form contents with the same encoding as the HTML page with
    the form is in. How does WLS know when it recieves the response to use
    SJIS (Java encoding) to convert Shift-JIS (IANA) encoded text to
    unicode? My test JSP page is included below. It's form that accepts
    Japanese text and posts it back to itself for display. If I don't "fix"
    the JAVA strings, the Japanese text comes out as garbage. BTW, I have
    verified that I'm using SP 3 correctly. Thanks.
    Kirk Everett
    <%@ page contentType="text/html; charset=Shift-JIS"%>
    <html>
    <head>
    <title></title>
    <meta http-equiv="content-type" content="text/html; charset=Shift-JIS">
    <meta http-equiv="expires" content="0">
    <meta http-equiv="pragma" content="no-cache">
    </head>
    <body>
    <form name="Dummy" action="dummySJIS.jsp" method="post">
    <table>
    <tr>
    <td align="right">DummyString:</td>
    <td><input type="text" name="dummy" size="30"
    maxlength="50"></td>
    </tr>
    </table>
    <input type="submit" value="submit">
    </form>
    <BR>
    DummyString with fixing= <%=
    fixStringEncoding(request.getParameter("dummy")) %>
    <BR>
    DummyString without fixing = <%= request.getParameter("dummy") %>
    <BR>
    Embedded (Shitf-JIS) Japanese --> ?X?V&#8218;É?¬&#338;÷&#8218;µ&#8218;Ü&#8218;µ&#8218;½?B
    </body>
    </html>
    <%!
    public String fixStringEncoding(String sourceString)
    String targetEncoding = "SJIS";
    String convertedString = null;
    if(sourceString != null)
    // get the array of bytes for the unicode string using the
    // 8859_1 code page
    try
    byte[] stringBytes = sourceString.getBytes("ISO8859_1");
    // now create a new string based of the array but do it
    // with the correct code page UTF8
    convertedString = new String(stringBytes, targetEncoding);
    catch(UnsupportedEncodingException uee)
    convertedString = "";
    return convertedString;
    %>--
    PS: Folks: BEA WebLogic is in S.F. with both entry and advanced positions for
    people who want to work with Java and E-Commerce infrastructure products. Send
    resumes to [email protected]
    The Weblogic Application Server from BEA
    JavaWorld Editor's Choice Award: Best Web Application Server
    Java Developer's Journal Editor's Choice Award: Best Web Application Server
    Crossroads A-List Award: Rapid Application Development Tools for Java
    Intelligent Enterprise RealWare: Best Application Using a Component Architecture
    http://www.bea.com/press/awards_weblogic.html

  • Table of contents problems

    I am trying to convert a document from Word to Pages. I've run into a some table of contents problems that I know how to solve in Word, but which apparently cannot be solved at all in Pages.
    1. I need to make several entries differ from the paragraph text. For example, I have a heading that reads "PROGRAM THEME: MUSIC IN AMERICA AND BEYOND." I need it to read simply "Theme."
    2. The paragraph text is all caps. I need the TOC entries to be in title case.
    I can do these things easily in Word. But I really dislike Word and would like to use Pages. Is there any way to do these simple things?

    I can't help with the TOC as I've not had a need to use one since I've been using Pages. I can help with the title case. Go to my iDisk & download Pages Title Caps.scpt. To add the AppleScript menu in OS X 10.4.x or 10.5.x, go to Applications > AppleScript and launch the AppleScript Utility application. The option to "Show Script Menu in menu bar" is activated from there. You can put the downloaded script in the Scripts folder in either the main HD > Library or in your user Library.

  • Create a Client Proxy for consume wsdl via https URL return a 110 HTTP code

    Dear all.
    I has new in this forum, and i have a problem when trie to create a client proxy from external WSDL, using https URL, system returns me a 110 http code. For others externs WSDL called via http don´t have any problem, and create client proxy perfect
    Someone can help please.
    best regards in advance.

    Dear Anton I download de WSDL definition in a local file, but when I trie to use, the error persist.
    If I test de URL via WebService navigation option, this work correctly, but if I put this URL thats begins with https, in se80--> create client proxy -->insert URL and then system returns the message HTTP error (return code 110, message "") 
    What it´s happen?.
    Best regards in advance.
    Juliá

  • EEM CLI Script with parameters

    Hi all,
    I have a requirement to write an eem cli script that can be triggered using a pattern match and take parameters.
    Basically the user has to do many repetitive tasks reconfiguring interfaces regularly. So instead of having to go into each interface individually and run the config that they can write a one word command and give it params which would be for example a comma separated list of interface names and then within my script i could parse the interface names and iterate over them performing the config operation on them.
    so i'm just playing around with the cli policy.
    ::cisco::eem::event_register_cli occurs 1 pattern "nacdrop*" sync yes enter
    # Import Namespaces
    namespace import ::cisco::eem::*
    namespace import ::cisco::lib::*
    array set arr_einfo [event_reqinfo]
    set full_command $arr_einfo(msg)
    puts $full_command
    You can see here i want the command nacdrop to trigger this policy but when i try and run the command with arguments i get an error on the command line as its not a valid command and the policy doesnt trigger.
    Ideal scenario run command
    Router#nacdrop fastEthernet0/0,fastEthernet0/1,fastEthernet0/2
    the script would then perform a set of config tasks on each of the 3 interfaces.
    I thought the "enter" parameter to event_register_cli would do it as that is supposed to trigger the policy before the command is executed therefore before it determines it to be an invalid command. I do not have the latest version of eem however and suspect that the "enter" argument isn't being used as it isn't showing up as an option when i type ? to see what options are available although i don't get an error when registering the policy.
    So my question is what version off eem was this "enter" argument introduced and will it allow me to run the policy and get around the invalid command problem.
    Once i can run this policy and access the parameters to the cli command it opens up a lot for me in terms of automating repetitive tasks.
    Hope someone can help.
    Cheers,
    Joe.

    Cheer Joe. That's great. I've attached the first draft of a script i've written, maybe someone else can find it useful too.
    Basically it's for if you would like to perform the same operation on many interfaces you can use an alias and give it parameters
    E.G
    Router#vlanmove FastEthernet0/1-8,10,13-16
    Notice the params use '-' and ',' When you use dash it will perform the operation on all the interfaces in a range and then comma is just for an individual interface and as you can see above you can mix ranges with individual ones.
    The above example will give the output:
    Configuring Interface: FastEthernet0/1
    Configuring Interface: FastEthernet0/2
    Configuring Interface: FastEthernet0/3
    Configuring Interface: FastEthernet0/4
    Configuring Interface: FastEthernet0/5
    Configuring Interface: FastEthernet0/6
    Configuring Interface: FastEthernet0/7
    Configuring Interface: FastEthernet0/8
    Configuring Interface: FastEthernet0/10
    Configuring Interface: FastEthernet0/13
    Configuring Interface: FastEthernet0/14
    Configuring Interface: FastEthernet0/15
    Configuring Interface: FastEthernet0/16
    in the attached script just replace "puts "Configuring Interface: $interfaceName"
    with your configuration
    e.g.
    conf t
    interface $interfaceName
    switchport access vlan 2
    and it will perform that operation on all intefaces in a range. I might update the script later to take config commands as env variables too. That would make the script more generic. But at the moment this script is useful for us as we have to regularly reconfigure interfaces.
    Cheers,
    Joe.

  • Accessing Java webservice (XML over http) via WCF or HTTP adapter with content-type and authorization HTTP headers with POST method

    Hi Team,
    I need to access Java web service which is simple service and accepts and returns XML over HTTP. No credentials are needed to access the service. We need to pass following two HTTP headers (Content-Type and Authorization) along with XML request message:
    <GetStatus> message is being constructed in the orchestration and URI is constant to access.
    Which adapter shall I use to get the response back? I tried using WCF-WSHttp with Security Mode = Transport, and different options of client credential types but every time, error returned stating:
    System.Net.WebException:
    The HTTP request is unauthorized with client authentication scheme 'Basic'. The
    authentication header received from the server was 'Basic realm='.
    Authentication failed for principal Basic. Message payload is of type:
    String 
    In Fiddler, request looks line following
    POST <https://URL/GetServiceReopnse HTTP/1.1
    Content-Type: application/xml
    Authorization: Basic cmVmU3RhdHN2Y19kgeRfsdfs=
    Host: <Server name>
    <GetStatus XMLNS="http://server.com/.....">
    <OrgId>232323</OrgId>
    <HubId>3232342323</HubId>
    </GetStatus>
    MMK-007

    First, you should not use the HTTP Adapter because it's been deprecated and replaced by WCF.
    Start with the WCF-Custom Adapter and select the customBinding.
    You should start with the textMessageEncoder and httpTransport and go from there.

  • EEM TCL script configuration issue

    Hi Experts,
    I need help with an EEM TCL script for the CRS platform that generates a SYSLOG message after the CPU reaches a threshold value and then stays over the threshold value for 15 minutes, I've already tryied several thing and the last TCL script that I tested generated the SYSLOG message when the CPU reaches the threshold but I can't seem to find any way to make it wait the 15 min over the threshold and then generate the message.
    My current script looks like this:
    ::cisco::eem::event_register_wdsysmon timewin 900 sub1 cpu_tot op ge val 70
    namespace import ::cisco::eem::*
    namespace import ::cisco::lib::*
    array set event_details [event_reqinfo]
    action_syslog msg "sub1 is $event_details(sub1)"
    action_syslog msg "High CPU threshold value over 70%"
    puts ok
    I've tryied using the 'period' option for the 'cpu_tot' variable but the TCL script was'nt recognized and couldn't be registered, and I'm using the 'timewin' option here but it seems to be wrong as it says it's the time it has for multiple sub-events to ocurr in order for the script to execute.
    timewin
    (Optional) Time window within which all of the subevents have to occur in order for an event to be generated and is specified in SSSSSSSSSS[.MMM] format. SSSSSSSSSS format must be an integer representing seconds between 0 and 4294967295 inclusive. MMM format must be an integer representing milliseconds between 0 and 999).
    Also, the 'period' option I believe wouldn't have worked because I understand that it referrs to the time period that the script will take to monitor the CPU:
    •1. cpu_tot [op gt|ge|eq|ne|lt|le] [val ?] [period ?]
    op
    (Optional) Comparison operator that is used to compare the collected total system CPU usage sample percentage with the specified percentage value. If true, an event is raised.
    val
    (Optional) Percentage value in which the average CPU usage during the sample period is compared.
    period
    (Optional) Time period for averaging the collection of samples and is specified in SSSSSSSSSS[.MMM] format. SSSSSSSSSS format must be an integer representing seconds between 0 and 4294967295, inclusive. MMM format must be an integer representing milliseconds between 0 and 999. If this argument is not specified, the most recent sample is used.
    As I said, I couldn't try this because the script send an error when I tried to register using the following line:
    ::cisco::eem::event_register_wdsysmon sub1 cpu_tot op ge val 70 period 900
    This is the error message that appeared:
    RP/0/RP0/CPU0:CRS(config)#event manager policy test.tcl username cisco
    RP/0/RP0/CPU0:CRS(config)#commit
    Thu Aug 29 12:35:43.569 CDT
    % Failed to commit one or more configuration items during a pseudo-atomic operation. All changes made have been reverted. Please issue 'show configuration failed' from this session to view the errors
    RP/0/RP0/CPU0:CRS(config)#sh conf fail
    Thu Aug 29 12:35:52.427 CDT
    !! SEMANTIC ERRORS: This configuration was rejected by
    !! the system due to semantic errors. The individual
    !! errors with each failed configuration command can be
    !! found below.
    event manager policy test.tcl username cisco persist-time 3600
    !!% Embedded Event Manager configuration: failed to retrieve intermediate registration result for policy test.tcl
    end
    Anyway, to make this work I understand that I need nested TCL scripts that do the following:
    •1. Monitor the CPU and when it reaches the threshold install another TCL policy that counts down 15 min.
    •2. If the second TCL policy reaches zero then it should generate the SYSLOG message.
    •3. Monitor the CPU while this is running and if it falls below the threshold it should stop the second TCL policy.
    I don't know how I can acomplish this so if anyone can help me with this or show me another way to do this I would really appreciate it.
    Thanks in advance for all your help!

    Neither option is likely to do what you want.  The timewin is for correlating multiple events, and period is the polling interval.  What you want is to create a timer when the CPU is first detected as being high, countdown 15 minutes, then alert you.  You can do this with a nested EEM policy.  For example, you can add the following to your existing policy:
    proc get_pol_dir { fd } {
        set res {}
        set output [cli_exec $fd "show event manager directory user policy"]
        set output [string trim $output]
        regsub -all "\r\n" $output "\n" result
        set lines [split $result "\n"]
        foreach line $lines {
            if { $line == "" } {
                continue
            if { ! [regexp {\s} $line] && ! [regexp {#$} $line] } {
                set res $line
                break
        if { $res == {} } {
            return -code error "The user policy directory has not been configured"
        return $res
    if { [catch {cli_open} result] } {
        error $result $errorInfo
    array set cli $result
    set output [cli_exec $cli(fd) "show event manager policy registered | inc tm_alert_high_cpu.tcl"]
    if { [regexp {tm_alert_high_cpu.tcl} $output] } {
        exit 0
    set poldir [get_pol_dir $cli(fd)]
    set polname "${poldir}/tm_alert_high_cpu.tcl"
    set fd [open $polname "w"]
    puts $fd "::cisco::eem::event_register_timer countdown time 900"
    puts $fd "namespace import ::cisco::eem::*"
    puts $fd "namespace import ::cisco::lib::*"
    puts $fd "action_syslog msg \"CPU has been over 70% for 15 minutes\""
    close $fd
    cli_exec $cli(fd) "config t"
    cli_exec $cli(fd) "event manager policy tm_lert_high_cpu.tcl username eem"
    cli_exec $cli(fd) "commit"
    cli_exec $cli(fd) "end"
    catch {cli_close $cli(fd) $cli(tty_id)}
    Additionally, you'll want another permanently configured policy that checks for a low CPU threshold.  Something like:
    ::cisco::eem::event_register_wdsysmon sub1 cpu_tot op le val 10
    namespace import ::cisco::eem::*
    namespace import ::cisco::lib::*
    if { [catch {cli_open} result] } {
        error $result $errorInfo
    array set cli $result
    cli_exec $cli(fd) "config t"
    cli_exec $cli(fd) "no event manager policy tm_alert_high_cpu.tcl"
    cli_exec $cli(fd) "commit"
    cli_exec $cli(fd) "end"
    catch {cli_close $cli(fd) $cli(tty_id)}

  • EEM-TCL Script to switch config from interface X to interface Y

    Hello Guys,
    I’m trying to create a script which is controlled by an EEM-UPDOWN event of an interface. What I’m trying to do is, if interface X is down for some reason it should copy the interface configuration to interface Y.
    So my problem is I’m very new to eem-tcl scripting and I have some basic problem hopefully u can help me =) I’m working on a ASR9K !
    So what i have done so fare:
    ::cisco::eem::event_register_syslog occurs 1 pattern ".*CHANGED.*$_sat_1_link_1.*" maxrun 90   
    namespace import ::cisco::eem::*
    namespace import ::cisco::lib::*
    array set arr_einfo [event_reqinfo]
    if {$_cerrno != 0} {
        set result [format "component=%s; subsys err=%s; posix err=%s;\n%s" \
          $_cerr_sub_num $_cerr_sub_err $_cerr_posix_err $_cerr_str]
        error $result
    if [catch {cli_open} result] {
        error $result $errorInfo
    } else {
        array set cli1 $result
    action_syslog priority emergencies msg "start script testv1_1"
    #puts "\nEXECUTE CLI COMAND :\n"
    set out {cli_exec $cli1(fd) "show running-config formal interface $_sat_1_link_1"}
    set xout [split $out \n]
    #puts "DEBUG : $xout \n\n"
    set anz [llength $xout]
    #puts "DEBUG : count rows = $anz \n\n"
    for {set ii "0"}  {$ii < $anz } {incr ii} {
           set indexout [lindex $out $ii]
        regexp  {([\w]+)[ ]([\w\d/]+)\s(.*)} $indexout a b c d
        #puts "\nDEBUG START"
        #puts "\nindex Nr  $ii"
        #puts "Full Match: $a"
        #puts "Sub Match1: $b"
        #puts "Sub Match2: $c"
        #puts "Sub Match3: $d"
        #puts "DEBUG END\n"
        set intsrc {cli_exec $cli1(fd) "no $b $_sat_1_link_1 $d"}
        set intdest {cli_exec $cli1(fd) "$b $_sat_1_link_2 $d"}
    if [catch {cli_exec $cli1(fd) "commit"} result] {
        error $result $errorInfo
    if [catch {cli_exec $cli1(fd) "end"} result] {
        error $result $errorInfo
    action_syslog priority emergencies msg "End script testv1_1"
    ps. $_sat_1_link_1 and $_sat_1_link_2 are globaly set per cli in the event manager env.
    Thanks for your help and hopefully u can help me with this script

    Hey
    after show running-config formal interface TenGigE 0/0/2/1 the cli output example is :
    interface TenGigE0/0/2/1 description Test: 0-43
    interface TenGigE0/0/2/1
    interface TenGigE0/0/2/1 shutdown
    and now i want to split the config with my regex
    regexp  {([\w]+)[ ]([\w\d/]+)\s(.*)} $indexout a b c d
    As example line 1
    set x= "TenGigE0/0/2/2"                  --> =dest_interface
    a= interface TenGigE0/0/2/1 description Test: 0-43
    b= interface
    c= TenGigE0/0/2/1
    d= description Test: 0-43
    do this
    cli_exec $cli1(fd) "no $b $c $d"      --->no interface TenGig E0/0/2/1 description Test: 0-43
    cli_exec $cli1(fd) " $b $x $d"          ---> interface TenGigE0/0/2/2 description Test: 0-43
    and from this point it shoud do this until there are no config lines  =)
    as a final result is should copy the whole config from interface X to interface Y  if the trigger is active
    but as i see, the main problem is to get the CLI output in a format like this
    set xy = interface TenGigE0/0/2/1 description Test: 0-43\ninterface TenGigE0/0/2/1\ninterface TenGigE0/0/2/1 shutdown
    or in an index like this:
    Index | command
    1         interface TenGigE0/0/2/1 description Test: 0-43
    2         interface TenGigE0/0/2/1
    3         interface TenGigE0/0/2/1 shutdown
    Thx

  • Report Script returns no data and "java.io.FileNotFoundException" error

    When attempting to write to a new file (Eg: C:\TEST.txt), Report Script returns no data and "java.io.FileNotFoundException" error occurs.
    This error occurs only in Essbase 9.3.1.3 release, however it works fine in release 9.3.1.0.
    After running the report the script, it pops up the follwing message:
    "java.io.FileNotFoundException: ..\temp\eas17109.tmp (The system cannot find the file specified): C:\TEST.txt"
    When checked the TEST.txt, it was empty.

    Sorry folks, I just found out the reason. Its because there was no data in the combination what I was extracting.
    but is this the right error message for that? It should have atleast create a blank file right?

  • How to consume web service in WDP ABAP ---HTTP error (return code 404, mess

    Hi,
    Am trying to consume a web serivce in WDP where I got error HTTP error (return code 404, message "conn failed")in sdn i came to know that it could be resloved by giving the IP address of the host but in case it is not the web services am using are the external links.
    kindly help me to sort it.
    Regards
    Raj

    hi,
    in addition to above thread
    refer this too
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/b0d4aa08-beed-2a10-fab2-ad975cead04a
    bvr

  • Error in Webservice Call HTTP error (return code 404, message conn failed)

    Hi
    We wish to call  a standard EP7 webservice through ABAP.
    When we try to create consumer proxy , we get the following error.
    HTTP error (return code 404, message "conn failed")
    Message no. SPRX090
    ==> Display Error Document
    If you want to generate a proxy for an external WSDL document by specifying a URL, check that the proxy settings of the system are correct (transaction SICF - Client - Proxy Settings). If you want to generate a proxy for an XI Repository object, check the connection to the Enterprise Services Builder as follows:
    Check List for Setting Up a Connection to the Service Repository
    1. The address of the Enterprise Services Repository must be known in the SAP system
    Check with report SPROX_CHECK_IFR_ADDRESS
    The address is taken from the following parameters in the exchange profile ('Connections' section):
    com.sap.aii.connect.repository.name: Server (for example,pwdf0436)
    com.sap.aii.connect.repository.httpport: Port (for example, 1080)
    com.sap.aii.connect.repository.contextroot: Root (for example,rep)
    The logon data is also read from the exchange profile ('ApplicationSystem' section):
    com.sap.aii.applicationsystem.serviceuser.name: User
    com.sap.aii.applicationsystem.serviceuser.pwd: Password
    As an alternative to using the exchange profile, you can maintain the RFC destination SAP_PROXY_ESR. If this RFC destination is maintained it will be used by the proxy generation in place of data from the exchange profile to access the Service Repository. In this case, the Exchange Profile will even not be read.
    The RFC destination has to be set up using transaction SM59 and should look like this:
    RFC Destination: SAP_PROXY_ESR
    Connection Type: G (HTTP Connection to External Serv)
    Description1: ESR for Proxy Generation
    Target Host: esr_host
    Service No: 1080
    Path Prefix: rep
    Logon and Security:
    Basic Authentication: active
    User: esr_user
    Password: esr_password
    2. The HTTP Framework of the Web Application Server must function
    Check with report SPROX_CHECK_HTTP_COMMUNICATION
    If necessary, contact your system administrator. Please be aware of the fact, that the HTTP framework is depending on the application server. Thus the result of the report may differ for different application servers.
    3. Proxy generation must interpret the data of the Enterprise Services Repository correctly
    Check with report SPROX_CHECK_IFR_RESPONSE
    you can also login in dev and go to Xn se91
    enter msg id SPRX and msg no 090
    select the message and click on long text..
    you get the same message in a formatted manner..
    How to get rid of this ?
    Regards
    Rajendra

    Hi
    we have given the correct path as we have tested the webserive from
    other technology (.net) by providing the same path.
    regards
    Rajendra

  • The screen on my Macbook goes blank, if I tilt the screen it returns. Problem getting worse.

    The screen on my Macbook goes blank, if I tilt the screen it returns. Problem getting worse. Should I take it to the apple store and see if they can replace the screen? is it expensive to replace the backlight/invertor?

    This sounds to me like a fairly common Inverter Fault.
    It is not the screen that needs replacing by the sounds of it,
    It sounds like either the inverter board or the inverter cable needs replacing.
    My understanding is that inverter / inverter cable repairs aren't too expensive, but not too cheap!
    Obviously your best way to find out how much it would cost to be repaired would be to take it in to an Apple Store, as I have never had to have one replaced myself, but the information I'm providing, is based on what I've read elsewhere.
    How old is the MacBook?
    Thanks,
    Ollie.

Maybe you are looking for

  • How to filter hierarchy node in BEX query designer

    Dear experts We are working on FI balance sheet with hierarchy infoobject 0GLACCEXT. Example of our balance sheet is as follow: Parent Node A = 20      Sub-parent Node A1 = 10          Leaf A11 = 5              Leaf A12 = 5 Parent Node B = 20      Su

  • I GOT MY IPHONE..... WOOOO  HOOOOO!!!  THANK YOU ... THANK YOU....

    .....NOW THAT I HAVE ALL OF YOUR ATTENTION.... I have never seen so many children in my life.  I'm going to assume that all of you are over the age of 18 who ordered their wonderful iPhone, but quite honestly, most of you are all acting like a bunch

  • Where can I get new charger for Satellite Pro L500-1D4?

    Hi, I would like to get a new charger for Toshiba. My first charger got lost and the second charger that I bought from ebay 3 months ago for 10,- has stopped working. Where can I get a charger from? I googled and I found couple of wesbites e.g. http:

  • Can't open Itunes on Windows PC

    The other day i accidentally uninstalled Bonjour, so after reading up I found it was best to uninstall then reinstall ITunes to get it to open again. I just went through the process but now I still cannot get into ITunes! The message " The file  'iTu

  • Records stuck in Conversion or Inteface process

    Hi All, In conversions, how to handle errored out records stuck in staging table and did not go to Interface table and the records that were stuck in Interface table and did not go to Base table... What kind of issues we can face in Conversions while