Quote:
|
Originally Posted by wilkija
That made no sense to me at all.
|
That was probably because your question made no sense to me either!

I therefore made a few assumptions. Since you were in a Linux forum and said "I have a ton of Linux machines", I thought that meant you were quite familiar with Linux. And not-so-familiar with Windows, since you were asking how to accomplish a task from within Windows. So I gave an example of how to remotely execute a command from Linux to *nix, thinking that would be familiar to you, and then I threw in some hints of how to do this from Windows (putty, plink, etc.) Again, thinking your Windows knowledge was what was lacking.
Now it looks like you are a Windows user who is unfamiliar with Linux. Just the opposite of what I originally assumed. No wonder you were confused by my answer!
BTW, there is no native "sysinfo" command in Linux that I am aware of. I believe that command might exist on Solaris, and could have been ported to Linux by someone, but I am not sure. Chances are you will have to run some homebrew script on Linux to gather the specific info you are looking for. I've attached a simple one below that might work for you.
Code:
HOSTNAME=`hostname`
IP_ADDR=`/sbin/ifconfig eth0 | grep 'inet addr' | sed -e 's/.*inet addr://' -e 's/ .*//'`
MEMORY=`cat /proc/meminfo | grep MemTotal: | sed -e's/.*: *//'`
CPU_MHZ=`cat /proc/cpuinfo | grep MHz | sed -e 's/.*: //'`
CPU_TYPE=`cat /proc/cpuinfo | grep "model name" | sed -e 's/.*: *//'`
CPU_ARCH=`uname -m`
OS_NAME=`uname -s`
OS_KERNEL=`uname -r`
LASTBOOT=`who -b | sed -e 's/.*system boot *//'`
echo "Hostname : $HOSTNAME"
echo "IP Address : $IP_ADDR"
echo "CPU Type : $CPU_TYPE"
echo "CPU Speed : $CPU_MHZ MHz"
echo "Machine Architecture : $CPU_ARCH"
echo "System Memory : $MEMORY"
echo "OS Name : $OS_NAME"
echo "Kernel Version : $OS_KERNEL"
echo "System Boot : $LASTBOOT"
I stored the above in a file named "cmds". And here is the output when I remotely execute that to another Linux box (my home computer):
Code:
$ cat cmds | ssh home
Pseudo-terminal will not be allocated because stdin is not a terminal.
Enter passphrase for key '/home/haertig/.ssh/id_dsa':
Hostname : familyroom
IP Address : 192.168.0.52
CPU Type : AMD Athlon(tm) 64 Processor 3000+
CPU Speed : 2009.571 MHz
Machine Architecture : i686
System Memory : 1036516 kB
OS Name : Linux
Kernel Version : 2.6.14-1-686-dfh1
System Boot : Sep 17 16:33
$
Now, since you are in Windows, that
"...remotely execute that to another Linux box..." part changes. You won't be using
"cat cmds | ssh home". You will need to use some Windows variant. putty/plink would be one way.