Re: [pysnmp-users] snmpwalk.py and switch stack members
Brought to you by:
elie
From: Ilya E. <il...@gl...> - 2003-07-24 12:40:03
|
A list for users of pure-Python SNMP framework <pysnmp-users.lists.sourceforge.net> List-Unsubscribe: <https://lists.sourceforge.net/lists/listinfo/pysnmp-users>, <mailto:pys...@li...?subject=unsubscribe> List-Archive: <http://sourceforge.net/mailarchive/forum.php?forum=pysnmp-users> Could you snoop on the wire when querying switch stack members with GetIF to see what is the community name GetIF actually uses? The NoResponseError exception you get is likely to be caused by mismatched community name what makes your device to ignore your request. pysnmp code does not modify community name in any way. > I'm having trouble with snmpwalk when I try to access members in a switch > stack. To access stack members through the commander's IP address, I must > append @sw<switch number> to the community name. > My problem is that snmpwalk fails when I try to do as described above > > > This works - but reports only the commander. > > snmpwalk.py 10.1.0.10 my_community .1.3.6.1.2.1.17.4.3.1 > > When I try > > snmpwalk.py 10.1.0.10 my_community@sw1 .1.3.6.1.2.1.17.4.3.1 > > snmpwalk fails with: > Traceback (most recent call last): > File "D:\pysnmp\examples\snmpwalk.py", line 112, in ? > (answer, src) = client.send_and_receive(req.encode(), (None, 0), cb_fun) > File "d:\pysnmp\pysnmp\mapping\udp\role.py", line 180, in send_and_receive > raise error.NoResponseError('No response arrived in %d secs * %d retries' % > (self.timeout, self.retries)) > pysnmp.mapping.udp.error.NoResponseError: No response arrived in 1 secs * 5 > retries > > > It works with GetIF (a SNMP MIB Browser). |