9 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Thank you in advanced,
I had a Buffalo DUO crap out on me that was setup as RAID 0. I dont belive it was the drives but rather the controller in the DUO unit. I bought another external HDD enclosure and was able to fireup the two older DUO drives in it and I think I resembled the RAID... (12 Replies)
Discussion started by: metallica1973
12 Replies
2. Shell Programming and Scripting
trying a little bit of array scanning for open ports.
my code looks like below:
/bin/netstat -lntp|\
awk 'BEGIN { split("25 80 2020 6033 6010",q); }
$1 == "tcp" { split($4,a,":"); p]++; }
$1 == "tcp6" { split($4,a,":");p]++ }
END {
for ( i in q ) {
if (! q in p ) {... (8 Replies)
Discussion started by: busyboy
8 Replies
3. UNIX for Beginners Questions & Answers
username=cogiz
#!/bin/bash
shuffle() #@ USAGE: shuffle
{ #@ TODO: add options for multiple or partial decks
Deck=$(
printf "%s\n" {2,3,4,5,6,7,8,9,T,J,Q,K,A}{H,S,D,C} |
awk '## Seed the random number generator
BEGIN { srand() }
## Put a random number in front... (4 Replies)
Discussion started by: cogiz
4 Replies
4. UNIX for Beginners Questions & Answers
Example of problem:
computerhand=(6H 2C JC QS 9D 3H 8H 4D)
topcard=6D
How do you search ${computerhand} for all elements containing either a "6" or a "D" then
save the output to a file?
This is a part of a Terminal game of Crazy 8's that I'm attempting to write in Bash.
Any... (2 Replies)
Discussion started by: cogiz
2 Replies
5. Red Hat
Dear all ,
i ve configured raid 0 in redhat machine(VM ware), by following steps:
#mdadm -C /dev/md0 -l 0 -n 2 /dev/sdb1 /dev/sdc1
#mkfs.ext3 /dev/md0
#mdadm --detail --scan --config=mdadm.conf >/etc/mdadm.conf
then
mounted the/dev/md0 device and also added a entry in fstab.
how... (2 Replies)
Discussion started by: sriniv666
2 Replies
6. Emergency UNIX and Linux Support
One of my very old drive farm servers had an OS fault and can't boot now but I'd like to restore some files from it. I tried booting Ubuntu from a CD, but it couldn't see the drives -- possibly because they're RAIDed together. Is there a good way to get at my files?
The data in question is a... (2 Replies)
Discussion started by: CRGreathouse
2 Replies
7. Red Hat
Hi All,
I run Linux server that hosts PHP/MySQL web-projects.
The problem is that it becomes irresponsive periodically, avg. load rapidly goes up to 100.0 and more and I have to do cold reboot.
Usually this sudden increase happens in 1-2 mins and it's very difficult to catch this moment in... (0 Replies)
Discussion started by: livedatesearch
0 Replies
8. UNIX for Advanced & Expert Users
Hi guys,
i must install an old old old ml370 server...
I must create a RAID 5 with my 4 SCSI disk.
I need a SmartStart disk for create it or a Floppy Disk called "Array configuration Tool". I don't find it on the hp website...:mad::mad::mad:
Anyone have it??
Thanks in advance.
Zio (0 Replies)
Discussion started by: Zio Bill
0 Replies
9. AIX
I created a RAID 5 array and when I list out the attributes of the "hdisk" it reports back raid_level = 5 but the RAID level of the array = false. What does this actually indicate about my array? I've never paid much attention to this until now since I have a disk reporting failure I want to make... (0 Replies)
Discussion started by: scottsl
0 Replies
cpustat(1) General Commands Manual cpustat(1)
Name
cpustat - report CPU statistics
Syntax
cpustat [-cfhsv] [interval [count]]
Description
The command displays statistics about the use and state of each CPU in the system. The information about the CPU might change while the
command is running, so the information it gives is a snapshot taken at a given time.
Normally, the command displays the statistics and state only once. You can cause the command to repeat the display by specifying a decimal
number in the interval argument. The command repeats the display until it is interrupted, for example, by a control character entered at
the terminal.
You can limit the number of times the command repeats the display by specifying an integer in the count argument.
The command provides an interactive interface that you can invoke using the -f option.
The following describes the fields in the display:
Statistics: Information about how each CPU's time is being used
us% Percent of time spent in user mode
ni% Percent of time spent in nice mode
sy% Percent of time spent in system mode
id% Percent of time spent idle
csw Number of context switches
sys Number of system calls
trap Number of traps
intr Number of device interrupts
ipi Number of interprocessor interrupts
ttyin Number of characters input to the terminal
ttyout Number of characters output to the terminal
State: Information about the different states of each CPU
cpuid Unique identifier of the CPU.
state CPU state.
B - boot CPU
D - disable soft errors
S - stopped
R - running
T - TB needs invalidation
P - panicked
ipi-mask interprocessor interrupt mask
P - panic
R - console print
S - schedule
D - disable
T - TB invalidation
H - stop CPU
proc Indication of whether the CPU has an associated process. A Y indicates that an associated process exists, while an N indi-
cates that no associated process exists.
pid Process ID of the running process.
If any statistic field value exceeds 9999, it is shown in a scaled representation with the suffix k, which indicates multiplication by
1000, or with the suffix m, which indicates multiplication by 1,000,000. For example, the value 12,345 would appear as 12k.
Options
-c Displays only the statistics for each CPU.
-f Displays statistics and state information on a full screen. If you use the -f option, you are prompted to enter one of the following
commands:
c Displays only statistics about each CPU.
d Uses the default mode of display.
h Displays the help screen. To return to the original display screen, enter any character.
q Quits from the full screen display.
s Displays only state information about each CPU.
v Displays information about each vector processor and omits information about other processors.
-s Displays only state information about each CPU.
-h Provides help information about the usage of the command.
-v Displays information about each vector processor and omits information about other processors. When displays information about vector
processors, it adds the following information to the display:
vp state Indicates that the vector processor is operational (OK), not usable (DEAD), enabled (ENA), or disabled (DIS). The command
display may contain a combination of these states.
vp owner PID of the vector process whose context is stored in the vector processor.
chp cxsw Number of context switches in which the process whose context changed is the only process using a particular vector proces-
sor. Because no other process uses the vector processor, the register data associated with the processor does not change.
Therefore, the system does not need to save and restore the register data; the data remains in the registers until the
process is ready to use it.
exp cxsw Number of context switches in which a number of processes might be using the same vector processor. When more than one
process uses the same processor, the register data associated with the processor might be changed by any process. Therefore,
the system saves and restores the register data during a context switch for any process.
succ req Number of times the vector process has successfully allocated the vector processor.
failed req
Number of times the vector process has been refused vector processor allocation.
If you omit all options, reports a summary of the statistics since the system has been booted and the state of each CPU.
Examples
To print the system status every five seconds ten times, enter the following command:
% cpustat 5 10
Files
Virtual main memory image
System namelist
See Also
iostat(1), vmstat(1)
cpustat(1)