1751694 Members
5023 Online
108781 Solutions
New Discussion юеВ

Re: Backup switches config FAILED

 
Daniel96
Advisor

Backup switches config FAILED

Hi,

After upgrading to iMC PLAT 7.3 (E0705P10) 

the backups failed with an error: SSH authenticated failure

I tested in all the switches the SSH credentials and the test working. Also the SNMP credentials correct.

The transfer protocol is SFTP.

this part of the log:

ActionName = backup_running_config
InputParam = TFTPFile=C:/Program Files/iMC/server/tmp/running_3332637252.cfg?_?TFTPServer=10.1.0.29?_?UnitList=?_?VpnName=
OutputParam =
CmdResp =
ErrorMessage =
ActionResult = 19

2021-05-23 10:11:54.411 [WARNING (32)] [THREAD(11140)] [CComponentAdapter::checkAccessTypeMatchTransferProtocol()] transfer protocol does not match access type,iTransferProtocol=3,iAccessType=3
2021-05-23 10:11:54.411 [WARNING (32)] [THREAD(11140)] [CComponentAdapter::isDevSupportServiceAction()] transfer protocol does not match access type,ServiceName = ConfigBackup,commandName=Custom,iTransferProtocol=3,iAccessType=3
2021-05-23 10:11:54.441 [WARNING (2023)] [THREAD(11140)] [CScriptTool::getDevAdapterNameFromDB()] reader no data, sql: select vendor_name,adapter_name,error_code from tbl_dev_adapter where component_name = 'Custom' and dev_id = 78 and adapter_type = 0
2021-05-23 10:11:54.452 [INFO (0)] [THREAD(11140)] [CComponentAdapter::discoverDeviceAdapter()] H3C oem HP device,try HP vendor adapter again.
2021-05-23 10:11:54.452 [ERROR (18)] [THREAD(11140)] [CComponentAdapter::getDevAdapterName()] fail to call discoverDeviceAdapter()
2021-05-23 10:11:54.452 [ERROR (18)] [THREAD(11140)] [CComponentAdapter::isDevSupportServiceAction()] fail to call getDevAdapterName().DevID=78,ServiceName = ConfigBackup
2021-05-23 10:11:54.457 [INFO (0)] [THREAD(11124)] [isH3CXrnDevice()] Device: 10.1.0.85 get vb list failed, iRet:-102
2021-05-23 10:11:54.457 [INFO (0)] [THREAD(11124)] [CThirdPartCfgfileMgr::backupRunning()] Begin to backup running cfgfile ...
2021-05-23 10:11:54.457 [WARNING (32)] [THREAD(11140)] [CComponentAdapter::checkAccessTypeMatchTransferProtocol()] transfer protocol does not match access type,iTransferProtocol=3,iAccessType=3
2021-05-23 10:11:54.457 [WARNING (32)] [THREAD(11140)] [CComponentAdapter::isDevSupportServiceAction()] transfer protocol does not match access type,ServiceName = ConfigBackup,commandName=ICC,iTransferProtocol=3,iAccessType=3
2021-05-23 10:11:54.461 [INFO (0)] [THREAD(11124)] [CScriptProcessor::exec()] Begin to execute, data: ServiceName = ConfigBackup
ActionName = backup_running_config
InputParam = TFTPFile=C:/Program Files/iMC/server/tmp/running_3332637254.cfg?_?TFTPServer=10.1.0.29?_?UnitList=?_?VpnName=
OutputParam =
CmdResp =
ErrorMessage =
ActionResult = 19

2021-05-23 10:11:54.466 [INFO (0)] [THREAD(11112)] [isH3CXrnDevice()] Device: 10.1.0.49 get vb list failed, iRet:-102
2021-05-23 10:11:54.466 [INFO (0)] [THREAD(11112)] [CThirdPartCfgfileMgr::backupRunning()] Begin to backup running cfgfile ...
2021-05-23 10:11:54.468 [WARNING (32)] [THREAD(11124)] [CComponentAdapter::checkAccessTypeMatchTransferProtocol()] transfer protocol does not match access type,iTransferProtocol=3,iAccessType=3
2021-05-23 10:11:54.468 [WARNING (32)] [THREAD(11124)] [CComponentAdapter::isDevSupportServiceAction()] transfer protocol does not match access type,ServiceName = ConfigBackup,commandName=Custom,iTransferProtocol=3,iAccessType=3
2021-05-23 10:11:54.469 [INFO (0)] [THREAD(11140)] [CComponentAdapter::isDevSupportServiceAction] dev_id: 78, adapter_name: H3CCommon
2021-05-23 10:11:54.469 [INFO (0)] [THREAD(11140)] [CScriptProcessor::exec()] Begin to execute by cli.
2021-05-23 10:11:54.471 [INFO (0)] [THREAD(11112)] [CScriptProcessor::exec()] Begin to execute, data: ServiceName = ConfigBackup

17 REPLIES 17
jguse
HPE Pro

Re: Backup switches config FAILED

Hello,

The SSH Test works with a different SSH Client than the Config Backup (which uses putty/plink.exe), so you may see one working but not the other. The reason SSH authentication failed when attempting the backup is possibly due to no matching SSH encryption or MAC algorithms on either side, which I've seen a few times recently with devices that only support SHA2 MACs (like hmac-sha2-256).

