Re: [Pysnmp-dev] Pysnmp: Can it receive snmp v3 trap with random engine id
Brought to you by:
elie
From: Ilya E. <il...@gl...> - 2011-06-15 10:49:02
|
> Now, I can get snmp v3 trap base on examples of v3 in pysnmp web site. I > used the version pysnmp-4.1.10a. > > Here are my new questions. > > 1. There two network card in my computer. If set host as 127.0.0.1, > local IP is 192.168.0.100, can't get trap information. After I change > host to 192.168.0.100, it works well.So we can't set host as > 127.0.0.1(want to receive all traps sent to local computer), is it > correct? So, if you need your Receiver to listen on several IP interfaces, you have to register each of your local endpoints (IP:port) as a separate transport at your SNMP engine. I've added this hint to a FAQ: http://pysnmp.sourceforge.net/faq.html#6 > 2. In the sample, we only get name, val in varBinds. Can we get other > information, for example, sec-name, auth protocol, auth key, privacy > protocol, privacy key and agent ip address? [We can get details > information in v1.] In pysnmp\proto\api, we only have v1 and v2c. The short answer is - you should not have to know that. Please, find the long answer in the [newly added] hint in the FAQ: http://pysnmp.sourceforge.net/faq.html#7 -ilya |