|
NAMECisco::UCS::Common::EthernetPort - Class for operations with a Cisco UCS Ethernet Port.SYNOPSISprint "FI A port 1/2 operational_speed is " . $ucs->interconnect(A)->card(1)->eth_port(2)->oper_speed; . ', total bytes transmitted is " . $ucs->interconnect(A)->card(1)->eth_port(1)->tx_total_bytes . ".\n"; # Prints: # FI A port 1/2 operational_speed is 10gbps, total bytes transmitted is 120230320434028. DESCRIPTIONCisco::UCS::Common::EthernetPort is a class used to represent a single Ethernet port in a Cisco::UCS system. This class provides functionality to retrieve information and statistics for Ethernet ports.Please note that you should not need to call the constructor directly as Cisco::UCS::Common::EthernetPort objects are created for you automatically via methods in other Cisco::UCS packages like the i<get_ports> method in Cisco::UCS::Interconnect. Dependent on UCSM version, some attributes of the Ethernet port may not be provided and hence the accessor methods may return an empty string. METHODSadmin_stateThe administrative state of the port.chassis_idThe numeric id of the chassis to which this port is connected. This value will be blank for port that are configured as network uplinks.dnThe distinguished name of the port in the Cisco UCS management heirarchy.epDnThe dn of the object to which the remote end of this port is connected.idThe port number in the relevant to the current slot.if_roleThe role of the port. e.g. 'server' for server links or 'network' for network uplinks.if_typeThe type of the port - either physical or virtual.labelThe user-defined label given to the port (may be blank).license_stateThe license state of the port.macThe MAC address of the port.modeThe access mode of the port.peer_dnThe UCS management heirarchy distinguished name of the peer port to which this port is connected.peer_port_idThe numerical identifier of the peer port to which this port is connected.oper_stateThe operational state of the port.oper_speedThe operational speed of the port.rcvr_typeThe physical interface receiver type.switch_idThe id of the Fabric Interconnect on which the port is located.typeThe network type of the port.STATISTICAL METHODSThe statistics methods listed below allow retrieval of interface counter statistical data. These methods fall into three broad categories; transmit (tx), receive (rx) and error (err).CACHING AND NON-CACHING STATISTICAL METHODSAll statistical methods are implemented in both a non-caching and caching form; non-caching methods always query the UCSM for data retrieval and therefore may be more expensive in terms of system and network resources than the equivalent caching method. Non-caching methods are always named using the form:get_<type>_<counter_name> Where type is one of rx, tx or err as described in the STATISTICS METHODS section above, and counter_name is the name of the counter as per the section below. Caching methods return a cached result retrieved during a previous query if available, if cached data retrieved from a previous query is not available, then a the UCSM is queried for the requested data. Caching methods are named using the same form as non-caching methods excluding the prefix get_. Because UCSM queries may be expensive it is important to note the way in which caching has been implemented and the potential side-effects that this may have. In brief, when a non-caching method is executed for a particular counter type (tx, rx or err) either implicitly or explicitly, all other available counters for that type are also retrieved and cached. This may introduce side-effects and action-at-a-distance and thus, and Cisco::UCS::Common::EthernetPort objects cannot be considered reentrant. COMMON STATISTICAL METHODSTransmit, receive and error counter data share the following common methods that are a function of the underlying collection method.get_tx_intervals get_rx_intervals get_err_intervals tx_intervals rx_intervals err_intervalsReturns the number of counter collection intervals that have elapsed since the last clearing of interface counters.get_tx_timestamp get_rx_timestamp get_err_timestamp tx_timestamp rx_timestamp err_timestampReturns the timestamp of the last time that the counter was updated.get_tx_suspect get_rx_suspect get_err_suspect tx_suspect rx_suspect err_suspectReturns a true value if the counter information is suspect, returns null otherwise.get_tx_update get_rx_update get_err_update tx_update rx_update err_updateReturns the (assumed) update number for the retrieved statistics data.TRANSMIT AND RECEIVE STATISTICAL METHODSThe methods listed below are common to transmit and receive methods with the implied understanding that transmit refers to counter values for data out and receive refers to counter data for traffic in.get_tx_broadcast_packets get_rx_broadcast_packets tx_broadcast_packets rx_broadcast_packetsReturns the number of tranmitted or received broadcast packets for the specified interface.get_tx_broadcast_packets_delta get_rx_broadcast_packets_delta rx_broadcast_packets_delta tx_broadcast_packets_deltaReturns the delta value of the number of transmitted or received broadcast packets for the specified interface between the current and previous collection period.get_tx_broadcast_packets_delta_avg get_rx_broadcast_packets_delta_avg rx_broadcast_packets_delta_avg tx_broadcast_packets_delta_avgReturns the average delta value of the number of transmitted or received broadcast packets for the specified interface between the current and previous collection period.get_tx_broadcast_packets_delta_min get_rx_broadcast_packets_delta_min rx_broadcast_packets_delta_min tx_broadcast_packets_delta_minReturns the minimum delta value of the number of transmitted or received broadcast packets for the specified interface between the current and previous collection period.get_tx_broadcast_packets_delta_max get_rx_broadcast_packets_delta_max rx_broadcast_packets_delta_max tx_broadcast_packets_delta_maxReturns the maximum delta value of the number of transmitted or received broadcast packets for the specified interface between the current and previous collection period.get_tx_jumbo_packets get_rx_jumbo_packets rx_jumbo_packets tx_jumbo_packetsReturns the number of transmitted or received jumbo packets for the specified interface between the current and previous collection period.get_tx_jumbo_packets_delta get_rx_jumbo_packets_delta rx_jumbo_packets_delta tx_jumbo_packets_deltaReturns the delta value of the number of transmitted or received jumbo packets for the specified interface between the current and previous collection period.get_tx_jumbo_packets_delta_avg get_rx_jumbo_packets_delta_avg rx_jumbo_packets_delta_avg tx_jumbo_packets_delta_avgReturns the average delta value of the number of transmitted or received jumbo packets for the specified interface between the current and previous collection period.get_tx_jumbo_packets_delta_min get_rx_jumbo_packets_delta_min rx_jumbo_packets_delta_min tx_jumbo_packets_delta_minReturns the minimum delta value of the number of transmitted or received jumbo packets for the specified interface between the current and previous collection period.get_tx_jumbo_packets_delta_max get_rx_jumbo_packets_delta_max rx_jumbo_packets_delta_max tx_jumbo_packets_delta_maxReturns the maximum delta value of the number of transmitted or received jumbo packets for the specified interface between the current and previous collection period.get_tx_multicast_packets get_rx_multicast_packets rx_multicast_packets tx_multicast_packetsReturns the number of transmitted or received multicast packets for the specified interface between the current and previous collection period.get_tx_multicast_packets_delta get_rx_multicast_packets_delta rx_multicast_packets_delta tx_multicast_packets_deltaReturns the delta value of the number of transmitted or received multicast packets for the specified interface between the current and previous collection period.get_tx_multicast_packets_delta_avg get_rx_multicast_packets_delta_avg rx_multicast_packets_delta_avg tx_multicast_packets_delta_avgReturns the average delta value of the number of transmitted or received multicast packets for the specified interface between the current and previous collection period.get_tx_multicast_packets_delta_min get_rx_multicast_packets_delta_min rx_multicast_packets_delta_min tx_multicast_packets_delta_minReturns the minimum delta value of the number of transmitted or received multicast packets for the specified interface between the current and previous collection period.get_tx_multicast_packets_delta_max get_rx_multicast_packets_delta_max rx_multicast_packets_delta_max tx_multicast_packets_delta_maxReturns the maximum delta value of the number of transmitted or received multicast packets for the specified interface between the current and previous collection period.get_tx_total_bytes get_rx_total_bytes rx_total_bytes tx_total_bytesReturns the number of transmitted or received bytes for the specified interface between the current and previous collection period.get_tx_total_bytes_delta get_rx_total_bytes_delta rx_total_bytes_delta tx_total_bytes_deltaReturns the delta value of the number of transmitted or received bytes for the specified interface between the current and previous collection period.get_tx_total_bytes_delta_avg get_rx_total_bytes_delta_avg rx_total_bytes_delta_avg tx_total_bytes_delta_avgReturns the average delta value of the number of transmitted or received bytes for the specified interface between the current and previous collection period.get_tx_total_bytes_delta_min get_rx_total_bytes_delta_min rx_total_bytes_delta_min tx_total_bytes_delta_minReturns the minimum delta value of the number of transmitted or received bytes for the specified interface between the current and previous collection period.get_tx_total_bytes_delta_max get_rx_total_bytes_delta_max rx_total_bytes_delta_max tx_total_bytes_delta_maxReturns the maximum delta value of the number of transmitted or received bytes for the specified interface between the current and previous collection period.get_tx_total_packets get_rx_total_packets rx_total_packets tx_total_packetsReturns the number of transmitted or received packets for the specified interface between the current and previous collection period.get_tx_total_packets_delta get_rx_total_packets_delta rx_total_packets_delta tx_total_packets_deltaReturns the delta value of the number of transmitted or received packets for the specified interface between the current and previous collection period.get_tx_total_packets_delta_avg get_rx_total_packets_delta_avg rx_total_packets_delta_avg tx_total_packets_delta_avgReturns the average delta value of the number of transmitted or received packets for the specified interface between the current and previous collection period.get_tx_total_packets_delta_min get_rx_total_packets_delta_min rx_total_packets_delta_min tx_total_packets_delta_minReturns the minimum delta value of the number of transmitted or received packets for the specified interface between the current and previous collection period.get_tx_total_packets_delta_max get_rx_total_packets_delta_max rx_total_packets_delta_max tx_total_packets_delta_maxReturns the maximum delta value of the number of transmitted or received packets for the specified interface between the current and previous collection period.get_tx_unicast_packets get_rx_unicast_packets rx_unicast_packets tx_unicast_packetsReturns the number of transmitted or received unicast packets for the specified interface between the current and previous collection period.get_tx_unicast_packets_delta get_rx_unicast_packets_delta rx_unicast_packets_delta tx_unicast_packets_deltaReturns the delta value of the number of transmitted or received unicast packets for the specified interface between the current and previous collection period.get_tx_unicast_packets_delta_avg get_rx_unicast_packets_delta_avg rx_unicast_packets_delta_avg tx_unicast_packets_delta_avgReturns the average delta value of the number of transmitted or received unicast packets for the specified interface between the current and previous collection period.get_tx_unicast_packets_delta_min get_rx_unicast_packets_delta_min rx_unicast_packets_delta_min tx_unicast_packets_delta_minReturns the minimum delta value of the number of transmitted or received unicast packets for the specified interface between the current and previous collection period.get_tx_unicast_packets_delta_max get_rx_unicast_packets_delta_max rx_unicast_packets_delta_max tx_unicast_packets_delta_maxReturns the maximum delta value of the number of transmitted or received unicast packets for the specified interface between the current and previous collection period.ERROR STATISTICAL METHODSget_err_align err_alignReturns the number of allignment errors for the specified interface between the current and previous collection period.get_err_align_delta err_align_deltaReturns the delta value of the number of alignment errors for the specified interface between the current and previous collection period.get_err_align_delta_avg err_align_delta_avgReturns the delta value of the number of alignment errors for the specified interface between the current and previous collection period.get_err_align_delta_min err_align_delta_minReturns the minimum delta value of the number of alignment errors for the specified interface between the current and previous collection period.get_err_align_delta_max err_align_delta_maxReturns the maximum delta value of the number of alignment errors for the specified interface between the current and previous collection period.get_err_deferred_tx err_deferred_txReturns the number of deferrment errors for the specified interface between the current and previous collection period.get_err_deferred_tx_delta err_deferred_tx_deltaReturns the delta value of the number of deferrment errors for the specified interface between the current and previous collection period.get_err_deferred_tx_delta_avg err_deferred_tx_delta_avgReturns the average delta value of the number of deferrment errors for the specified interface between the current and previous collection period.get_err_deferred_tx_delta_min err_deferred_tx_delta_minReturns the minimum delta value of the number of deferrment errors for the specified interface between the current and previous collection period.get_err_deferred_tx_delta_max err_deferred_tx_delta_maxReturns the maximum delta value of the number of deferrment errors for the specified interface between the current and previous collection period.get_err_fcs err_fcsReturns the number of frame check sequence errors for the specified interface between the current and previous collection period.get_err_fcs_delta err_fcs_deltaReturns the delta value of the number of frame check sequence errors for the specified interface between the current and previous collection period.get_err_fcs_delta_avg err_fcs_delta_avgReturns the average delta value of the number of frame check sequence errors for the specified interface between the current and previous collection period.get_err_fcs_delta_min err_fcs_delta_minReturns the minimum delta value of the number of frame check sequence errors for the specified interface between the current and previous collection period.get_err_fcs_delta_max err_fcs_delta_maxReturns the maximum delta value of the number of frame check sequence errors for the specified interface between the current and previous collection period.get_err_int_mac_tx err_int_mac_txReturns the number of interface MAC transmit errors for the specified interface between the current and previous collection period.get_err_int_mac_tx_delta err_int_mac_tx_deltaReturns the delta value of the number of interface MAC transmit errors for the specified interface between the current and previous collection period.get_err_int_mac_tx_delta_avg err_int_mac_tx_delta_avgReturns the average delta value of the number of interface MAC transmit errors for the specified interface between the current and previous collection period.get_err_int_mac_tx_delta_min err_int_mac_tx_delta_minReturns the minimum delta value of the number of interface MAC transmit errors for the specified interface between the current and previous collection period.get_err_int_mac_tx_delta_max err_int_mac_tx_delta_maxReturns the maximum delta value of the number of interface MAC transmit errors for the specified interface between the current and previous collection period.get_err_int_mac_rx err_int_mac_rxReturns the number of interface MAC receive errors for the specified interface between the current and previous collection period.get_err_int_mac_rx_delta err_int_mac_rx_deltaReturns the delta value of the number of interface MAC receive errors for the specified interface between the current and previous collection period.get_err_int_mac_rx_delta_avg err_int_mac_rx_delta_avgReturns the average delta value of the number of interface MAC receive errors for the specified interface between the current and previous collection period.get_err_int_mac_rx_delta_min err_int_mac_rx_delta_minReturns the minimum delta value of the number of interface MAC receive errors for the specified interface between the current and previous collection period.get_err_int_mac_rx_delta_max err_int_mac_rx_delta_maxReturns the maximum delta value of the number of interface MAC receive errors for the specified interface between the current and previous collection period.get_err_out_discard err_out_discardReturns the number of out-discard errors for the specified interface between the current and previous collection period.get_err_out_discard_delta err_out_discard_deltaReturns the delta value of the number of out-discard errors for the specified interface between the current and previous collection period.get_err_out_discard_delta_avg err_out_discard_delta_avgReturns the average delta value of the number of out-discard errors for the specified interface between the current and previous collection period.get_err_out_discard_delta_min err_out_discard_delta_minReturns the minimum delta value of the number of out-discard errors for the specified interface between the current and previous collection period.get_err_out_discard_delta_max err_out_discard_delta_maxReturns the maximum delta value of the number of out-discard errors for the specified interface between the current and previous collection period.get_err_rcv err_rcvReturns the number of rcv-err errors for the specified interface between the current and previous collection period.get_err_rcv_delta err_rcv_deltaReturns the delta value of the number of rcv-err errors for the specified interface between the current and previous collection period.get_err_rcv_delta_avg err_rcv_delta_avgReturns the average delta value of the number of rcv-err errors for the specified interface between the current and previous collection period.get_err_rcv_delta_min err_rcv_delta_minReturns the minimum delta value of the number of rcv-err errors for the specified interface between the current and previous collection period.get_err_rcv_delta_max err_rcv_delta_maxReturns the maximum delta value of the number of rcv-err errors for the specified interface between the current and previous collection period.get_err_undersize err_undersizeReturns the number of undersize errors for the specified interface between the current and previous collection period.get_err_undersize_delta err_undersize_deltaReturns the delta value of the number of undersize errors for the specified interface between the current and previous collection period.get_err_undersize_delta_avg err_undersize_delta_avgReturns the average delta value of the number of undersize errors for the specified interface between the current and previous collection period.get_err_undersize_delta_min err_undersize_delta_minReturns the minimum delta value of the number of undersize errors for the specified interface between the current and previous collection period.get_err_undersize_delta_max err_undersize_delta_maxReturns the maximum delta value of the number of undersize errors for the specified interface between the current and previous collection period.get_err_xmit err_xmitReturns the number of xmit-err errors for the specified interface between the current and previous collection period.get_err_xmit_delta err_xmit_deltaReturns the delta value of the number of xmit-err errors for the specified interface between the current and previous collection period.get_err_xmit_delta_avg err_xmit_delta_avgReturns the average delta value of the number of xmit-err errors for the specified interface between the current and previous collection period.get_err_xmit_delta_min err_xmit_delta_minReturns the minimum delta value of the number of xmit-err errors for the specified interface between the current and previous collection period.get_err_xmit_delta_max err_xmit_delta_maxReturns the maximum delta value of the number of xmit-err errors for the specified interface between the current and previous collection period.AUTHORLuke Poskitt, "<ltp at cpan.org>"BUGSPlease report any bugs or feature requests to "bug-cisco-ucs-common-ethernetport at rt.cpan.org", or through the web interface at <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Cisco-UCS-Common-EthernetPort>. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.SUPPORTYou can find documentation for this module with the perldoc command.perldoc Cisco::UCS::Common::EthernetPort You can also look for information at:
LICENSE AND COPYRIGHTCopyright 2012 Luke Poskitt.This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License. See http://dev.perl.org/licenses/ for more information.
Visit the GSP FreeBSD Man Page Interface. |