NIC discovery

From: Urie, Todd (TUrie@trueposition.com)
Date: Fri Jun 21 2002 - 15:45:18 EDT


Is there a reliable method that can be used to discover the number and type
of network interfaces that are available on a system and that can be used
from a script?

I have looked at using 'prtconf' or 'sysdef', but neither of which seem
suitable. 'ndd' might be an option to determine which of the possible
devices are actually up. For instance:

ndd /dev/qfe \?

returns a non-zero value if the driver is not loaded. However, is there
ever an instance where the driver would not be loaded when the hardware is
physically present? Would it require a 'boot -r' from 'ok' in order to
ensure that it is detected?

The other problem with this is that you must know the designations for all
network interface types and just try them all to see what's available.

I also looked at 'cfgadm' which didn't seem to be of much help in this
situation.

What I want to do is this. I want to be able to setup IP Multipathing from
a script that detects the number and type of interfaces and configures them
appropriately.

Any suggestions?

Todd Urie
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:24:29 EDT