How do I get the NCM CLI Device Template to automatically say 'yes' to accept the host key, and then to not say yes when it is not required? I have to log in manually to the device using the NCM username, run the command and accept the key, then it will work from NCM.
We just upgraded to 2024.1.1 and I don't think we had this issue before.
Session trace log:
[08/22/2024 12:48:45.049] <-- copy running scp://**********@10.1.2.3/0uxvjkniekv.config vrf default
[08/22/2024 12:48:45.049] -->copy running scp://**********@10.1.2.3/0uxvjkniekv.config vrf default
[08/22/2024 12:48:45.049] -->
[08/22/2024 12:48:45.049] -->
[08/22/2024 12:48:45.971] -->
[08/22/2024 12:48:45.971] -->The authenticity of host '10.1.2.3 (10.1.2.3)' can't be established.
[08/22/2024 12:48:45.971] -->RSA key fingerprint is SHA256:g6OGUs5kECh+x+IlIFCU3UblOVxxw4B3hPLqtbpxUAM.
[08/22/2024 12:48:45.971] -->Are you sure you want to continue connecting (yes/no/[fingerprint])?
[08/22/2024 12:48:48.711] <-- **********
[08/22/2024 12:48:48.711] -->**********
[08/22/2024 12:48:48.711] -->
[08/22/2024 12:48:48.711] -->Please type 'yes', 'no' or the fingerprint:
[08/22/2024 12:48:50.718] <-- exit
[08/22/2024 12:48:50.718] -->exit
[08/22/2024 12:48:50.718] -->
[08/22/2024 12:48:50.718] -->Please type 'yes', 'no' or the fingerprint:
CLI Device Template
<!-- edited with XML Spy v4.4 U (http://www.xmlspy.com) by () -->
<!--SolarWinds Network Management Tools-->
<!--Copyright 2005 SolarWinds.Net All rights reserved-->
<Configuration-Management Device="Cisco IOS Modified" SystemOID="1.3.6.1.4.1.9" SystemDescriptionRegex="" AutoDetectType="BySystemOid">
<Commands>
<Command Name="RESET" Value="terminal width 0${CRLF}terminal length 0" />
<Command Name="Reboot" Value="reload${CRLF}y${CRLF}y" />
<Command Name="EnterConfigMode" Value="config terminal" />
<Command Name="ExitConfigMode" Value="end" />
<Command Name="Startup" Value="startup" />
<Command Name="Running" Value="running" />
<Command Name="DownloadConfig" Value="Show ${ConfigType}" />
<Command Name="UploadConfig" Value="${EnterConfigMode}${CRLF}${ConfigText}${CRLF}${ExitConfigMode}" />
<Command Name="DownloadConfigIndirect" Value="copy ${ConfigType} ${TransferProtocol}://${StorageAddress}/${StorageFilename} vrf default${CRLF}${CRLF}${CRLF}" />
<Command Name="UploadConfigIndirect" Value="copy ${TransferProtocol}://${StorageAddress}/${StorageFilename} ${ConfigType} vrf default${CRLF}${CRLF}" />
<Command Name="DownloadConfigIndirectSCP" Value="copy ${ConfigType} ${TransferProtocol}://${SCPServerUserName}@${SCPStorageAddress}/${StorageFilename} vrf default${CRLF}${SCPServerPassword}" />
<Command Name="UploadConfigIndirectSCP" Value="copy ${TransferProtocol}://${SCPServerUserName}@${SCPStorageAddress}/${StorageFilename} ${ConfigType} vrf default${CRLF}${CRLF}${SCPServerPassword}" />
<Command Name="EraseConfig" Value="write erase${CRLF}Y" />
<Command Name="SaveConfig" Value="write memory" />
<Command Name="Version" Value="show version" />
<Command Name="Disconnect" Value="exit" />
</Commands>
</Configuration-Management>