Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 4 Jul 2005 10:28:32 +0100
From:      <Mathias@TeleCity.com>
To:        <jhary@unsane.co.uk>
Cc:        freebsd-net@freebsd.org
Subject:   RE: Free memory
Message-ID:  <7DA012A4E4DA934FA17318A11F7547F5B94339@LON3.tcy.prv>

next in thread | raw e-mail | index | archive | help

Thanks for your reply but It doesn't work. I am probably doing something
wrong; but not sure what. This is what I get:

root@rs1# snmpwalk -v1 -c public localhost .1.3.6.1.4.1.2021.4.11
UCD-SNMP-MIB::memTotalFree.0 = INTEGER: 36108

root@rs1# snmpwalk -v1 -c public localhost .1.3.6.1.4.1.2021.4
UCD-SNMP-MIB::memIndex.0 = INTEGER: 0
UCD-SNMP-MIB::memErrorName.0 = STRING: swap
UCD-SNMP-MIB::memTotalSwap.0 = INTEGER: 1022664
UCD-SNMP-MIB::memAvailSwap.0 = INTEGER: 1022664
UCD-SNMP-MIB::memTotalReal.0 = INTEGER: 442176
UCD-SNMP-MIB::memAvailReal.0 = INTEGER: 20772
UCD-SNMP-MIB::memTotalSwapTXT.0 = INTEGER: -1
UCD-SNMP-MIB::memAvailSwapTXT.0 = INTEGER: -1
UCD-SNMP-MIB::memTotalRealTXT.0 = INTEGER: -1
UCD-SNMP-MIB::memAvailRealTXT.0 = INTEGER: -1
UCD-SNMP-MIB::memTotalFree.0 = INTEGER: 36096
UCD-SNMP-MIB::memMinimumSwap.0 = INTEGER: 16000
UCD-SNMP-MIB::memShared.0 = INTEGER: 26072
UCD-SNMP-MIB::memBuffer.0 = INTEGER: 61472
UCD-SNMP-MIB::memCached.0 = INTEGER: 15324
UCD-SNMP-MIB::memSwapError.0 = INTEGER: 0
UCD-SNMP-MIB::memSwapErrorMsg.0 = STRING:

root@rs1# dmesg | grep memory
real memory  = 536805376 (511 MB)
avail memory = 515633152 (491 MB)

Regards
Mathias,

-----Original Message-----
From: vince [mailto:jhary@unsane.co.uk] 
Sent: Friday, July 01, 2005 4:29 PM
To: Mathias Kenfack-Tabakem (LON)
Cc: freebsd-net@freebsd.org
Subject: Re: Free memory

Mathias@TeleCity.com wrote:

>Hi Guys,
>
>I am trying to find out what mib value I can use to get the free
memory.
>I am running FreeBSd5.4 on a pc compatible machine (FreeBSD 5.4-RELEASE
>i386 GENERIC). MIB-2 gives me the total memory. I can get the free
>memory from a sun box using sun's mib(.1.3.6.1.4.1.2021.4.6.0) which
>does not work with standard pc box. Could anyone point me to the right
>direction please?
>
>  
>
If you are using net-snmp try this from
http://net-snmp.sourceforge.net/tutorial/tutorial-4/mrtg/

.1.3.6.1.4.1.2021.4.11.0



>Regards
>Mathias,
>
>
>______________________________________________________________________
>DISCLAIMER
>This e-mail is intended only for the use of the addressees named above
and may be confidential. If you are not an addressee you must not use
any information contained in nor copy it nor inform any person other
than TeleCity or the addressees of its existence or contents. If you
have received this e-mail in error, please contact the TeleCity IT
department on +44 (0) 161 232 3220 or by email at
techsupport@telecity.com. Internet communications cannot be guaranteed
100% secure, you should therefore take this potential lack of security
into consideration when emailing us as we do not accept legal
responsibility for the security of the contents of this or other emails.
Whilst TeleCity take measures to prevent any virus contamination of our
computer systems, recipients of emails should always ensure that they
take their own precautions to avoid virus contamination.
>______________________________________________________________________
>_______________________________________________
>freebsd-net@freebsd.org mailing list
>http://lists.freebsd.org/mailman/listinfo/freebsd-net
>To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"
>  
>


______________________________________________________________________
This footer denotes the email has been inbound scanned for Virus.
 
______________________________________________________________________

______________________________________________________________________
DISCLAIMER
This e-mail is intended only for the use of the addressees named above and may be confidential. If you are not an addressee you must not use any information contained in nor copy it nor inform any person other than TeleCity or the addressees of its existence or contents. If you have received this e-mail in error, please contact the TeleCity IT department on +44 (0) 161 232 3220 or by email at techsupport@telecity.com. Internet communications cannot be guaranteed 100% secure, you should therefore take this potential lack of security into consideration when emailing us as we do not accept legal responsibility for the security of the contents of this or other emails. Whilst TeleCity take measures to prevent any virus contamination of our computer systems, recipients of emails should always ensure that they take their own precautions to avoid virus contamination.
______________________________________________________________________



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7DA012A4E4DA934FA17318A11F7547F5B94339>