[racktables-users] Re: Objects: 'Add Multiple Ports' Issue

  • From: Denis Ovsienko <infrastation@xxxxxxxxx>
  • To: racktables-users@xxxxxxxxxxxxx
  • Date: Fri, 07 May 2010 13:54:09 +0400

 
 
07.05.2010, 02:23, "Adam Acord" <acacord@xxxxxxxxx>:
> Trying to use the Add Multiple Ports function for my Catalyst 4506.  Since 
> there's no easy way to add ports in bulk, I thought maybe I could build 
> something that resembles one of the options in the Format list.  I'm 
> interpreting the text associated with the SSV option (<interface name> <MAC 
> address>) to mean that if I put several lines in the text box like <gig3/1> 
> <> (since I don't really care about the MAC addresses), and hit Parse output, 
> it should work.  Right? Wrong.   I get the following error:
>
> An error has occured in [assertUIntArg()]. Additional information:
> Parameter 'port_type' is not a number (calling function is [addMultiPorts]).
>
> So, either it's broken or I screwed something up.  Anyone have any ideas on 
> this one?  I really don't want to create 200 ports by hand, one at a time.
>
> Any assistance is appreciated.

This is a known bug (#326), although I am not sure fixing it is better, than 
dismissing "multiport" mode at all. My practice tells, that making a user 
format port list to be pasted somewhere for processing is a dead end. Those 
interested in bulk generation usuaually feed INSERTs into mysql client.

Regarding particular issue with modular switches and SNMP, I see the right way 
to resolve that by getting switch inventory (list of modules with part numbers) 
and mapping that data into list of ports to add. For example:

1 WS-X6704-10GE --> te1/1, te1/2, te1/3, te1/4 (all of type "5-1079", 
XENPAK/empty XENPAK)
2 WS-X6748-GE-TX --> gi2/1, gi2/2, ... gi2/47, gi2/48 (all of "1-24", 
hardwired/1000Base-T)
[...]
etc

Is there anybody willing to spend time implementing this? It's worth just about 
1-2 weeks of spare evenings spent (and your name on the ChangeLog). I have 
decided to finish 802.1Q feature before starting any new work.
 
--
Denis Ovsienko
 

Other related posts: