Walkthrough: Changing the root password for a set of systems


TrueSight Server Automation lets you design changes to server configurations and then deploy those changes simultaneously to multiple servers. For example, a common administrative task is changing the root password for Linux servers.

The topic includes the following sections:

The video at right demonstrates the steps in changing the root password on multiple servers.

The [embed] macro is a standalone macro and it cannot be used inline. Click on this message for details.
https://youtu.be/e0da_NQD9yQ

Introduction

In this example, we demonstrate how to change the root password for multiple Linux servers.

To accomplish this change, you browse a server to find the root password, package the password as a BLPackage, and modify the BLPackage by changing the value of the password. Finally, you deploy the BLPackage to target servers, which modifies the root password for those targets.

How to change the root password

For this walkthrough example, we have logged on as BLAdmin, the default superuser for TrueSight Server Automation. 

 

Procedure

Example screen

1

Browse the server objects for a UNIX-style server and select the UNIX Users object.

UnixUsers.gif

Right-click the root user and select Add To Depot As > BLPackage.
The Create BLPackage wizard opens. 

In the wizard:

  1. For Package Name, assign a name, such as Change root password.
  2. For Save in, choose a depot folder to store the BLPackage.
  3. Click Finish.

 

RootUserBLPackage.gif

3

In the depot folder, right-click the BLPackage you just created and select Open.
The BLPackage opens for editing, at right. 

EditBLPackage.gif

4

Under BLPackage, select root.
All assets for the selected object appear at right.  

SelectRoot.gif

5

Click in the Password field. For Value, enter a new password. For Confirm, enter the password again. Select File > Save and then close the BLPackage you are editing.

Note

To enable the Password field, you may need set the Password State field to Empty or Disabled.

PwdEdit.gif

6

In the Depot folder, right-click the BLPackage you just modified, and select Deploy.
The New Deploy Job wizard opens. 

Make the following entries on the General panel of the Deploy Job wizard:

  1. For Name, enter a name for the Deploy Job, such as Deploy root password.
  2. Enter a description for the job.
  3. For Save in, specify a folder in the Jobs folder where the job should be saved.

 

PwdChangeGeneral.gif

7

  1. Click Next and then click Next again to display the Targets panel.
  2. Select the servers or server groups where you want to deploy the password change.
    In this example, we are deploying the change to a smart server group called Linux_All

PwdChangeTargets.gif

8

  1. Click Next and then click Next again to display the Phases and Schedules panel.
  2. Select Execute Job Now.
  3. Click Finish.
    The job begins to execute. 

PwdPhases.gif

9

To monitor the progress of the job, see the Jobs in Progress tab at bottom right. It shows jobs and other tasks that are currently active.

PwdJobRunning.gif

10

In the Jobs folder, navigate to the Deploy job you just created. Right-click the job and select Show Results.

The job results show at right. A green check indicates success. 

PwdChangeSuccess.gif

Wrapping it up

In this walkthrough, you learned how to package a server configuration change and deploy it to multiple servers.

Where to go next

Walkthrough-Packaging-applications-with-BLpackages

 

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