The invention discloses an interactive method based on command line data of a
network management system. The method comprises the following steps: converting a
network management data model into a command line configuration block; packaging the command line data, and transmitting the command line data to a network device; caching and executing the command line data in batches by the network device; and carrying out
rollback on a
network management error. According to the invention, the data of the network
management system is converted into the command line configuration blocks in batches, and an error
rollback mode is supported, in this way, the interaction times of the network
management system and the network device are decreased, meanwhile the downloading state maintenance difficulty of the network management
data model is reduced, and the network
management system is supported to simultaneously release multiple items of data command line configuration blocks; the network management
system adds an error
rollback mark in the command line to ensure the execution transaction of the data command line configuration blocks, once an execution failure occurs, the original operation on the network device is cancelled by an effective reverse operation; and the network management
system optimizes the
Telnet echo character, reduces the redundant data and simplifies the data returned to the network management system.