LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-28-2013, 07:28 AM   #1
yaron.kadem
LQ Newbie
 
Registered: Sep 2011
Posts: 16

Rep: Reputation: Disabled
Understanding output generated by snmpwalk


Hello all,

I'm running an SNMPd instance on CentOS and then I access it from another Linux machine by snmpwalk using this command 'snmpwalk -v1 -c trustr 10.1.10.58:161 .1.3.6.1.2.1.25.2' (HOST-RESOURCES-MIB).

I'm looking for a way to pharse this raw data below into a human-readble format, could you please advise?

The output I get is pasted below:

HOST-RESOURCES-MIB::hrMemorySize.0 = INTEGER: 502412 KBytes
HOST-RESOURCES-MIB::hrStorageIndex.1 = INTEGER: 1
HOST-RESOURCES-MIB::hrStorageIndex.3 = INTEGER: 3
HOST-RESOURCES-MIB::hrStorageIndex.6 = INTEGER: 6
HOST-RESOURCES-MIB::hrStorageIndex.7 = INTEGER: 7
HOST-RESOURCES-MIB::hrStorageIndex.10 = INTEGER: 10
HOST-RESOURCES-MIB::hrStorageIndex.31 = INTEGER: 31
HOST-RESOURCES-MIB::hrStorageIndex.35 = INTEGER: 35
HOST-RESOURCES-MIB::hrStorageIndex.36 = INTEGER: 36
HOST-RESOURCES-MIB::hrStorageType.1 = OID: HOST-RESOURCES-TYPES::hrStorageRam
HOST-RESOURCES-MIB::hrStorageType.3 = OID: HOST-RESOURCES-TYPES::hrStorageVirtualMemory
HOST-RESOURCES-MIB::hrStorageType.6 = OID: HOST-RESOURCES-TYPES::hrStorageOther
HOST-RESOURCES-MIB::hrStorageType.7 = OID: HOST-RESOURCES-TYPES::hrStorageOther
HOST-RESOURCES-MIB::hrStorageType.10 = OID: HOST-RESOURCES-TYPES::hrStorageVirtualMemory
HOST-RESOURCES-MIB::hrStorageType.31 = OID: HOST-RESOURCES-TYPES::hrStorageFixedDisk
HOST-RESOURCES-MIB::hrStorageType.35 = OID: HOST-RESOURCES-TYPES::hrStorageFixedDisk
HOST-RESOURCES-MIB::hrStorageType.36 = OID: HOST-RESOURCES-TYPES::hrStorageFixedDisk
HOST-RESOURCES-MIB::hrStorageDescr.1 = STRING: Physical memory
HOST-RESOURCES-MIB::hrStorageDescr.3 = STRING: Virtual memory
HOST-RESOURCES-MIB::hrStorageDescr.6 = STRING: Memory buffers
HOST-RESOURCES-MIB::hrStorageDescr.7 = STRING: Cached memory
HOST-RESOURCES-MIB::hrStorageDescr.10 = STRING: Swap space
HOST-RESOURCES-MIB::hrStorageDescr.31 = STRING: /
HOST-RESOURCES-MIB::hrStorageDescr.35 = STRING: /dev/shm
HOST-RESOURCES-MIB::hrStorageDescr.36 = STRING: /boot
HOST-RESOURCES-MIB::hrStorageAllocationUnits.1 = INTEGER: 1024 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.3 = INTEGER: 1024 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.6 = INTEGER: 1024 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.7 = INTEGER: 1024 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.10 = INTEGER: 1024 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.31 = INTEGER: 4096 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.35 = INTEGER: 4096 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.36 = INTEGER: 1024 Bytes
HOST-RESOURCES-MIB::hrStorageSize.1 = INTEGER: 502412
HOST-RESOURCES-MIB::hrStorageSize.3 = INTEGER: 1518212
HOST-RESOURCES-MIB::hrStorageSize.6 = INTEGER: 502412
HOST-RESOURCES-MIB::hrStorageSize.7 = INTEGER: 280260
HOST-RESOURCES-MIB::hrStorageSize.10 = INTEGER: 1015800
HOST-RESOURCES-MIB::hrStorageSize.31 = INTEGER: 3437953
HOST-RESOURCES-MIB::hrStorageSize.35 = INTEGER: 62801
HOST-RESOURCES-MIB::hrStorageSize.36 = INTEGER: 495844
HOST-RESOURCES-MIB::hrStorageUsed.1 = INTEGER: 457868
HOST-RESOURCES-MIB::hrStorageUsed.3 = INTEGER: 458176
HOST-RESOURCES-MIB::hrStorageUsed.6 = INTEGER: 10316
HOST-RESOURCES-MIB::hrStorageUsed.7 = INTEGER: 280260
HOST-RESOURCES-MIB::hrStorageUsed.10 = INTEGER: 308
HOST-RESOURCES-MIB::hrStorageUsed.31 = INTEGER: 1085179
HOST-RESOURCES-MIB::hrStorageUsed.35 = INTEGER: 0
HOST-RESOURCES-MIB::hrStorageUsed.36 = INTEGER: 31951

TIA
Yaron
 
Old 08-29-2013, 07:56 AM   #2
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7 / 8
Posts: 3,538

Rep: Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593
What are you trying to achieve in terms of "human readable"? and what have you already tried?
 
Old 08-29-2013, 09:09 AM   #3
yaron.kadem
LQ Newbie
 
Registered: Sep 2011
Posts: 16

Original Poster
Rep: Reputation: Disabled
Hi,

I'm trying to get this table in a human readable format that's it.

I've trying to use some snmp software with no success.
 
Old 08-29-2013, 09:18 AM   #4
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7 / 8
Posts: 3,538

Rep: Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593
Understanding output generated by snmpwalk

Well the output of snmpwalk is "human readable", I can read it.

So you don't give examples of what you'd like to achieve as an output or what you've already tried / looked at in order to reach your goal.

Try coming back with that, rather than just reapeating your first post and maybe someone (else!) will help you.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to convert MIBs to snmpwalk output? ronbarak Linux - Software 3 05-26-2013 03:41 PM
snmpwalk command not show appropriate output. gardenair Linux - Networking 6 09-17-2012 01:57 PM
Find path of output generated prravin1 Programming 5 03-06-2012 04:29 AM
Script to enter generated output folders depending on time prravin1 Programming 7 02-29-2012 11:37 AM
no output generated suchi_s Programming 2 09-08-2004 06:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:06 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration