OpenLMI CLI Interface Now Supports Networking

The OpenLMI CLI now includes commands to configure networks.

lmi> help net

Networking service management.

Usage:

net device (–help | show [<device_name> …] | list [<device_name> …])

net setting (–help | <operation> [<args>…])

net activate <caption> [<device_name>]

net deactivate <caption> [<device_name>]

net enslave <master_caption> <device_name>

net address (–help | <operation> [<args>…])

net route (–help | <operation> [<args>…])

net dns (–help | <operation> [<args>…])

Commands:

device Display information about network devices.

setting Manage the network settings.

activate Activate setting on given network device.

deactivate Deactivate the setting.

enslave Create new slave setting.

address Manipulate the list of IP addresses on given setting.

route Manipulate the list of static routes on given setting.

dns Manipulate the list of DNS servers on given setting.

As you can see from the help command, you can determine what network devices are available, read and modify their configuration, and bring NICs up and down.

List network devices:

lmi> net device list

ElementName OperatingStatus MAC Address

em1 InService 3C:97:0E:4B:2E:53

lo NotAvailable 00:00:00:00:00:00

virbr0-nic NotAvailable 52:54:00:DF:BD:C4

wlp3s0 Dormant 60:67:20:C9:0B:DC

Get details on a network device:

lmi> net device show em1

Device em1:

Operating Status InService

MAC Address 3C:97:0E:4B:2E:53

IP Address 10.18.57.222/255.255.127.0

IP Address fe80::3e97:eff:fe4b:2e53/64

IP Address 2620:52:0:1238:3e97:eff:fe4b:2e53/64

Default Gateway 10.18.57.254

Default Gateway ::

Default Gateway ::

DNS Server 10.5.30.160

DNS Server 10.11.5.19

Active Setting System em1

Available Setting System em1

The LMI CLI commands for networking allow you to show the device settings, change device settings, activate and deactivate a network device, and add or remove devices to a set of  bonded or bridged devices.

About Russell Doty

A technology strategist and product manager at Red Hat, working on the next generation of open source systems.
This entry was posted in System Management. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s