Hi Ali, On Mon, 2016-02-29 at 17:40 -0800, Ali Nematollahi wrote:
Thanks! I've looked at nmcli radio but there is no good documentation I could find for the version I am using. All of the documentation is for newer version and don't apply. First of all, when I do: nmcli nm wwan WWAN disabled Then I do: nmcli nm wwan on nmcli nm wwan WWAN disabled nmcli nm status RUNNING STATE WIFI-HARDWARE WIFI WWAN- HARDWARE WWAN running connected enabled enabled enabled disabled
I was reading on google somewhere that I need a config file in: /etc/NetworkManager/system-connections/ so I put one in: cat /etc/NetworkManager/system-connections/radio [connection] id=MyWwanConnection type=gsm [ipv4] method=auto [gsm] number=*99# apn=mnet.bell.ca.ioe restarted NM, did the same thing, no difference.
That doesn't sound like a good advice from the internet.
Any documentation for 0.9.4.0 that I can use to figure this out? Can someone help me with setting up the radio connections? I'm having no luck.
First, enable debug logging. For that, edit /etc/NetworkManager/NetworkManager.conf to have a section [logging] level=DEBUG then, restart NetworkManager, reproduce the issue and show the logfile. The logfile you will find somewhere in syslog, search in /var/log. good luck, Thomas
Thanks On Fri, Feb 26, 2016 at 2:22 PM, Dan Williams <dcbw redhat com> wrote:On Fri, 2016-02-26 at 10:50 -0800, Ali Nematollahi wrote:Thanks! How to I enable "service called NetworkManager-dispatcher or nm-dispatcher"? When I search for "dispatcher" in my filesystemonlythese come up: /etc/NetworkManager/dispatcher.d /etc/dbus-1/system.d/nm-dispatcher.conf /usr/share/dbus-1/system- services/org.freedesktop.nm_dispatcher.service /usr/lib/NetworkManager/nm-dispatcher.action /usr/sbin/usb_modeswitch_dispatcher Starting MM as a service makes perfect sense. The question is however, how do I find out when to say "enable"themodem, or to do a simple-connect? I was planning on using thedispatchersfor all of that, to automate all of those. So basically:NetworkManager will take care of that, if 'wwan' radios are enabled. See 'nmcli radio'. As long as 'nmcli radio' reports WWAN enabled, and as long as your machine has no airplane switch for WWAN (or if it does the switch enables the WWAN), NetworkManager will enable the modem when it is discovered by ModemManager and it will be available to connect with from NetworkManager. Recent versions of NetworkManager (1.0.8+) also have support for WWAN autoconnect, so I don't think you need a dispatcher script here at all.- MM starts - modem comes up, status -> Disabled - dispatcher kicks in: status -> Enabled - dispatcher kicks in: simple-connectDispatcher scripts only trigger on connection up/down, so you don't get any events on modem status changes. But that shouldn't matter, since NetworkManager can take care of all of the WWAN connection stuff as long as ModemManager is up and running (like if its run as a system service). DanThanks! On Fri, Feb 26, 2016 at 12:36 AM, Thomas Haller <thaller redhat com>wrote:On Thu, 2016-02-25 at 17:16 -0800, Ali Nematollahi wrote:Hi guys I'm trying to experiment with NM dispatchers but I can't seemtoget anything done. I have a very basic script in /etc/NetworkManager/dispatcher.d/02test: #!/bin/sh -e echo "Starting ModemManager" ModemManager --debug & But it is not running. I have made sure the scripts and directories are executable (a+x). But I cannot seem to get the scripts to run. Can someone help me with this please? NetworkManager --version 0.9.4.0You probably also need to enable a service calledNetworkManager-dispatcher or nm-dispatcher.Question 2: I wanted to use the dispatcher script to start ModemManager on startup and to enable the 3G modem I have.Can itbe done? I have seen examples of how to start a connection whenaninterface comes up but nothing that could help me with this.It looks very wrong to start ModemManager from a dispatcherscript.Those scripts are invoked often and at various times, you don't want to start ModemManager every time something happens with anetworkinginterface. Instead, start ModemManager as a regular system service, justlikeNetworkManager. Thomas_______________________________________________ networkmanager-list mailing list networkmanager-list gnome org https://mail.gnome.org/mailman/listinfo/networkmanager-list
Attachment:
signature.asc
Description: This is a digitally signed message part