On Wed, 19 Jan 2000, Jeff Mcadams wrote:
Thus spake Mike Andrews
Since I can't find one, I'm going to write one if nobody else fesses up and saves me the work. I've already started, but it's slow going, because I'm still trying to come up with an elegant data structure for mapping the command names to the SNMP OIDs that store the values without hardcoding every stupid verb into the program...
Do you really need to convert it back to CLI format? Can you store it in a way that your tool could restore the config back automatically, or copy it over to another automatically? Personally, I think that would be even better than a CLI config tool...an SNMP config tool. Say...here's a template that I want all of my ports configured like...and let it go in and do all of them that way. Something like that would be even better IMHO. Still have to come up with a data structure to store that, but that should be rather more easy to do than a conversion to CLI commands.
Well, it doesn't HAVE to be in CLI format, it'd just be nice. :) Just dumping a config in *any* kind of text format so you could at least diff it against another config would be handy. And that much I could do with just a bunch of snmpwalk commands. Sounds like you're talking about making it work like my 'checkusrcfg.pl' script does, which configures everything in the box except for the ARC. I could probably just throw ARC config data into that, using the SNMP proxying thing, though of course that'd be a lot slower than just doing it directly. That doesn't deal with tables all that well, and the code's already pretty ugly. :) Mike Andrews (MA12) * mandrews@dcr.net * http://www.bit0.com/ VP, sysadmin, & network guy, Digital Crescent Inc, Frankfort KY Internet services for Frankfort, Lawrenceburg, Owenton, Shelbyville "Don't sweat the petty things, and don't pet the sweaty things." - To unsubscribe to usr-tc, send an email to "majordomo@xmission.com" with "unsubscribe usr-tc" in the body of the message. For information on digests or retrieving files and old messages send "help" to the same address. Do not use quotes in your message.