File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Sockets and Internet Protocols and the fly likes snmp agent not responding Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "snmp agent not responding" Watch "snmp agent not responding" New topic

snmp agent not responding

Shaik Muhammad
Ranch Hand

Joined: Jul 16, 2008
Posts: 36
I am trying to give a snmp query - snmp get request to an agent at port 161. I have encoded the snmp get request using BER using my owm implementation. I encoded the request into octet string "00110000001011000000001000000001000000000000010000000111011100000111001001101
10100000000". I used getBytes() method to convert this into byte array. When i created a datagram packet and sent it to an agent using datagram socket, am not getting any response. pl help
Carey Evans
Ranch Hand

Joined: May 27, 2008
Posts: 225

Try using something like Wireshark to trace the data you're sending over the network, and check whether it's a valid SNMP request.
I agree. Here's the link:
subject: snmp agent not responding
It's not a secret anymore!