11-29-2006
command for CPU online/offline status in bash shell
Hi ,
How do i check that the CPU is online/offline in a multi CPU machine in Linux ?
i tired /proc/cpuinfo
dmesg
nothing gave me the currect CPU status.
Pls help !!
9 More Discussions You Might Find Interesting
1. Solaris
Hi , we are using Veritas cluster server on solaris 8. Suddenly one application group was offline and online after 2 minutes.. I have checked VCS log..
"VCS INFO V-16-1-50135 User reuters fired command: hares -offline middleman_proc server01 from 127.0.0.1" Does anyone faced this... (0 Replies)
Discussion started by: ddk2oo5
0 Replies
2. Shell Programming and Scripting
Hi can someone tell me what command i can use to find the NIC status im using the bash shell. I'v tried ifconfig -a but this comes back as command not found. (3 Replies)
Discussion started by: warlock129
3 Replies
3. Programming
i'm trying to find a way to monitor the CPU/Memory status of a solaris station using vmstat. I like to write a small script to periodically run vmstat and store the output. Can anyone show me how (preferrably in C++ if possible)? Thanks in advance. (6 Replies)
Discussion started by: shingpui
6 Replies
4. Solaris
Hi all
in my server all nfs dependices are online but nfs client is offline
root@BIWAPP1 # svcs -a|grep nfs
disabled Sep_05 svc:/network/nfs/server:default
online Sep_05 svc:/network/nfs/rquota:default
online Sep_05 svc:/network/nfs/mapid:default
online ... (9 Replies)
Discussion started by: spandhan
9 Replies
5. Shell Programming and Scripting
Hi,
We put cron entry :whenever server is offline(checks every 5 minutes) it sends status to mailer group.
The number of messages (offline)were growing in our mailbox.How to avoid not to send offline messages after the first one through shell script.
Thanks in advance.
Chowdary (2 Replies)
Discussion started by: chowdary_m
2 Replies
6. UNIX for Advanced & Expert Users
what is the command for checking which device active and which is not active (1 Reply)
Discussion started by: RahulJoshi
1 Replies
7. UNIX for Dummies Questions & Answers
Dear all,
How to recover the Dns service from offline to online?
I used the command " svcadm enable dns/client"
the command is executing but again its showing service is offline.
pls clarify and give me suggesstion...
Thanks in advance (1 Reply)
Discussion started by: masthan25
1 Replies
8. Solaris
Hi,
I need to offline one of the CPUs in my M4000. I'm going to use the psradm command to offline the CPU. Do I need to do anything before offlining the CPU like unbinding processes etc? The servers are running oracle databases which I will shutdown beforehand.:confused:
Thanks,... (0 Replies)
Discussion started by: sparcman
0 Replies
9. UNIX for Advanced & Expert Users
I have two Solaris 10 T2000 systems.
Platform sun8 has newer firmware than sun7.
sun8/user$ prtdiag -v | grep OBP
OBP 4.30.4.b 2010/07/09 13:48
sun7/user$ prtdiag -v | grep OBP
OBP 4.30.4.a 2010/01/06 14:56
The platform (sun8) with the newer firmware (OBP 4.30.4.b) has a Fault... (2 Replies)
Discussion started by: DavidHalko
2 Replies
LSCPU(1) User Commands LSCPU(1)
NAME
lscpu - display information on CPU architecture
SYNOPSIS
lscpu [-hpx] [-s directory]
DESCRIPTION
lscpu gathers CPU architecture information like number of CPUs, threads, cores, sockets, NUMA nodes, information about CPU caches, CPU fam-
ily, model, bogoMIPS, byte order and stepping from sysfs and /proc/cpuinfo, and prints it in a human-readable format. It supports both
online and offline CPUs. It can also print out in a parsable format, including how different caches are shared by different CPUs, which
can be fed to other programs.
OPTIONS
-h, --help
Print a help message.
-p, --parse [=list]
Print out in parsable instead of human-readable format.
If the list argument is not given then the default backwardly compatible output is printed. The backwardly compatible format uses
two commas to separate CPU cache columns. If no CPU caches are identified, then the cache columns are not printed at all.
The list argument is comma delimited list of the columns. Currently supported are CPU, Core, Node, Socket, Book and Cache columns.
If the list argument is given then always all requested columns are printed in the defined order. The Cache columns are separated by
':'.
Note that the optional list argument cannot be separated from the option by a space, the correct form is for example '-p=cpu,node'
or '--parse=cpu,node'.
-s, --sysroot directory
Use the specified directory as system root. This allows you to inspect a snapshot from a different system.
-x, --hex
Use hexadecimal masks for CPU sets (e.g. 0x3). The default is to print the sets in list format (e.g. 0,1).
BUGS
The basic overview about CPU family, model, etc. is always based on the first CPU only.
Sometimes in Xen Dom0 the kernel reports wrong data.
AUTHOR
Cai Qian <qcai@redhat.com>
Karel Zak <kzak@redhat.com>
AVAILABILITY
The lscpu command is part of the util-linux package and is available from ftp://ftp.kernel.org/pub/linux/utils/util-linux/.
util-linux February 2011 LSCPU(1)