Description


omcmd


omcmd is a handy scriptable CLI program that helps you manage actions on a running ISC DHCP server using OMAPI. Pretty cool, right? It lets you create, remove, modify, and look up hosts and leases with ease. This tool was designed to work with a custom netreg application.



Getting Started with omcmd


Before diving in, make sure to install dhcp-devel. You’ll need to check where the include files for DHCP are located. Don’t worry if autoconf sounds tricky; just type 'make' and fix any errors that pop up!



How to Use omcmd


The basic usage format is:


omcmd [-k keyname secret | -K keyfile ] [-s server] [-v] < command > < objtype > < args >


The keyname and secret should match what’s in your dhcpd.conf file. Remember, the secret must be base64 encoded! If you’re using a 'keyfile', it should have the keyname on the first line and the secret on the second.



Commands You Can Use


You have several commands at your disposal:



  • lookup: Find an object and print its properties.

  • create: Create a new object.

  • remove: Remove an object.

  • modify: Change an existing object.



The Object Types Explained


The objtype can be one of these:



  • host

  • lease



Your First Argument Matters!


The first argument should be in this form: property=value (like ip-address=10.20.30.40). For removing objects, this is all you need!



Create & Modify Properties


If you're creating or modifying an object, you'll add more property=value strings. Here are some properties you can use:



  • ip-address - e.g., ip-address=10.20.30.40

  • hardware-type - e.g., hardware-type=1

  • hardware-address - e.g., hardware-address=00:10:20:30:40:50

  • state - e.g., state=free

  • Name - e.g., name=mylaptop


User Reviews for omcmd FOR LINUX 7

  • for omcmd FOR LINUX
    omcmd FOR LINUX is a handy CLI tool for managing an ISC DHCP server. Ideal for network administrators. Installation is straightforward with helpful usage instructions.
    Reviewer profile placeholder Alice Brown
  • for omcmd FOR LINUX
    omcmd is a fantastic tool for managing ISC DHCP servers! Its CLI interface is easy to use, and the functionality to create, modify, and look up leases makes my job so much easier. Highly recommended!
    Reviewer profile placeholder Alex Johnson
  • for omcmd FOR LINUX
    I love using omcmd! It simplifies DHCP management significantly. The scriptable nature allows for automation, which saves me so much time. Definitely a 5-star app in my book!
    Reviewer profile placeholder Jessica Smith
  • for omcmd FOR LINUX
    omcmd has been a game changer for my network management tasks. The commands are intuitive, and I've had no issues with installation or usage. A must-have for any sysadmin!
    Reviewer profile placeholder Michael Brown
  • for omcmd FOR LINUX
    This app is incredibly useful! I can easily create and remove hosts without digging through configuration files. The verbose output feature helps me troubleshoot effectively too.
    Reviewer profile placeholder Emily Davis
  • for omcmd FOR LINUX
    omcmd is exactly what I needed for my DHCP server management. It's straightforward to set up, and the command options are clear and effective. This app deserves all five stars!
    Reviewer profile placeholder David Wilson
  • for omcmd FOR LINUX
    I can't recommend omcmd enough! It's powerful yet simple to use. Managing leases has never been easier, and the ability to script actions is a huge plus for efficiency.
    Reviewer profile placeholder Sarah Taylor
SoftPas

SoftPas is your platform for the latest software and technology news, reviews, and guides. Stay up to date with cutting-edge trends in tech and software development.

Recent

Help

Subscribe to newsletter


© Copyright 2024, SoftPas, All Rights Reserved.