Search This Blog

Pages

Some commonly used Linux commands


1.       To find OS-Version
         cat /etc/redhat-release

2.       To Find the System Configuration
         Lscpu

3.       To check disk space
         df [-h|-i|-H] [<directory>]

4.       To check installed shell
 cat /etc/shells

5.       To run a script file in debug mode to see all running commands in console
 bash –x <script file name>

6.       To list all users
 cut -d: -f1 /etc/passwd

7.       To add user
 useradd <useranme>

  When we add a new user in Linux with useradd command it gets created in locked state and to unlock that user       account, we need to set a password for that account with passwd command.

 passwd <username>

8.       To view user details
 chage -l <username>

9.       To view all users, group files
         vi /etc/passwd
    vi /etc/group
    getent group
    getent passwd

10.    To remove a user account including home directory
 userdel -r <username>

  Note: In case unable to delete a user using userdel will give error that “user <username> is currently used by process   <pid>” then execute below commands and try userdel again:
  su – <username>
 kill -9 -1
 exit

11.    To change owner user/group of a directory
 chown -R <username>:<group> /<directory>

12.    To list/qurey all libraries in Linux
 rpm -qa
 rpm -qa |grep <package_name>*

13.    To extract .tar.gz files
tar -zxvf <compressed file with path> -C <target path>

14.    To check running application on particular port
cat /etc/services | grep 5000

15.    To Find any file
find / -name {file_name}

16.    To uninstall packages using GUI
gpk-application

17.    Permanent configuration of java path in Linux
        Configure PATH environment variable in ~/.bash_profile file for permanent configuration of java as following:


Linux - Points to Remember:

1.       Avoid using the underscore (_) character in machine names. Internet standards dictate that domain names conform to the host name requirements described in Internet Official Protocol Standards RFC 952 and RFC 1123. Domain names must contain only letters (upper or lower case) and digits. Domain names can also contain dash characters ( - ) as long as the dashes are not on the ends of the name. Underscore characters ( _ ) are not supported in the host name.
2.       Linux File Permissions:
Read = 4
Write = 2
Execute = 1



    Note: If a user wants to delete file/folder having all rights then user should also have all rights in its parent folder.

ISIM – IBM Security Identity Manager

ISIM - IBM Security Identity Manager (formerly know as Tivoli Identity Manager - TIM) is an effective Identity Access Management (IAM) tool that an organization can use for centralize identity management and governance across the enterprise for improved security and compliance. ISIM automates the creation, modification, recertification and termination of identities throughout the user life cycle. It also includes enhanced reporting and analytic capabilities to monitor user entitlements and activities. ISIM can be integrated with several applications and use to manage complete identity (user) life cycle in a centralized manner and robust security enhancements.

Like every software installation procedure, first we need to create and follow proper planning and design for ISIM installation and deployment.

ISIM comprises of below components:

1. Database Server: Used to store transactional and historical data that include schedules and audit data.
Supported database products are IBM DB2 database, Oracle database, and MS SQL Server database.

2. Directory Server:  Used to store current state of managed identities including user account and organizational data.
Supported products are IBM Tivoli Directory Server, Oracle Directory Server Enterprise Edition.

3. IBM Tivoli Directory Integrator: TDI is an optional installation component that synchronizes and manages information exchanges between applications or directory sources.

4. WebSphere Application Server: The WebSphere Application Server runs a Java virtual machine, providing the runtime environment for the enterprise application code. The application server provides containers that specialize in running specific Java application components.

5. HTTP server and WebSphere Web Server plug-in: An HTTP server is an optional component that provides administration of IBM Security Identity Manager through a client interface in a web browser.

6. ISIM Security Identity Manager: The IBM Security Identity Manager Server and its adapters provision identities to a set of heterogeneous resources.

7. ISIM Security Identity Manager Adapters: IBM Security Identity Manager adapters enable the IBM Security Identity Manager Server to connect to a set of heterogeneous resources. These resources can be operating systems, data stores, or other applications, to provision identities.


ISIM 6.0 Installation Key Points



In order to install ISIM 6.0, one need to follow proper planning and deployment of all its prerequisite compatible components and procedures. Below is the step by step key points for the ISIM 6.0 installation procedure in sequence. For complete details please go through IBM knowledge center documents.

Products and versions used for this virtual setup of ISIM 6.0:


Product Name
Base Version
Fix Pack Version
VMware® Workstation 12 Pro
12.5.2 build-4638234

Linux Operating System
Linux (CentOS release 6.6)

DB2
9.7
4
Middleware Configuration Utility for ISIM 6.0
6.0

