02-15-2008
execute "ssh root@server cat /proc/cpuinfo >> servers.cpu.stats" from the master machine, but before that put all the machines into a file / array, source it, and call each one sequental.
Also, you can use auto/expect to create such sessions, and log them with "log_file" function.
If you prefer your way, after execution of "cat /proc/cpuinfo > file.txt" you can scp this file to the master machine.
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Dear Unix Gurus,
Here is my query.
If i start a script,it inturn calls many other scripts ..and most of them continue to run in parallel.
Suppose,if i want to stop my script for some reason,i need to kill -9 each of the processes running.It becomes clumsy if the sub processes r more.
... (15 Replies)
Discussion started by: gvsreddy_539
15 Replies
2. UNIX for Advanced & Expert Users
Good day,
I am extracting information from Apache log files from 41 servers. Every day I have 7 cronjobs scheduled to do this for me and it works beautifully :D... only problem is that it takes about 6-9 hours to run through, as the script runs about 6 ssh commands for each box then goes to the... (3 Replies)
Discussion started by: msullivan
3 Replies
3. UNIX for Advanced & Expert Users
Hello
I have 2 servers that need a database table to be one way synchronized (server A needs to push the table to server B)
I considered using a FEDERATED DB, but decided against it for my particular application (Server B has several apps that would be calling the table repeatedly, and a... (3 Replies)
Discussion started by: kettlewell
3 Replies
4. Shell Programming and Scripting
Hi All
I'm currently trying to develop a script which will find the child processes of a process ID already passed to the script.
I then need the script to look for spawned processes of these child processes and so on until it can't find any more.
For example
At the moment, I have to... (6 Replies)
Discussion started by: huskie69
6 Replies
5. UNIX for Advanced & Expert Users
hello,
I'm planning to do inventory of all our servers but this time it's more on physical. Meaning I would like to check all hardware connected to it (external only like storage, power support) including the count Would like to get perhaps its serial nr..(linux and solaris different servers... (2 Replies)
Discussion started by: lhareigh890
2 Replies
6. UNIX for Advanced & Expert Users
Hi
I have two machines Mac1 and Mac2 logging in with same user id and same private key.
can anyone let me know how to connect these two machine using ssh .
or SCP files to other machine
:wall: (1 Reply)
Discussion started by: madankumar
1 Replies
7. AIX
Hello,
I am trying to setup passwordless nophrase ssh between two machines for the user id: oraprod
here is what I did for a non-root user: oraprod
whoami:
oraprod
Machine A:
ssh-keygen -t dsa
cat ~/.ssh/id_rsa.pub
# GO TO MACHINE B
create (16 Replies)
Discussion started by: filosophizer
16 Replies
8. Shell Programming and Scripting
Greetings to every one,
I have to access different clusters for computing.
But the problem is their lib paths are different. :eek:
How can i export some particular library paths for a particular machine ?
For example
Like cluster_1 (ip : 10.169.85.47)
export LD_libPATH="/opt/CUDA"
Like... (2 Replies)
Discussion started by: admax
2 Replies
9. Shell Programming and Scripting
So, I've been playing with speeding up some analysis we do by using multiple threads of awk (actually, mawk, but code-compatible as far as I use it) on multiple CPU cores. So, I have a big data file and I have several copies of exactly the same processor script, written in mawk. I also have a... (8 Replies)
Discussion started by: treesloth
8 Replies
CPUID(4) Linux Programmer's Manual CPUID(4)
NAME
cpuid - x86 CPUID access device
DESCRIPTION
CPUID provides an interface for querying information about the x86 CPU.
This device is accessed by lseek (2) or pread (2) to the appropriate CPUID level and reading in chunks of 16 bytes. A larger read size
means multiple reads of consecutive levels.
The lower 32 bits of the file position is used as the incoming %eax, and the upper 32 bits of the file position as the incoming %ecx, the
latter intended for "counting" eax levels like eax=4.
This driver uses /dev/cpu/CPUNUM/cpuid, where CPUNUM is the minor number, and on an SMP box will direct the access to CPU CPUNUM as listed
in /proc/cpuinfo.
This file is protected so that it can only be read by the user root, or members of the group root.
NOTES
The CPUID instruction can be directly executed by a program using inline assembler. However this device allows convenient access to all
CPUs without changing process affinity.
Most of the information in cpuid is reported by the kernel in cooked form either in /proc/cpuinfo or through subdirectories in
/sys/devices/system/cpu. Direct CPUID access through this device should only be used in exceptional cases.
The cpuid driver is not auto-loaded. On modular kernels you might need to use the following command to load it explicitly before use:
$ modprobe cpuid
There is no support for CPUID functions that require additional input registers.
Very old x86 CPUs don't support CPUID.
SEE ALSO
Intel Corporation, Intel 64 and IA-32 Architectures Software Developer's Manual Volume 2A: Instruction Set Reference, A-M, 3-180 CPUID ref-
erence.
Intel Corporation, Intel Processor Identification and the CPUID Instruction, Application note 485.
COLOPHON
This page is part of release 3.27 of the Linux man-pages project. A description of the project, and information about reporting bugs, can
be found at http://www.kernel.org/doc/man-pages/.
Linux 2009-03-31 CPUID(4)