Method and system for upgrading management information base on simple network management protocol (snmp) agent

A method and system for upgrading a Management Information Base (MIB) on a Simple Network Management Protocol (SNMP) agent are disclosed by the present invention. The method includes the following steps: after a manager initiates the upgrade, the manager performs traversal operation on all the nodes in the local MIB of the manager and transmits a request to an agent; according to the received request, the agent judges that differences exist between the MIB on the manager and the local MIB of the agent, then reports the differences to the manager; according to the reported differences, the manager determines the nodes which need to be synchronized, constructs a corresponding patch and forwards the patch to the agent; the agent synchronizes the local MIB of the agent according to the received patch.