Content Switch 11503 http keepalive

Is it possible to look for the http code 200 (OK) and use this as a keepalive ?
eg, if the error code 404 for example is found, then the service is taken down.

problem solved

Similar Messages

  • Cisco Content Switch 11503

    Directed towards any users of this product line out there.
    I have a client who is on the older hardware platform (11100);. and is
    looking to invest in a pair of new switches/balancers. I have the follwoing
    outsntanding questions that i'm needing to confirm on the 11503
    - Source NAT - is this required to always be on? for marketing, reporting and debugging purposes, we're wanting to ensure we can have the client's original ip address preserved once request hits web/app, not rewritten at the content switch.
    - sessions - any concerns running up to 30 - 50k of simultaeous sessions on
    the 11503? require the the addt'l session accel modeule?
    thanks for the input.
    > Byron
    > www.kennedytechgroup.com

    Byron,
    source nat is not a requirement of the CSS.
    It depends how you design your network and where you place the CSS.
    If you do not want source nat, make sure the servers are placed behind the CSS and that the path from server to client always goes through the CSS.
    For the amount of connections, each module can handle up to 200k concurrent connections.
    So, the CSS with only 1 module should be ok.
    Gilles.

  • HTTP keepalive healthcheck help!!!

    hi all,
    i have configure a global keepalive to check a uri into a server using http and port 81 as shown:
    keepalive PreBancs1Keepalive
    type http
    port 81
    method get
    uri "HealthPageTest.aspx"
    ip address 10.0.207.71
    maxfailure 2
    active
    as the default frequency time is 5 secondes, im still seeing the server down, but when i increased the freq to 10 it came up,
    During analysis of keepalive get requests from the content switch to the Health Check page, it would appear that with a keepalive frequency of 5 seconds, the content switch automatically sends a TCP reset 3 seconds after initiating the HTTP keepalive. With a keepalive frequency of 10 seconds the content switch automatically sends a TCP reset 8 seconds after initiating the HTTP keepalive. Is this a configurable value (i.e. the 3 seconds or 8 seconds)? If not what exactly is the algorithm ?
    please help me in this issue...
    thanks in advance,
    hasan odeh

    hasan,
    This is normal behavior:
    Unresponsive KALs are failed 2 sec before the next KAL is scheduled.
    After 1 failure the service is marked as Dying
    The Retry KAL timer begins once a normal KAL has failed.
    Description:
    Your problem lies in the fact that when a kal is sent it takes longer than 5 or 10 seconds for your server to process the request and return the result. The kal must be processed before another one is sent out so it close the request off 2 seconds before the next kal.
    Solution:
    Increase the timer 5/10 seconds is to slow, 15/30/60 seconds is far better. Also keep in mind that you could change the get to a head. This will lead to a quicker response from the server.
    Remark:
    Watch out since you are using a get the page will be hashed and compared, since you are using aspx pages this could lead to failures.
    Hope this helped you out,
    Dimitri
    If you found this post useful don't forget to rate it

  • Content Switch replacing Client IP in IIS Logs

    Hello Guys,
    I have been facing this problem ever since we configured our content switch infront of our web server. The IIS logs in the web server now show the content switch IP in the 'c-ip' column.
    Below is configuration for the website:
    service GlobalInv
      port 80
      protocol tcp
      ip address 172.21.21.31
      active
    owner GlobalWebSite
      content GlobalInv-http
        vip address 172.21.21.52
        add service GlobalInv
        port 80
        protocol tcp
        advanced-balance sticky-srcip
        active
    group GlobalInv
      vip address 172.21.21.52
      add destination service GlobalInv
      active
    Can someone please help me tellin as to how I can have the actual client IP addresses shown in my IIS logs instead of the content switch IP.
    Please this is very important to us.

    Thanks Jim,
    I am sorry but am not an export in CCS, it would be a great help to me if you can instruct me on how I can actually achieve this.
    I have already set the default gateway of my web server to the Content switch.
    My topology is quite simple, both the content switch & the web server are in the DMZ zone (same subnet) and are connected to the same switch. Users from outside & inside the company access our corporate website through the content switch
    Below is the configuration of my content switch (with the related config marked in red):
    CSS-GLOBAL# sh runn
    !Generated on 10/26/2010 23:14:04
    !Active version: sg0810106
    configure
    !*************************** GLOBAL ***************************
      dns primary 172.21.1.13
      dns secondary 192.168.0.50
      ssl associate rsakey eglobal eglobal.pem
      ssl associate cert eglobal-selfsigned eglobal.selfsigned.pem
      ssl associate rsakey glopedia glopedia.pem
      ssl associate cert glopedia glopedia.selfsigned.pem
      ssl associate cert eglobal-versign e-global-verisign.pem
      ssl associate cert glopedia-verisign glopedia-verisign.pem
      ssl associate cert EGlobal-Web EGlobal-Web.pem
      ssl associate cert EGlobal-Web-Chain EGlobal-Web.pem
      ssl associate cert Glopedia-Web-Chain Glopedia-Web.pem
      ftp-record conf 172.16.143.43 shahim des-password 1bnc2hnduhmgjend /
      ip route 0.0.0.0 0.0.0.0 172.21.21.1 1
      ip route 172.21.1.0 255.255.255.0 172.21.21.4 1
      ip route 172.16.0.0 255.255.0.0 172.21.21.4 1
      ip route 192.168.0.0 255.255.255.0 172.21.21.4 1
    !************************* INTERFACE *************************
    interface e1
      description "To Global Switch Foundary"
    !************************** CIRCUIT **************************
    circuit VLAN1
      ip address 172.21.21.49 255.255.255.0
    !*********************** SSL PROXY LIST ***********************
    ssl-proxy-list SSL-Proxy-List
      ssl-server 51
      ssl-server 51 rsakey eglobal
      ssl-server 51 vip address 172.21.21.51
      ssl-server 51 cipher rsa-with-rc4-128-md5 172.21.21.51 80 weight 10
      ssl-server 51 cipher rsa-with-rc4-128-sha 172.21.21.51 80 weight 8
      ssl-server 51 cipher rsa-export-with-rc4-40-md5 172.21.21.51 80 weight 5
      ssl-server 50
      ssl-server 50 rsakey glopedia
      ssl-server 50 vip address 172.21.21.50
      ssl-server 50 cipher rsa-with-rc4-128-md5 172.21.21.50 80 weight 10
      ssl-server 50 cipher rsa-with-rc4-128-sha 172.21.21.50 80 weight 8
      ssl-server 50 cipher rsa-export-with-rc4-40-md5 172.21.21.50 80 weight 5
      ssl-server 50 urlrewrite 1 *
      ssl-server 51 urlrewrite 1 *
      ssl-server 51 rsacert EGlobal-Web-Chain
      ssl-server 50 rsacert Glopedia-Web-Chain
      active
    !************************** SERVICE **************************
    service E-Global-https
      ip address 172.21.21.32
      port 80
      protocol tcp
      active
    service Ghalia
      port 81
      protocol tcp
      ip address 172.21.21.31
      active
    service GlobalInv
      port 80
      protocol tcp
      ip address 172.21.21.31
      active
    service dms
      ip address 172.21.1.115
      port 80
      protocol tcp
      keepalive type http
      active
    service eglobal-http
      port 80
      protocol tcp
      ip address 172.21.21.32
      keepalive type http
      active
    service email
      ip address 172.21.1.122
      port 80
      protocol tcp
      keepalive type http
      active
    service email123
      ip address 172.21.1.123
      port 80
      protocol tcp
      keepalive type http
      active
    service glopedia
      ip address 192.168.2.32
      port 80
      protocol tcp
      active
    service glopedia-expapps
      ip address 192.168.2.32
      port 4028
      protocol tcp
      active
    service secure-transfer
      type redirect
      no prepend-http
      ip address 172.21.21.32
      keepalive type none
      domain https://www.e-global.com.kw
      active
    service ssl-eglobal
      type ssl-accel
      keepalive type none
      slot 2
      add ssl-proxy-list SSL-Proxy-List
      active
    service workflow
      ip address 172.21.21.44
      port 80
      protocol tcp
      keepalive type http
      active
    !*************************** OWNER ***************************
    owner EGlobal
      content eglobal-http
        vip address 172.21.21.51
        no persistent
        protocol tcp
        port 80
        url "/*"
        add service eglobal-http
        active
      content eglobal-https
        vip address 172.21.21.51
        protocol tcp
        port 443
        add service ssl-eglobal
        active
    owner GhaliaWebSite
      content Ghalia-http
        vip address 172.21.21.53
        add service Ghalia
        protocol tcp
        port 80
        active
    owner GlobalWebSite
      content GlobalInv-http
        vip address 172.21.21.52
        add service GlobalInv
        port 80
        protocol tcp
        advanced-balance sticky-srcip
        active
    owner Glopedia
      content bpmweb
        vip address 172.21.21.50
        url "/workflow"
        protocol tcp
        port 80
        redirect "/bpmweb"
        active
      content cyberdocs
        vip address 172.21.21.50
        add service dms
        protocol tcp
        port 80
        url "/CyberDocs*"
        active
      content dms
        vip address 172.21.21.50
        url "/dms*"
        redirect "/CyberDocs"
        protocol tcp
        port 80
        active
      content email
        vip address 172.21.21.50
        no persistent
        url "/email"
        protocol tcp
        port 80
        redirect "/owa"
        active
      content glopedia-expapps
        vip address 172.21.21.50
        add service glopedia-expapps
        no persistent
        port 4028
        protocol tcp
        active
      content glopedia-http
        vip address 172.21.21.50
        add service glopedia
        no persistent
        protocol tcp
        port 80
        url "/*"
        active
      content glopedia-https
        vip address 172.21.21.50
        add service ssl-eglobal
        protocol tcp
        port 443
        active
      content owa
        vip address 172.21.21.50
        add service email123
        protocol tcp
        port 80
        url "/owa*"
        active
      content workflow
        vip address 172.21.21.50
        add service workflow
        no persistent
        protocol tcp
        port 80
        url "/bpmweb*"
        active
    !*************************** GROUP ***************************
    group Ghalia
      vip address 172.21.21.53
      add destination service Ghalia
      active
    group GlobalInv
      vip address 172.21.21.52
      add destination service GlobalInv
      active
    group dms
      vip address 172.21.21.50
      add destination service dms
      add destination service email
      add destination service workflow
      add destination service glopedia
      add destination service email123
      add destination service glopedia-expapps
      active
    group eglobal
      vip address 172.21.21.51
      add destination service eglobal-http
      active

  • Cisco css http keepalive is not working with GET command

    Dear all
    i have Cisco Css connected to Dell Server (via switch)
    Cisco CSS - 192.168.1.3 and Dell Server - 192.168.1.5
    Dell server is setup with windows 2009R2 and Apache HTTPD is version 2.2
    This server is dedicated to host multiple doamins with Apache lik
    www.abc.co.uk
    www.xyz.co.uk
    Now the clinet wants to setup the http keepalive  with specfic web page like /testpage.html  for all these domains. i have teseed with single URI. it is working the comamnds are
    config)# service serv1
    (config-service[serv1])# ip address 192.168.1.5
    (config-service[serv1])# keepalive type http
    (config-service[serv1])# keepalive method head    ( get i have not used due to hash mismatch with apche server, if i use GET it is not working)
    (config-service[serv1])# keepalive uri "/testpage.html"
    (config-service[serv1])# active
    It is working with single URI.  but how can i do the same thing for multiple doamins ?
    for multiple doamins do i need use script ? or can i use with commands ?
    if i need to use script the script is
    !no echo
    ! Filename: httptag-test
    ! 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: httptag-test \'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.1\nHost: ${HostTag}\n\n"
    ! Send the HEAD request for the web page
    set EXIT_MSG "Send: Failed"
    socket send ${SOCKET} "HEAD ${WebPage} HTTP/1.1\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}sh w
    exit script 0
    in the script i have not used GET becasue, when CSS send GET request to apache it use hash, but apache is not able to respond with same hash and it shows that website is down. more information- click below url
    http://www.cisco.com/en/US/docs/app_ntwk_services/data_center_app_services/css11500series/v7.40/command/reference/CmdKeepC.html#wp1139668
    (config-keepalive) method
    I have uploaded in CSS with httptag-test file and applied these commands
    service comp.brit.co.uk-80
      keepalive port 80
      ip address 192.168.1.5
      keepalive frequency 10
    keepalive maxfailure 2
    keepalive retryperiod 10
    keepalive type script httptag-test "192.168.1.5 /testpage.html  www.abc.co.uk
    keepalive type script httptag-test "192.168.1.5 /testpage.html  www.xyz.co.uk
    but this script is not working
    my question is:
    1.do i need use script only to setup http keepalvie with webpage for multiple domains ?
    2.with out using script is there any solution like CICSCO  CSS commands  to setup http uril for multiple domains which are on 1 singl server.
    please help me asap

    Hello Muhammad,
    If you wish to use multiple domains for a URI  keep-alive check, and perform a HEAD request what Daniel mentioned is  correct.  You have to use a scripted keep-alive check on the service.  However, you should not use the default "ap-kal-httptag" script to do so  as it's limited to only 1 website (unless you modify the script).  You're best bet would be using the "ap-kal-httplist" script on the CSS  as it allows the checking of 2 different websites along with a webpage  to check for each site using HTTP HEAD method.
    !no echo
    ! Filename: ap-kal-httplist
    ! Parameters: Site1 WebPage1 Site2 WebPage2 [...]
    ! Description:
    !    This script will connect a list of sites/webpage pairs.  The
    !   user must simply supply the site, and then the webpage and
    !   we'll attempt to do an HTTP HEAD on that page.
    ! Failure Upon:
    !   1. Not establishing a connection with the host.
    !   2. Not receiving a status code 200 on the HEAD request on any
    !      one site.  If one fails, the script fails.
    ! Make sure the user has a qualified number of arguments
    if ${ARGS}[#] "LT" "2"
            echo "Usage: ap-kal-httplist \'WebSite1 WebPage1 WebSite2 WebPage2 ...'"
            exit script 1
    endbranch
    while ${ARGS}[#] "GT" "0"
            set Site "${ARGS}[1]"
        var-shift ARGS
        if ${ARGS}[#] "==" "0"
            set EXIT_MSG "Parameter mismatch: hostname present but webpage was not"
            exit script 1
        endbranch
        set Page "${ARGS}[1]"
        var-shift ARGS
        no set EXIT_MSG
        function HeadUrl call "${Site} ${Page}"
    endbranch
    exit script 0
    function HeadUrl begin
    ! Connect to the remote Host
    set EXIT_MSG "Connect: Failed to connect to ${ARGS}[1]"
    socket connect host ${ARGS}[1] port 80 tcp 2000
    ! Send the head request
    set EXIT_MSG "Send: Failed to send to ${ARGS}[1]"
    socket send ${SOCKET} "HEAD ${ARGS}[2] HTTP/1.0\n\n"
    ! Wait for the status code 200 to be given to us
    set EXIT_MSG "Waitfor: Failed to wait for '200' on ${ARGS}[1]"
    socket waitfor ${SOCKET} " 200 " 2000
    no set EXIT_MSG
    socket disconnect ${SOCKET}
    function HeadUrl end
    Rather  then modify the default "ap-kal-httplist" script on the CSS I would  simply define the arguments within the service configuration itself.   Something like the following (using your service example):
    service dell-192.168.1.5
    ip address 192.168.1.5
    keepalive type script ap-kal-httplist "www.abc.co.uk /testpage.html www.xyz.co.uk /testpage.html"
    active
    As  long as the server is configured to reply to host headers, and the page  is configured to retuen a "200 OK" the above service configuration  should work. If there are any errors simply run "show service  " to view why there was a failure. If there is a  failure, and the output from the command specified shows a line number  run the following command against the script to view at what point  (line) did the failure occur:
    show script ap-kal-httplist line-numbers
    Hope this helps!
    - Jason Espino

  • Specs for 11500 Content Switches

    I am looking for more specs on the 11500 series content switches. Specs such as http connections per second, tcp connections total.

    Ted,
    The following link:
    http://www.cisco.com/en/US/products/hw/contnetw/ps792/prod_bulletin09186a008017dc5d.html
    states that "A Cisco CSS 11506 can now achieve more than 45,000 TCP connections per second and, if configured with 4 SSL modules, can attain over 4000 SSL transactions per second."
    Is that what you are looking for?
    Keep in mind that performance will be slower with layer 5 rules than strictly layet 4 rules.
    -Steve

  • URL redirect - how to switch from https to http

    Hi, all.
    We have some requirement that the portal session be switched to https on some iviews while the rest of the contents are in http. I am thinking of using url redirect on the web dispatcher.
    What I found is that the url redirect from http to https works great. Now if I want to switch back to http, the redirect doesn't work. Note that the http port is 80 and https port is 443 on the web dispatcher. To test, here is the parameter I did to switch from http to https. This works and transforms the url from http://ozonehomeep3.xxxxxxxxx/irj/portal/zsap_xxxxx to https://ozonehomeep3.xxxxxxxxx/irj/portal/zsap_xxxxxxxxxxxx
    icm/HTTP/redirect_0 = PREFIX=/, FROM=/irj/portal/zsap_, FOR=ozonehomeep3, FROMPROT=http, PROT=https, HOST=ozonehomeep3.XXXXXX
    If I flip it back the other way:
    icm/HTTP/redirect_0 = PREFIX=/, FROM=/irj/portal/zsap_, FOR=ozonehomeep3, FROMPROT=https, PROT=http, HOST=ozonehomeep3.XXXXXX
    When I connect using the url https://ozonehomeep3.xxxxxxxxx/irj/portal/zsap_xxxxxxxxxxxx, it ignores the parameter and the redirect to http did not happen.
    What is wrong?
    Thanks,
    Jonathan.

    Hello,
    I've had a similar problem for one of my customers.
    I've tried to do it on a root level, just Https://FQDN:port_https/ to http://FQDN:Port_http/
    I've used this parameter to solve it:
    icm/HTTP/redirect_0 = PREFIX=/, FOR=FQDN, FROMPROT=HTTPS, HOST=FQDN, PORT=80, PROT=http
    maby you should try:
    icm/HTTP/redirect_0 = PREFIX=/, FROM=/irj/portal/zsap_, FOR=FQDN, FROMPROT=HTTPS, HOST=FQDN, PORT=80, PROT=http, TO=/irj/portal/zsap_
    You should also verify that the standard http port (80) are open in the firewall from the outside, just take a telnet session to FQDN and port 80
    to quickly determined if the firewall policy are right.
    Good luck!
    Kind Regards
    Håvard Fjukstad.

  • Tabs and content switcher

    We're using a lower version of adf (10g) and using uix. Anybody here who has a sample of using tabs with content switcher.
    Basically I want to have 2 fixed tabs and when I click a tab, the content is shown in the same page. The content of the
    page basically consists of just read-only VO table..
    Appreciate any help.
    Thanks!

    Hi SarahShay,
    You could use JavaScript client object model to retrieve blog posts. You could use the getItemById(id) function to return a single item, or use the getItems(query) function to return multiple items.
    An official documentation:
    https://msdn.microsoft.com/en-us/library/office/hh185007(v=office.14).aspx
    A similar post:
    http://blogs.msdn.com/b/sharepointdev/archive/2011/07/19/working-with-the-ecmascript-client-object-model-jsom-in-sharepoint-2010-part-3-nikhil-sachdeva.aspx
    Best Regards,
    Dean Wang
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • SAP talking to another sever that is load balancing (with a content switch)

    Hi All,
    We are retrieving some files from an external server in SAP from an ABAP report using HTTP. The external server is also load balacing on 3 servers. There is a content server (proxy server) which carries the sap request to one of the three servers.
    We are able to retrieve the files when we directly connect to one of the three server, However when SAP calls the content server, we get a HTTP code error -404 Status - Not found. Here is the excerpt of code where this error is coming up-
    CALL METHOD w_http_client->response->get_status
    IMPORTING
    code = lv_http_code
    reason = lv_status_text.
    The external server (content server) is supposed to be transparent and thus SAP should be able to connect. But this does not happen.
    Any ideas?
    Thanks in advance! Liz

    We are now connecting SAP directly one server since we could not connect to the content switch.
    Thanks, Liz

  • Switching between https and http requests

    Hi,
    Our application is built using ADF 10.1.3
    This application need to be integrated with an in house built single sign on system. ( SSO system is built in C# and .NET)
    This single sign on system only understand https request. Once user is validated against single sign on system, our application's authorization page is called in HTTPS mode. Once the user is authorized, he is forwarded to home page. While forwarding to home page, we want to convert the HTTPS request to HTTP.
    Currently once the user is authenticated, all requests are happening in HTTPS mode.
    We do not know how to make http request from existing https requested page.
    Any help is appreciated.
    Thanks
    Ranajit

    Hi,
    the way to do this is by redirecting the call from a PhaseListener or command button. The solution Avrom refers to is a PhaseListener that uses XML configuration file to determine whether or not the page you are navigating to requires https or http. The code that handles the protocol switch is printed below
      * Determines if the requested page requires SSL and if the current protocol
      * meets this need. If not the protocol is switched between http and https
      * @param viewId
      * @param pageRequiresSSL
      public void handleProtocolSwitch(String viewId, boolean pageRequiresSSL)
        ExternalContext exctx = FacesContext.getCurrentInstance().getExternalContext();
        boolean isSecureSSLChannel = ((HttpServletRequest)exctx.getRequest()).isSecure();
        // pages that require SSL and SSL is on, or pages that don't require
        // SSL but SSL is on and should be kept
        if (pageRequiresSSL && isSecureSSLChannel || !pageRequiresSSL && isSecureSSLChannel && isKeepSSLMode) {
        printDebugMessage("Page requires SSL = "+pageRequiresSSL+", channel is secure = "+isSecureSSLChannel+", is keep SSL = "+isKeepSSLMode);
        printDebugMessage("No protocol change required");
        // page requires SSL and SSL is not active. Switch to SSL.
        if (pageRequiresSSL && !isSecureSSLChannel) {
          printDebugMessage("Page requires SSL = "+pageRequiresSSL+", channel is secure = "+isSecureSSLChannel);
          printDebugMessage("Protocol change required to use https");
          switchToHttps(viewId);
        // switch to HTTP is page doesn't require SSL and channel isn't secure
        // and isKeepSSLMode is false
        if (!pageRequiresSSL && !isKeepSSLMode && isSecureSSLChannel) {
          printDebugMessage("Page requires SSL = "+pageRequiresSSL+", channel is secure = "+isSecureSSLChannel+", is keep SSL = "+isKeepSSLMode);
          printDebugMessage("Protocol change required to use http");
          switchToHttp(viewId);
        if (!pageRequiresSSL && !isSecureSSLChannel) {
          printDebugMessage("Page requires SSL = "+pageRequiresSSL+", channel is secure = "+isSecureSSLChannel);
          printDebugMessage("No protocol change required");
      * Switches from https to http using a redirect call
      * @param viewId
      private void switchToHttp(String viewId) {
          FacesContext facesContext = FacesContext.getCurrentInstance();
          ExternalContext exctx = facesContext.getExternalContext();
          ViewHandler vh = facesContext.getApplication().getViewHandler();
          String pageURI = vh.getActionURL(FacesContext.getCurrentInstance(), viewId);
          //redirect to http URL
          String remoteHost = getHostNameFromRequest();
          printDebugMessage("Switch to http on host "+ remoteHost);
          try {
              String port = httpPort.equalsIgnoreCase("80") ? "" : ":" + httpPort;
              String url = "http://" + remoteHost + port + pageURI;
              printDebugMessage("Redirecting to http URL "+ url); 
              //TODO check request Map
               this.printDebugMessage(" Content size of RequestMap before redirect "+exctx.getRequestMap().size());
              exctx.redirect(url);         
          } catch (IOException e) {
              printDebugMessage("Redirect to http port failed "+ e.getMessage());
      * switches to https using a redirect call
      * @param viewId
      private void switchToHttps(String viewId) {
          FacesContext facesContext = FacesContext.getCurrentInstance();
          ExternalContext exctx = facesContext.getExternalContext();
          ViewHandler vh = facesContext.getApplication().getViewHandler();
          String pageURI = vh.getActionURL(FacesContext.getCurrentInstance(), viewId);
          //redirect to https URL
          String remoteHost = getHostNameFromRequest();
          printDebugMessage("Switch to SLL/https on host "+ remoteHost);
          try {
              String port = httpsPort.equalsIgnoreCase("443") ? "" : ":" + httpsPort;
              String url = "https://" + remoteHost + port + pageURI;
              printDebugMessage("Redirecting to https URL "+ url);       
              //TODO check request Map
              this.printDebugMessage(" Content of RequestMap before redirect "+exctx.getRequestMap().size());
              exctx.redirect(url);         
          } catch (Exception e) {
              printDebugMessage("Redirect to http port failed "+ e.getMessage());
      * @return the hostname of the page request
      private String getHostNameFromRequest() {
          ExternalContext exctx = FacesContext.getCurrentInstance().getExternalContext();
          String requestUrlString = ((HttpServletRequest)exctx.getRequest()).getRequestURL().toString();
          URL requestUrl = null;
          try {
              requestUrl = new URL(requestUrlString);
          } catch (MalformedURLException e) {
              e.printStackTrace();
          String remoteHost = requestUrl.getHost();
          return remoteHost;
      }If your container doesn't support session sharing between http and https then the session is renewed. In OC4J you will have to configure this.
    Frank

  • Multiple context on Cisco Content Switching

    Hi Everyone
    I had new case with Cisco Content Switching design. The current network has two Cisco Content Module (CSM) and each of them response for switching content on one Vlan.
    Now i want to reconfigure it, to meet the redundancy requirement. But i don't know Cisco Content Module have same idea of design with ACE on Route Mode.
    I want configure CSM with two or more vlan pair in routed mode and it can HA between each other.
    Thanks
    Phai La Quy

    Hi Phai,
    Yes you can configure CSM in routed mode with clients in one VLAN and server in another. Pasting the link for your reference. You can find more in routing and switching guide.
    http://www.cisco.com/c/en/us/support/docs/interfaces-modules/content-switching-module/26220-csm-config.html
    Regards,
    Kanwal

  • Content Switch sending request to both servers

    Hi,
    I have following configuration on the content switch and it send the request to both the servers. due to two tcp stream from going via two different server it second request fails and generate false alerts.
    It was working fine but since last week it is giving lot of false alerts.
    content StatePMVQLMVMS_8PR3
        vip address X.X.X.X
        add service W8PRAKLQLM01_StateVMS_8HTTP3
        add service W8PRAKLQLM02_StateVMS_8HTTP3
        advanced-balance sticky-srcip
        port XXXX
        protocol tcp
        active
    Please let me know what should I check to get this fixed. I hardly work with content switch.
    Is there a way I can set up to send all the request to primary server and when it dies then and only then it send a request to secondary and when primary comes back online it restore back to primary ????
    I am fine if it does not load balance .. but at least it stop sending false alerts..
    Thanks.

    Hi Nilay,
    You have configured sticky based on src-ip which means that as long as src IP remains same  the user would be sent to the same server.
    Now a situation where CSS starts sending the request to different servers could be due to the fact that sticky table was full. In that situation a new connection from same user will be load balanced according to the LB method.  If the sticky table is full and none of the sticky entries has expired, the CSS rejects the new sticky request.
    You can use sticky-inact-timeout to ensure that sticky entries flush out after they have been inactive for some amount of time.
    Please visit the below link for more details about it.
    http://www.cisco.com/en/US/docs/app_ntwk_services/data_center_app_services/css11500series/v8.20/configuration/content_lb/guide/cntntgd.pdf
    Regards,
    Kanwal

  • Content Switch Design diagrams

    Hi
    Can anyone help in providing the web links/articles (with diagrams) that helps to visualize/design a network topology with Cisco 11500 Content Switch & NetApp Cache Engines for load balancing.
    Thanks in advance.
    Regards // Anoop

    if you need reverse-proxy caching here is a good link
    http://www.cisco.com/en/US/products/hw/contnetw/ps792/products_configuration_example09186a00800941e8.shtml
    For transparent caching, here is another example for a cSS11800 but it is valid for any CSS.
    http://www.cisco.com/en/US/products/hw/contnetw/ps789/products_configuration_example09186a0080094352.shtml
    Gilles.

  • What is difference between content switching, content routing...

    Hi friends,
    I want to know differences between content switching, content routing...
    I want to know too, if a Content Engine 566 can caching FTP, HTTPS, Video and so on....
    Regards and thank you.
    Raúl.

    A content engine can cache files transfered via ftp but not https [as the content is encrypted].
    It can cache whatever file, including video, audio, ...
    Content routing, content switching are just names.
    They refer to how the traffic will be intercepted and forwarded to the content engine.
    You could simply use a proxy solution and have your users setup their browser to use the content engine as a proxy, or you could transparently intercept http/ftp traffic via a router running wccp, or you could use a Layer7 device like a CSS to intercept the traffic and redirect to the content engine.
    Regards,
    Gilles.

  • How do I change the content-type in http header when using JAX-WS?

    I need to change Content-Type in http Header. I am using JAX-WS to invoke web service call. Can someone tell me how to do it? Thanks a lot!

    LabVIEW does so many wonderful things, but the inability to perform what should be a simple task, such as upgrade a RT chassis within a LV Project, bewilders me. This is going to cost me hours, I just know it...
    Is there anything on the Idea Exchange for this?? A quick search shows nothing, so maybe I'll add an entry.
    Thoric (CLA, CLED, CTD and LabVIEW Champion)

Maybe you are looking for

  • TS1702 How To Play Call Of Duty Multiplayer In A Window

    Everytime I open up COD which I just got it jumps into fullscreen. I know that Command Tab will do it but for multiplayer when I try the key combination it just quits the game... Any help?

  • Multi-clip Question

    I'm using Multi-clip in FCP 7 to edit a two cam shoot. I've noticed that after rendering a Multi-clip video track, the independent camera views no longer show in the Viewer. They show when playback is stopped but when playback starts, the Viewer appe

  • Post Disk Restore Issues

    I have restored my disk from a backup after the previous one failed. Now when I open iWeb the series of pages on the left hand side are all red as if they haven't been updated. The fact of the matter is, if I send this off to publish it will remove s

  • Personalization Server And  XML Parsers

    hello there, I am a new user of Weblogic commerce suite 2.0. WE want to develop a portal by using above mentioned S/W. We want to get news from Reuters(which is XML data) and want to show it on our page. For this purpose do we need a XML parser or WL

  • Sudden Slow Down

    Yesterday morning (6/10), for no apparent reason, my iMac G5 began to perform very slowly. Documents and applications are taking longer than usual to open and close. Occasionally, working online will cause the computer to freeze up altogether - forci