rcPortTable
)rc2kCpuEthernetPortTable
)rcVlanPortTable
)rcVlanTable
)rcIpAddrTable
)rcChasFanTable
)rcChasPowerSupplyTable
)rcChasPowerSupplyDetailTable
)rcCardTable
)rc2kCardTable
)rc2kMdaCardTable
)
SNMP::Info::RapidCity - SNMP Interface to the Nortel RapidCity MIB
Eric Miller
# Let SNMP::Info determine the correct subclass for you. my $rapidcity = new SNMP::Info( AutoSpecify => 1, Debug => 1, # These arguments are passed directly to SNMP::Session DestHost => 'myswitch', Community => 'public', Version => 2 ) or die "Can't connect to DestHost.\n";
my $class = $rapidcity->class(); print "SNMP::Info determined this device to fall under subclass : $class\n";
SNMP::Info::RapidCity is a subclass of SNMP::Info that provides an interface
to the RAPID-CITY
MIB. This MIB is used across the Nortel Ethernet Routing
Switch and Ethernet Switch product lines (Formerly known as Passport,
BayStack, and Accelar).
Use or create in a subclass of SNMP::Info. Do not use directly.
None.
These are methods that return scalar values from SNMP
rc_base_mac()
(rc2kChassisBaseMacAddr
)
rc_serial()
(rcChasSerialNumber
)
rc_ch_rev()
(rcChasHardwareRevision
)
chassis()
(rcChasType
)
slots()
(rcChasNumSlots
)
rc_virt_ip()
(rcSysVirtualIpAddr
)
rc_virt_mask()
(rcSysVirtualNetMask
)
tftp_host()
(rcTftpHost
)
tftp_file()
(rcTftpFile
)
tftp_action()
(rcTftpAction
)
tftp_result()
(rcTftpResult
)
serial()
Returns serial number of the chassis
These are methods that return tables of information in the form of a reference to a hash.
i_duplex()
Returns reference to map of IIDs to current link duplex.
i_duplex_admin()
Returns reference to hash of IIDs to admin duplex setting.
i_vlan()
Returns a mapping between ifIndex
and the PVID or default VLAN.
i_vlan_membership()
Returns reference to hash of arrays: key = ifIndex
, value = array of VLAN
IDs. These are the VLANs which are members of the egress list for the port.
Example: my $interfaces = $rapidcity->interfaces(); my $vlans = $rapidcity->i_vlan_membership(); foreach my $iid (sort keys %$interfaces) { my $port = $interfaces->{$iid}; my $vlan = join(',', sort(@{$vlans->{$iid}})); print "Port: $port VLAN: $vlan\n"; }
v_index()
Returns VLAN IDs
(rcVlanId
)
rcPortTable
)rc_index()
(rcPortIndex
)
rc_duplex()
(rcPortOperDuplex
)
rc_duplex_admin()
(rcPortAdminDuplex
)
rc_speed_admin()
(rcPortAdminSpeed
)
rc_auto()
(rcPortAutoNegotiate
)
rc_alias()
(rcPortName
)
rc2kCpuEthernetPortTable
)rc_cpu_ifindex()
(rc2kCpuEthernetPortIfIndex
)
rc_cpu_admin()
(rc2kCpuEthernetPortAdminStatus
)
rc_cpu_oper()
(rc2kCpuEthernetPortOperStatus
)
rc_cpu_ip()
(rc2kCpuEthernetPortAddr
)
rc_cpu_mask()
(rc2kCpuEthernetPortMask
)
rc_cpu_auto()
(rc2kCpuEthernetPortAutoNegotiate
)
rc_cpu_duplex_admin()
(rc2kCpuEthernetPortAdminDuplex
)
rc_cpu_duplex()
(rc2kCpuEthernetPortOperDuplex
)
rc_cpu_speed_admin()
(rc2kCpuEthernetPortAdminSpeed
)
rc_cpu_speed_oper()
(rc2kCpuEthernetPortOperSpeed
)
rc_cpu_mac()
(rc2kCpuEthernetPortMgmtMacAddr
)
rcVlanPortTable
)rc_i_vlan_if()
(rcVlanPortIndex
)
rc_i_vlan_num()
(rcVlanPortNumVlanIds
)
rc_i_vlan()
(rcVlanPortVlanIds
)
rc_i_vlan_type()
(rcVlanPortType
)
rc_i_vlan_pvid()
(rcVlanPortDefaultVlanId
)
rc_i_vlan_tag()
(rcVlanPortPerformTagging
)
rcVlanTable
)rc_vlan_id()
(rcVlanId
)
v_name()
(rcVlanName
)
rc_vlan_color()
(rcVlanColor
)
rc_vlan_if()
(rcVlanIfIndex
)
rc_vlan_stg()
(rcVlanStgId
)
rc_vlan_type()
(rcVlanType
)
rc_vlan_members()
(rcVlanPortMembers
)
rc_vlan_mac()
(rcVlanMacAddress
)
rcIpAddrTable
)rc_ip_index()
(rcIpAdEntIfIndex
)
rc_ip_addr()
(rcIpAdEntAddr
)
rc_ip_type()
(rcIpAdEntIfType
)
rcChasFanTable
)rc_fan_op()
(rcChasFanOperStatus
)
rcChasPowerSupplyTable
)rc_ps_op()
(rcChasPowerSupplyOperStatus
)
rcChasPowerSupplyDetailTable
)rc_ps_type()
(rcChasPowerSupplyDetailType
)
rc_ps_serial()
(rcChasPowerSupplyDetailSerialNumber
)
rc_ps_rev()
(rcChasPowerSupplyDetailHardwareRevision
)
rc_ps_part()
(rcChasPowerSupplyDetailPartNumber
)
rc_ps_detail()
(rcChasPowerSupplyDetailDescription
)
rcCardTable
)rc_c_type()
(rcCardType
)
rc_c_serial()
(rcCardSerialNumber
)
rc_c_rev()
(rcCardHardwareRevision
)
rc_c_part()
(rcCardPartNumber
)
rc2kCardTable
)rc2k_c_ftype()
(rc2kCardFrontType
)
rc2k_c_fdesc()
(rc2kCardFrontDescription
)
rc2k_c_fserial()
(rc2kCardFrontSerialNum
)
rc2k_c_frev()
(rc2kCardFrontHwVersion
)
rc2k_c_fpart()
(rc2kCardFrontPartNumber
)
rc2k_c_fdate()
(rc2kCardFrontDateCode
)
rc2k_c_fdev()
(rc2kCardFrontDeviations
)
rc2k_c_btype()
(rc2kCardBackType
)
rc2k_c_bdesc()
(rc2kCardBackDescription
)
rc2k_c_bserial()
(rc2kCardBackSerialNum
)
rc2k_c_brev()
(rc2kCardBackHwVersion
)
rc2k_c_bpart()
(rc2kCardBackPartNumber
)
rc2k_c_bdate()
(rc2kCardBackDateCode
)
rc2k_c_bdev()
(rc2kCardBackDeviations
)
rc2kMdaCardTable
)rc2k_mda_type()
(rc2kMdaCardType
)
rc2k_mda_desc()
(rc2kMdaCardDescription
)
rc2k_mda_serial()
(rc2kMdaCardSerialNum
)
rc2k_mda_rev()
(rc2kMdaCardHwVersion
)
rc2k_mda_part()
(rc2kMdaCardPartNumber
)
rc2k_mda_date()
(rc2kMdaCardDateCode
)
rc2k_mda_dev()
(rc2kMdaCardDeviations
)
These are methods that provide SNMP set functionality for overridden methods or provide a simpler interface to complex set operations. See SETTING DATA VIA SNMP in the SNMP::Info manpage for general information on set operations.
Sets port speed, must be supplied with speed and port ifIndex
. Speed
choices are 'auto', '10', '100', '1000'.
Example: my %if_map = reverse %{$rapidcity->interfaces()}; $rapidcity->set_i_speed_admin('auto', $if_map{'1.1'}) or die "Couldn't change port speed. ",$rapidcity->error(1);
Sets port duplex, must be supplied with duplex and port ifIndex
. Speed
choices are 'auto', 'half', 'full'.
Example: my %if_map = reverse %{$rapidcity->interfaces()}; $rapidcity->set_i_duplex_admin('auto', $if_map{'1.1'}) or die "Couldn't change port duplex. ",$rapidcity->error(1);
Changes an access (untagged) port VLAN, must be supplied with the numeric
VLAN ID and port ifIndex
. This method will modify the port's VLAN
membership and PVID (default VLAN). This method should only be used on end
station (non-trunk) ports.
Example: my %if_map = reverse %{$rapidcity->interfaces()}; $rapidcity->set_i_vlan('2', $if_map{'1.1'}) or die "Couldn't change port VLAN. ",$rapidcity->error(1);
Sets port PVID or default VLAN, must be supplied with the numeric VLAN ID and
port ifIndex
. This method only changes the PVID, to modify an access
(untagged) port use set_i_vlan()
instead.
Example: my %if_map = reverse %{$rapidcity->interfaces()}; $rapidcity->set_i_pvid('2', $if_map{'1.1'}) or die "Couldn't change port PVID. ",$rapidcity->error(1);
Adds the port to the egress list of the VLAN, must be supplied with the
numeric VLAN ID and port ifIndex
.
Example: my %if_map = reverse %{$rapidcity->interfaces()}; $rapidcity->set_add_i_vlan_tagged('2', $if_map{'1.1'}) or die "Couldn't add port to egress list. ",$rapidcity->error(1);
Removes the port from the egress list of the VLAN, must be supplied with the
numeric VLAN ID and port ifIndex
.
Example: my %if_map = reverse %{$rapidcity->interfaces()}; $rapidcity->set_remove_i_vlan_tagged('2', $if_map{'1.1'}) or die "Couldn't add port to egress list. ",$rapidcity->error(1);
set_delete_vlan(vlan)
Deletes the specified VLAN from the device.
Creates the specified VLAN on the device.
Note: This method only allows creation of Port type VLANs and does not allow for the setting of the Spanning Tree Group (STG) which defaults to 1.