Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

To give you an idea of what I am looking to, for example, I have a gsm modem connected to a serial port of my machine. I can run a program called minicom and be able to directly communicate with the firmware in the modem using the at command set. Here's an example of me communicating with that modem on my ubuntu server:

at+cgmi
Enfora, Inc.

OK
at+cgmm
Enabler-II G Modem

OK

I can get all kinds of information by using at commands and most importantly I can check the status of the modem right from the terminal without going physically to the location and having to run something like memtest. I have my servers remotely, so I would like to find an equivalent program of minicom on ubuntu that will allow me to check the status of my hard drives and my RAM (since these are two critical components to my system). What are the best programs on ubuntu for doing diagnostics and interacting with the hard drive and RAM from terminal?

share|improve this question
add comment

1 Answer

Using the terminal, you can get all kinds of good information from the /proc/ directory.

Using the command:

awk '/MemTotal/{print $2}' /proc/meminfo

You can extract memory totals.

Using similar methods, you can parse the /proc/diskstats file.

I do not have a one size fits all command line tool for you, but hopefully, this helps you on your way to figuring out a solution to your issue.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.