The problem here is that the device you are using (and this would probably go for most of the device types - if not all in CatTools), if expecting to receive the hostname prompt after sending the 'copy configuration 220.127.116.11 user DWDM overwrite yes' command. Your device however is sending the 'Enter FTP password for user 'DWDM': prompt which the device script does not recognise, so treats this as an unexpected response.
In order to address this issue, the device script(s) themselves would need to be modified to check for the 'Enter FTP password for user 'DWDM': command response so it treats this as a valid response.
This would need to be a feature request. Please raise a support ticket and ensure you provide:
- (PuTTY) captures of a manual session to execute these commands
- Full CatTools diagnositics (support will explain how to do this if you are unsure), of what happens at present when running the commands in CatTools.
- The name of the CatTools device type you are using.