Chris Wang wrote:
> + if (uname[-1] in ('i86pc')):
> + return Solaris.X86()
> +
> + if (uname[-1] in ('sun4u')):
> + return Solaris.Sparc()
Niagara machines are sun4v, so you should recognize that as
well as sun4u if using uname -m. (This is why the uname
man page recommends using 'uname -p' for processor type,
which will return 'sparc' on all sparc models past, present &
future.)
> + return self.__net_devices.findall( os.popen('/usr/sbin/ifconfig
> -a').read())
Parsing the output of ifconfig -a will be fun to ARC.
--
-Alan Coopersmith- alan.coopersmith at sun.com
Sun Microsystems, Inc. - X Window System Engineering