Re: CLI Network Manager (cnetworkmanager)
- From: Martin Vidner <mvidner suse cz>
- To: networkmanager-list gnome org
- Cc: joel joelguilherme com
- Subject: Re: CLI Network Manager (cnetworkmanager)
- Date: Thu, 24 Sep 2009 01:41:48 +0200
On Sat, Sep 19, 2009 at 06:15:45PM -0300, Joel Guilherme wrote:
> Hi there,
Hi Joel,
sorry for the delay, I have a backlog after the openSUSE Conference.
> [...]
> My connections are reported by cnetworkmanager as
>
> $ ./cnetworkmanager -d
> Interface | Type | State
> ----------+----------+------------
> eth1 | ETHERNET | UNAVAILABLE
> eth0 | ETHERNET | ACTIVATED
> ttyUSB0 | GSM | ACTIVATED
>
> $ ./cnetworkmanager --di=ttyUSB0
> Property | Value
> -------------+----------------------------------------------------------------------------
> Udi | /org/freedesktop/Hal/devices/usb_device_12d1_1003_noserial_if0_serial_usb_0
> Interface | ttyUSB0
> Driver | option
> Capabilities | NM_SUPPORTED
> State | ACTIVATED
> Managed | True
> DeviceType | GSM
>
> $ ./cnetworkmanager --syscon
> Active | Name | Type
> -------+------+---------------
> * | Eth0 | 802-3-ethernet
> * | Vivo | gsm
>
> I assumed that I should use the option
>
> --activate-connection=[KIND],ID,[DEV],[APMAC]
>
> to get the job done.
> I hope someone can give me a hint on what parameters I shall use to put
> such an interface on again, when it goes down, if it is possible. I've tried
> all combinations I could think of. My best assumption is
>
> KIND = "system"
> ID = "Vivo"
> DEV = ttyUSB0
> APMAC = ? I have no idea of what should be (Would it mean "Access Point
> MAC address? This has no meaning to me, as it is not a WiFi connection.)
>
> For all combinations I've tried I received either a message saying
> that more parameters are needed or that option '-i'(?) was not recognised.
Yes
KIND is "system" or "user", "user" being the default
ID is the Name column of the -s or -u listing
DEV is the Interface column of the -d listing [I should name them to match]
APPATH can be omitted
so for your case it should be
cnetworkmanager --acti "system,Vivo,ttyUSB0,"
If it does not work, please send the exact command you use (note the
necessary trailing comma) and the full output. Unfortunately many
error states result in a python exception but I want to make them
into friendlier messages.
--
Martin Vidner, YaST developer
http://en.opensuse.org/User:Mvidner
Kuracke oddeleni v restauraci je jako fekalni oddeleni v bazenu
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]