Re: How to monitor NM progress?



On Tue, 2010-09-14 at 14:48 +0000, Rafal Wojtczuk wrote:
> Hello,
> 
> I am looking for a way to get a progress notification from Network Manager.
> More specifically, I need a way to be notified when all network interfaces
> (that NM is supposed to take care of) have been brought up (have IFF_UP flag). 
> Does anyone have an idea how to achieve this?

You can add a dispatcher script (see /etc/NetworkManager/dispatcher.d
and the man pages).  Those scripts will be run when interfaces are
brought up or down.

> It is not enough to wait (in some watchdog living outside of NM) for all interfaces 
> to be up, because user can tick "disable wireless" in nm-applet and then NM 
> will never make wlan0 up.
> 
> Alternatively, is there a way to retrieve all interfaces names that NM is
> supposed to manage ?

nmcli can give you the information you need here.  "nmcli nm" will list
what hardware is enabled.  "nmcli dev" lists all devices nm is managing.




> 
> Regards,
> Rafal Wojtczuk
> _______________________________________________
> networkmanager-list mailing list
> networkmanager-list gnome org
> http://mail.gnome.org/mailman/listinfo/networkmanager-list

-- 
Daniel Rogers
mobile: 510-379-8302
home:   925-429-5109
office: 415-979-3740




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]