Loading...
Loading...
Discovery unable to fetch Serial Number, Model ID, Manufacturer, and Asset details of any Linux server Steps to Reproduce 1)Login to https://instance.service-now.com instance 2)Run discovery on Linux Machine and had below error in discovery log: java.util.regex.PatternSyntaxException: Unmatched closing ')' near index 25 ^(dmsetup|fdisk|multipath)).* at java.util.regex.Pattern.error(Pattern.java:1957) at java.util.regex.Pattern.compile(Pattern.java:1702) at java.util.regex.Pattern.<init>(Pattern.java:1351) at java.util.regex.Pattern.compile(Pattern.java:1028) at java.util.regex.Pattern.matches(Pattern.java:1133) at java.lang.String.matches(String.java:2121) at com.service_now.mid.snc_ssh.SudoProcessor.getLastMatch(SudoProcessor.java:201) at com.service_now.mid.snc_ssh.SudoProcessor.isAllowed(SudoProcessor.java:165) 3)Navigate to cmdb_ci_linux_server table and observe Serial Number, Model ID, Manufacturer, and Asset details are not populated for Linux servers.
Modify the command from '/(usr/sbin/(dmidecode|chage|chpasswd|lsof|fdisk)|sbin/(dmsetup|fdisk|multipath))' to /usr/sbin/(dmidecode|chpasswd|lsof|fdisk|dmsetup|multipath) by removing the extra parentheses() of the command in the sudoers configuration file and Discovery able to fetch the Serial number, Model ID, Manufacturer and Asset information details
PRB1405527
Click on a version to see all relevant bugs
ServiceNow Integration
Learn more about where this data comes from
Bug Scrub Advisor
Streamline upgrades with automated vendor bug scrubs
BugZero Enterprise
Wish you caught this bug sooner? Get proactive today.