Kostis Netzwerkberatung
Konstantinos Kostis
Talstr. 25, D-63322 Rödermark
Tel. +49 6074 881056, FAX 881058
kosta@kostis.net, http://www.kostis.net/
You may use this software free of charge at your own risk
netdb 3.0.6 (2001-01-29)
netdb functions are calculated from netdb properties (except for %domainroot%).
ipaddr=192.168.0.254
ipmask=255.255.255.0
decnet=10.760
| Common | Content/Function (derived from /etc/netdb/root) | |
| %domainroot% | read from root file /etc/netdb/root, Internet domain name root (eg. kostis.net) | |
| IP Subnet | Content/Function (requires ipaddr and ipmask) | |
| %ipnet% | IP network without hostid Example: 192.168.0 |
|
| %ipnetaddr% | IP network address incl. hostid Example: 192.168.0.0 |
|
| %ipbroad% | IP broadcast address Example: 192.168.0.255 |
|
| %ipaddrhex% | ipaddr in dotted hex format (eg. for Novell Netware) | |
| %ipmaskhex% | ipmask in dotted hex format (eg. for Novell Netware) | |
| %ipmaskbits% | number of bits set in ipmask (0 if invalid, else 8..32) Example: 30 for ipmask=255.255.255.252 |
|
| %ipfirst% | First valid ipaddr in subnet | |
| %iplast% | Last valid ipaddr in subnet | |
| %ipnext% | Next valid ipaddr in subnet (0.0.0.0 if out of range) | |
| %ipprev% | Previous valid ipaddr in subnet (0.0.0.0 if out of range) | |
| IP Rev | Content/Function (requires ipaddr and ipmask) | |
| %iphostrev% | IP reverse lookup hostid part for DNS (using
subnet mask ipmask) Example: 254 |
|
| %iphostrev1% | like iphostrev
but with fixed subnet mask 255.255.255.0 instead of ipmask Example: 254 |
|
| %iphostrev2% | like iphostrev
but with fixed subnet mask 255.255.0.0 instead of ipmask Example: 254.0 |
|
| %iphostrev3% | like iphostrev
but with fixed subnet mask 255.0.0.0 instead of ipmask Example: 254.0.168 |
|
| %iphostrev4% | like iphostrev
but with all four bytes in reverse order (for o4.o3.o2.o1.in-addr.arpa) Example: 254.0.168.192 |
|
| hostname | Content/Function | |
| %host% | hostname converted
to capitals excluding all characters after and including
"-" Example: FA133 for hostname=fa133-s01 |
|
| %hostindex% | skips leading letters in hostname, extracts digits
and then skips the rest Example: 133 for hostname=fa133-s01 |
|
| DECnet | Content/Function (requires decnet) | |
| %decnetarea% | DECnet Phase IV area calculated from decnet Example: 10 |
|
| %decnethost% | DECnet Phase IV host calculated from decnet Example: 760 |
|
| %decnetnum% | DECnet Phase IV address in decimal
calculated from decnet Example: 11000 (10*1024+760) |
|
| MAC | Content/Function (requires mac) | |
| %arpmac% | like colonmac, but without leading zeroes (eg. arpwatch data format) | |
| %binarymac% | mac without delimiters (xxxxxxxxxxxx), eg. for Novell NetWare | |
| %ciscomac% | mac in Cisco IOS format (xxxx.xxxx.xxxx) | |
| %colonmac% | mac with colon delimiter (XX:XX:XX:XX:XX:XX) eg. for dhcpd.conf |