omcmd icon

omcmd For Linux

  n/a
GPL    

omcmd is a scriptable CLI program for performing actions on a running ISC DHCP server using OMAPI.. #Scriptable CLI  #Performing actions  #ISC DHCP server  #Omcmd  #Scriptable  #CLI  

Description

changelog

Free Download

omcmd is a scriptable CLI program for performing actions on a running ISC DHCP server using OMAPI.

It can currently be used to create, remove, modify, and look up hosts and leases. omcmd was created for use with a home-grown netreg application.

You must install dhcp-devel first. Check the locations of the include files for dhcp. I don't know squat about autoconf & friends, just type 'make' and correct any errors you get. Usage: omcmd [-k keyname secret | -K keyfile ] [-s server] [-v] < command > < objtype > < args >

The keyname & secret are the same as the values in the dhcpd.conf file; the secret is base64 encoded. If using a 'keyfile', line1=keyname, line2=secret. -v for verbose output (see below)

command is one of:

lookup - find an object and print properties create - create a new object remove - remove an object modify - modify an object

objtype is one of:

host lease

For all commands, the first arg should be of the form property=value, and should be a 'lookup' value (see OMAPI in man dhcpd), i.e.: ip-address=10.20.30.40. For remove, this is the only required argument.

For create & modify, the remaining arguments are more property=value strings supported properties so far:

ip-address - e.g. "ip-address=10.20.30.40" hardware-type - e.g. "hardware-type=1" (you almost always use this when specifying the hardware-address) hardware-address - e.g. "hardware-address=00:10:20:30:40:50" state - e.g. "state=free" (you can use this to free an active lease) name - e.g. "name=mylaptop" client-hostname (similar)

For the appropriate properties for an object type, see 'man dhcp'.

For 'lookup', you can leave off remaining args, and it will print what it finds (in verbose mode). You can also specify property names you want found, and it will spit them out one per line (non-verbose mode), or as property=value strings (verbose). Lookup properties supported are: ends, tstp, tsfp, cltt, ip-address, client-hostname, name, dhcp-client-identifier, hardware-address, hardware-type, and state.

Currenlty, only host & lease objects are supported, but adding support for other known object types shouldn't be hard.

The return value is 255 for invalid usage, otherwise a value of type isc_result_t. (see include/isc-dhcp/result.h)

What's new in omcmd 0.4.8:

  • This release added a patch that adds host statements and group object support, a command-line option for setting the port number, and minor documentation updates.
Read the full changelog

omcmd 0.4.8

add to watchlist add to download basket send us an update REPORT
  runs on:
Linux
  filename:
omcmd-0.4.8.tar.gz
  main category:
Utilities
  developer:
  visit homepage

ShareX 16.0.1

Capture your screen, create GIFs, and record videos through this versatile solution that includes various other amenities: an OCR scanner, image uploader, URL shortener, and much more
ShareX

Zoom Client 6.0.3.37634

The official desktop client for Zoom, the popular video conferencing and collaboration tool used by millions of people worldwide
Zoom Client

Windows Sandbox Launcher 1.0.0

Set up the Windows Sandbox parameters to your specific requirements, with this dedicated launcher that features advanced parametrization
Windows Sandbox Launcher

7-Zip 23.01 / 24.04 Beta

An intuitive application with a very good compression ratio that can help you not only create and extract archives, but also test them for errors
7-Zip

IrfanView 4.67

With support for a long list of plugins, this minimalistic utility helps you view images, as well as edit and convert them using a built-in batch mode
IrfanView

Microsoft Teams 24060.3102.2733.5911 Home / 1.7.00.7956 Work

Effortlessly chat, collaborate on projects, and transfer files within a business-like environment by employing this Microsoft-vetted application
Microsoft Teams

Bitdefender Antivirus Free 27.0.35.146

Feather-light and free antivirus solution from renowned developer that keeps the PC protected at all times from malware without requiring user configuration
Bitdefender Antivirus Free

4k Video Downloader 1.5.3.0080 Plus / 4.30.0.5655

Export your favorite YouTube videos and playlists with this intuitive, lightweight program, built to facilitate downloading clips from the popular website
4k Video Downloader

Context Menu Manager 3.3.3.1

Customize Windows’ original right-click context menu using this free, portable and open-source utility meant to enhance your workflow
Context Menu Manager

calibre 7.9.0

Effortlessly keep your e-book library thoroughly organized with the help of the numerous features offered by this efficient and capable manager
calibre

% discount
4k Video Downloader
  • 4k Video Downloader
  • Context Menu Manager
  • calibre
  • ShareX
  • Zoom Client
  • Windows Sandbox Launcher
  • 7-Zip
  • IrfanView
  • Microsoft Teams
  • Bitdefender Antivirus Free
essentials


Load comments
This enables Disqus, Inc. to process some of your data. Disqus privacy policy