×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Send SNMP packet from Unix to Windows

Send SNMP packet from Unix to Windows

Send SNMP packet from Unix to Windows

(OP)
Hi there people. I don't usually work with SNMP at all but I am investigating a bespoke product that uses it. I need to check if the packet can be sent to windows.

Below is what I am getting and essentially the packet is not sent as it appears that the windows pc is blocking the SNMP port (161 ? ).

#COMMAND
#/usr/sfw/sbin/snmptrapd -d -D -e -f -m COMVERSE-ONE-DATA-MEDIATION -M /cone31/appl/3p/NETSNMP/share/mibs:/cone31/appl/KDM/config/conf.d -P  <my pc ip address>

#OUTPUT
couldn't open <my ip address here> -- errno 125 ("Address already in use")


Is there anything I can do to ensure the port is open on Windows NT?


I have installed nmap to scan the port on the PC and this is what I get for SNMP. Does this mean the port is open?

PORT      STATE   SERVICE              VERSION
161/tcp   unknown snmp

 

RE: Send SNMP packet from Unix to Windows

I am a little confused on what is running on unix and what is running on windows.

snmptrapd would normally listen for traps on port 162.

So I am guessing you are trying to send traps from the Windows machine to the unix box(which is running snmptrapd).

Couple of things:

1. snmp uses UDP not TCP
2. an snmp agent with open port 161 to listen for requests
3. manager with open port 162 to listen for traps(notifications)

 

RE: Send SNMP packet from Unix to Windows

(OP)
yes, my post was complete nonsense and shows how new I am to this. I am currently doing some research to understand more about it.

Essentially you're right. The Unix tool, snmptrapd, traps messages and will not send a message anywhere, so that was the wrong tool to use for a start. I now plan to code something in perl (NetSNMP) to send a custom message to my pc on the network to say that the Unix host was rebooted or something. I will then, hopefully capture this message in nmap GUI installed on windows.

Many thanks for your response, bnorton.

RE: Send SNMP packet from Unix to Windows

Good luck

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login


Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close