12-19-2019
You might discover that sizes considered by find are based on blocks and might not exactly match what you want.
If this is the case and you need it to be perfect, consider running find to get all the possible files then reading each with stat -c '%s' "${filename}" to get the size of the file in bytes.
Robin
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Is there a limit (255 chars?) on the command line??
I'm trying to copy some generated java & class files from one dir to another and ID the old & new versions by:
find . -name FFSFIXADminCallbackBean.java
I then do a copy and paste of the source and target -
$ cp -p source target
It... (7 Replies)
Discussion started by: kornshellmaven
7 Replies
2. Shell Programming and Scripting
is there a way to write a script and run with a cron job which archives all the *.log files into .tar.gz. :eek: (0 Replies)
Discussion started by: tintedwindow
0 Replies
3. UNIX for Dummies Questions & Answers
Hellp all,
if there is 3G memory in my Unix server I want to know if all the 3G space can be used by ong sigle process. As i know, in Windows, one process can only access at most 1G memory despite there is probably more than 1G memory is equipped. (1 Reply)
Discussion started by: cy163
1 Replies
4. Shell Programming and Scripting
Hi,
Your great help is very appreciated. I am looking for any Unix command or tool for doing Stress/Load test of php files at command prompt.
I tried torture.pl but it is not working after20 concurrent threads/users.
as it is very urgent for me..please suggest ur ideas asap.
thanks (5 Replies)
Discussion started by: Malleswari
5 Replies
5. Shell Programming and Scripting
Hi
I would just like to ask if there is a way for UNIX to ignore/overcome the 255 character limit of the command line?
My problem is that I have a really long line of text from a file (300+ bytes) which i have to "echo" and process by adding commands like "sed" to the end of the line, like... (5 Replies)
Discussion started by: agentgrecko
5 Replies
6. Shell Programming and Scripting
here is what i want to achieve.. i have a file with below contents
cat fileName
blah blah blah
.
.DROP this
REJECT that
.
--sport 7800 -j REJECT --reject-with icmp-port-unreachable
--dport 7800 -j REJECT --reject-with icmp-port-unreachable
.
.
.
more blah blah blah
--dport 3306... (14 Replies)
Discussion started by: vivek d r
14 Replies
7. UNIX for Dummies Questions & Answers
Hi all,
How can i display the middle line of a file using a single line command? (6 Replies)
Discussion started by: Lakme Pemmaiah
6 Replies
8. Shell Programming and Scripting
I want to read the log file which was generate from other command . And the output was having multi line in log files for job name and server name. But i need to make all the logs on one line
Source file
07/15/2018 17:02:00 TRANSLOG_1700 Server0005_SQL ... (2 Replies)
Discussion started by: ranjancom2000
2 Replies
9. UNIX for Beginners Questions & Answers
Hi,
Can anyone help me for merge the following multi-line log which beginning with a " and line ending with ": into one line.
*****Original Log*****
087;2008-12-06;084403;"mc;;SYHLR6AP1D\LNZW;AD-703;1;12475;SYHLR6AP1B;1.1.1.1;0000000062;HGPDI:MSISDN=12345678,APNID=1,EQOSID=365;... (3 Replies)
Discussion started by: rajeshlinux2010
3 Replies
LEARN ABOUT DEBIAN
aoe-stat
aoe-stat(8) System Manager's Manual aoe-stat(8)
NAME
aoe-stat - print aoe device status report
SYNOPSIS
modprobe aoe
aoe-stat
env sysfs_dir=/sys aoe-stat
DESCRIPTION
The aoe-stat script collects information on ATA over Ethernet devices from sysfs.
For each AoE device the kernel has discovered, there is one row in the script's output. Each row has the following columns.
devicename
The device name is of the form eX.Y,
with X being the AoE device shelf address, and Y being the AoE slot address.
size The size of the AoE device is in gigabytes (billions of bytes).
ifname The network interface name is printed in the third column.
payload
The number of bytes read from or written to the storage target in each AoE packet appears in the fourth column, unless the aoe
driver does not export this information.
status The device status is in the last column. Possible values are up, down, and down,closewait. The "up" status means the aoe driver
considers this device ready for I/O. The "down" status means the opposite. The "down,closewait" status means that some software
still has the device open, and when this straggler closes the device, it will enter the "down" state.
ENVIRONMENT VARIABLES
If the sysfs_dir variable is set in the environment, it will override the default location where aoe-stat will look for sysfs, namely
/sys.
WARNINGS
If the minor device number of a device node does not match that of its namesake, aoe-stat will print a warning as shown below.
nai:~# aoe-stat
e0.3 0.104GB eth0 up
e0.4 4398.046GB eth0 up
e20.0 1000.215GB eth0 up
e42.0 2000.431GB eth0 up
aoe-stat Warning: device node /dev/etherd/e45.1 has wrong minor device number
e45.1 1152.874GB eth0 up
Using such a device node is dangerous, because its name doesn't match the actual device that you would be reading from and writing to.
Such a broken device node should be removed. Device nodes are created by udev or (on systems without udev) by aoe-mkdevs.
EXAMPLE
In this example, the root user on a host named nai loads the aoe driver module and then prints a list of all the available aoe devices.
Then he remembers to bring up the storage network interfaces, does an AoE discovery, and prints the list again. This time the list shows
all the devices in shelf seven.
nai:~# modprobe aoe
nai:~# aoe-stat
nai:~# ifconfig eth3 up
nai:~# aoe-discover
nai:~# aoe-stat
e0.0 10995.116GB eth0 up
e0.1 10995.116GB eth0 up
e0.2 10995.116GB eth0 up
e1.0 1152.874GB eth0 up
e7.0 370.566GB eth0 up
nai:~#
SEE ALSO
aoe-discover(8), aoe-interfaces(8), aoe-mkdevs(8), aoe-mkshelf(8), aoetools(8), udev(7).
AUTHOR
Ed L. Cashin (ecashin@coraid.com)
aoe-stat(8)