cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
505
Views
0
Helpful
1
Replies

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

lindacitron
Level 1
Level 1

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 1

Gilles Dufour
Cisco Employee
Cisco Employee

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.

Review Cisco Networking for a $25 gift card