Michael Schuster wrote: > All, > > the imminent putback of > > 6722523 "dladm needs a robust and convenient parsable output mode" > > (PSARC/2008/374) is (again) changing the format of parsable output; we > hope that this is the last time this kind of change is necessary. > > Up to now, dladm -p printed a set of key="value" pairs for every object > (link, device...) concerned; this change will cause only the values > themselves to be output, seperated by ':'. If any of the values to be > printed contains a ':', it will be escaped using the usual '\', as will > the escape character itself. > > It will now be necessary to explicitly specify the keys to printed, > using the "-o field[,field]" option. "-o all" will also be invalid with -p. > > here's an example: > > # old: > # ./dladm show-link > LINK CLASS MTU STATE OVER > e1000g0 phys 1500 up -- > e1000g2 phys 1500 unknown -- > e1000g1 phys 1500 unknown -- > e1000g3 phys 1500 unknown --
oops ... that may be old, but not really relevant, because not parsable. Here's something more like it: # /usr/sbin/dladm show-link -p LINK="e1000g0" CLASS="phys" MTU="1500" STATE="up" OVER="" LINK="e1000g2" CLASS="phys" MTU="1500" STATE="unknown" OVER="" LINK="e1000g1" CLASS="phys" MTU="1500" STATE="unknown" OVER="" LINK="e1000g3" CLASS="phys" MTU="1500" STATE="unknown" OVER="" > # new: > # empty values now are really empty: > # ./dladm show-link -p -o over,state > :up > :unknown > :unknown > :unknown > > please direct your questions to [email protected] or to > me, as you see fit. Michael -- Michael Schuster http://blogs.sun.com/recursion Recursion, n.: see 'Recursion' _______________________________________________ networking-discuss mailing list [email protected]
