This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
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 OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA 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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: snmp4j