On Thu, Jan 13, 2011 at 4:42 PM, Robert Story <[email protected]> wrote: > On Thu, 13 Jan 2011 13:42:32 +0100 Jacek wrote: > JP> 3) I try to get OID I received in step 1, it fails > JP> snmpget -v 1 -c public localhost > JP> > TCP-MIB::tcpConnectionState.ipv4."192.168.85.92".49207.ipv4."192.168.85.53".22 > JP> > JP> > TCP-MIB::tcpConnectionState.ipv4.192.168.85.92.49207.ipv4.192.168.85.53.22: > JP> Unknown Object Identifier (Index out of range: 192 > JP> (tcpConnectionLocalAddress)) > > You need to escape the quotes so snmpget sees them... > > TCP-MIB::tcpConnectionState.ipv4.\"192.168.85.92\".49207.ipv4.\"192.168.85.53\".22
Yes, I am sorry for mistake: $ snmpget -v 1 -c public localhost .1.3.6.1.2.1.6.19.1.7.1.4.192.168.85.92.56470.1.4.192.168.85.53.22 TCP-MIB::tcpConnectionState.ipv4."192.168.85.92".56470.ipv4."192.168.85.53".22 = INTEGER: established(5) $ snmpget -v 1 -c public localhost TCP-MIB::tcpConnectionState.ipv4.\"192.168.85.92\".56470.ipv4.\"192.168.85.53\".22 Error in packet Reason: (noSuchName) There is no such variable name in this MIB. Failed object: TCP-MIB::tcpConnectionState.ipv4."192.168.85.92".56470.ipv4."192.168.85.53".22 Could you explain should "4" (between "1" and IP) be in the OID or not? ------------------------------------------------------------------------------ Protect Your Site and Customers from Malware Attacks Learn about various malware tactics and how to avoid them. Understand malware threats, the impact they can have on your business, and how you can protect your company and customers by using code signing. http://p.sf.net/sfu/oracle-sfdevnl _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
