Hi Thomas,

I solved the issue by doing some source code changes

Now the o/p looks like this

#/opt/iexpress/net-snmp/bin/snmpwalk -v 1 -c public 127.0.0.1 UCD

UCD-SNMP-MIB::memIndex.0 = INTEGER: 0
UCD-SNMP-MIB::memErrorName.0 = STRING: swap
UCD-SNMP-MIB::memTotalSwap.0 = INTEGER: 4194304 kB
UCD-SNMP-MIB::memAvailSwap.0 = INTEGER: 2927112 kB
UCD-SNMP-MIB::memTotalReal.0 = INTEGER: 4192256 kB
UCD-SNMP-MIB::memAvailReal.0 = INTEGER: 333624 kB
UCD-SNMP-MIB::memTotalSwapTXT.0 = INTEGER: 27140 kB
UCD-SNMP-MIB::memAvailSwapTXT.0 = INTEGER: 9464 kB
UCD-SNMP-MIB::memTotalRealTXT.0 = INTEGER: 7528 kB
UCD-SNMP-MIB::memAvailRealTXT.0 = INTEGER: 3356 kB
UCD-SNMP-MIB::memMinimumSwap.0 = INTEGER: 16000 kB
UCD-SNMP-MIB::memUsedSwapTXT.0 = INTEGER: 9464 kB
UCD-SNMP-MIB::memUsedRealTXT.0 = INTEGER: 3356 kB
UCD-SNMP-MIB::memSwapError.0 = INTEGER: noError(0)
UCD-SNMP-MIB::memSwapErrorMsg.0 = STRING

swapinfo shows like this

swapinfo
             Kb      Kb      Kb   PCT  START/      Kb
TYPE      AVAIL    USED    FREE  USED   LIMIT RESERVE  PRI  NAME
dev     4194304 1267192 2927112   30%       0       -    1  /dev/vg00/lvol2
reserve       -  872488 -872488
memory  4192256 1979508 2212748   47%

Thanks & Regards,
Ravindranath

On Tue, Aug 26, 2008 at 2:12 PM, ravindra Chavalam
<[EMAIL PROTECTED]>wrote:

> I am getting an error with net-snmp 5.4.1.2 which i have built  for HP-UX
> 11iv2.Below is the details of the error
>
>
> #/opt/iexpress/net-snmp/bin/snmpwalk -v 2c -c public 127.0.0.1 UCD
>
> When i run the above command i am getting output similar to this
>
>
> UCD-SNMP-MIB::memIndex.0 = INTEGER: 0
> UCD-SNMP-MIB::memErrorName.0 = STRING: swap
> UCD-SNMP-MIB::memTotalSwap.0 = INTEGER: 8388608 kB
> UCD-SNMP-MIB::memAvailSwap.0 = INTEGER: -2 kB
> UCD-SNMP-MIB::memTotalReal.0 = INTEGER: 4173768 kB
> UCD-SNMP-MIB::memAvailReal.0 = INTEGER: 792232 kB
> UCD-SNMP-MIB::memTotalSwapTXT.0 = INTEGER: 22008 kB
> UCD-SNMP-MIB::memAvailSwapTXT.0 = INTEGER: 12964 kB
> UCD-SNMP-MIB::memTotalRealTXT.0 = INTEGER: 16980 kB
> UCD-SNMP-MIB::memAvailRealTXT.0 = INTEGER: 10608 kB
> UCD-SNMP-MIB::memMinimumSwap.0 = INTEGER: 16000 kB
> UCD-SNMP-MIB::memUsedSwapTXT.0 = INTEGER: 12964 kB
> UCD-SNMP-MIB::memUsedRealTXT.0 = INTEGER: 10608 kB
> UCD-SNMP-MIB::memSwapError.0 = INTEGER: error(1)
> UCD-SNMP-MIB::memSwapErrorMsg.0 = STRING: Running out of swap space (-1)
> UCD-SNMP-MIB::laIndex.1 = INTEGER: 1
>
>
> All values are ok except UCD-SNMP-MIB::memAvailSwap.0
>
> is showing -2
>
> These are the configuration options i have used
>
> export CFLAGS="-mpa-risc-2-0 -fPIC"
>   ./configure  --prefix=/opt/iexpress/net-snmp \
>                --disable-debugging  \
>                --with-defaults \
>                --disable-embedded-perl \
>                 --with-openssl=/opt/openssl \
>                 --enable-ipv6 \
>                 --with-transports="UDP UDPIPv6 TCPIPv6" \
>                 --enable-ucd-snmp-compatibility \
>                 --with-libs="-lnm -lipv6" \
>                  --enable-shared
>
> snmpd.conf has the only entry i.e shown below
>
> rocommunity public
>
>
> Can you help me regarding this
>
>
> Thanks in advance
>
>
> Attaching the entire output of /opt/iexpress/net-snmp/bin/snmpwalk -v 2c -c
> public 127.0.0.1 UCD
>
>
> Regards,
> Ravindranath
>
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to