Ask a Question related to AIX, Design and Development.
-
Todd H. #1
Re: using SNMP to send a trap
[email]mike_stephanos@yahoo.com[/email] (mike_stephanos@yahoo.com) writes:
The program you are running--have you tried running it as root?> I got a java program from a JAVA SNMP Stack which is sending a snmp
> trap pdu
>
> it runs OK on NT but on UNIX I got: a java exception: address already
> in use: cannot bind
>
>
> How can I make this program running?
> .......................
> static DatagramSocket dSocket;
> static final int SNMP_TRAP_PORT = 162;
> dSocket = new DatagramSocket(SNMP_TRAP_PORT);
>
> SNMPMessage message = new SNMPMessage(version, community, pdu);
>
>
> DatagramPacket outPacket = new DatagramPacket(messageEncoding,
> messageEncoding.length, hostAddress, SNMP_TRAP_PORT);
> dSocket.send(outPacket);
>
> .................
>
> thanks for any help
I'm far from a sockets programming guru, but it's possible that your
program may need to run as root in order to bind to the ports needed
to initiate that SNMP communication. UDP or TCP 162 are the
destination ports for SNMP traps, but I'm not sure what port your
program may be attempting to bind to when it sends the trap.
Also, what hostAddress are you defining? Is it valid, and is there a
route to it?
--
Todd H.
[url]http://www.toddh.net/[/url]
Todd H. Guest
-
How do I trap DBI errors?
Good day all, I have a program that receives files from another machine and then must update an audit trail to show bytes received, date and time... -
Knockout and trap
When I create a graphic in Illustrator 10.3(Win) I can't seem to get the graphic to knockout or trap. I have try flattening it but I still have no... -
Trap Knocks Out
Hi all. On AI CS for PC, I create a trap using the trap command on artwork with two pms colors. Everything looks great on the screen. The top... -
How to trap a gradient screen
I have PMS 110 lettering in a gradient from 64% to 100% on a solid black background. How on earth do I trap this? If I save it as an EPS and place it... -
UCD-SNMP / NET-SNMP config for hostmib AIX 4.3.3
Has anyone ever configured/used hostmib variables for AIX v4.3.3? I want to get hostmib statistics (RFC-1514) like storage/cpu and so on from a...



Reply With Quote

