Unable to fetch configuration from HPE Switch.
HPE switch 3810, version 16.02
After adding the HP switch 3810 the configuration state in Airwave will show as error even though we have the SSH timeout set to 120 and updated the right SSH credentials.
1. From group -> template page we will see the following message that No template is available,
2. We can verify if we have any communication time-out in System -> event log for that specific device
event log when trying to fetch template
Thu Aug 11 04:42:36 2016 Configuration status changed to 'Telnet/SSH Error: Could not fetch config file; command timed-out' System
Thu Aug 11 04:42:36 2016 Configuration status changed to 'No matching template could be found for this device. See the templates page.' System
Thu Aug 11 04:42:36 2016 Status changed to 'Error fetching existing configuration' System
Thu Aug 11 04:42:36 2016 Configuration verification: failed to read configuration from device System
Thu Aug 11 04:48:00 2016 Status changed to 'OK' System
Thu Aug 11 09:01:18 2016 Telnet/SSH Error: command timed-out admin
Thu Aug 11 09:03:20 2016 Telnet/SSH Error: command timed-out admin
3. We can verify whether the switch hostname has any spaces as shown below,
e.g. “ Aruba test switch #”
Here the issue is with the ‘blank space’ character in hostname which is not expected by Airwave. As a result the command prompt string matching fails , thereby causing command timeout.
As per the RFC952 (https://tools.ietf.org/html/rfc952) , space is not permitted as part of host name. This may require a change at the switch side to prevent using space while creating hostname.
In order to resolve this issue we need to remove the space from the hostname as shown below,