Topic
  • 2 replies
  • Latest Post - ‏2012-04-27T08:31:50Z by nukite8d
nukite8d
nukite8d
98 Posts

Pinned topic Output lsrg

‏2012-04-26T09:15:45Z |
Hi Group,
has anybody used lsrg to get informations about the current active rpDomain?

For an easy discovery task, we want to read all automated resources with groups and locating NodeNames.
This can be done by

glsbtcb21102:/home/xgsamadm:>lsrg -m -D
';' |head Displaying Member Resource information: Class:Resource:Node[ManagedResource];Mandatory;MemberOf;OpState;WinSource;Location; IBM.Application:glsbapb21102_apache-dwt:glsbapb21102.in.gad.de;False;glsbapb21102_apache-dwt-rg ;Online;;; IBM.ResourceGroup:glsbtcb21102_wbdimporter-rg;False;wbd-rg ;Online;;; IBM.Application:glsbtcb21102_00f_instanz_81:glsbtcb21102.in.gad.de;False;glsbtcb21102_00f_instanz_81-rg ;Online;;; ...


I can reduce the output by appending the atrribute names to the command

glsbtcb21102:/home/xgsamadm:>lsrg -m -D
';' MemberOf Mandatory |head Displaying Member Resource information: MemberOf;Mandatory;OpState; glsbapb21102_apache-dwt-rg;0;;


But how do I filter for the Resource Name, class and node?
Thanks so long
Manfred
Updated on 2012-04-27T08:31:50Z at 2012-04-27T08:31:50Z by nukite8d
  • SystemAdmin
    SystemAdmin
    120 Posts

    Re: Output lsrg

    ‏2012-04-27T07:53:43Z  
    Hello Manfred,

    there is no selection string which would do the job.
    I would just do simple UNIX commands:

    lsrg -m -x -D";"| cut -d";" -f1,3,4,6|egrep "^IBM.Application:sam"
    IBM.Application:samadapter;samadapter-rg ;Online;p6sa27

    Regards
    Andreas Schauberer
  • nukite8d
    nukite8d
    98 Posts

    Re: Output lsrg

    ‏2012-04-27T08:31:50Z  
    Hi Andreas,
    neat idea..that works for me.

    Thanks a lot for the answer and see you at EOTC,
    Manfred