|
NAMECisco::UCS::Common::SwitchCard - Class for operations with a Cisco UCS switch card.SYNOPSISprint $ucs->interconnect(A)->card(1)->operability; print $ucs->interconnect(A)->card(1)->serial; my $switchcard = $ucs->interconnect(A)->card(1); print $switchcard->num_ports; print $switchcard->description; Cisco::UCS::Common::SwitchCard 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::SwitchCard objects are created for you by the methods in other Cisco::UCS packages like 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. METHODSdescriptionReturns the vendor description of the switchcard.dnReturns the distinguished name of the switchcard object in the UCSM management information model.eth_port ( $id )Returns a Cisco::UCS::Common::EthernetPort object representing the requested Ethernet port (given by the value of $id) on the switchcard.Note that this is a caching method and a previously retrieved Ethernet port object will be returned if present. Should you require a fresh object, use the get_eth_port method described below. get_eth_port ( $id )Returns a Cisco::UCS::Common::EthernetPort object representing the requested Ethernet port (given by the value of $id) on the switchcard.Note that this is a non-caching method and the UCSM will always be queried when this method is invoked. Subsequently, this method may be more expensive than the caching method eth_port described above. get_eth_portsReturns an array of Cisco::UCS::Common::EthernetPort objects representing all Etehrnet ports present on the specified card.idReturns the numerical identifier of the switchcard within the fabric interconnect.modelReturns the model identifier of the switchcard.num_portsReturns the number of ports present on the switchcard.operabilityReturns the operability status of the switchcard.performanceReturns the performance status of teh switchcard.powerReturns the power status of the switchcard.presenceReturns the presence status of the switchcard.revisionReturns the hardware revision number of the switchcard.serialReturns the serial number of the switchcard.stateReturns the operational state of the switchcard.slotreturns the slot number of the switchcard.thermalReturns the thermal status of the switchcard.vendorReturns the vendor identification string of the switchcard.voltageReturns the voltage status of the siwtchcard.AUTHORLuke Poskitt, "<ltp at cpan.org>"BUGSPlease report any bugs or feature requests to "bug-cisco-ucs-common-switchcard at rt.cpan.org", or through the web interface at <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Cisco-UCS-Common-SwitchCard>. 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::SwitchCard 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. |