[root@manage /root]# df
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/sda6 1035660 762684 220368 78% /
/dev/sda1 101086 17581 78286 18% /boot
/dev/sda9 202219 5659 186120 3% /home
/dev/sda7 497829 365698 106429 77% /usr/local
/dev/sda8 74035840 7362336 62912692 10% /var
[root@manage /root]# /usr/sbin/chroot /var/snmp /usr/local/bin/snmpwalk c
public -v 2c 127.0.0.1 1.3.6.1.4.1.2021.9.1
UCD-SNMP-MIB::dskIndex.1 = INTEGER: 1
UCD-SNMP-MIB::dskPath.1 = STRING: /
UCD-SNMP-MIB::dskDevice.1 = STRING: /dev/sda6
UCD-SNMP-MIB::dskMinimum.1 = INTEGER: -1
UCD-SNMP-MIB::dskMinPercent.1 = INTEGER: 80
UCD-SNMP-MIB::dskTotal.1 = INTEGER: 74035840
UCD-SNMP-MIB::dskAvail.1 = INTEGER: 62912472
UCD-SNMP-MIB::dskUsed.1 = INTEGER: 7362556
UCD-SNMP-MIB::dskPercent.1 = INTEGER: 10
UCD-SNMP-MIB::dskPercentNode.1 = INTEGER: 0
UCD-SNMP-MIB::dskTotalLow.1 = Gauge32: 74035840
UCD-SNMP-MIB::dskTotalHigh.1 = Gauge32: 0
UCD-SNMP-MIB::dskAvailLow.1 = Gauge32: 62912472
UCD-SNMP-MIB::dskAvailHigh.1 = Gauge32: 0
UCD-SNMP-MIB::dskUsedLow.1 = Gauge32: 7362556
UCD-SNMP-MIB::dskUsedHigh.1 = Gauge32: 0
UCD-SNMP-MIB::dskErrorFlag.1 = INTEGER: noError(0)
UCD-SNMP-MIB::dskErrorMsg.1 = STRING:
See above outputs...... in my snmpd.conf its “disk / ” written.
And all the partition are mounted in /var/snmp directory.
Now my issue is as my SNMP packaging is in /var partition and I suppose to
use it with CHROOT ,
Its just returning me how many space is available in “/var/snmp”
directory, which is ultimately /var directory...
I want an configuration or something that it will return data of ORIGINAL
disk space...
Like / , /home..... etc etc...
From: applebupt [mailto:wenpinghuajx...@126.com]
Sent: 13 June 2013 07:33
To: Jatin Bodarya
Subject: Re: snmp using chroot
Can you give your output of using snmpwalk command, we can't understand your
question clearly.
��?2013-6-12锛�涓���?:27锛?Jatin Bodarya" <jatin.boda...@elitecore.com> ����
��锛?br>
Hello all,
I am using netsnmp 5.7.1 as my packaging is in /var partition.
Running binary using ���chroot��?command��? with ���mounted environment
��?o:p>
snmpwalk -c public -v 2c 127.0.0.1 1.3.6.1.4.1.2021.9.1
This all OIDs give output of only /var partition as its rooted in /var !!!
How Can I grep data with original hard disk data in this environment ?
----------------------------------------------------------------------------
--
This SF.net email is sponsored by Windows:
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders