IPAddressFixup - Global

After a device has been successfully discovered, ensures that no other device has the same IP address. If any duplicates are found, the IP address field is cleared.

Use with any server-side Discovery script to validate IP addresses.

IPAddressFixup - dedupe(String tableName, String ip)

Removes duplicates of the specified IP address in the specified table.

Table 1. Parameters
Name Type Description
tableName String The table to check for duplicates
ip String The IP address to check for
Table 2. Returns
Type Description
void


      
    

IPAddressFixup - dedupeAll()

Removes all duplicate IP addresses from the tables.

Table 3. Parameters
Name Type Description
None
Table 4. Returns
Type Description
void


      
    

IPAddressFixup - fix()

Removes all duplicate IP addresses and ensures that the parent ip_address record is set to one of the NIC's IP addresses.

Table 5. Parameters
Name Type Description
None
Table 6. Returns
Type Description
void


      
    

IPAddressFixup - getParentIP()

Gets the parent IP address for the current device.

Table 7. Parameters
Name Type Description
None
Table 8. Returns
Type Description
String The parent IP address


      
    

IPAddressFixup - syncIP()

Ensures that the parent ip_address record is set to one of the NIC's IP addresses, or leaves it alone if there were no NICs.

Table 9. Parameters
Name Type Description
None
Table 10. Returns
Type Description
void


      
    

IPAddressFixup - setParentIP(String ip)

Sets the IP address field for the current CI.

Table 11. Parameters
Name Type Description
ip String The IP address for the current CI.
Table 12. Returns
Type Description
void