0

System.Management seems not to be implemented. Is there any way or will I have to wrap the system calls myself?

Cheers

Hector
  • 1,170
  • 2
  • 10
  • 27
  • Hmm maybe this post helps ya http://stackoverflow.com/questions/209779/how-can-you-change-network-settings-ip-address-dns-wins-host-name-with-code – Baklap4 Apr 21 '15 at 13:30
  • This seems to use System.Management which AFAIK is .NET only. I need this to run under mono on linux – Hector Apr 21 '15 at 13:35
  • http://www.mono-project.com/docs/about-mono/compatibility/ it does not map to linux no hmm :( – Baklap4 Apr 21 '15 at 13:39
  • Which distribution are you using? – cbr Apr 21 '15 at 14:03
  • Debian. Currently Wheezy with the Jessie Kernel. Will have to move to Jessie when its stable. – Hector Apr 22 '15 at 11:26

1 Answers1

1

There seems to be no way to properly do this out of the box with Mono.

My suggestion (and what I am attempting right now, also) is to simply parse /etc/network/interfaces and do it that way.

A good start would be this Awk script that parses Interfaces https://joekuan.wordpress.com/2009/11/01/awk-scripts-for-reading-and-editing-ubuntu-etcnetworkinterfaces-file-part-22/

Good luck!