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::DB::Result::DevicePort(3) User Contributed Perl Documentation App::Netdisco::DB::Result::DevicePort(3)

Returns the Device table entry to which the given Port is related.

Returns the set of "device_port_vlan" entries associated with this Port. These will be both tagged and untagged. Use this relation in search conditions.

Returns the set of Nodes whose MAC addresses are associated with this Device Port.

The "active" variants return only the subset of nodes currently in the switch MAC address table, that is the active ones.

The "with_age" variants add an additional column "time_last_age", a preformatted value for the Node's "time_last" field, which reads as "X days/weeks/months/years".

Returns the set of "device_port_log" entries associated with this Port.

Returns a row from the "device_port_power" table if one refers to this device port.

Returns a row from the "device_port_properties" table if one refers to this device port.

Returns a row from the "device_port_ssid" table if one refers to this device port.

Returns a row from the "device_port_wireless" table if one refers to this device port.

Returns another row from the "device_port" table if this port is slave to another in a link aggregate.

When a device port has an attached neighbor device, this relationship will return the IP address of the neighbor. See the "neighbor" helper method if what you really want is to retrieve the Device entry for that neighbor.

The JOIN is of type "LEFT" in case the neighbor device is known but has not been fully discovered by Netdisco and so does not exist itself in the database.

This relationship will return the last node that was seen on the port.

The JOIN is of type "LEFT" in case there isn't any such node.

As compared to "port_vlans", this relationship returns a set of Device VLAN row objects for the VLANs on the given port, which might be more useful if you want to find out details such as the VLAN name.

See also "vlan_count".

Returns the "oui" table entry matching this Port. You can then join on this relation and retrieve the Company name from the related table.

The JOIN is of type LEFT, in case the OUI table has not been populated.

Returns the Device entry for the neighbour Device on the given port.

Might return an undefined value if there is no neighbor on the port, or if the neighbor has not been fully discovered by Netdisco and so does not exist in the database.

An alias for the "vlan" column, which stores the PVID (that is, the VLAN ID assigned to untagged frames received on the port).

Returns the textual reason given by the device if the port is in an error state, or else `undef` if the port is not in an error state.

Returns true if the remote LLDP neighbor has reported Wireless Access Point capability.

Returns true if the remote LLDP neighbor has reported Telephone capability.

Returns a synthesized description of the remote LLDP device if inventory information was given, including vendor, model, OS version, and serial number.

Returns the number of VLANs active on this device port. Enable this column by applying the "with_vlan_count()" modifier to "search()".

Formatted version of the "lastchange" field, accurate to the minute. Enable this column by applying the "with_times()" modifier to "search()".

The format is somewhat like ISO 8601 or RFC3339 but without the middle "T" between the date stamp and time stamp. That is:

 2012-02-06 12:49

This method can be used to evaluate whether a device port could be considered unused, based on the last time it changed from the "up" state to a "down" state.

See the "with_is_free" and "only_free_ports" modifiers to "search()".

Returns a Base64 encoded version of the "port" column value suitable for use in a URL.

Returns the "mac" column instantiated into a NetAddr::MAC object.

Returns the most recent comment from the logs for this device port.
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.