ansible - cisco IOS and “reload” command

前端 未结 5 514
梦如初夏
梦如初夏 2021-01-27 02:37

I would like to send command \"reload in \" to Cisco IOS, but that specific command needs to be confirmed like below:

#reload in 30
Reload scheduled in 30 minut         


        
5条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-27 03:02

    It appears that the simplest method would be to use the 'raw' module to send raw SSH commands to the device.

    This avoids having to use expect and having to play around with the ios_command module.

    The raw module will run the commands without caring what responses or prompts the device.

提交回复
热议问题