Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

TSAMP command - lsrg and awk

 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}'


This post first appeared on DBA-DB2.com, please read the originial post: here

Share the post

TSAMP command - lsrg and awk

×

Subscribe to Dba-db2.com

Get updates delivered right to your inbox!

Thank you for your subscription

×