This week's book giveaway is in the Artificial Intelligence and Machine Learning forum.
We're giving away four copies of Machine Learning with TensorFlow and have Chris A. Mattmann on-line!
See this thread for details.
Win a copy of Machine Learning with TensorFlow this week in the Artificial Intelligence and Machine Learning forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Bear Bibeault
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • salvin francis
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Frits Walraven
Bartenders:
  • Jj Roberts
  • Carey Brown
  • Scott Selikoff

snmp agent not responding

 
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
001011101100110000101110100011001011010000000011110000000100000000100000001000
000100000000100000000000000100000000100000000001100000001001100110000000100010
000011000001101001010110000011000000001000001000000000111111111111111111111111
110000001100101000111100000000001000000100000011100000011000000100000000000000
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
 
Ranch Hand
Posts: 225
Eclipse IDE Debian Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Try using something like Wireshark to trace the data you're sending over the network, and check whether it's a valid SNMP request.
 
reply
    Bookmark Topic Watch Topic
  • New Topic