Discovery Credential check automatically

shubhamverm6594
Tera Expert

Hi All,

 

I have a requirement to automate the process to check the Discovery credential automatically and create a corresponding task in sc_task table.

 

I create one flow and check the record in IP affinitity table but it's not working as expected, Some time credentials not having any IP affinity record but still credentials are working fine.

 

Please check flow chart in attachment.

 

11 REPLIES 11

Hi @Runjay Patel ,

 

Thanks for your response, I'm curious suppose if the password is not updated in the ServiceNow instance but is updated on the target machine, will it still work as expected or will there be issues accessing the target machine?

Hi @shubhamverm6594 ,

 

It will be having issue accessing that device.

Hi @Runjay Patel,

 

Then I think above code not working as per requirement.

Because if the credential are not working then task will be created for that credential to update with new credential.

Hi @shubhamverm6594 ,

 

On that case you can cerate BR on Discovery Log table with bellow condition, It will check if any credential fails.

short_messageSTARTSWITHCould not find any valid credentials to authenticate the target for type^ORshort_messageSTARTSWITHNo credential found for type

 

-------------------------------------------------------------------------

If you found my response helpful, please consider selecting "Accept as Solution" and marking it as "Helpful." This not only supports me but also benefits the community.


Regards
Runjay Patel - ServiceNow Solution Architect
YouTube: https://www.youtube.com/@RunjayP
LinkedIn: https://www.linkedin.com/in/runjay

-------------------------------------------------------------------------

Hi @Runjay Patel ,

 

Thank you for your quick responses regarding recent requirement. I’d like to delve deeper into the last suggestion.

Is it possible to specifically target actual credentials that do not possess valid passwords? As I understand it, discovery may utilize a HIT & TRY method to identify devices.

 

Looking forward to your insights on this matter.

 

Thanks & Regards,

Shubham Verma