Alan:
Thanks for the advice, I'll change the parameter to uname, why I'm using
the output of ifconfig is because I need to get the device name of the
network card, it seems to be the easy way to get this message with
python code, I don't know if there is any better solution for that.
Thanks
Chris
Alan Coopersmith ??:
> 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.
>