CSS Scripts

We have a BEA weblogic web cluster and a cisco css 11501, we are currently using http keepalives to monitor a web page that calls services from diferent parts of the web site, this all works fine. The web developers have asked if its possible to create a script, that will check the page everytime a new request hits the vip? Is this possible? I have suggested that we change the keepalive timers in the meantime

I feel like your developper wants the CSS to check the server when the new request comes in and before it makes its loadbalancing decision.
To guarantee the request will always be served.
That would really kill the performance of the box if we could do this.
Fortunately this is not possible.
By reducing the probe delay, you reduce the possibility of sending traffic to a dead server.
However, make sure not to kill the box with your probes. Both the CSS and the servers.
Too much probing can be dangerous.
Gilles.

Similar Messages

  • Region source with css script

    Hi Andy --
    I implemented the form with the region source of css scripts. After populating default data for one item, I tried to print the form using printer-friendly mode, the data appeared on the top of the form, it is no longer displayed within the input field.
    I wish to be able to print the form with data populated (in the printer friendly mode), can this be done using css scripts as the region source?
    Thanks,
    Yivon

    Hi Yivon,
    Unless you have added a condition to the item, it should be on the page somewhere. If we are moving items around the page by using style="position:absolute; top:Npx; left:Npx;" it could be that the item is now hidden behind something else on the page?
    Firstly, have a look at a View Source of the page to see if the item is on there somewhere. If it is, in the style="....;" setting, add in z-index:99;. This should move the item to the front of all other items. You should then be able to see what adjustments you need to make to the top and left px settings.
    If it is not on the page at all, then there has to be a conditional setting somewhere that is hiding it. Without seeing your page, I can not tell - this is something you would have to check.
    Andy

  • CSS Script for checking RADIUS Service

    Hi,
    We are using CSS 11501 boxes for load-sharing RADIUS (NAC) requests between different ACS Servers.
    How can I configure a keepalive method for checking the RADIUS service on the ACS Servers ?
    If this needs to be a script then Can anyone provide some hints\tips ?
    Thanks,
    Naman

    This needs to be a script.
    The best way would be to sniff a request/response from a known user [or fake user], then extract the udp header + payload in hex format, then create a CSS script to send the hex formatted query and to verify that the hex formatted response matches the server response.
    I believe the ap-kal-dns script uses a similar approach so you can look at it to get an idea of what you have to do.
    Gilles.

  • CSS script output

    I was writing a script to simplify the server managers stopping and starting services... also so they can check the status... if I do "! no echo" I can not get any output from commands I'd like to run with it... how can I get the output... without the command itself being written to screen? I put the script here that I use to check the Local Connections on the service...
    Format of script is
    script play <script name> <service> <start or stop>
    ! no echo
    set service1 "Proxy1"
    set service2 "Proxy2"
    echo "${service1} Status"
    sho service ${service1} | grep "Current Local"
    echo "${service2} Status"
    sho service ${service2} | grep "Current Local"
    exit script 0

    OK...
    I'm not entirely sure.... Are services being rotated around so much that you feel you need a process to identify 'dead' services?
    That sounds more like a policy problem....
    I don't have much experience writing the css scripts... this is really my first foray into that arena.. and I find the scripting language to be almost useless so far.
    There is probably a script you could write that would do a sho service... compare previous sho services to the # of connections and the last clearing of stats... altho I can't figure out how to clear those stats... sigh...
    If I find anything that looks like what you need in my travels I will post it for you !

  • How to remove/delete CSS script from directory

    Hi,
    it's clear to me how to upload, rewrite or execute the script on CSS.
    copy ftp myaccount disable-sticky.txt script disable-sticky
    script play disable-sticky
    but, I could not find out how to delete the script from CSS script directory.
    Regards,
    Vladimir

    Hi Vladimir,
    Use the clear command.
    clear {log filename|script filename|archive filename|
    startup-config}
    Use show disk to get the slot number (probably 0) and then do:
    clear 0 script disable-stciky
    You need to be in superuser mode to do this.
    HTH
    Cathy

  • CSS scripting problem

    I have a css11503 running 7.30.0.05 and I am trying to install a custom script (http://www.cisco.com/en/US/products/hw/contnetw/ps789/products_tech_note09186a00801e1dfb.shtml)
    I login to the CSS, execute: script record http-test <enter>
    However, when I paste in the script and it gets to the initial arg length checking:
    "if ${$ARGS}[#] "NEQ" "3"
    It errors out and says
    %% Error undefined variable.
    Any idea what I am doing wrong?
    Thanks!
    -wP

    I have the same problem. It prompts an error in some lines though the "show script" seems to be ok. I'm worry about that the script won't work in production and I can test it.
    I downloaded other similar scripts via FTP but FTP fails for this one, the CSS is no able to download the script from the FTP server.
    Also I have downloaded via FTP similar scripts that starts with the same line (if ${ARGS}[#] "NEQ" "2".
    My version is sg0820501. I know that the scripts configuration is ok cause I have it configured in other CSS.
    CSS-Device# script record ap-kal-tcp-connect-graceful
    Press Ctrl^C to terminate recording...
    CSS-Device#
    CSS-Device# if ${ARGS}[#] "NEQ" "2"
                      ^
    %% Error undefined variable.
    CSS-Device#         echo "Usage: xxx ip port"
    Usage: xxx ip port
    CSS-Device#         exit script 1
    CSS-Device# endbranch
    endbranch: Not in Branch command.
    CSS-Device#
    CSS-Device# set HostNameA "${ARGS}[1]"
                                  ^
    %% Error undefined variable.
    CSS-Device# set PortA "${ARGS}[2]"
                              ^
    %% Error undefined variable.
    CSS-Device#
    CSS-Device#
    CSS-Device# set EXIT_MSG "ERROR: Failed to connect"
    CSS-Device# socket connect host ${HostNameA} port ${PortA} tcp 2000
                                       ^
    %% Error undefined variable.
    CSS-Device#
    CSS-Device# no set EXIT_MSG
    CSS-Device# socket disconnect ${SOCKET} graceful
                                     ^
    %% Error undefined variable.
    CSS-Device#
    CSS-Device# exit script 0
    CSS-Device#
    CSS-Device#
    Script <ap-kal-tcp-connect-graceful> recorded.
    CSS-Device# show script ap-kal-tcp-connect-graceful
    if ${ARGS}[#] "NEQ" "2"
            echo "Usage: xxx ip port"
            exit script 1
    endbranch
    set HostNameA "${ARGS}[1]"
    set PortA "${ARGS}[2]"
    set EXIT_MSG "ERROR: Failed to connect"
    socket connect host ${HostNameA} port ${PortA} tcp 2000
    no set EXIT_MSG
    socket disconnect ${SOCKET} graceful
    exit script 0
    CSS-Device#

  • CSS Script to search for a specific Keyword for keepalive

    Hello
    I am trying to figure out if this is possible. I want the CSS to check a web page for a specific word such as "ClientABC" any where in the page. If the word is found, then CSS will assume that page is working fine.
    The reason for this is: we want to know if database does not send the output to the page, CSS should tell us that.
    I found one script close to this but not sure if this will help me at all..
    !no echo
    ! Filename: ap-kal-httptag
    ! Parameters: HostName WebPage HostTag
    ! Description:
    ! This script will connect to the remote host and do an HTTP
    ! GET method upon the web page that the user has asked for.
    ! This script also adds a host tag to the GET request.
    ! Failure Upon:
    ! 1. Not establishing a connection with the host.
    ! 2. Not receiving an HTTP status "200 OK"
    if ${ARGS}[#] "NEQ" "3"
    echo "Usage: ap-kal-httptag \’Hostname WebPage HostTag\’"
    exit script 1
    endbranch
    ! Defines:
    set HostName "${ARGS}[1]"
    set WebPage "${ARGS}[2]"
    set HostTag "${ARGS}[3]"
    ! Connect to the remote Host
    set EXIT_MSG "Connection Failure"
    socket connect host ${HostName} port 80 tcp
    ! Send the GET request for the web page
    set EXIT_MSG "Send: Failed"
    socket send ${SOCKET} "GET ${WebPage} HTTP/1.0\nHost: ${HostTag}\n\n"
    ! Wait for a good status code
    set EXIT_MSG "Waitfor: Failed"
    socket waitfor ${SOCKET} "200 OK"
    no set EXIT_MSG
    socket disconnect ${SOCKET}
    exit script 0

    Hi there !
    I am not sure about the current status of your investigation but I believe there are a number of ways to do what you want by just using the http keepalives / get statement.
    I think that what you really want to do is to monitor the database connection and for this you can create a test page (asp) that connects to the backend db and returns either a 'success' or 'failed'.
    The page contents only change on failure causing the CSS to pull that webserver out of the cluster.
    Regards,
    Leonel

  • Safari not reading CSS scripts correctly?

    I have in my .css file a command as thus:
    menu {
    font-family: "Monotype Corsiva";
    This under all circumstances works, Monotype Corsiva is in OS X, and Windows OS's... but for some reason Safari won't view the font... why?
    This has to be a Safari bug, for I can get some other cursive fonts working...if it isn't how do I get the fonts working in Safari?

    It also doesn't answer my question.
    I doubt you will find one here. You might go to
    http://webkit.org/
    and try the latest nightly build and see if it works better.

  • CSS script error right away...

    Hi,
    I got an error message for this line of code...it is claiming
    that Netscape 4.0 has the issue. Should I ignore...all I did was to
    establish a CSS. (the line is underlined in red in my code)
    <link href="stylesheet06.css" rel="stylesheet"
    type="text/css">
    DW gave me this reason:
    DefaultContextFromParseExternalStyleError
    It doesn't seem to like: href="stylesheet06.css"
    Why?
    Thanks!

    I'm getting the same error but mine is saying the problem is
    with IE6 and IE7 so it definitely needs to be fixed. It looks fine
    when I view in IE6 and IE7. My style sheet is a lot more complex
    than usual so I probably messed up some place. Here's what I have
    written so far for the style sheet:
    @charset "utf-8";
    #MainAreaTitle {
    font-size: 17px;
    font-family: Arial, Helvetica, sans-serif;
    color: #141370;
    font-style: normal;
    font-weight: bold;
    padding: 2px;
    overflow: auto;
    width: 520px;
    position: fixed;
    height: 20px;
    vertical-align: top;
    #DivMainBody {
    position:fixed;
    width:520px;
    overflow: auto;
    vertical-align: top;
    height: 450px;
    text-decoration: none;
    .MainAreaTable {
    background-color: #FFFFFF;
    height: 100%;
    width: 400px;
    overflow: auto;
    border-collapse: inherit;
    #SideBarMainBody {
    width: 150px;
    height: 435px;
    background-color: #FFFFFF;
    overflow: auto;
    vertical-align: top;
    padding: 2px;
    #SideBarTitle {
    font-size: 17px;
    font-family: Arial, Helvetica, sans-serif;
    color: #000093;
    font-style: normal;
    font-weight: bold;
    padding: 2px;
    overflow: auto;
    width: 198px;
    position: fixed;
    height: 20px;
    vertical-align: top;
    .SideBarTable {
    height: 100%;
    width: 198px;
    background-color: #FFFFFF;
    .BodyTable {
    background-color: #141370;
    width: 800px;
    position: fixed;
    overflow: auto;
    border-top-color: #141370;
    border-bottom-color: #141370;
    border-left-color: #141370;
    border-right-color: #141370;
    color: #FFFFFF;
    border-collapse: collapse;
    border-color: #141370;
    height: 600px;
    .BodyTablecenterborder {
    background-image: url(Template/template_r11_c7.gif);
    height: 100%;
    width: 18px;
    .BodyTableleftborder {
    background-image: url(Template/template_r11_c1.gif);
    background-position: center;
    height: 100%;
    width: 16px;
    .BodyTablerightborder {
    background-image: url(Template/template_r11_c13.gif);
    height: 100%;
    width: 11px;
    border-collapse: collapse;
    And the line of code that causes the error says:
    <link href="../style.css" rel="stylesheet" type="text/css"
    />
    Which leads to a:
    File Z:\Inetpub\wwwroot_Com_New\Template\template.htm
    Error Found 4 errors in external css files
    Internet Explorer 6.0, 7.0; Internet Explorer for Macintosh
    5.2
    line 59 DefaultContextFromParseExternalStyleError

  • Accessing ressources (css,images, scripts...) in portal archive via URL?

    Hello!
    I have created a par file with the following PAR-Archive:
    *.par
      ¦
      +---meta-inf                Automatically generated.
      ¦
      ¦                           All files and folders in the root folder are deployed as public. This usually includes resources,
      +---images                  images,
      +---css                     css,
      +---scripts                 JavaScripts etc.
    According to the documentation, you can access all folders in the archive. But in which way??? The URL looks like this:
    http://bbmag34.bbmag.aldi.com:50000/irj/servlet/prt/portal/prtmode/preview/prtroot/pcd!3aportal_content!2fALDI!2fcom.aldi.extranet!2fcom.aldi.iviews!
    2fcom.aldi.extranet.iview.flex-integrator-text <- i tried to add !2fscripts!2fhallo.txt (which i copied to the scripts directory) but nothing happened.

    Hi Björn,
    maybe this will help...
    public static String getImageUrl(IPortalComponentRequest request) {
              HttpServletRequest httpRequest = request.getServletRequest();
              StringBuffer buf = new StringBuffer(1024);
                                    String prot = (httpRequest.isSecure()) ? "https://" : "http://";
                                    buf.append(prot)
                                      .append(httpRequest.getServerName())
                                      .append(":")
                                      .append(httpRequest.getServerPort())
                .append(request.getWebResourcePath())
                                      .append("/images/");
              return buf.toString();
    Regards,
    Jens

  • CSS keepalive script for LDAP (Novell)

    I need an advanced script for Cisco CSS11000 for LDAP keepalive. The problem is the built-in script is too rudimental, what it does is just check the tcp 389 connection to the servers plus some expected bind response code "0A, 01, 00". But what happened for us is when the LDAP server (Novell) is doing DS repair, in which the server is too busy to handle the real LDAP call but still reply the tcp 389 request, CSS think it is still alive.
    We want a smart script that can handle real LDAP call (like a LDAP client) and send a real LDAP request instead of a simple tcp 389 request. Does anyone have any idea?
    Thanks in advance,
    Thanks in advance,
    Dave

    with the CSS script language you can send binary data and receive binary response.
    If you know what port to send the request to, what are the binary data and what is the expected binary response, we can easily do a script for you.
    The easiest way to get the binary info is to make a LDAP query and capture it with sniffer.
    Also capture the response.
    Make sure to do a query that will always result in the same response.
    Once you have this data, you can try to update the ldap script yourself [hint: use the raw keyword when sending the data].
    Or post the info here and will try to make a script for you.
    Gilles.

  • CSS: How does DNS Scripted Keepalive (ap-kal-dns) work?

    Hello everyone,
    I have a question about how does DNS Scripted Keepalive (ap-kal-dns) work on CSS 11503.
    According to the "Using the CSS Scripting Language",
    http://www.cisco.com/en/US/partner/docs/app_ntwk_services/data_center_app_services/css11500series/v7.50/configuration/administration/guide/Scripts.html
    it says
    Since we just want to see if the DNS server is alive we will send a simple DNS Query.  This query is hard coded in hexadecimal and sent raw to the DNS server.
    and
    Receive some unexplained response. We don't care what it is because an unstable DNS server or a non-existent one would probably not send ! us any data back at all.
    but it also says
    Failure Upon: 1. Not resolving the host's IP from the domain name
    And according to the "How to Configure the CSS to Load Balance DNS Servers and Use the DNS Scripted Keepalives",
    http://www.cisco.com/en/US/partner/products/hw/contnetw/ps789/products_configuration_example09186a00801d015a.shtml
    it says
    The script is hard-coded to resolve www.cisco.com.  It does not matter if the DNS server can resolve this address or not, as long as a DNS response comes back that the service is alive. This keepalive is only testing if a DNS server can respond to a query, not if it can resolve a specific name. The script queries from the CSS to DNS internal servers keep track of the availability of the DNS servers.
    but it also says
    Access to Internet Domain Name System Root Servers is required for successful implementation of DNS scripted keepalives.
    So I am confused whether DNS server has to resolve the host's IP address correctly for DNS query received from CSS or just needs to reply any response but not need to resolve it.
    I would like to recap about my question.
    Q1: Does DNS Scripted Keepalive (ap-kal-dns) send DNS query with cisco.com as DNS name by default?
    Q2: Does DNS server has to resolve IP address of  cisco.com or just need to respond for DNS query with any response but not need to resolve IP address of cisco.com?
    I understand I should get capture data and see how DNS scripted keepalive works, but I can not prepare lab environment to do it at the present.
    Your information would be appreciated.
    Best regards,
    Shinichi

    yes the query is for www.cisco.com and the script expect a reponse that contains the word cisco.
    Gilles.

  • CSS 11500 - Keepalive script to remotely execute a shell script on a server

    Hi!
    I've been trying to connect the dots but so far I've got nothing close to what I need - based on Cisco's documentation.
    I was wondering if it was possible for the CSS switch to connect to a server in order to execute a shell script such as "/opt/whatever/script.sh", which would return a specific value like "OK". Anything different than OK would mean a dead service, and the affected service would be taken out of business (no load balancing play).
    Could someone confirm whether it can be done?
    Many thanks!!
    Leo

    Leo,
    you could try to use CSS script to telnet to the server, and execute the command.
    But that would be ugly.
    What you should do, is put your script inside a cgi webpage and let the CSS call the webpage.
    Your webserver will then run the script that you want and return to result inside and HTML page to the CSS which can then decide on the status of the server.
    If you do not have a web server, you should create a small tcp server to listen to CSS request and again send the result of the script back to css.
    Gilles.

  • Css/js relative path for embedded server

    We have recently begun using relative paths for css and js files in our deployed applications:
    <link href="../../resources/css/global3.css" rel="stylesheet" type="text/css" />
    <script language="JavaScript" src="../../resources/script/globalScript.js" type="text/JavaScript"></script>
    I cannot figure out where to put the resources folder on my local machine so the pages will link correctly when running a project on my embedded server in JDev. Can anyone please help?

    Hi,
    the embedded OC4J has its configuration files at
    \jdeveloper_installdir\jdev\system\oracle.j2ee.<version>\embedded-oc4j
    However, if you use relative addressing then web applications try to find them relative to the public_html directory of the Viewlayer project
    Frank

  • Problem with .css for Spry menu

    Hi,
    I am having a problem with the Spry menu I have created and edited. All looks great in the Design view of Photoshop however under the Live view or opened using a browser the menu reverts to a list of hyperlinks!
    I have checked the .css link but when using Firefox CSS editor the CSS file for the menu is simply blank?
    Any suggestions would be great!
    Thanks,
    Ozan

    Your SpryMenuBarHorizontal.css needs to be within your SpryAssets folder, which is where it would have been put automatically when you inserted the SpryMenuBar. You can move it back in there using the Files Panel.
    Here is what the file structure needs to look like:
    SpryAssets
    SpryMenuBar.js
    SpryMenuBarHorizontal.css
    cssstyletemplate.css
    index.html (or whatever the name of your page is)
    Hierarchally, the top level of your root folder will show folders for SpryAssets and css and the html pages will be on the same level.
    The Spry assets themselves will be down a level IN the SpryAssets folder, as the styletemplate.css file will be down a level IN the css folder.
    In the head of the document, you will have
         <link rel="stylesheet" type="text/css" href="css/styletemplate.css" />
         <script src="SpryAssets/SpryMenuBar.js" type="text/javascript"> </script>
         <link rel="stylesheet" type="text/css" href="SpryAssets/SpryMenuBarHorizontal.css" />
    At the end, remove the slash before Spry inside the imgDown and imgRight sections:
         <script type="text/javascript">
    <!--
    var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
    //-->
    </script>
    Compare these with your files and file structure and correct any small typos, and they should be correctly linked.
    Beth

Maybe you are looking for