Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

What is the best way to implement CSS UDP service keepalive?

I would like a way to do this without changing the application. Below I found one way to do this in this forum but can one do this? I didn't see a way in the css scripting language to check for the ICMP error.

Is it possible to write such CSS script:

- to send UDP traffic to UDP port on server,

- if there is no answer -service is active,

- if ICMP port unreachable is received - server is declared down.

If this isn't possible, is there another way to do this?

Thanks

Linda

1 REPLY
Cisco Employee

Re: What is the best way to implement CSS UDP service keepalive?

Linda,

the above is not possible.

The solution is to send real application data and inspect the response.

You can do this by sniffing a request from a client directly to a server, and capturing the response as well.

Extract the data portion - beyond the udp header, and convert to a chain of hex numbers.

Use those numbers in the socket send function with the raw option.

You can find an example of such a script on your CSS by doing a

sho script ap-kal-dns

To analyse the response, you can also use socket receive with the raw option.

Regards,

Gilles.

250
Views
0
Helpful
1
Replies
CreatePlease login to create content