Operating System - HP-UX
1834858 Members
2171 Online
110070 Solutions
New Discussion

Re: How to get broadcast and multicast transmit/recieve information in HP-UX

 
shivakumara
Occasional Advisor

How to get broadcast and multicast transmit/recieve information in HP-UX

Hi all,
For one of my application I wanted to get broadcast and multicast transmit and recieve information (howmany packets). Are there any API or any commands to get. If we can't from any of these is there anywhere this information is stored.
3 REPLIES 3
Arunvijai_4
Honored Contributor

Re: How to get broadcast and multicast transmit/recieve information in HP-UX

Hi,

You need to use packet capturing API like Libpcap. You can get it from Internet Express package: http://h20293.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=HPUXIEXP1111


-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
shivakumara
Occasional Advisor

Re: How to get broadcast and multicast transmit/recieve information in HP-UX

Hi Arun,
I don't have the depot which you have mentioned here. Can you please tell me is there any general API to collect these information. And also Only to collect this information I can't tell the customer to install this package.
rick jones
Honored Contributor

Re: How to get broadcast and multicast transmit/recieve information in HP-UX

libpcap might be a bit much for that. The lanadmin command will tell unicast versus non-unicast (ie broadcast and multicast) frames sent and received over an interface.

lanadmin -g mibstats

IIRC, burried somewhere in the DLPI documentation on http://docs.hp.com/ is example code that uses DLPI to retrieve stats from the driver a la lanadmin.

Now, those will be broadcast and multicast at the data-link level. This will include IP _and_ ARP and anything else.

If you want just IP broadcast/multicast, you may need to go the SNMP/MIB route.
there is no rest for the wicked yet the virtuous have no pillows