Patent ID: 8103731

Claim:
A method for sending a Network Configuration Protocol (NETCONF)-based notification, comprising: setting up a Transport Control Protocol (TCP)-based session between a NETCONF client and a NETCONF server; accepting, by the NETCONF server, a notification subscription of the NETCONF client; generating, by the NETCONF server, a notification when an event occurs in a system, converting the notification into a format that can be identified by the NETCONF client according to the notification subscription of the NETCONF client; and sending, by the NETCONF server, the converted notification to the NETCONF client; wherein the converting the notification into the format that can be identified by the NETCONF client comprises: encapsulating, by the NETCONF server, the notification into an Extensible Markup Language (XML) format if the subscription request does not carry format request information; or encapsulating, by the NETCONF server, the notification into the XML format and converting the encapsulated notification into a requested format in the format request information of the NETCONF client if the subscription request further carries the format request information; if the type of the notification is Simple Network Management Protocol Trap (SnmpTrap), the encapsulating the notification into the XML format comprising: encapsulating, by the NETCONF server, the information carried in the SnmpTrap notification into a tag content according to a NETCONF-based notification model, wherein: the encapsulated content conforms to a hierarchical structure of the NETCONF-based notification model; the notification model is in a hierarchical structure that comprises a tag, a sub-tag, and a tag content; and the sub-tag is a data tag; if the type of the notification is system log (syslog), the encapsulating the notification into the XML format comprising: encapsulating, by the NETCONF server, the information carried in the syslog into a tag content according to a NETCONF-based notification model, wherein: the encapsulated content conforms to a hierarchical structure of the NETCONF-based notification model; the notification model is in a hierarchical structure that comprises a tag, a sub-tag, and a tag content; and the sub-tag is a data tag; wherein the syslog comprises a “PRI”, a “HEADER”, and an “MSG”, wherein: the “PRI” comprises “MsgSource”, log source, and “Severity” information: the “HEADER” comprises “timestamp” and “agentaddr” information; and information in the “MSG” is configured according to users' requirements; and the method for the NETCONF server to encapsulate information carried in the syslog into the tag content comprising: setting, by the NETCONF server, the syslog to a tag and setting information carried in the syslog to different levels of sub-tags of the syslog tag accord hierarchical relation; and setting, by the NETCONF server, a tag as syslogs and setting one or more syslog tags as sub-tags of the syslog.