CSS scripting - How to build an auto YES answer in script files

Unanswered Question
Sep 3rd, 2008
User Badges:

Hi all,

I have about two hundred services that I would like to remove using a script.

Unfortunately to remove the service you need to confirm it typing Y in console:


CSS-(config)# no service service1

Delete service <service1>, [y/n]:y



How can I bulid this automatic "Yes" answer in my script file?

Best regards,


  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
dario.didio Thu, 09/04/2008 - 02:50
User Badges:
  • Silver, 250 points or more


You can go into expert mode, where no confirmation is asked to make changes to the config of your CSS. Everything is applied directly, without the confirmation question.

you enable it by simply typing


to disable it

CSS#no expert

Have a look at following document:


Hope this helps


This Discussion