cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
863
Views
0
Helpful
2
Replies

Cisco CSS 11503 Service Dependency?

amohammed
Level 1
Level 1

Hi All,

How do i make multiple service ports associated with one service?  The application i would like to monitor depends on multiple ports to be running on the same server to function.

APPLICATION VIP --> SERVER IP ADDRESS, TCP Ports 8080,5004,5005

If one of the ports is down the service should be down.

i am also using the GSLB feature, where i have a DNS name assoicated with a content rule.  I am thinking to use a scripted keepalive to monitor multiple ports, but was wondering i there was an easier way to do it.

Any ideas will be appreciated

sample config

!************************** SERVICE **************************
service DR-ASYLIVE1
  ip address 172.17.32.10
  protocol tcp
  keepalive type tcp
  keepalive frequency 10
  port 22
  keepalive port 22
  active

service DR-WEBSVR1
  ip address 172.17.32.2
  keepalive type http
  keepalive port 80
  keepalive frequency 10
  port 80
  protocol tcp
  active

service HQ-ASYLIVE1
  ip address 172.16.32.10
  port 5004
  protocol tcp
  keepalive frequency 10
  keepalive type tcp
  keepalive port 5004
  active

service HQ-WEBSVR1
  ip address 172.16.32.2
  keepalive type http
  port 80
  keepalive frequency 10
  protocol tcp
  keepalive port 80

!*************************** OWNER ***************************
owner GSLB
  dns both
        
  content ASYCUDA
    add service HQ-ASYLIVE1
    add dns carib.test123.com 
    add service HQ-WEBSVR1
    vip address 190.213.6.155
    dnsbalance preferlocal
    active

  content WEBSITE
    add dns www.test123.com
    vip address 190.213.6.155
    add service HQ-WEBSVR1
    dnsbalance preferlocal
    port 80
    protocol tcp
    active

!**************************** ACL ****************************
acl 1
  clause 10 permit any 172.16.0.0 255.240.0.0 destination content GSLB/ASYCUDA prefer HQ-ASYLIVE1,DR-ASYLIVE1
  clause 50 permit any any destination any
  clause 20 permit any 172.16.0.0 255.240.0.0 destination content GSLB/WEBSITE prefer HQ-WEBSVR1,DR-WEBSVR1
  apply circuit-(VLAN109)
  apply dns

acl 10
  clause 10 permit any any destination any
  apply circuit-(VLAN102)
  apply circuit-(VLAN104)
  apply circuit-(VLAN103)
  apply circuit-(VLAN105)
  apply circuit-(VLAN1)

regards,

Aleel

1 Accepted Solution

Accepted Solutions

jackwikinski
Level 1
Level 1

Hi Aleel,

The easiest thing to do is have a file which checks the status of the server.

The standard way to do that is via a file called keepalive.htm. The CSS checks this file via a get command.

If this file is not accessible and the listening port goes down than the service will be shutdown and no connections will be directed

to it by the load balancer.

The syntax of the command in your case will be as follows:

service DR-WEBSVR1

ip address 172.17.32.2

keepalive type http

keepalive port 80

keepalive frequency 10

************************

keepalive method get

keepalive uri "/keepalive.htm"

******************************

port 80

protocol tcp

active

Hope this helps.

Jack.

View solution in original post

2 Replies 2

jackwikinski
Level 1
Level 1

Hi Aleel,

The easiest thing to do is have a file which checks the status of the server.

The standard way to do that is via a file called keepalive.htm. The CSS checks this file via a get command.

If this file is not accessible and the listening port goes down than the service will be shutdown and no connections will be directed

to it by the load balancer.

The syntax of the command in your case will be as follows:

service DR-WEBSVR1

ip address 172.17.32.2

keepalive type http

keepalive port 80

keepalive frequency 10

************************

keepalive method get

keepalive uri "/keepalive.htm"

******************************

port 80

protocol tcp

active

Hope this helps.

Jack.

Hi Jack,

The solution looks like it will work.  I would have to figure how to write a script to monitor the services.

thanks,

Aleel

Review Cisco Networking for a $25 gift card