GSKit
8.0.14.43

IBM Tivoli Directory Server (ITDS)
6.3
26
IBM Installation Manager
1.8.1

IBM WAS Network Deployment
8.5.0.0
8.5.5.4
IBM Tivoli Directory Integrator (ITDI)
7.2

IBM Identity Security Manager(ISIM)
6.0.0.0
FP 10 and IF0001
IBM Update Installer
7.0.0.31



      1.      Configure the operating system
a.      Configure IP and host-name.
b.      Configure Ports for proper network communication between applications.
c.      Security configuration like disable SELINUX in Linux OS and firewall configuration.
d.      Check and install required prerequisite binaries/libraries/rpm packages as below:
                                                    i.     compat-libstdc++-33-3.2.3-69
                                                   ii.     compat-db-4.6.21-15                                   
                                                  iii.     libXp-1.0.0-15.1
                                                  iv.     libXmu-1.0.5-1
                                                   v.     libXtst-1.0.99.2-3
                                                  vi.     pam-1.1.1-4
                                                vii.     libXft-2.1.13-4.1
                                               viii.     gtk2-2.18.9-4
                                                  ix.     gtk2-engines-2.18.4-5
       2.      Database installation and configuration
a.      IBM DB2 installation
b.      IBM DB2 fix pack installation
c.      IBM DB2 configuration using IBM Middleware Configuration Utility for ISIM
       3.      LDAP – IBM Tivoli Directory Server installation and configuration
a.      GSKit installation (used for SSL configuration in IBM Tivoli Directory Server)
b.      IBM Tivoli Directory Server installation
c.      IBM Tivoli Directory Server fix pack installation
d.      IBM Tivoli Directory Server configuration using Middleware Configuration Utility for ISIM 6.0
       4.      IBM Tivoli Directory Integrator and ISIM adapters installation (optional)
       5.      Installation and configuration of IBM WebSphere Application Server
a.      IBM Installation Manager installation
b.      IBM WebSphere Application Server installation
c.      IBM WebSphere Application Server fix pack installation
d.      IBM WebSphere Application Server security configuration
       6.      IBM Tivoli Directory Server Web admin tool deployment in IBM WebSphere Application Server
       7.      IBM Security Identity Manager installation
       8.      Update Installer installation used for ISIM fix pack installation
       9.      ISIM fix pack installation
       10.    ISIM Interim fix pack installation
       11.    Verification of ISIM installation

Gather License Metrics Error in ISIM

Issue: Gather License Metrics Error in ISIM 6.0

In ISIM 6.0 console, View Requests > View All Requests, found “Gather License Metrics” request failed.















Resolution

1.      In terminal console, find license_metric_logger file at /opt/IBM/isim/lib and copy its path.


2.      Log in to the administrative console of WebSphere Application Server.
3.      Expand Environment.
4.      Click  on Shared libraries.
5.      On the Shared Libraries page, click on ITIM_LIB.
6.      On the ITIM LIB page, add ${ITIM_HOME}/lib/license_metric_logger_1.0.0.201310151701.jar to the Classpath field.


















7.      Click OK, and then click Save to save the changes directly to the master configuration.
8.      Log out of the administrative console.
9.      Restart WebSphere for the changes to take effect.
10.    Login to ISIM console and click on view all requests to verify changes.

Heading Number Blacked Out in MS Word

Issue: Heading number/bullet get blacked out in Microsoft Word






















Resolution:

1. Place the cursor just to the right of the black box in any example of the affected heading.

2. Hit ← (left arrow) and the black box should turn gray.

3. Type Ctrl+Shift+S to bring up a style popup.

4. Click Reapply.

SQL1042C: An unexpected system error occurred in DB2

Issue: After IBM DB2 installation, unable to start DB2 instance as giving error "SQL1042C: An unexpected system error occurred"







Resolution:
1. Change to path "/opt/ibm/db2/V9.7/instance/"

2. Enter command "db2iupdt <instance name>" and press enter.



An internal error occurred during DB2 Installation

Issue: During IBM DB2 installation process, a user can face "An internal error occurred..."

Resolution: Check and update current system IP and hostname in hosts file. 
For example, in Linux operating system, hosts file can be found at path "/etc/hosts"

Onedrive Overlay Icons Missing

Issue: Overlay icon missing after sync in Onedrive

Resolution:
1. Open registry editor (press window+R button on keyboard and type "regedit" and press enter)

2. Find the following registry key from left navigation area
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ShellIconOverlayIdentifiers\


3. Add space at initial position at name of SkyDrivePro1 and save.