Devices failing UCS Discovery

DarOB
Tera Contributor

Hello,

 

I am trying to discover UCS using SNMP & the UCS-HD Pattern. I have been successful with a lot of devices. However I have been getting the below error when trying to discover 2 specific devices. These 2 devices have the exact same config as the successful devices and I have been able to login to the devices directly using the credential I am using for discovery. 

 

Identification Engine: Discovery status is FAILURE, Identification sections in pattern failed: section: discovery, error: Match step predicate is not matched. Failed Condition(s): [(${login} : value=login_failed) NOT CONTAINS "login_failed"] .

 

Why is discovery failing to login even though I can login directly to device using the credential?

 

Thanks in advance.  

12 REPLIES 12

Hello,

 

Is there any update on the case? 

Sorry nothing yet, still working it out with ServiceNow.
Will post when there is a solution.

XCHRT
Tera Contributor

The solution was in our case:
To scan UCS device you have to target the active note IP, not the management IP.
You have to create SNMP credentials to access the UCS device and created as SNMP credentials in serviceNow.
You have to create web credential on the UCS manager (Read only) and created as Applicative Credentials in serviceNow.

Here was the issue:
When you connect to the UCS, you need a prefix ucs-local in the username.
Example: username: ucs-local\servicenow-ucs-user

You can test from the MID server using Powershell:
Change "<ip_of_UCS_device>" to the IP og the active UCS note
Change "userName" to the UCS web user
Change "password" to the UCS web user password
 [System.Net.ServicePointManager]::ServerCertificateValidationCallback = {$true}
Invoke-WebRequest -Uri "https://<ip_of_UCS_device>/nuova" -ContentType "application/json" -Method POST -Body '<aaaLogin inName="userName" inPassword="password" />'

Good lock