Can the Debug function be performed in the snmpagent file to determine whether the northbound interface is normal?
The answer is yes.
Open the $N2000ROOT/server/conf/snmpagent.cfg file (taking solaris for example), add the following command in the last blank area of the file:
Besides, modify the file as follows:
NBEventReceiverIP1 = 18.104.22.168
NBEventReceiverPort1 = 162
NBEventTrapVersion1 = 1 //××××The parameter here shall be modified to 2.
NBEventKATrap1 = 0
Then restart this process.
When an emergency report is sent from the northbound interface, the SNMPAGENTINFORM2.TXT file is generated automatically under the directory of $N2000ROOT/server/conf and this file is the generated packet. And we can determine whether the interface is normal by opening the file to analyze whether the northbound interface transmits data normally.
The setting of debug=3 means printing the log. In the earlier platform version, it is required to set the protocol version of NBEventTrapVersion1 = 2, otherwise the log cannot be printed.
In the new network management version V2R5B123, directly set DebugFlag, and the log will be printed into the file with the name including p59 under the directory of n2000\server\conf\log, specific protocol version not required.