Use an alternate privileged command for SSH DiscoveryIssue <!-- div.margin{ padding: 10px 40px 40px 30px; } table.tocTable{ border: 1px solid; border-color:#E0E0E0; background-color: rgb(245, 245, 245); padding-top: .6em; padding-bottom: .6em; padding-left: .9em; padding-right: .6em; } table.noteTable{ border:1px solid; border-color:#E0E0E0; background-color: rgb(245, 245, 245); width: 100%; border-spacing:2; } table.internaltable { white-space:nowrap; text-align:left; border-width: 1px; border-collapse: collapse; font-size:14px; width: 85%; } table.internaltable th { border-width: 1px; padding: 5px; border-style: solid; border-color: rgb(245, 245, 245); background-color: rgb(245, 245, 245); } table.internaltable td { border-width: 1px; padding: 5px; border-style: solid; border-color: #E0E0E0; color: #000000; } .title { color: #D1232B; font-weight:normal; font-size:28px; } h1{ color: #D1232B; font-weight:normal; font-size:21px; margin-bottom:-5px } h2{ color: #646464; font-weight:bold; font-size:18px; } h3{ color: #000000; font-weight:BOLD; font-size:16px; text-decoration:underline; } h4{ color: #646464; font-weight:BOLD; font-size:15px; text-decoration:; } h5{ color: #000000; font-weight:BOLD; font-size:13px; text-decoration:; } h6{ color: #000000; font-weight:BOLD; font-size:14px; text-decoration:; } ul{ list-style: disc outside none; margin-left: 0; } li { padding-left: 1em; } --> Description Here are the steps to use an alternate privileged SSH command for discovery if your company security guidelines do not allow the use of sudo. The other supported privileged commands are dzdo, pbrun, pfexec and sesudo. Procedure Configure the MID Server to use specific privileged commands 1. Navigate to the list of MID Servers using one of the following paths: -MID Server > Servers -Discovery > MID Servers -Orchestration > MID Servers 2. Select the MID Server you want to configure. 3. Click the menu icon in the header bar and select View > Advanced from the context menu. 4. In the Privileged Command related list, click Edit. 5. Select the command you want this MID Server to use and click Save. -The default order of privileged commands is 100, but you can change the order as necessary. The privileged command with the smallest order number is tried first. Find the file location of the alternate privileged command for hosts you wish to discover By default ServiceNow looks in the following location for the sudo command:/usr/sbin/usr/bin/bin/sbin Your alternate privileged command may be located in a different directory on your hosts, and this may also vary by device class. To determine this location follow the steps below: 1. Run this command on one device from each class you would like to discover: command -v alternate_privileged_command Note: You must include the word command Example: 2. Notate the path that the command itself is located in: Using the above example: /usr/seos/bin Set the MID server to use the correct path for your alternate privileged command You must add the mid.ssh.path_override parameter to your MID server for it to use the correct path for this alternate command. There are 4 Value options available: Append: Appends the override path to the end of the host's path. This is the default behavior. Replace: Replaces the host path with the path_overide value. Prepend: Appends the override path to the front of the host path. Default value: None Using the above example path we will use these steps to Append the path location: 1. Navigate to the list of MID Servers using one of the following paths: -MID Server > Servers -Discovery > MID Servers -Orchestration > MID Servers 2. Select the MID Server you want to configure. 3. Configuration Parameters > New MID Server: Auto-populated Parameter name: mid.ssh.Path_override Domain: global Value: Append:/usr/seos/bin Note: Make sure to repeat this process on all MID servers that will be using this alternate privileged command Applicable Versions All versions Additional Information MID Server privileged commands - Configure the MID Server to use specific privileged commands MID Server Parameters - SSH Discovery parameters