pdav/netmagis — Issue #55: Improve error detection when sending commands to an equipment
Author: pdav
Created: 2012-01-25 15:44:13+00:00
State: open
Labels: feature

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)