GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
App::Netdisco::Util::Device(3) User Contributed Perl Documentation App::Netdisco::Util::Device(3)

App::Netdisco::Util::Device

A set of helper subroutines to support parts of the Netdisco application.

There are no default exports, however the ":all" tag will export all subroutines.

Given an IP address, returns a DBIx::Class::Row object for the Device in the Netdisco database. The IP can be for any interface on the device.

If for any reason $ip is already a "DBIx::Class" Device object, then it is simply returned.

If the device or interface IP is not known to Netdisco a new Device object is created for the IP, and returned. This object is in-memory only and not yet stored to the database.

Given an IP address, deletes the device from Netdisco, including all related data such as logs and nodes. If the $archive parameter is true, then nodes will be maintained in an archive state.

Returns true if the transaction completes, else returns false.

Will update all records in Netdisco referring to the device with $current_ip to use $new_ip instead, followed by renumbering the device itself.

Returns true if the transaction completes, else returns false.

Given a $type (which may be any text value), returns true if any of the list of regular expressions in $setting_name is matched, otherwise returns false.

Given an IP address, returns "true" if Netdisco on this host is permitted by the local configuration to discover the device.

The configuration items "discover_no" and "discover_only" are checked against the given IP.

If $device_type is also given, then "discover_no_type" will be checked. Also respects "discover_phones" and "discover_waps" if either are set to false.

Also checks if the device is a pseudo device (vendor is "netdisco").

Returns false if the host is not permitted to discover the target device.

Same as "is_discoverable", but also compares the "last_discover" field of the "device" to the "discover_min_age" configuration.

Returns false if the host is not permitted to discover the target device.

Given an IP address, returns "true" if Netdisco on this host is permitted by the local configuration to arpnip the device.

The configuration items "arpnip_no" and "arpnip_only" are checked against the given IP.

Also checks if the device reports layer 3 capability.

Returns false if the host is not permitted to arpnip the target device.

Same as "is_arpnipable", but also compares the "last_arpnip" field of the "device" to the "arpnip_min_age" configuration.

Returns false if the host is not permitted to arpnip the target device.

Given an IP address, returns "true" if Netdisco on this host is permitted by the local configuration to macsuck the device.

The configuration items "macsuck_no" and "macsuck_only" are checked against the given IP.

Also checks if the device reports layer 2 capability.

Returns false if the host is not permitted to macsuck the target device.

Same as "is_macsuckable", but also compares the "last_macsuck" field of the "device" to the "macsuck_min_age" configuration.

Returns false if the host is not permitted to macsuck the target device.

2022-06-08 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.