File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Sockets and Internet Protocols and the fly likes snmp4j Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "snmp4j " Watch "snmp4j " New topic
Author

snmp4j

Aneresia White
Greenhorn

Joined: Dec 06, 2008
Posts: 12
I have this program:


And I always receive:
Request GET[requestID=2109151797, errorStatus=Success(0), errorIndex=0, VBS[1.3.6.1.2.1.1.1 = Null; 1.3.6.1.2.1.1.2 = Null; 1.3.6.1.2.1.1.3 = Null; 1.3.6.1.2.1.1.4 = Null; 1.3.6.1.2.1.1.5 = Null]] timed out
I started the snmp service on my computer
Anyone knows why I always receive a null response?

Joseph Macer
Ranch Hand

Joined: Apr 20, 2008
Posts: 63
Have your first tried interacting with this service in any other manner? The service could be mis-configured or otherwise not working properly.
Aneresia White
Greenhorn

Joined: Dec 06, 2008
Posts: 12
I realized that it's working on Windows XP but not on Vista, a very interesting thing )
Joseph Macer
Ranch Hand

Joined: Apr 20, 2008
Posts: 63
I know nothing about this service, but if the difference is Vista the most common problem by far is administrative privileges.
Try making sure the services runs for a user with admin rights, and disabling UAC.
Prakash Kolandaivelu
Greenhorn

Joined: Jan 05, 2010
Posts: 1
1.3.6.1.2.1.1 is the system mib, which gives information about the machine in which the service is running. So, when the services is started, it will fetch the information from operating system. In case of xp it is possible and in Vista, as Joseph Macer said, it might be the problem of administrative privileges, the information could have been null.

try with privileges.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: snmp4j
 
Similar Threads
SNMP Trap Severity
can the cause of memory leak be detected here?
java.net.SocketTimeoutException: Receive timed out
explain this program ?
snmp4j trap response