in reply to Simple things can be most difficult...Sometimes!
From reading your various posts, it seems to me, a network guy, that you might be doing various things relating to routers/switches the hard way.
VLANs, IP addresses, Channels (aka Trunks), Interfaces, Sub-Interfaces, MAC addresses, etc. are all inter-related and it seems to me that you are forever "finding" the related pieces via loops.
I think if you planned how to lay all this out with intelligent data structures, a lot of the "work" that goes on in your script(s) would disappear.
I'm offering to help layout all that stuff, but even after reading through you older posts, I'm not quite sure where you're headed with all this. Could you post a summary of what exactly you're trying to accomplish?
-Scott
|
|---|