On Wed, Nov 4, 2009 at 11:46 AM, Les Mikesell <lesmikesell at gmail.com> wrote: > nate wrote: >> >>> But will the tool do these changes for me? >> >> The tool will do anything you tell it to, it's a generic tool. > > OK, but if I have to write the script, why wouldn't I just write the > script my way and automate it over ssh which already works instead of > learning some new language and having to install some new agent > everywhere to run it? > >> You could define a class that runs a script to detect the network >> settings, if it is forced to full duplex it would return true, which >> would then trigger another command to run or config files to get >> copied, if configs are copied after that it could execute another >> command(perhaps snmpset to change the switch config or something). > > It's next to impossible to get or set a duplex setting via snmp. And > non-trivial to figure out what switch port is connected to what device - > OpenNMS does a reasonable job but if you activate all of its checks it > can kill things that have full bgp routes. Saw something about this at LinuxCon. CME is using Cisco Discover Protocol and LLDP to figure out the info about the connected port, location, vlan and a bunch of other stuff.