The invention relates to a simple network management protocol SNMP agent multivariate group query method, which defines the data structure of the simple network management protocol agent management information database according to the management information database file, analyzes the simple network management protocol message, analyzes the variable body, and according to the simple network management protocol message The operation type processes each variable, sets the variable state and the working state of the variable, groups unprocessed variables in the variable body, calls the method of obtaining the value of the object in the group, and queries data according to the object information and variable index value information in the management information base , query the value of each variable in the successfully bound group, and mark the variable in the group as processed; if unsuccessful, process each variable in the group according to the simple network management protocol message operation type, set the variable state and working state, and repeat the preceding steps Until all variable working statuses are processed. The method of the invention realizes high-speed completion of multi-variable query and can greatly improve query efficiency.