Could you please try this workaround to enable Putty Release 0.7 in iMC 7.3 E0705P10:

  1. Create a file putty07 with no extension in <IMC>/server/conf.
  2. Restart IMC.
  3. Test the backup again.

The putty 0.7 supports SHA2 MACs for SSH and should work if this was the reason for the authentication failure.

PS. The errors shown in the logs you shared are not really relevant. You may want to look further, as the logs generally also show you the CLI output up to the point of failure, soon after 'Begin to run by cli', and that is key to understanding what went wrong.

Best regards,
Justin

Working @ HPE
Accept or Kudo
Daniel96
Advisor

Re: Backup switches config FAILED

Hi,

First of all thanks for your response.

I have a question about what you mean to create putty file? can you give example?

thanks

 

Daniel96
Advisor

Re: Backup switches config FAILED

I added additional text from what you asked.

2021-05-24 20:00:03.692 [INFO (0)] [THREAD(11104)] [isH3CXrnDevice()] Device: 10.1.0.85 get vb list failed, iRet:-102
2021-05-24 20:00:03.692 [INFO (0)] [THREAD(11104)] [CThirdPartCfgfileMgr::backupRunning()] Begin to backup running cfgfile ...
2021-05-24 20:00:03.693 [INFO (0)] [THREAD(11108)] [CComponentAdapter::isDevSupportServiceAction] dev_id: 78, adapter_name: H3CCommon
2021-05-24 20:00:03.693 [INFO (0)] [THREAD(11108)] [CScriptProcessor::exec()] Begin to execute by cli.
2021-05-24 20:00:03.694 [WARNING (32)] [THREAD(11120)] [CComponentAdapter::checkAccessTypeMatchTransferProtocol()] transfer protocol does not match access type,iTransferProtocol=3,iAccessType=3
2021-05-24 20:00:03.694 [WARNING (32)] [THREAD(11120)] [CComponentAdapter::isDevSupportServiceAction()] transfer protocol does not match access type,ServiceName = ConfigBackup,commandName=Custom,iTransferProtocol=3,iAccessType=3
2021-05-24 20:00:03.695 [INFO (0)] [THREAD(11132)] [isH3CXrnDevice()] Device: 10.1.0.90 get vb list failed, iRet:-102
2021-05-24 20:00:03.695 [INFO (0)] [THREAD(11132)] [CThirdPartCfgfileMgr::backupRunning()] Begin to backup running cfgfile ...
2021-05-24 20:00:03.698 [INFO (0)] [THREAD(11104)] [CScriptProcessor::exec()] Begin to execute, data: ServiceName = ConfigBackup
ActionName = backup_running_config
InputParam = TFTPFile=C:/Program Files/iMC/server/tmp/running_3333854146.cfg?_?TFTPServer=10.1.0.29?_?UnitList=?_?VpnName=
OutputParam =
CmdResp =
ErrorMessage =
ActionResult = 19

2021-05-24 20:00:03.699 [INFO (0)] [THREAD(11116)] [CComponentAdapter::discoverDeviceAdapter()] H3C oem HP device,try HP vendor adapter again.
2021-05-24 20:00:03.699 [ERROR (18)] [THREAD(11116)] [CComponentAdapter::getDevAdapterName()] fail to call discoverDeviceAdapter()
2021-05-24 20:00:03.699 [ERROR (18)] [THREAD(11116)] [CComponentAdapter::isDevSupportServiceAction()] fail to call getDevAdapterName().DevID=111,ServiceName = ConfigBackup
2021-05-24 20:00:03.702 [INFO (0)] [THREAD(11132)] [CScriptProcessor::exec()] Begin to execute, data: ServiceName = ConfigBackup
ActionName = backup_running_config
InputParam = TFTPFile=C:/Program Files/iMC/server/tmp/running_3333854147.cfg?_?TFTPServer=10.1.0.29?_?UnitList=?_?VpnName=
OutputParam =
CmdResp =
ErrorMessage =
ActionResult = 19

jguse
HPE Pro

Re: Backup switches config FAILED

Hello,

I mean to create a blank file with no extension called putty07 in that directory, which will tell iMC to use this version of putty for config backups/restores etc. Please give that a try.

Best regards,
Justin

Working @ HPE
Accept or Kudo
Daniel96
Advisor

Re: Backup switches config FAILED

You mean like that right?

IMC putty07.PNG

jguse
HPE Pro

Re: Backup switches config FAILED

That looks correct.

Best regards,
Justin

Working @ HPE
Accept or Kudo
Daniel96
Advisor

Re: Backup switches config FAILED

It didn't help. still got on all switches SSH authentication failed.

which more info you need?

 

jguse
HPE Pro

Re: Backup switches config FAILED

Hello,

in that case, please check if you can find entries like the following in the imccfgbakdm log:

2021-05-06 10:40:01.820 [ERROR (13)] [THREAD(13744)] [CScriptProcessor::exec()] Failed to run by cli method.
2021-05-06 10:40:01.820 [INFO (13)] [THREAD(13744)] [CScriptProcessor::exec()] Finished to run , result:

Beneath that, you should find some text that includes the CLI log from when iMC tried to connect to the device CLI with SSH. Can you share that please?

Best regards,
Justin

Working @ HPE
Accept or Kudo
Daniel96
Advisor

Re: Backup switches config FAILED

Where i found this log?