How to add extension to the "Network Router" pattern
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-29-2024 04:13 AM
Hi Team,
We have SNMP credentials and it works. It discovers a Router(cmdb_ci_ip_router). Now customer asked us to add 2 more custom attributes into cmdb_ci_ip_router table populate the same using pattern extension.
Network team gave us command "get system status | grep Version" those information. They are running this command on cmd prompt and getting the output.
How do we add this to pattern extension section?
I tried to add extension step "Parse Command Output" but it gives me "Web Socket exception" error. However system is able to discover that device. Hence network team says the error is not with communication.
If we check discovery log "Network Router" it doesn't shows the commands ran and its output details.
Please provide us steps to extend "Network Router" to get additional attributes details into CMDB.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-29-2024 06:07 AM
Hi @Venkatesh Dhana ,
Please refer the below KB article, which help you get the more info for extension pattern.
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB1156537
Please appreciate the efforts of community contributors by marking appropriate response as Mark my Answer Helpful or Accept Solution this may help other community users to follow correct solution in future.
Thanks
AJ
Linkedin Profile:- https://www.linkedin.com/in/ajay-kumar-66a91385/
ServiceNow Community Rising Star 2024
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-29-2024 06:53 AM
Hi AJ,
I have gone through this KB but it has a steps to extend pattern but its not pulling any details from target. Instead it is using the existing $sysDescr variable to populate version.
(I don't understand how $sysDescr got populated)
I want to know how to pull details from target (Either running command, or something else)
I need to steps to get details from target. So that I can get respective command or OID to get attributes.