How do you write a program (C++\Python\Java) to install a DHCP server on a remote machine?

Asked by Last Modified  

1 Answer

Learn Java

Follow 0
Answer

Please enter your answer

Trainer

The solution would depend on your environment: is the remote system running Windows/Linux? Also, do you really want to write a program to do this? For Windows Server 2012 - on both the remote system and the one on which you are working - the 'Add roles/features' dialog allows you to connect to...
read more
The solution would depend on your environment: is the remote system running Windows/Linux? Also, do you really want to write a program to do this? For Windows Server 2012 - on both the remote system and the one on which you are working - the 'Add roles/features' dialog allows you to connect to a remote server and add the DHCP role to it. For a flavor of Linux, say Ubuntu - on the remote system - you can simply open an SSH connection and execute the following command: sudo apt-get install dhcp3-server Presumably, you would also want to then configure it - which can be done by creating a configuration file locally and then pushing it to: /etc/default/dhcp3-server Now let's say you do actually want to write a program to do this: Python Use Paramiko to open an SSH connection and fire the command PowerShell Use the Servermanager module. See Page on microsoft.com for some help. C++/Java This isn't really a low-level computing problem - it's more of a sysadmin and infrastructure management problem. I wouldn't recommend using a language like C++/Java to do this - use a scripting language instead. read less
Comments

Related Questions

Sir how is Java a pure object oriented programming language?

 

Java is not a purely object-oriented programming language. Lots of people say’s its object-oriented language but it is not true because Java supports primitive data type and does not handle multiple inheritances.
Ram
What is a constructor in Java?
In Java, a constructor is a special method that is called when an object is created using the new keyword. It has the same name as the class and is used to initialize the object's state. Constructors play...
Rishu
0 0
5
Can a class have interface and vice-versa?
Interface is used to support multiple inheritance only.
Deepa
0 0
7
Why is Java better than any other programming language?
Java is not necessarily "better" than every other programming language; the suitability of a language depends on the specific requirements of a project. However, Java has several strengths, including platform...
Sushil
0 0
5

Now ask question in any of the 1000+ Categories, and get Answers from Tutors and Trainers on UrbanPro.com

Ask a Question

Related Lessons

1.1. Reverse an array in Java.
public class Main { public static void main(String args) { int arr = {1, 2, 3, 4, 5}; for (int i = 0; i < arr.length / 2; i++) { int temp = arr; arr = arr; arr = temp; } System.out.println(Arrays.toString(arr)); }}

Class, Object and Methods in JAVA
Lesson-1: Class, Object and Methods of Java can be compared with body, heart and brain. Without these 3 things, Java does not exist. If you Google the above 3 items, you will find many definitions. But...

How to create Rest web services in Java
Web services are web application components that lets two different applications to communicate over the network.Let if an application which in written java provides web services can be communicated through...

Comparable vs Comparator
java.lang.Comparable java.util.Comparator For comparing some other object with its own object. Ex. I am comparing myself to some other employee. Method signature is: int compareTo (T object). For...

Internet of Things, Social Media Becoming Part of E-Discovery Landscape
The days when e-discovery consisted of handing over copies of e-mails to address Freedom of Information Act (FOIA) requests, compliance regulations or other legal obligations are over. Now, it's just as...

Recommended Articles

Java is the most commonly used popular programming language for the creation of web applications and platform today. Integrated Cloud Applications and Platform Services Oracle says, “Java developers worldwide has over 9 million and runs approximately 3 billion mobile phones”.  Right from its first implication as java 1.0...

Read full article >

Designed in a flexible and user-friendly demeanor, Java is the most commonly used programming language for the creation of web applications and platform. It allows developers to “write once, run anywhere” (WORA). It is general-purpose, a high-level programming language developed by Sun Microsystem. Initially known as an...

Read full article >

In the domain of Information Technology, there is always a lot to learn and implement. However, some technologies have a relatively higher demand than the rest of the others. So here are some popular IT courses for the present and upcoming future: Cloud Computing Cloud Computing is a computing technique which is used...

Read full article >

Java is the most famous programming language till date. 20 years is a big time for any programming language to survive and gain strength. Java has been proved to be one of the most reliable programming languages for networked computers. source:techcentral.com Java was developed to pertain over the Internet. Over...

Read full article >

Looking for Java Training Classes?

Learn from the Best Tutors on UrbanPro

Are you a Tutor or Training Institute?

Join UrbanPro Today to find students near you