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
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
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
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