.
ctys-macmap - searches within the given list of "macmap.fdb"
ctys-macmap
[-d <debug-options>] [-n|-i|-m] [-h] [-H <help-options>] [-p <db-dir-path-list>] [-u] [-V] [-X] <simple awk-regexpr>
ctys-macmap (Address-Resolution) searches within the given list of 'macmap.fdb' for matching lines, and shows the requested fields of result. Simple awk-regexpr as for 'ctys-vhost' are supported. The result is pre-sorted, though in case of multiple results these will be presented sorted.
The contents of 'macmap.fdb' are displayed as one record on each line with the following fields.
For the generation of macmap.fdb from standard dhcp.conf and the
limitation to static assignment data refer to 'ctys-extractMAClst'.
.
ctys-macmap
.
A "simple" regexpr for awk, used as in given extract:
awk -v s="\${argLst}" '\$0~s\&\&n==1 '{cache=cache \$1; mx=1;} ...'
Therefore e.g.
ctys-macmap -n -m '00:50:56:.3:..:.9'
generates the following matches:
tst009;00:50:56:13:11:39 tst108;00:50:56:13:11:49
The comparison of MAC addresses is non-casesensitive, where the internal storage
format is in uppercase.
It should be avoided to edit the database manually, but when required the MAC addresses
has to be stored with uppercase characters [A-F].
.
Written and maintained by Arno-Can Uestuensoez:
Maintenance: | <<acue_sf1 (a) sourceforge net>> |
Homepage: | <https://arnocan.wordpress.com> |
Sourceforge.net: | <http://sourceforge.net/projects/ctys> |
Project moved from Berlios.de to OSDN.net: | <https://osdn.net/projects/ctys> |
Commercial: | <https://arnocan.wordpress.com> |
Copyright (C) 2008, 2009, 2010 Ingenieurbuero Arno-Can Uestuensoez
For BASE package following licenses apply,
This document is part of the DOC package,
For additional information refer to enclosed Releasenotes and License files.