This article provides troubleshooting steps if device discovery fails for a supported Junos Space device.
In Junos Space, the following error is reported:
Status: 'Add Device failed'. Description: Device is not running Junos or is not a supported Junos device
In the /var/log/jboss/servers/server1/server.log , the following error messages are reported:
/var/log/jboss/servers/server1/server.log
WARN [net.juniper.jmp.cmp.deviceIOMgr.DeviceInboundConnectionFactory] (Thread-122611 (HornetQ-client-global-threads-515124559)) Password authentication success for 10.x.x.13
WARN [net.juniper.jmp.cmp.deviceIOMgr.DeviceInboundConnectionFactory] (Thread-122611 (HornetQ-client-global-threads-515124559)) Failed to start netconf subsystem. Trying to set netconf over ssh ......
ERROR [net.juniper.jmp.cmp.deviceIOMgr.DeviceInboundConnectionFactory] (Thread-122611 (HornetQ-client-global-threads-515124559)) Device inbound cmd 10.x.x.13 failed to request netconf subsystem
ERROR [net.juniper.jmp.cmp.deviceIOMgr.DeviceInboundCmd] (Thread-122611 (HornetQ-client-global-threads-515124559)) Send failure message for add reachable device with ip 10.x.x.13 failed --- Device is not running Junos or is not a supported Junos device
Possible Causes:
netconf
root@210-2# show system login
It should have read-write permission or it should belong to “super-user”, as Junos Space sends some set of commands to the device to commit . If the user does not have read-write permission, then the command will fail. This leads to device discovery failure.
commit
Check if there are any uncommitted changes on the device. If there are, remove them and try to discover the device again.
root@240-POE-2# run show configuration | match service | display set set system services ftp set system services ssh protect system services ssh
unprotect
unprotect system services
Now if you try to discover the device, it should get discovered successfully.
Under the device logs, you may see the following messages:
sshd[28811]: subsystem request for netconf by user Junospace sshd[28811]: subsystem request for netconf failed, subsystem not found mgd[28818]: UI_DBASE_LOGIN_EVENT: User 'Junospace' entering configuration mode mgd[28818]: UI_COMMIT: User 'Junospace' requested 'commit' operation (comment: none) mgd[28769]: UI_DBASE_LOGOUT_EVENT: User 'Junospace' exiting configuration mode mgd[28818]: UI_LOAD_EVENT: User 'Junospace' is performing a 'rollback'
sshd[28811]: subsystem request for netconf by user Junospace
sshd[28811]: subsystem request for netconf failed, subsystem not found mgd[28818]: UI_DBASE_LOGIN_EVENT: User 'Junospace' entering configuration mode mgd[28818]: UI_COMMIT: User 'Junospace' requested 'commit' operation (comment: none) mgd[28769]: UI_DBASE_LOGOUT_EVENT: User 'Junospace' exiting configuration mode mgd[28818]: UI_LOAD_EVENT: User 'Junospace' is performing a 'rollback'
along with the 'subsystem request failed on channel' message reported when a SSH command from the Space server to the device is performed:
[root@space-005056a9cff7 ~]# ssh [email protected] -s netconf Password: subsystem request failed on channel 0
[root@space-005056a9cff7 ~]# ssh [email protected] -s netconf
Password: subsystem request failed on channel 0
If so, it means the user for whom you are trying to add the device to Junos Space performs a rollback when Junos Space tries to commit the netconf service on the device and hence the device discovery fails.
netconf ssh
#set system services netconf ssh
If none of the above suggestions help, please contact your technical support representative for assistance.
2019-09-19: Changed the path of the log file to /var/log/jboss/servers/server1/server.log which was incorrect previously. Also added the screenshots from latest version.