AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Power
#Power
 View Only
  • 1.  output format of lsvg, lslv, ls-

    Posted Mon August 22, 2011 11:01 AM

    Originally posted by: pdxcity


    Is there another way to get the same information but in a format that is easier to parse ?

    For example lsjfs2's output

    lsjfs2 /tmp
    #MountPoint:Device:Vfs:Nodename:Type:Size:Options:...
    /tmp:/dev/hd3:jfs2:::6291456:rw:yes:no::::::::::::

    -pete
    #AIX-Forum


  • 2.  Re: output format of lsvg, lslv, ls-

    Posted Tue August 23, 2011 04:26 AM

    Originally posted by: DjRobin69


    lsjfs /tmp | pr -e:15

    You can play around with pr setting to get a nice output
    #AIX-Forum


  • 3.  Re: output format of lsvg, lslv, ls-

    Posted Tue August 23, 2011 11:17 AM

    Originally posted by: pdxcity


    Sorry to create a misunderstanding

    lsjfs2 gives me what I want, with fields on one line, colon separated

    I was hoping there was a similar undocumented option to commands such as lsvg, lslv, etc.

    On a side note, there is a very old Perl module AIX::ODM from 2004. I've not yet looked at it.

    -pete
    #AIX-Forum