Operating System - HP-UX
1833827 Members
2055 Online
110063 Solutions
New Discussion

Re: how to get if_msghdr(net/if.h) info by system call

 
agnewee
New Member

how to get if_msghdr(net/if.h) info by system call

I want to get the traffic information of the specified network card. After consulting the relevant files, I found that the if_msghdr structure has the information I want. But I can't find a  method or system call that can return information about this structure. Can someone help me?

1 REPLY 1
Saajan_d
HPE Pro

Re: how to get if_msghdr(net/if.h) info by system call

What kind of traffic information you require. Kindly inform me. kindly provide what you are looking for in the file and what you are expecting.

the traffic flow and other informations can be see with the below command.

# netstat -s 
# netstat -inv
and the details of the interfaces can be found with below command.
# /usr/sbin/nwmgr -g --st extmib -c <lan[n]>

Apart from this what specifically you require. Kindly inform.

 

 

 

 



I work at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
Accept or Kudo