nixCraft Linux Forum

nixCraft

Linux / UNIX Tech Support Forum

System Info to CSV

This is a discussion on System Info to CSV within the Shell scripting forums, part of the Development/Scripting category; In Short: The basic jist with this post is to ask how to get the system information for a Linux ...


Go Back   nixCraft Linux Forum > Development/Scripting > Shell scripting

Linux answers from nixCraft.


Shell scripting You can discuss the shell scripting, request shell scripts and scripting techniques

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 25-02-2009, 04:06 AM
Junior Member
User
 
Join Date: Feb 2009
OS: CentOS
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
someone is on a distinguished road
Default System Info to CSV

In Short:
The basic jist with this post is to ask how to get the system information for a Linux Red Hat system into a CSV format. The end goal is to put the collected data together from other OS's into a MySQL DB.


Long Question:
The goal is to take the system information from a RHEL system using on standard bash commands such as “ps aux”, “cat /proc/cpuinfo”, “free -m”, “lspci and the like and have that information collected and input in a CSV file. While the end goal is to compile the data into a MySQL database the machines that the data will be collected from will not have access to the MySQL machine facilitating the need for an interim file format for transfer to the MySQL DB.


The output from some of the some of the bash commands that will need to run do not lend themselves to each conversion to a CSV format. Thank you in advance for any help.
Reply With Quote
  #2 (permalink)  
Old 25-02-2009, 04:33 AM
Junior Member
User
 
Join Date: Feb 2008
OS: .
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
unSpawn is on a distinguished road
Default

So what actually is your question? I mean, like you would phrase it yourself...
Reply With Quote
  #3 (permalink)  
Old 25-02-2009, 05:02 AM
Junior Member
User
 
Join Date: Feb 2009
OS: CentOS
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
someone is on a distinguished road
Default

Basically, I would like to get system information by running bash scripts and have that information be exported in csv format.
Reply With Quote
  #4 (permalink)  
Old 25-02-2009, 12:33 PM
Junior Member
User
 
Join Date: Feb 2008
OS: .
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
unSpawn is on a distinguished road
Default

So which commands would you run?
What makes something a CSV file?
Reply With Quote
Reply

Tags
bash , csv , database , rhel


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
windows server 2003 as a host system for LINUX guest system VPS h@foorsa.biz Web servers 3 15-11-2008 10:13 AM
howto get my cpu info on linux system? chiku Linux software 4 20-05-2008 08:06 PM
bash script to collect info adahan Shell scripting 7 31-10-2007 06:06 PM
USER INFO asim.mcp Linux software 1 09-08-2006 03:18 AM
find out info. reg. files for each user in the system ganes Solaris/OpenSolaris 6 20-09-2005 06:49 PM


All times are GMT +5.5. The time now is 08:57 PM.


Powered by vBulletin® Version 3.8.5 - Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
©2005-2010 nixCraft. All rights reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38