SuggestHostName
Syntax
sub SuggestHostName
Description
This function is called for every change request, in which the work order contains an IP address or subnet that is not associated with a hostname. It receives the change request as input, as well as the IP address/subnet and an indication of whether the IP address/subnet is a source or destination. It returns a suggested hostname for the IP address/subnet.
Configuration
By default, this hook is not called. To configure the hook, complete the procedure below.
To enable the SuggestHostName hook, ue the generic procedure for overriding system defaults to set the configuration parameter SuggestHostNameInWorkOrder to the value 1. For details, see Override FireFlow system defaults.
Note:
Input Parameters
$ticket |
A Perl hash reference containing a single key called flatTicket, which points to the flat ticket representation of the change request. For details, see Flat Ticket Examples. |
$ip |
The IP address or subnet that does not have an associated hostname. |
$field |
The IP address or subnet's function. This can have the following values:
|
Return Values
A suggested hostname for the IP address/subnet.