Improve error detection when sending commands to an equipment
Created by: pdav
The execute-cmd (in topo/src/toposendd) uses rancid to send commands to modify equipment configuration. Output of rancid should be processed to detect errors. Comment at the end of the function specifies:
Ideas: 1- analyze file by removing all known lines: (ex: "cisco(Fa1/0)# switchport blablabla" -> remove) all remaining lines are error lines -> pb : this strategy is not very sustainable 2- look for error patterns -> pb : number of unknown errors is not countable 3- ignore output file and detect modifications not in the rebuilt graph -> pb : delay between modification and check -> pb : program to check would be very complex 4- ignore output file and let people detect problems (eg: display output file in a diagnostic page or in the Netmagis equipment page)