CSS 11500 - Keepalive script to remotely execute a shell script on a server

Unanswered Question


I've been trying to connect the dots but so far I've got nothing close to what I need - based on Cisco's documentation.

I was wondering if it was possible for the CSS switch to connect to a server in order to execute a shell script such as "/opt/whatever/script.sh", which would return a specific value like "OK". Anything different than OK would mean a dead service, and the affected service would be taken out of business (no load balancing play).

Could someone confirm whether it can be done?

Many thanks!!


  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Gilles Dufour Mon, 06/15/2009 - 03:30
User Badges:
  • Cisco Employee,


you could try to use CSS script to telnet to the server, and execute the command.

But that would be ugly.

What you should do, is put your script inside a cgi webpage and let the CSS call the webpage.

Your webserver will then run the script that you want and return to result inside and HTML page to the CSS which can then decide on the status of the server.

If you do not have a web server, you should create a small tcp server to listen to CSS request and again send the result of the script back to css.



This Discussion