[hobbit] Re: netstat -s output for hpux 11.11 (11i)

lars ebeling lars.ebeling at leopg9.no-ip.org
Sun Apr 23 18:45:49 CEST 2006


No, you don't have to be root to use lanadmin to display information.

I tested your "script" below and it worked for me, but I only have one PPA.
You should have the full path, /usr/sbin to both lanscan and lanadmin, since 
/usr/sbin is not in the normal users PATH

Regards
Lars

----- Original Message ----- 
From: "Henrik Stoerner" <henrik at hswn.dk>
To: <hobbit at hswn.dk>
Sent: Sunday, April 23, 2006 6:00 PM
Subject: Re: [hobbit] Re: netstat -s output for hpux 11.11 (11i)


> On Sun, Apr 23, 2006 at 03:54:02PM +0200, lars ebeling wrote:
>> It is very hard to get bytes out of HP-UX. Is this an answer for you?
>>
>>
>> # lanadmin -g mibstats 0
> [snip]
>>
>> PPA Number                      = 0
>> Description                     = lan0 Hewlett-Packard LAN Interface Hw 
>> Rev 0
>> Inbound Octets                  = 3111235429
>> Outbound Octets                 = 3892111463
>
> Ah yes, this is what I'm after.
>
> I managed to dig up some HP-UX man-pages, and as far as I can tell you
> need to use the lanscan command to determine the "PPA" numbers that are
> valid, and then the lanadmin command above to get the statistics for
> each interface card. Correct ?
>
> In that case, I would think that the HP-UX client code should do
> something like
>
>   lanscan -p | while read PPA; do lanadmin -g mibstats $PPA; done
>
> Would that work ? And does it require root privs ?
>
>
> Thanks,
> Henrik
>
>
> To unsubscribe from the hobbit list, send an e-mail to
> hobbit-unsubscribe at hswn.dk
>
>
> 




More information about the Xymon mailing list