On Tue, 26 May 2009 15:10:02 +1000 (EST) Andre van Eyssen <andre at purplecow.org> wrote:
> All, > > I was thinking today, after another request to translate ports on the back > of a host into physical slots, that it would be very cool for the userbase > to be able to run a command like > > # dladm show-slot > qfe0 PCI3 "/pci at 8,700000/pci at 2/SUNW,qfe at 0,1" > qfe1 PCI3 "/pci at 8,700000/pci at 2/SUNW,qfe at 1,1" > qfe2 PCI3 "/pci at 8,700000/pci at 2/SUNW,qfe at 2,1" > qfe3 PCI3 "/pci at 8,700000/pci at 2/SUNW,qfe at 3,1" > ge0 ONBOARD "/pci at 8,600000/network at 1" > (etc) > > This should certainly be do-able for any Sun manufactured machines, and > would be a nice touch. > > The main idea here is that way a single, simple command will yield > understandable-to-most results without the need to understand too much. > HP-UX has "lanscan" and "ioscan" to provide some degree of similar > information. > > Extra points for something that covers host bus adapters as well. > > Comments, team? 6844918 dladm show-slot could do logical to physical mapping jbk: I included a suggestion about libtopo usage :-) James C. McPherson -- Senior Kernel Software Engineer, Solaris Sun Microsystems http://blogs.sun.com/jmcp http://www.jmcp.homeunix.com/blog Kernel Conference Australia - http://au.sun.com/sunnews/events/2009/kernel
