IMC
cancel
Showing results for 
Search instead for 
Did you mean: 

Deploy Device Software - Failed - SSH or SFTP CLI error

weird_harold
Occasional Contributor

Deploy Device Software - Failed - SSH or SFTP CLI error

I am fairly new to IMC and I am unable to update my switch's (2910al-24G POE) software via IMC.

 

Below are the details of the failed task.

 

Upload software to device from iMC Server by script.

SSH or SFTP CLI error.

Check the following: 

1. The SSH and SFTP configuration is correct. 
2. The CLI format in file /iMC/server/conf/ssh_sftp_client.cfg is correct. 
3. The SSH and FTP client names are the same as those in file ssh_sftp_client.cfg 

 I do not believe it is an SSH issue as I am able to import software from the same switch into my Software Library.

 

Below are the details of my ssh_sftp_client.cfg

 

#windows putty

ssh-cmd = plink.exe [-i $key-file] $user-name@$device-ip
sftp-cmd = psftp.exe [-i $key-file] $user-name@$device-ip

 Both executables are located in my iMC\server\bin directory.

 

Any thoughts or suggestions?

 

Thanks in advance for any help.

 

7 REPLIES
weird_harold
Occasional Contributor

Re: Deploy Device Software - Failed - SSH or SFTP CLI error

So it looks like it was a user error. I had a typo in the SFTP CLient setting located under System Settings.

 

I am now able to deploy the software to the switch but it fails to reboot and actually update it as the startup software.

 

 

 

 

LindsayHill
Honored Contributor

Re: Deploy Device Software - Failed - SSH or SFTP CLI error

Why did you change the SFTP client setting?
weird_harold
Occasional Contributor

Re: Deploy Device Software - Failed - SSH or SFTP CLI error

I don't recall why, it's been a while since we installed IMC and now. I think because we initially had the Putty files located in a seperate directory and not the iMC\server\bin directory.

 

Any thoughts on why the switch fails to reboot during the softwre upgrade? I see another user has the same issue.

 

Also - when I am attempting to test a "Restore Device Software" from IMC,  I get a message "Device "IP address" operation timed out" even though I am sitting here pinging that device the entire time.

 

IMC appears to have tons of bugs compared to PCM, and not a lot of answers.

LindsayHill
Honored Contributor

Re: Deploy Device Software - Failed - SSH or SFTP CLI error


weird_harold wrote:

I don't recall why, it's been a while since we installed IMC and now. I think because we initially had the Putty files located in a seperate directory and not the iMC\server\bin directory.

 

Any thoughts on why the switch fails to reboot during the softwre upgrade? I see another user has the same issue.

 

Also - when I am attempting to test a "Restore Device Software" from IMC,  I get a message "Device "IP address" operation timed out" even though I am sitting here pinging that device the entire time.

 

IMC appears to have tons of bugs compared to PCM, and not a lot of answers.


Couple of things:

* It doesn't matter where you install PuTTy - iMC ships with its own binaries. You should only change the sftp client config if you have a very specific reason for using something else.

