ADDED: now using dladm command to get network interface status.