Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Send SNMP packet from Unix to Windows

Status
Not open for further replies.

sebobill

Technical User
Jan 20, 2011
2
GB
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

 
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)

 
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top