04-22-2015
How do you do this in Linux?
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
i have a unix batch written in c, dealing with really time-consuming
database operations
i want to write a ksh script to monitor its performance.
which items i should monitor?
do you have any suggestions?
1)cputime
2)swap area
3)pmem
4)
5)
what else? (1 Reply)
Discussion started by: gfhgfnhhn
1 Replies
2. UNIX for Advanced & Expert Users
Hi Gurus,
Need to have a way to monitor Bandwidth utilization on Linux servers, running squid .
Have worked on 3rd party monitoring tools like Bandwidth d, Nagios etc.
But we are working to find out a way to monitor this through Sitescope, for which we need to find a file where the... (4 Replies)
Discussion started by: Crazy_murli
4 Replies
3. Programming
Hi i am am monitioring a file every 60 seconds and checking if the file has changed and if it has changed i append the changes to another file. i am able to monitior the change in file size but i have a problem copying the changes made in the file to another file. i am using lseek to seek the last... (1 Reply)
Discussion started by: problems
1 Replies
4. AIX
Hi
Can any one helpe me in obtaining commands , which enables me to know the following :
Monitor Storage
Monitor RAM & CPU Utilization
Monitor Power Supply
Best wishes (1 Reply)
Discussion started by: magasem
1 Replies
5. Shell Programming and Scripting
Hi,
I am trying to write a script to do monitoring kind of stuff,
requirement - when a server is given a start it updates a file called server.log, I need to keep on grepping the word "Running" and as soon as it comes , script should be exited with the message , "Server came up... (2 Replies)
Discussion started by: sunilmenhdiratt
2 Replies
6. Infrastructure Monitoring
Hi All,
I am writing a tool which remotely monitors network devices and sends an alarm if the device does not respond just like an NMS.
Can I use Threads module and invoke a simultaneous ping/snmpwalk to 100 or more devices and raise an alarm if any of the devices do no respond?
Please... (1 Reply)
Discussion started by: gurukottur
1 Replies
7. Shell Programming and Scripting
Hello All,
I have written a script which will grep for error codes in a file and if the count for the same is about 500 it will send and smpp alert.
Here is my code.
#!/bin/bash
#########################################################################################################... (3 Replies)
Discussion started by: Siddheshk
3 Replies
8. Shell Programming and Scripting
I currently have a shellscript to check the size of a filesystem and email me if the size is over a certain percentage (80%). I have this script on crontab and executes the shell every 10 mins.
I have the above in place on 8 servers. It so happens that a file system on one of the servers is... (1 Reply)
Discussion started by: goddevil
1 Replies
9. Shell Programming and Scripting
Does anyone have an example of IOSTAT -eE in a script???????
Need to see the syntax in a script (4 Replies)
Discussion started by: walnutpony123
4 Replies
10. Infrastructure Monitoring
Hello,
Can somebody suggest me any Free monitoring utility (preferably GUI) for Mysql DB(community edition).
What i am looking at is something that can give me a trend of DB performance and suggest when to upgrade or add more DB resources to existing infra.
Note - I tried mtop. but it... (3 Replies)
Discussion started by: Hari_Ganesh
3 Replies
CHCPU(8) System Administration CHCPU(8)
NAME
chcpu - configure CPUs
SYNOPSIS
chcpu -c|-d|-e|-g cpu-list
chcpu -p mode
chcpu -r|-h|-V
DESCRIPTION
chcpu can modify the state of CPUs. It can enable or disable CPUs, scan for new CPUs, change the CPU dispatching mode of the underlying
hypervisor, and request CPUs from the hypervisor (configure) or return CPUs to the hypervisor (deconfigure).
Some options have a cpu-list argument. Use this argument to specify a comma-separated list of CPUs. The list can contain individual CPU
addresses or ranges of addresses. For example, 0,5,7,9-11 makes the command applicable to the CPUs with the addresses 0, 5, 7, 9, 10, and
11.
OPTIONS
-c, --configure cpu-list
Configure the specified CPUs. Configuring a CPU means that the hypervisor takes a CPU from the CPU pool and assigns it to the vir-
tual hardware on which your kernel runs.
-d, --disable cpu-list
Disable the specified CPUs. Disabling a CPU means that the kernel sets it offline.
-e, --enable cpu-list
Enable the specified CPUs. Enabling a CPU means that the kernel sets it online. A CPU must be configured, see -c, before it can be
enabled.
-g, --deconfigure cpu-list
Deconfigure the specified CPUs. Deconfiguring a CPU means that the hypervisor removes the CPU from the virtual hardware on which
the Linux instance runs and returns it to the CPU pool. A CPU must be offline, see -d, before it can be deconfigured.
-p, --dispatch mode
Set the CPU dispatching mode (polarization). This option has an effect only if your hardware architecture and hypervisor support
CPU polarization. Available modes are:
horizontal The workload is spread across all available CPUs.
vertical The workload is concentrated on few CPUs.
-r, --rescan
Trigger a rescan of CPUs. After a rescan, the Linux kernel recognizes the new CPUs. Use this option on systems that do not auto-
matically detect newly attached CPUs.
-V, --version
Display version information and exit.
-h, --help
Display help text and exit.
RETURN CODES
chcpu has the following return codes:
0 success
1 failure
64 partial success
AUTHOR
Heiko Carstens <heiko.carstens@de.ibm.com>
COPYRIGHT
Copyright IBM Corp. 2011
SEE ALSO
lscpu(1)
AVAILABILITY
The chcpu command is part of the util-linux package and is available from Linux Kernel Archive <https://www.kernel.org/pub/linux/utils
/util-linux/>.
util-linux July 2014 CHCPU(8)