Re: [PATCH] [lsvpd] separate VPD stanzas in lsvpd output
Paul Clarke <[email protected]> Mon, 9 Nov 2015 09:15:11 -0600
| Newsgroups | gmane.linux.tools.diag.devel |
|---|---|
| Message-ID | <[email protected]> |
On 11/02/2015 10:14 PM, Vasant Hegde wrote: > On 10/28/2015 07:49 PM, Paul Clarke wrote: >> On 10/22/2015 09:45 AM, Vasant Hegde wrote: >>> On 09/30/2015 10:42 PM, Paul Clarke wrote: >>>> Output from lsvpd command has no separation between different stanzas, >>>> making interpretation difficult: >> >>> Thanks for the patch. But this patch changes the output format... which exists >>> for long time. I know that there are lot of people using lsvpd/written wrapper >>> around lsvpd for some automation/validation etc. I'm afraid that it may create >>> side impact on those users.. >> >> What if the behavior is enabled with a new command option? >> >> # lsvpd --stanzas > > Why do you need this ? we already have option like -l which lists device > specific info based on AX name. As I said in the original post, without some sort of separation between the stanzas, it's impossible for anyone unfamiliar with the output (and that "*FC" is the first entry in most(?) stanzas?) to be able to parse it. Here's an extract: -- *HW 0001 *B3 000000000001 *B4 00 *B7 000000000000000000000000 *B9 435333011412567123CE53505E8C13795821C89D4D313990F18087DE7DC34D32B6CB000AF9F048E34D33C750F50036650F994D3486220C8430C190B3 *YL U78C9.001.WZS005T-P1-C13 *VK ipzSeries *FC *DS Memory DIMM *RT VINI *FN 00JJ144 *SN YH32MU45C1AJ *PN 00JJ144 *CC 31E8 *CE 1 *PR 4900000000010000 *Size 0016384 *HE 0001 *CT 00000000 *HW 0100 *B3 000000000000 *B4 00 *B7 000000000000000000000000 *YL U78C9.001.WZS005T-P1-C16 *VK ipzSeries *FC *DS Memory DIMM *RT VINI *FN 00JJ144 *SN YH32MU45C1BY -- Tell me the serial number of the Memory DIMM at U78C9.001.WZS005T-P1-C16. Is it the "SN" above or below the location (YL)? There's no way to know as there is not enough context. The "-l" option is only useful if one already knows the device name. If one is searching for a device, the context is helpful so that not only can one find the device, one can also glean it's attributes with confidence. I tried using filters like "-t" or "-s", and neither seemed to work. I always got everything displayed: # lsvpd -t memory | wc -l 586 # lsvpd -t blah | wc -l 586 # lsvpd -s blah | wc -l 586 By the way, is there any way to make the output more "readable"? The only obvious field label well above is "Size". Why are the other field labels limited to two fairly nebulous characters? Regards, PC ------------------------------------------------------------------------------ Presto, an open source distributed SQL query engine for big data, initially developed by Facebook, enables you to easily query your data on Hadoop in a more interactive manner. Teradata is also now providing full enterprise support for Presto. Download a free open source copy now. http://pubads.g.doubleclick.net/gampad/clk?id=250295911&iu=/4140