TSAMP command - lsrg and awk

14 February,2017 by Jack Vamvas

 Question: How can I list out information in a tabular format using the TSAMP lsrg command ? I’d like to parse the information.

This is part of setting up a monitoring tool

Answer: The lsrg command is useful for listing information about resource groups in IBM Tivoli System Automation for Multiplatforms (TSAMP).   There are different ways of using lsrg command.  

Combining lsrg and awk will list out the member resource information. With columns :

Class:Resource:Node[ManagedResource] Mandatory MemberOf OpState WinSource Location AutomationDetails[CompoundState]                  [ObservedState]                   [BindingState]

 

lsrg -m -D, -V | awk -F, '{print $1,$2,$3,$4,$5,$6,$7,$9,$10}'
Author: Jack Vamvas(http://www.dba-db2.com)

Share:

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been saved. Comments are moderated and will not appear until approved by the author. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.

Working...

Post a comment on TSAMP command - lsrg and awk

Comments are moderated, and will not appear until the author has approved them.


dba-db2.com | DB2 Performance Tuning | DBA DB2:Everything | FAQ | Contact | Copyright