cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
695
Views
0
Helpful
5
Replies

Help w/Keepalive Script

howard.yang
Level 1
Level 1

Hi,

I need to monitor returned error codes 500, 502, 503 and 504 as a keepalive condition.

I found this link:

http://www.cisco.com/warp/public/117/script_500_series.html

which seems to do what I'm looking for.

But I need help implement this scritp: create, upload, run...

I'm newbie w/CSS, any help would be appreciated.

Best Regards,

Howard

5 Replies 5

howard.yang
Level 1
Level 1

Hi Gilles,

I've managed to upload the script on this link:

http://www.cisco.com/warp/public/117/script_500_series.html

But now I'm having trouble using this keepalive script:

service la-bobca1

ip address 172.16.27.30

protocol tcp

port 8085

keepalive type script ap-kal-http-response "la-bobca1 http://la-bobca1:8085/wijsp/ 500 590"

active

CSS11501# sh service la-bobca1

Name: la-bobca1 Index: 7

Type: Local State: Down

Rule ( 172.16.27.30 TCP 8085 )

Session Redundancy: Disabled

Redirect Domain:

Redirect String:

Keepalive: (SCRIPT ap-kal-http-response 5 3 5 )

Script Arguments: "la-bobca1 http://la-bobca1:8085/wijsp/ 500 590"

Script Error: Script error in line: 29

Script Run Time: 0 seconds

Script Using Output parsing: No

Last Clearing of Stats Counters: 06/22/2005 14:34:15

Mtu: 1500 State Transitions: 13

Total Local Connections: 283 Total Backup Connections: 0

Current Local Connections: 0 Current Backup Connections: 0

Total Connections: 283 Max Connections: 65534

Total Reused Conns: 0

Weight: 1 Load: 255

DFP: Disable

I know TAC doesn't support custom script, can anyone help with this particular script?

Thanks in advance...

Regards,

Howard

Hi Howard,

have you copied also included the llama part in your script?

I just counted the lines on the page and line 29 is the llama part which is not part of the keepalive script. If this is true just remove those lines and everyhting should be fine.

Otherwise please upload the script and we'll have a look at it.

Kind Regards,

Joerg

the llama part of the script is required.

This is how the CSS collect the webpage in this particular script.

I think the problem is the missing 'use-output' paramter when you configure the script in the service.

This paramter tells the CSS to use the output of non-script command line like llama.

Give it a try and let us know the result.

Thanks,

Gilles.

Don't forget to rate our answers :-)

Ups,

seems I missed something in the script. Have never seen to enter llama from a keepalice script. Will check it very very detailed once more.

Kind Regards,

Joerg

Gilles Dufour
Cisco Employee
Cisco Employee

Howard,

all you need to do is copy the script in a text file.

Then import the file with the command 'copy ftp script '

Once the script has been loaded, you can use it under your service with the command

'keepalive type script '

For more information about the script language, refer to the following document :

http://www.cisco.com/en/US/products/hw/contnetw/ps792/products_configuration_guide_chapter09186a0080157804.html

Regards,

Gilles.

Review Cisco Networking for a $25 gift card