* Pinging the device is irrelevant - it's the operation that's timing out (i.e. it does something, and doesn't get an acceptable response in the right timeframe) - this usually isn't related to device reachability.

* PCM is a very, very limited product, with a narrow set of features aimed at a small range of devices. It's not surprising that iMC has more issues - it's trying to do far more, with a far wider range to managed devices.

 

Try looking in the logs in <IMC>/server/conf/log to see what's going on.

LindsayHill
Honored Contributor

Re: Deploy Device Software - Failed - SSH or SFTP CLI error

IMC v7 has just been released. One of the fixes mentioned in the release notes is this: "Supports upgrading software through SCP for ProCurve devices."

This may help your problem.
Uwe Warnecke
Regular Visitor

Re: Deploy Device Software - Failed - SSH or SFTP CLI error

hello

Have the same problem here.

IMC 7.1 (E0303)

I just want only  manage ProCurve devices.

There seems to be a fundamental problem.

I can directly access each switch with Putty.

An update of the device software with IMC does not work.

Does anyone have an idea?

gzaz
Occasional Visitor

Re: Deploy Device Software - Failed - SSH or SFTP CLI error

Having the same problem.

We are using iMC 7.1 (E0303P06) and are unable to Deploy Device Software...

every thing else seem to work fine, ive also tried to connect to the switch (2810) with psftp.exe from the cmd console of the imc server, which works...

but when i try to deploy new firmware from IMC i get error: 

'SSH or SFTP CLI error

Check the following:
1. The SSH and SFTP configuration is correct.
2. The CLI format in file /iMC/server/conf/ssh_sftp_client.cfg is correct.
3. The SSH and FTP client names are the same as those in file ssh_sftp_client.cfg.'

I've checked ssh_sftp_client and as far as i can see, it seems to be the default values?

#windows putty

ssh-cmd = plink.exe [-i $key-file] $user-name@$device-ip
sftp-cmd = psftp.exe [-i $key-file] $user-name@$device-ip

I've also checked the log directory (C:\Program Files\iMC\server\conf\log) for any changes to the log files.

Not quite sure which log file i should take a clooser look at, but from the timestamp it seems to bee imcacldm.2015-11-06..

heres a little snip of the log:

2015-11-06 03:41:53.872 [ERROR (2)] [THREAD(5304)] [CSSHService::receive()] Failed to call getresponse()
2015-11-06 03:41:53.928 [INFO (0)] [THREAD(5304)] call getConfigFromDev, The dev ID is :455
2015-11-06 03:41:54.163 [INFO (0)] [THREAD(5304)] end call getConfigFromDev, The dev ID is :455
2015-11-06 03:41:54.163 [INFO (0)] [THREAD(5304)] CACLOptDev::switchACLParasetToSnacc() paraset ANALYSEACL is not have
2015-11-06 03:41:54.163 [INFO (0)] [THREAD(5304)] call getConfigFromDev, The dev ID is :455
2015-11-06 03:41:55.020 [INFO (0)] [THREAD(5304)] end call getConfigFromDev, The dev ID is :455
2015-11-06 03:41:55.082 [ERROR (0)] [THREAD(5304)] [CACLDevMgrTask::processPollMsg()] Update acl pool error, dev_id = 455
2015-11-06 03:42:30.197 [INFO (0)] [THREAD(5404)] [CACLTaskMgr::createTask()] Task manager 0 receive 1062
2015-11-06 03:42:30.197 [INFO (0)] [THREAD(5404)] [CACLTask::reqMsgProcess()] 1062
2015-11-06 03:42:40.990 [INFO (0)] [THREAD(5404)] [CACLTaskMgr::createTask()] Task manager 0 receive 20034
2015-11-06 03:42:54.594 [ERROR (2)] [THREAD(5392)] [CSSHService::receive()] Failed to call getresponse()
2015-11-06 03:42:54.650 [INFO (0)] [THREAD(5392)] call getConfigFromDev, The dev ID is :480
2015-11-06 03:42:54.820 [INFO (0)] [THREAD(5392)] end call getConfigFromDev, The dev ID is :480
2015-11-06 03:42:54.820 [INFO (0)] [THREAD(5392)] CACLOptDev::switchACLParasetToSnacc() paraset ANALYSEACL is not have
2015-11-06 03:42:54.820 [INFO (0)] [THREAD(5392)] call getConfigFromDev, The dev ID is :480
2015-11-06 03:42:56.578 [INFO (0)] [THREAD(5392)] end call getConfigFromDev, The dev ID is :480
2015-11-06 03:42:56.588 [ERROR (0)] [THREAD(5392)] [CACLDevMgrTask::processPollMsg()] Update acl pool error, dev_id = 480

Hoping someone in here can help. tried google but havnt found anything helpfull as of yet...