Information
Announcement Support for this product will end on November 3, 2025. We recommend that you use PATROL for Linux, PATROL for AIX, or PATROL for Solaris to monitor operating systems.

Using Sudo for data collection


This task describes how to use Sudo for data collection. This is used for Linux. The PSL can execute only non-root user commands. Some parameter needs to run some command with root privileges. To avoid root privileges directly, you can configure the PATROL Knowledge Module.

For UNIX, use Sudo to execute the root privileged command.

Warning

Note

For release 9.11.10, the system supports the Sudo utility only on Linux platforms. Sudo utility is used to run root privileged ethtool command on Linux Platform providing details about configured Network interfaces on machine.

Sudo properties dialog box

11.jpg

To use Sudo on Linux

Warning

Note

This menu command is available for local and remote hosts.

  1. Access the UNIX OS application menu as described in Accessing KM Commands and InfoBoxes
  2. Select Knowledge Module Admin > Use Sudo.
  3. Sudo properties dialog box has two options: NO and Without Password. If you select the No option, you are not able to use the Sudo utility (which is the default behavior) and if you select Without Password, you are allowed to use Sudo utility without passing PATROL user password to the Sudo command.

To configure the Sudo on a Linux Computer

  1. Download the sudo utility from: http://www.sudo.ws/sudo/download.html.
  2. Open the sudoers file with a text editor. Generally, this file is located in the /etc directory.
  3. To use the Without password option, enter the following line: userName ALL = (ALL) NOPASSWD: ALL

    Warning

    Note

    The userName variable represents the user for which the PATROL user is configured.

  4. CommentDefaults requirettyas#Defaults requiretty.
  5. Save the sudoers file.
  6. Log off from the monitored server.

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*

BMC PATROL for UNIX and Linux 9.13