Inserts a link to the dig WUI page to lookup host information for IP.
The following parameters are recognized:
The IP address to lookup information on.
The text which the user sees (omit if you just want IP).
Title text for mouse over.
Example of using the macro:
@digHostLookupLink("${REMOTE_ADDR}","Your Host Name","Here is some hover information")
Assuming the com.ccg.macros.at.All
class is within your CLASSPATH
and the
config/bash.at
macros file has been
generated (Hint: run make atmacros in the
wui
directory), a developer should be able to
run the above example by copy/pasting from below:
[root@probe root]#
java com.ccg.macros.at.All <<EOF
@include("config/bash.at",,"d")
@digHostLookupLink("${REMOTE_ADDR}","Your Host Name","Here is some hover information")
EOF
This macro is defined as:
<a@htmlAttr("href",""@topDir()/cgi-bin/networking/dig.cgi?action=digsearch&args=-x+@param(0)")@ifEqual("@param(2)","","","@htmlAttr("title","@param(2)")")>@fnb("@param(1)","@param(0)")</a>