Networking
cancel
Showing results for 
Search instead for 
Did you mean: 

Outbound octets and packets displayed by lanadmin are not changed on 11.31.

kubotake
Occasional Visitor

Outbound octets and packets displayed by lanadmin are not changed on 11.31.

Hi,

I'm trying to get how many bytes the ethernet card receives and sends from C. It can be done by using DLPI and works fine on 11.23. But itdoesn't on 11.31. Outbound octets and packets are static. I had doubted my program but "lanadmin -g 0" was also same. I concluded that DLPI itself or network adapter didn't update the outbound statistics.

What I did:

1. check the PPA number.

# netstat -i
Name Mtu Network Address Ipkts Ierrs Opkts Oerrs Coll
lan0 1500 192.168.100.0 192.168.100.23 1172435 0 1144711 0 0
lo0 32808 loopback localhost 64839 0 64839 0 0

The PPA number is 0.

2. run "lanadmin -g 0" a few times.

# lanadmin -g 0 | grep 'bound .*ets'
Inbound Octets = 14451186
Inbound Unicast Packets = 34766
Inbound Non-Unicast Packets = 150076
Outbound Octets = 5838
Outbound Unicast Packets = 0
Outbound Non-Unicast Packets = 139
# lanadmin -g 0 | grep 'bound .*ets'
Inbound Octets = 14451846
Inbound Unicast Packets = 34775
Inbound Non-Unicast Packets = 150078
Outbound Octets = 5838
Outbound Unicast Packets = 0
Outbound Non-Unicast Packets = 139

The commands were typed via telnet. Inbound statistics were increased to recieve the command lines. But outbound statistics were not changed. They should be incremented to display the command outputs.

Is there any patch or workaround? I have searched the patch database but I could not find related issues.

Thanks in advance.
3 REPLIES
DeafFrog
Valued Contributor

Re: Outbound octets and packets displayed by lanadmin are not changed on 11.31.

hi ,

can you check with this also netstat -I lan0 -i 5 ...and if teh system is not in production and only testing system ....you can try resetting the lan through lanadmin command option.

regards ,
FrogIsDeaf
kubotake
Occasional Visitor

Re: Outbound octets and packets displayed by lanadmin are not changed on 11.31.

Thank you for your reply.
Here is the result.

$ netstat -I lan0 -i 5
(lan0)-> input output (Total)-> input output
packets packets packets packets
1225676 1196610 1293308 1264242
21 22 21 22
22 22 22 22
21 21 21 21


It looks fine. Output packets are increased steadily. I guess that it is because the layers to count up the number of packets are different. Whereas lanadmin and DLPI count up all packets, netstat counts up IP packets only.

The system is for testing. I'll ask to the system administrator how I can access the console directly, not by telnet, to reset the lan. Well, I'll do it the day after tomorrow.
kubotake
Occasional Visitor

Re: Outbound octets and packets displayed by lanadmin are not changed on 11.31.

I reset the lan but no luck.

# lanadmin -r 0
Resetting LAN Interface to run selftest.

Outbound statistics were not changed as before.

I used nwmgr also and got same result.

# nwmgr -r -v --force -c lan0
lan0: Reset interface succeeded.

A little progress. The issue's cause will be in intl100 subsystem. The HP-UX box has two interfaces. One is lan0 (intl100, 100Base-TX). The other is lan1 (igelan, 1000Base-T). I switched the cable from lan0 to lan1 and found that outbound statistics were updated regularly.