Important

   

This documentation space contains information about PATROL Agents when deployed in a TrueSight Operations Management environment. If you are a BMC Helix Operations Management user, see PATROL Agent 22.1 for BMC Helix Operations Management. Open link

is_local()

Verifies if the specified host name or IPv4 address maps to a localhost.

Syntax

is_local(object)

Parameter

ParameterDefinition

object

FQDN, IPv4 address, or short name of the host computer.

Description

The is_local() function returns TRUE if the specified object (FQDN, IPv4 address, or short name of the host computer) maps to the localhost, otherwise returns FALSE.

Example

The following example uses the is_local() function to determine if the PSL object is a localhost:

object = "test.abc.com"
if (is_local(object)) {
print(object," is a localhost.\n");
}

Was this page helpful? Yes No Submitting... Thank you

Comments