Python3 (v3.6 or later)
psutil module (v5.7.0 or later)
| Date |
Version |
Comment |
| 01.01.2021 /bs |
2.6.0 |
added support for the Raspberry OS
to the compile scripts the script to create a new archive, create_archive.sh, now also deletes the .a files in the directory ${JWM_DIR}/lib. added pspy 1.2.0 added sockstat 0.4.1-1 added zmap 2.1.1 New Versionsnew version: nmon 16m new version: ipscan 3.7.3 new version: memconf 3.15 new version: inxi 3.2.01-00 new version: stress-ng 0.12.0 new version: atop 2.6 new version: eventstat 0.4.11 new version: forkstat 0.2.16 new version: htop 3.0.4 new version: sysstat 12.5.2 new version: netsniff-ng 0.6.7 new version: mtr 0.94 new version: iozone 491 new version: t50 5.8.8 new version: fnotifystat 0.02.07 new version: hostscope v7.0 new version: netdata v1.28 new version: bpytop 1.0.52 new version: lynis 3.0.2 removed: tracebox removed: libprotobuf (the library is not necessary for the current version of hostscope anymore) |
| 01.10.2020/bs |
2.5.0 |
added bashtop
0.9.25 added bpytop 1.0.3 added faultstat 0.01.04 New Versionsnew version: ack 3.4.0 new version: fnotifystat 0.02.06 new version: smemstat 0.02.08 new version: eventstat 0.04.10 new version: forkstat 0.02.09 new version: stress-ng 0.11.19 new version: sysstat 12.4.0 new version: health-check 0.03.09 new version: oprofile 1.4.0 new version: busybox 1.3.2 new version: powerstat 00.02.24 new version: screen 4.8.0 new version: netdata 1.24.0 new version: lynis 3.0.0 new version: htop 3.0.0 new version: iptraf-ng 1.2.1 new version: powertop 2.13 new version: procdump 1.1.1 new version: t50 5.8.7 new version: cpustat 0.02.11 new version: pagemon 0.01.20 additional libraries now included in the JWM / Linux archive are libjson-c* libbsd* removed: tecmint_monitor.sh removed: pt-diskstats Updates for all compile scripts - the compile parameter -ltinfo will now only be used if the library libtinfo.so exists - the compile scripts now always create temporary make files if changes to the make file are necessary |
| ... |
see the History archive for the
previous updates |
|
| 27.10.2013/bs | 1.0.0 | first public release see also the README file in the tar archive |
sudo ln -s /bin/sed /usr/bin/sed
sudo ln -s /bin/mkdir /usr/bin/mkdirsudo yum install centos-release-scl
sudo yum update
sudo yum install devtoolset-7-gcc-c++
[xtrnaw7@centos69 ~]$ gcc --version | head -1
gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-23) sudo dnf --enablerepo=powertools install
libunistring-devel [xtrnaw7@centos69 ~]$
[xtrnaw7@centos69 ~]$ scl --list
devtoolset-7
[xtrnaw7@centos69 ~]$
[xtrnaw7@centos69 ~]$ scl enable devtoolset-7 bash
[xtrnaw7@centos69 ~]$
[xtrnaw7@centos69 ~]$ gcc --version | head -1
gcc (GCC) 7.3.1 20180303 (Red Hat 7.3.1-5)
[xtrnaw7@centos69 ~]$
To update the GCC in CentOS 7.x do
install centos-release-scl
sudo yum install centos-release-scl
sudo yum install devtoolset-7-gcc-c++
scl enable devtoolset-7 bash
Results
[xtrnaw7@centos7 compile_scripts]$ scl enable devtoolset-7
bash
[xtrnaw7@centos7 compile_scripts]$ gcc --version
gcc (GCC) 7.3.1 20180303 (Red Hat 7.3.1-5)
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying
conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
[xtrnaw7@centos7 compile_scripts]$
sudo dnf
--enablerepo=powertools install libunistring-develJWM / Linux was compiled on these Linux Distributions:
| JWM Version |
Date |
Linux Distribution |
Kernel version | gcc version | Supported by add_os_packages? |
Comment |
| 2.6.0 |
25.12.2020 |
Fedora 33 |
5.9.15 |
gcc (GCC) 10.2.1 20201125 (Red Hat
10.2.1-9) |
yes |
all packages can be compiled; this is the
main distribution for development |
| 2.6.0 | 25.12.2020 | CentOS 8 |
4.18.0 |
gcc (GCC) 8.3.1 20191121 (Red Hat
8.3.1-5) |
yes |
all packages can be compiled |
| 2.6.0 | 25.12.2020 | CentOS 7 |
3.10.0 |
gcc (GCC) 7.3.1 20180303 (Red Hat
7.3.1-5) |
yes |
some
tools do not compile anymore with the standard gcc in
Centos 7.x Therefor I installed and used the GCC v7 (see Required GCC version) all packages can be compiled with the GCC v7.x |
| 2.6.0 | 25.12.2020 | CentOS 6.10 | 2.6.32 | gcc (GCC) 7.3.1 20180303 (Red Hat
7.3.1-5) |
yes |
some
tools do not compile anymore with the standard gcc in
Centos 6.x Therefor I installed and used the GCC v7 (see Required GCC version) all packages can be compiled with the GCC v7.x except these ones: health-check (kernel not supported) fnotifystat (kernel not supported) justniffer must be compiled manually -- see here some tools do not compile in OS with kernel 2.x anymore -- for details see here |
| 2.6.0 | 26.12.2020 | Mint 19 |
4.15.0 |
gcc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0 |
yes |
all packages can be compiled |
| 2.6.0 | 26.12.2020 | Debian 10 | 4.19.0 |
gcc (Debian 8.3.0-6) 8.3.0 |
yes | all packages can be compiled, except
these packages: sockperf |
| 2.6.0 | 26.12.2020 |
Ubuntu 16.04.7 LTS |
4.15.0 |
gcc (Ubuntu 5.4.0-6ubuntu1~16.04.12)
5.4.0 20160609 |
yes |
all packages can be compiled |
| 2.6.0 | 26.12.2020 | Ubuntu_20.04.1 LTS (Server) |
5.4.0 |
gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0 |
yes |
all packages can be compiled |
| 2.6.0 | 26.12.2020 |
OpenSuse Tumbleweed |
5.10.1 |
gcc (SUSE Linux) 10.2.1 20201202
[revision e563687cf9d3d1278f45aaebd03e0f66531076c9] |
yes |
all packages can be compiled except these
ones: horst (see here) iptraf |
| 2.6.0 | 26.12.2020 | OpenSUSE Leap 15.2 |
5.3.18 |
gcc (SUSE Linux) 7.5.0 |
yes |
all packages can be compiled except these
ones: horst (see here) iptraf |
| 2.6.0 | 26.12.2020 | Manjaro (ArchLinux) |
5.9.11 |
gcc (GCC) 10.2.0 |
yes |
all packages can be compiled |
| 2.6.0 | 26.12.2020 | Slackware | 4.4.240 |
gcc (GCC) 5.5.0 |
no |
all packages can be compiled except these
ones atop v2.6 (use atop V2.4, see here) Missing packages can be find here: https://pkgs.org/ |
| 2.6.0 | 26.12.2020 |
Raspberry OS |
5.4.79-v7l+ |
gcc (Raspbian 8.3.0-6+rpi1) 8.3.0 |
no |
all packages can be compiled except these
ones: IntelPCM (this tool is only for Intel CPUs) justniffer (architecture not supported by make scripts) numatop (this tool is only for Intel CPUs) |
The old versions of JWM / Linux were compiled on these Linux Distributions:
| JWM Version |
Date |
Linux Distribution |
Kernel version | gcc version | Supported by add_os_packages? |
Comment |
||||||
| 2.5.0 |
11.09.2020 |
Fedora 32 |
5.7.17 |
gcc (GCC) 10.2.1 20200723 (Red Hat
10.2.1-1) |
yes |
all packages can be compiled; this is
the main distribution for development |
||||||
| 2.5.0 | 11.09.2020 | CentOS 8 |
4.18.0 |
gcc (GCC) 8.3.1 20191121 (Red Hat 8.3.1-5) |
yes |
all packages can be compiled |
||||||
| 2.5.0 |
11.09.2020 | CentOS 7 |
3.10.0 |
gcc (GCC) 4.8.5 20150623 (Red Hat
4.8.5-39) |
yes |
all packages can be compiled
except these packages: t50 |
||||||
| 2.5.0 | 11.09.2020 | CentOS 6.10 | 2.6.32 | gcc (GCC) 7.3.1 20180303 (Red Hat
7.3.1-5) |
yes |
some
tools do not compile anymore with the standard gcc in
Centos 6.9 Therefor I installed and used the GCC v7 (see Required GCC version) all packages can be compiled except these ones: health-check (kernel not supported) fnotifystat (kernel not supported) justniffer must be compiled manually -- see here |
||||||
| 2.5.0 | 11.09.2020 | Mint 19 |
4.15.0 |
gcc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0 |
yes |
all packages can be compiled |
||||||
| 2.5.0 | 11.09.2020 | Debian 10 | 4.19.132 |
gcc (Debian 8.3.0-6) 8.3.0 |
yes | all packages can be compiled, except
these packages: sockperf |
||||||
| 2.5.0 |
21.09.2020 |
Ubuntu 16.04.7 LTS |
4.15.0 |
gcc (Ubuntu 5.4.0-6ubuntu1~16.04.12)
5.4.0 20160609 |
yes |
all packages can be compiled | ||||||
| 2.5.0 |
21.09.2020 |
Ubuntu_20.04.1 LTS (Server) |
5.4.0 |
gcc (Ubuntu 9.3.0-10ubuntu2) 9.3.0 |
yes |
all packages can be compiled | ||||||
| 2.5.0 | 11.09.2020 | OpenSuse Tumbleweed |
5.8.4 |
gcc (SUSE Linux) 10.2.1 20200825
[revision c0746a1beb1ba073c7981eb09f55b3d993b32e5c] |
yes |
all packages can be compiled except
these ones: horst hostscope iptraf compiling horst and hostscope fails with error messages like this: display.c:435:11: error: lvalue required as left operand of assignment 435 | ESCDELAY = 25; /* we don't use ESC sequences */ A workaround for this error is to comment the lines with the "invalid" assignments |
||||||
| 2.5.0 |
13.09.202 |
OpenSUSE Leap 15.2 |
5.3.18 |
gcc (SUSE Linux) 7.5.0 |
yes |
all packages can be compiled except
these ones: horst hostscope iptraf compiling horst and hostscope fails with error messages like this: display.c:435:11: error: lvalue required as left operand of assignment 435 | ESCDELAY = 25; /* we don't use ESC sequences */ A workaround for this error is to comment the lines with the "invalid" assignments |
||||||
| 2.5.0 | 11.09.2020 | Antergos (ArchLinux) |
5.8.7 |
gcc (GCC) 10.2.0 |
yes |
all packages can be compiled To compile some of the tools a modification of a source file is neccessary : #include <sys/sysmacros.h> must be added to some of the source files (for details why see below) Details:
Note [04.01.2019] These modifications are also neccesary for other Linux distributions with a recent gcc version so they are done by the compile scripts in JWM / Linux now. Note [16.06.2019] fio will not compile anymore due to a change in the GLUSTER api (Note: you can install the fio package from the ArcLinux repositories if required - see also here: https://github.com/axboe/fio/issues/781) Note [04.09.2020] fio compile works again |
||||||
| 2.5.0 |
11.09.2020 | Slackware |
4.4.14 |
gcc (GCC) 5.3.0 |
no |
all packages can be compiled Missing packages can be find here: https://pkgs.org/ |
||||||
| 2.3.0 |
16.06.2019 |
Fedora 30 |
5.1.8 |
gcc (GCC) 9.1.1 20190503 (Red Hat
9.1.1-1) |
yes |
all packages can be compiled; this is
the main distribution for development since 01.01.2019 |
||||||
| 2.3.0 | 16.06.2019 |
RedHat 7 | 3.10.0 |
gcc (GCC) 4.8.5 20150623 (Red Hat
4.8.5-36) |
yes |
all packages can be compiled
except these ones: t50 |
||||||
| 2.3.0 | 16.06.2019 | Centos 6.10 | 2.6.32 |
gcc (GCC) 7.3.1 20180303 (Red Hat
7.3.1-5) |
yes |
some
tools do not compile anymore with the standard gcc in
Centos 6.9 Therefor I installed and used the GCC v7: gcc (GCC) 7.3.1 20180303 (Red Hat 7.3.1-5) (see Required GCC version) all packages can be compiled except these ones: health-check (kernel not supported) fnotifystat (kernel not supported) justniffer must be compiled manually -- see here |
||||||
| 2.3.0 | 16.06.2019 | Mint 19 |
4.15.0 |
gcc (Ubuntu 7.4.0-1ubuntu1~18.04) 7.4.0 |
yes |
all packages can be compiled |
||||||
| 2.3.0 | 16.06.2019 | Debian | 3.16.0 |
gcc (Debian 4.9.2-10+deb8u2) 4.9.2 |
yes | all packages can be compiled | ||||||
| 2.3.0 | 20.06.2019 |
OpenSuse LEAP 42.3 |
4.4.180 |
gcc (SUSE Linux) 4.8.5 |
yes |
all packages can be compiled
except these ones: t50 |
||||||
| 2.3.0 |
20.06.2019 |
OpenSUSE LEAP 15.2 |
4.12.14 |
gcc (SUSE Linux) 7.4.1 20190424
[gcc-7-branch revision 270538] gcc (SUSE Linux) 8.2.1 20180831 [gcc-8-branch revision 264010] |
yes |
all packages can be compiled except
these ones: horst hostscope iptraf justniffer tracebox |
||||||
| 2.3.0 |
16.06.2019 |
OpenSuse Tumbleweed |
5.1.7 |
gcc (SUSE Linux) 9.1.1 20190520
[gcc-9-branch revision 271396] |
yes |
all packages can be compiled except
these ones: horst hostscope iptraf justniffer tracebox |
||||||
| 2.3.0 | 16.06.2019 | Antergos (ArchLinux) |
5.1.9 |
gcc (GCC) 8.3.0 |
yes |
To compile some of the tools a
modification of a source file is neccessary :#include <sys/sysmacros.h> must be added to some of the source files (for details why see below) Details:
Note [04.01.2019] These modifications are also neccesary for other Linux distributions with a recent gcc version so they are done by the compile scripts in JWM / Linux now. Note [16.06.2019] fio will not compile anymore due to a change in the GLUSTER api (Note: you can install the fio package from the ArcLinux repositories if required - see also here: https://github.com/axboe/fio/issues/781) |
||||||
| 2.2.11 |
22.08.2018 |
Fedora 27 | 4.17.14 |
gcc (GCC) 7.3.1 20180712 (Red Hat
7.3.1-6) |
yes |
all packages can be compiled; this is the main distribution for development as of 19.08.2018 | ||||||
| 2.2.11 | 22.08.2018 |
RedHat 7 | 3.10.0 |
gcc (GCC) 4.8.5 20150623 (Red Hat
4.8.5-28) |
yes |
all packages can be compiled
except these ones: t50 |
||||||
| 2.2.11 | 22.08.2018 |
Centos 6.9 | 2.6.32 |
gcc (GCC) 7.3.1 20180303 (Red Hat
7.3.1-5) installed per default but not used is: gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-23) |
yes |
some
tools do not compile anymore with standard gcc in
Centos 6.9 Therefor I installed and used the GCC v7: gcc (GCC) 7.3.1 20180303 (Red Hat 7.3.1-5) (see Required GCC version) all packages can be compiled except these ones: health-check (kernel not supported) fnotifystat (kernel not supported) justniffer must be compiled manually -- see here |
||||||
| 2.2.11 |
22.08.2018 |
Mint 19 |
4.15.0 |
gcc (Ubuntu 7.3.0-16ubuntu3) 7.3.0 |
yes |
all packages can be compiled |
||||||
| 2.2.11 |
25.08.2018 |
OpenSuse LEAP |
4.4.104 |
gcc (SUSE Linux) 4.8.5 |
yes |
all packages can be compiled
except these ones: t50 |
||||||
| 2.2.11 |
25.08.2018 |
Debian |
3.16.0 |
gcc (Debian 4.9.2-10+deb8u1) 4.9.2 |
yes |
all packages can be compiled | ||||||
| 2.2.11 |
25.08.2018 |
Antergos (ArchLinux) |
4.18.4.0 |
gcc (GCC) 8.2.0 |
yes |
all packages can be compiled except
these ones unfs3 To compile some of the tools a modification of a source file is neccessary : #include <sys/sysmacros.h> must be added to some of the source files (for details why see below): Details:
|
||||||
| 2.2.11 |
29.08.2018 |
Fedora 23 |
4.8.13 |
gcc (GCC) 5.3.1 20160406 (Red Hat
5.3.1-6) |
yes |
all packages can be compiled | ||||||
| 2.2.10 | 26.12.201 | Fedora 27 | 4.14.7 | gcc (GCC) 7.2.1 20170915 (Red Hat 7.2.1-2) | yes | all packages can be compiled; this is the main distribution for development as of 26.12.2017 | ||||||
| 2.2.10 | 26.12.201 | RedHat 7 | 3.10.0 | gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-16) | yes | all packages can be compiled
except these ones: t50 |
||||||
| 2.2.10 | 26.12.201 | entos 6.9 | 2.6.32 | gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-18) | yes | all packages can be compiled
except these ones: t50 health-check (kernel not supported) fnotifystat (kernel not supported) |
||||||
| 2.2.9 | 08.10.2017 | Antergos (Arch Linux based Distribution) | 4.13.4 | gcc (GCC) 7.2.0 | yes | all packages can be compiled | ||||||
| 2.2.9 | 08.10.2017 | Fedora 25 | 4.12.14 | gcc version 6.4.1 20170727 (Red Hat 6.4.1-1) (GCC) | yes | all packages can be compiled; this is the main distribution for development as of 14.08.2017 | ||||||
| 2.2.9 | 08.10.2017 | Fedora 23 | 4.8.13 | gcc (GCC) 5.3.1 20160406 (Red Hat 5.3.1-6) | yes | all packages can be compiled | ||||||
| 2.2.9 | 08.10.2017 | RHEL 7.4 (Maipo) | 3.10.0 | gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-16) | yes | all packages can be compiled | ||||||
| 2.2.9 | 08.10.2017 | Open Suse LEAP 42 | 4.4.87 |
gcc (SUSE Linux) 4.8.5 |
yes | all packages can be compiled | ||||||
| 2.2.9 | 08.10.2017 | Ubuntu 16.04.3 LTS | 4.10.0 | gcc (Ubuntu 5.4.0-06ubuntu1-16.04.4) 5.4.0 20160609 | yes | all packages can be compiled | ||||||
| 2.2.9 |
08.10.2017 |
Linux Mint 18 |
4.4.0 |
gcc (Ubuntu 5.4.0-6ubuntu1~16.04.4) 5.4.0 20160609 |
yes |
all packages can be compiled | ||||||
| 2.2.9 |
08.10.2017 |
Debian 8.6 |
3.16.0 |
gcc (Debian 4.9.2-10) 4.9.2 |
yes |
all packages can be compiled except these ones: t50 |
||||||
| 2.2.9 | 08.10.2017 | Centos (RHEL 6.9) | 2.6.32 | gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-18) | yes | all packages can be compiled except these ones: health-check (kernel not supported) fnotifystat (kernel not supported) t50 can not be compiled with the default gcc from this Linux distribution |
||||||
| 2.2.8 | 07.04.2017 | Fedora 25 | 4.9.13 | yes | all packages can be compiled; this is the main distribution for development as of 07.04.2017 | |||||||
| 2.2.8 | 08.04.2017 | Apricity (Arch Linux based Distribution) | 4.10.8 | yes | all packages can be compiled | |||||||
| 2.2.8 | 08.04.2017 | Mint 17 | 3.19.0 | yes | all packages can be compiled | |||||||
| 2.2.8 | 08.04.2017 | OpenSUSE 12 | 3.7.10 | yes | all packages can be compiled except these ones: horst hostscope (can be compiled with a current gcc version) Note: Use the binaries from the tar files ${JWM_DIR}/hostscope_jwm_rhel6.tar for this distribution |
|||||||
| 2.2.8 |
07.04.2017 |
Centos 6.9 |
2.6.32 |
yes |
all packages can be compiled except these ones: health-check (kernel not supported) fnotifystat (kernel not supported) hostscope (can be compiled with a current gcc version) Note: Use the binaries from the tar files ${JWM_DIR}/hostscope_jwm_rhel6.tar for this distribution t50 can not be compiled with the default gcc from this Linux distribution |
| JWM Version |
Date |
Linux Distribution |
Kernelversion | Supported by add_os_packages? |
Comment |
| 2.2.7 | 25.12.2016 | Fedora 23 | 4.8.13 | yes | all packages can be compiled; this is the main distribution for development as of 27.12.2016 |
| 2.2.7 | 25.12.2016 | Fedora 24 | 4.8.14 | yes | all packages can be compiled |
| 2.2.7 | 27.12.2016 | Fedora 25 | 4.8.15 | yes | all packages can be compiled |
| 2,2.7 | 25.12.2016 | Mint 18 | 4.4.0 | yes | all packages can be compiled |
| 2.2.7 | 26.12.2016 | Mint 17 | 3.19.0 | yes | all packages can be compiled |
| 2.2.7 | 27.12.2016 | Debian 8 | 3.16.0 | yes | all packages can be compiled |
| 2.2.7 | 25.12.2016 | OpenSUSE 42.2 | 4.4.36 | yes | all packages can be compiled |
| 2.2.7 | 26.12.2016 | OpenSUSE 12.3 | 3.7.10 | yes | all packages can be compiled |
| 2.2.7 | 26.12.2016 | OpenSUSE 13.2 | 3.16.6 | yes | all packages can be compiled |
| 2.2.7 | 25.12.2016 | Oracle Linux Server release 6.5 | 3.8.13 | yes |
all packages can be compiled except these ones: health-check (kernel not supported) fnotifystat (kernel not supported) hostscope (can be compiled with a current gcc version) Note: Use the binaries from the tar files ${JWM_DIR}/hostscope_jwm_rhel6.tar for this distribution to compile bmon you must download, compile, and install libnl3 and libconfuse (both libraries are not in the repositories for this distribution) to compile justniffer you must download boost (the boost in the repositories for this distribution is to old) see also Libraries neccessary for JWM |
| 2.2.7 | 26.12.2016 | Red Hat Enterprise Linux Workstation release 6.8 (Santiago) | 2.6.32 | yes |
all packages can be compiled except these ones: health-check (kernel not supported) fnotifystat (kernel not supported) hostscope (can be compiled with a current gcc version) Note: Use the binaries from the tar files ${JWM_DIR}/hostscope_jwm_rhel6.tar for this distribution to compile justniffer you must download boost (the boost in the repositories for this distribution is to old) t50 only compiles with a current version of gcc; the gcc 4.4.7 does not like pragma statements inside of functions see also Libraries neccessary for JWM |
| 2.2.7 | 30.12.2016 | Fedora 13 | 2.6.33 | yes | all packages can be compiled except these ones: health-check (kernel not supported) fnotifystat (kernel not supported) hostscope (can be compiled with a current gcc version) Note: Use the binaries from the tar files ${JWM_DIR}/hostscope_jwm_rhel6.tar for this distribution to compile bmon you must download, compile, and install libnl3 (the libraries are not in the repositories for this distribution) to compile justniffer you must download boost (the boost in the repositories for this distribution is to old) to compile oprofile and stress-ng a new version of the binutils is required t50 only compiles with a current version of gcc; the gcc 4.4.7 does not like pragma statements inside of functions see also Libraries neccessary for JWM |
The script ./compile_scripts/add_os_packages.sh can be used to install the missing packages to compile all tools in JWM / Linux.
Usage:
[26.12.2016 16:19 ] ### The logfile used is
/var/tmp/add_os_packages.sh.log
add_os_packages.sh
Function: add missing OS packages for compiling JWM /
Linux
Usage: add_os_packages.sh
[-v|--verbose] [-q|--quiet] [-f|--force]
[start|stop|restart|status]
Parameter:
-v - verbose mode
-q - quiet mode
-f - force execution
-d - dry-run mode, only print the commands to
execute
[26.12.2016 16:19 ] ### The logfile used was
/var/tmp/add_os_packages.sh.log
[26.12.2016 16:19 ] ### add_os_packages.sh ended at Mon Dec
26 16:19:17 CET 2016
[xtrnaw7@t540p /var/tmp/jwm/compile_scripts]$
add_os_packages.sh supports Linux distributions based on
add_os_packages.sh installs all packages that are missing after an initial installation of the distribution without any modifications.
The script asks the user for confirmation before starting the installation.
Note:
The scripts assumes a "standard installation" of the Linux distribution - so there may be other libraries or tools missing to compile all tools . Just check the error messages of the compile script and install the missing packages manually.
. ./init_session[xtrnaw7@t540p /var/tmp/jwm]$ cd /var/tmp/jwm
[xtrnaw7@t540p /var/tmp/jwm]$ . init_session
JWM_DIR is "/var/tmp/jwm"
[bash] Starting environment for "JMW / Linux v260 created on
Fedora_release_33_(Thirty_Three) 5.9.15-200.fc33.x86_64 x86_64
at 2020-12-25" ...
[bash] Initializing JWM environment ...
[bash] JWM environment initialized. The tools available are:
/var/tmp/jwm/bin:
atop
dlist_test
hdperf
iostat
netio
op-check-perfevents powerstat
sockperf trace-view
atopsar
dropwatch
horst
iozone
netperf
operf
procdump
sockstat uninstall_ndiff
bmon
dropwatch.1.5.0 horst.sh
iperf3
netserver
opgprof
protoc
stress uninstall_zenmap
bmore
dstat
hostscope
jnettop
nicstat
ophelp
prtdiag
stress-ng unpigz
bon_csv2html
faultstat
hping2
justniffer
nload
opimport
prtdiag.cfg sysstat
wavemon
bon_csv2txt
fiemap
htop
kernelshark
nmap
opjitconv
ptiptop
systool zblocklist
bvi
fileop
htop2
makelocal
nmon
opreport
rawtime
tapestat zenmap
bwm-ng
fio
httpry
memstat nmonchart
pcap-config
rnano
tcptrack ziterate
cifsiostat
fspy
ibmonitor
mpstat
nping
pidstat
rvnamed
tiptop zmap
cpulimit
get_device
ifstat
nano
ocount
pigz
rvnamed-ng
total ztee
cpumon
get_driver
inotifywait
ncat
opannotate
pit_server
screen trace-cmd
cpustat
get_module
inotifywatch
ndiff
oparchive
plugins
smemstat trace-graph
/var/tmp/jwm/bin1:
CPUhog.jar
inq
inq.LinuxI386 iperf
ipscan-linux64-3.7.3.jar latencytop-tui
pchar_for_linux26
CPUhog.sh inq.LinuxAMD64
iodump
ipscan
latencytop-gui
lxtx
pspy64
/var/tmp/jwm/sbin:
arping
dhtest
hostscoped iptraf
nethogs
pcm-core.x pcm-tsx.x
t50
zblocklist
astraceroute dmidecode
ifpps iptraf.fc31
netsniff-ng pcm-memory.x
pcm.x
tcpdump
zcav
biosdecode eventstat
iftop
iptraf-ng
ngrep
pcm-msr.x pktstat
tcpdump.4.9.2
ziterate
bonnie++
flowtop
ioping
iptstate
numatop
pcm-numa.x powertop
trafgen
zmap
bpfc
fnotifystat ipaudit
latencytop
p0f
pcm-pcie.x scanlogd
unfsd
ztee
cdpr
forkstat
ipband
mausezahn
pagemon pcm-power.x
smartctl update-smart-drivedb
darkstat health-check
ipstrings
mtr
pchar
pcm-sensor.x smartd vpddecode
/var/tmp/jwm/scripts:
ack
compile_justniffer_with_boost.sh
iotop
mle.sh
ack-2.24-single-file.pl
darkstat.sh
iotop-0.4.4
monitor_system.sh
ack-v3.1.2
exec_snoop_wrapper.sh
iotop-0.6
mpathstat.py
ack-v3.4.0
execute_on_all_hosts.sh
iotop.sh
netdata.sh
addtimestamp
execute_osbuild_check_tasks.include
itop
opensnoop1
bashtop
execute_osbuild_check_tasks.sh
jdiskreport
open_snoop_wrapper.sh
bpytop
execute_scripts.sh
jwm.sh
rtp_task_desc.inp
busybox_httpd.sh
execute_tasks.sh
manServer_107_ma1.pl show_kernel_memory
cdpinfo
fio_tests.sh
manServer_107.pl smem
check_network_adapter_config.sh
hostscope.sh
manServer.pl
start_stop_manserver.sh
collectl
init_infoscale.include
manServer.pl.org testssl.sh
collectl_top
init_infoscale.sh
memconf
view_vmware_server_configuration.sh
collectl_top_io
inxi
memconf-v3.15.pl
Additional general Linux tools are in the directory
/var/tmp/jwm/busybox
Additional performance monitoring tools are in
/var/tmp/jwm/perf-tools
[JWM session] [xtrnaw7@t540p /var/tmp/jwm]$
[xtrnaw7@t540p /var/tmp/jwm]$ /var/tmp/jwm/scripts/jwm.sh
-h
[18.11.2016 17:08 ] ### jwm.sh started at Fri Nov 18 17:08:53
CET 2016
[18.11.2016 17:08 ] ### The logfile used is
/var/tmp/jwm.sh.log
jwm.sh
Function: exeucte a command in a temporary JWM / Linux
environment
Usage: jwm.sh [-v|--verbose]
[-q|--quiet] [-f|--force] command [parameter]
Parameter:
-v - verbose mode
-q - quiet mode
-f - force execution
[18.11.2016 17:08 ] ### The logfile used was
/var/tmp/jwm.sh.log
[18.11.2016 17:08 ] ### jwm.sh ended at Fri Nov 18 17:08:53
CET 2016
[xtrnaw7@t540p /var/tmp/jwm]$ sudo ln -s /var/tmp/jwm/scripts/jwm.sh /usr/bin/jwm[xtrnaw7@t540p /var/tmp/jwm]$ jwm
nicstat 1 1
[18.11.2016 17:29 ] ### jwm started at Fri Nov 18 17:29:22 CET
2016
[18.11.2016 17:29 ] ### The logfile used is /var/tmp/jwm.log
Time
Int rKB/s wKB/s
rPk/s wPk/s
rAvs wAvs %Util Sat
17:29:22 enp0s25 12.01
3.06 9.34 6.22
1316.5 504.8 0.01 0.00
17:29:22
lo 2.74 2.74
41.09 41.09 68.30
68.30 0.00 0.00
17:29:22 wlp4s0
0.00 0.00
0.00 0.00 112.5
145.5 0.00 0.00
[18.11.2016 17:29 ] ### The logfile used was /var/tmp/jwm.log
[18.11.2016 17:29 ] ### jwm ended at Fri Nov 18 17:29:22 CET
2016
[xtrnaw7@t540p /var/tmp/jwm]$
[xtrnaw7@t540p /var/tmp/jwm]$ jwm -v nicstat 1 1
[29.08.2018 13:32 ] ### jwm started at Wed Aug 29 13:32:54
CEST 2018
[29.08.2018 13:32 ] ### The logfile used is /var/tmp/jwm.log
[29.08.2018 13:32 ] INFO: SCRIPTNAME is "jwm"
[29.08.2018 13:32 ] INFO: SCRIPTDIR is "/tools/scripts"
[29.08.2018 13:32 ] INFO: REAL_SCRIPTNAME is
"/data/tools/scripts/jwm"
[29.08.2018 13:32 ] INFO: REAL_SCRIPTDIR is
"/data/tools/scripts"
[29.08.2018 13:32 ] INFO: WORKING_DIR is "/var/tmp/jwm"
[29.08.2018 13:32 ] INFO: RUNNING_IN_TERMINAL_SESSION is "0"
(0 = yes, 1 = no)
[29.08.2018 13:32 ] INFO: CUR_USER_ID is "1000"
[29.08.2018 13:32 ] INFO: CUR_USER_NAME is "xtrnaw7"
[29.08.2018 13:32 ] INFO: CUR_GROUP_ID is "1000"
[29.08.2018 13:32 ] INFO: CUR_GROUP_NAME is "xtrnaw7"
[29.08.2018 13:32 ] INFO: ACTION is ""
[29.08.2018 13:32 ] INFO: Using the JWM directory
"/var/tmp/jwm"
[29.08.2018 13:32 ] INFO: PATH is now
/var/tmp/jwm/scripts:/var/tmp/jwm/bin:/var/tmp/jwm/sbin:/tools/scripts:/tools/bin:/tools/sbin:/usr/lib64/qt-3.3/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/home/xtrnaw7/.local/bin:/home/xtrnaw7/bin
[29.08.2018 13:32 ] INFO: LD_LIBRARY_PATH is now
/var/tmp/jwm/lib:
[29.08.2018 13:32 ] INFO: MANPATH is now
/var/tmp/jwm/man:/tools/man:
[29.08.2018 13:32 ] INFO: PYTHONPATH is now
:/var/tmp/jwm/lib/python2.7/site-packages/
[29.08.2018 13:32 ] INFO: Executing now "nicstat 1 1" ...
Time
Int rKB/s wKB/s
rPk/s wPk/s
rAvs wAvs %Util Sat
13:32:54 enp0s25 20.84
8.38 18.73 12.40
1139.6 692.1 0.02 0.00
13:32:54
lo 0.00
0.00 0.01
0.01 77.56 77.56
0.00 0.00
[29.08.2018 13:32 ] ### The logfile used was
/var/tmp/jwm.log
[29.08.2018 13:32 ] ### jwm ended at Wed Aug 29 13:32:54
CEST 2018
[xtrnaw7@t540p /var/tmp/jwm]$
cd /var/tmp/jwm
. init_session [JWM session] [xtrnaw7@t540p /var/tmp/jwm/scripts]$
start_stop_manserver.sh start
[04.11.2016 21:01 ] ### start_stop_manserver.sh started at Fri
Nov 4 21:01:38 CET 2016
[04.11.2016 21:01 ] ### The logfile used is
/var/tmp/start_stop_manserver.sh.log
[04.11.2016 21:01 ] Starting the JWM manserver ...
export
MANPATH="/var/tmp/jwm/share/man:/tools/man::/var/tmp/jwm/perf-tools/man"
nohup /var/tmp/jwm/scripts/manServer.pl -s 7777
>/tmp/manserver_jwm.log 2>&1 &
echo $! >"/tmp/manserver_jwm.pid"
[04.11.2016 21:01 ] Use "http://localhost:7777" or
"http://t540p:7777" to connect to the JWM manserver
[04.11.2016 21:01 ] ### The logfile used was
/var/tmp/start_stop_manserver.sh.log
[04.11.2016 21:01 ] ### start_stop_manserver.sh ended at Fri
Nov 4 21:01:38 CET 2016
[JWM session] [xtrnaw7@t540p /var/tmp/jwm/scripts]$ MANPATH=$MANPATH:/usr/share/man
./start_stop_manserver.sh --port 7788 start[JWM session] [xtrnaw7@t540p /var/tmp/jwm/scripts]$
start_stop_manserver.sh status
[04.11.2016 21:02 ] ### start_stop_manserver.sh started at
Fri Nov 4 21:02:11 CET 2016
[04.11.2016 21:02 ] ### The logfile used is
/var/tmp/start_stop_manserver.sh.log
[04.11.2016 21:02 ] The JWM manserver already running; the
PID is 8378
[04.11.2016 21:02 ] The JWM manserver is listening to the
ports:
(Not all processes could be identified, non-owned process
info
will not be shown, you would have to be root to see it
all.)
tcp
0 0
0.0.0.0:7777
0.0.0.0:*
LISTEN
8378/perl
[04.11.2016 21:02 ] ### The logfile used was
/var/tmp/start_stop_manserver.sh.log
[04.11.2016 21:02 ] ### start_stop_manserver.sh ended at Fri
Nov 4 21:02:11 CET 2016
[JWM session] [xtrnaw7@t540p /var/tmp/jwm/scripts]$ | Directory
name |
Directory
contents |
Comment |
| bashtop* |
bashtop |
|
| bin |
binaries w/ source |
|
| bin1 |
binaries w/o source |
|
| bpytop* |
bpytop |
|
| busybox |
busybox
binary and links |
|
| checksec* |
checksec | |
| collectl* |
collectl |
|
| compile_scripts |
scripts for compiling the
tools |
|
| data/* |
data files for the tools |
|
| develop |
script templates and
other development files |
|
| etc |
config files for the
tools |
|
| htdocs |
webserver based
applications and html pages |
|
| include |
include files |
|
| info |
.info files |
|
| iotop* |
iotop (various versions) |
|
| jdiskreport* | JDiskReport | |
| lib |
libraries for
the tools |
|
| lib64 |
symbolic link to lib |
|
| libexec | add files for the tools | |
| lynis* |
lynis
installation |
|
| man |
symbolic link to
./share/man |
|
| netdata* |
netdata
installation |
|
| new |
staging directory for new
tools |
|
| other_os |
this directory contains some binaries for
other OS |
|
| perf-tools |
directory with the perftools |
|
| sbin |
binaries that need root
privileges |
|
| scripts |
well, scripts |
|
| share |
docs, manpages, etc for
the tools |
|
| src |
source for the tools |
|
| src/old |
source code for the previous version of
some tools (see here) |
|
| testssl* | directories with the tool testssl.sh | |
| workdir |
data files and log files
for compiling the tools |
| Library |
Version |
Description |
Source |
| libpcap |
1.0.0 |
necessary library for
some of the network related tools Note: Version 1.0.0 is used here because newer versions do not compile out-of-the box on some Linux Releases. |
http://www.tcpdump.org/ |
| Library |
Comment |
| libcrypto.so.10* |
|
| libdb-4.7* |
|
| libdb-5.3* |
|
| libtinfo* | |
| libnuma* | |
| liblua* | |
| liblua5.2* |
|
| liblua-5.1* |
|
| liblua-5.2* |
|
| liblua-5.3* |
|
| libnet* |
|
| libnl* | |
| libconfuse* |
|
| libnl-3* | |
| libnl-route-3* | |
| libnl-genl-3* | |
| libsctp1* | |
| libnetfilter_conntrack* | |
| libboost_regex* | |
| libboost_regex-mt* | |
| libboost_iostreams* | |
| libboost_program_options* | |
| libboost_program_options-mt* | |
| liburcu* | |
| libcli* | |
| libnet* | |
| libsctp1* |
|
| libjson-c* |
|
| libbsd* |
|
| 99 |
| Tool |
Version |
Last Update |
Interface |
Description |
Source |
| ack |
3.1.2 |
2019 |
cli |
ack is a grep replacement
written in Perl; requirement is Perl 5.8.8 or higher |
http://beyondgrep.com/ |
| arping |
2.19 |
2017 |
cli |
arping is a util to find out if a
specific IP address on the LAN is 'taken' and what MAC
address owns it. |
http://github.com/ThomasHabets/arping |
| atop |
2.6.0 |
2020 |
cli |
top like system monitorHints for compiling atopIf you get the error message cc -O2 -I. -Wall -c -o photosyst.o photosyst.c photosyst.c: In function ‘lvmmapname’: photosyst.c:1466:19: error: called object ‘major’ is not a function or function pointer dmp->major = major(statbuf.st_rdev); ^~~~~ photosyst.c:1421:25: note: declared here lvmmapname(unsigned int major, unsigned int minor, ~~~~~~~~~~~~~^~~~~ add the line #include <sys/sysmacros.h> to the file photosyst.c Note [25.12.2020] The compile script for atop will compile the old version 2.4 of atop if a kernel version 2.x is detected becuse the atop version 2.6 can not be compiled for kernel 2.x (see also here.) |
http://www.atoptool.nl/ |
| bashtop |
0.9.25 |
2020 |
cli |
a "top" written in
bash (see also bpytop) Dependencies for bashtop are
bash
(v4.4 or later) GNU coreutils, sed, grep, ps, awk (see also the homepage of bashtop) |
https://github.com/aristocratos/bashtop |
| bmon | 4.0 | 2017 | cli | "bmon is a monitoring and
debuggng tool to capture networking related statistics
and prepare them visually in a human friendly way. It
features various output methods including an interactive
curses user interface and a programmable text output for
scripting." |
https://github.com/tgraf/bmon/ |
| bonnie++ |
1.04 UNRELEASED |
2017 |
cli |
bonnie++ is a disk
performance test tool |
http://www.coker.com.au/bonnie++/ |
| bpytop |
1.0.52 |
2020 |
cli |
a "top" written in Python (see also bashtop) Dependencies for bpytop are Python3 (v3.6 or later) psutil module (v5.7.0 or later) |
https://github.com/aristocratos/bpytop |
| busybox |
1.32.0 |
2020 |
cli | BusyBox: The Swiss Army
Knife of Embedded LinuxNote:The config for busybox in the tar archive is the default config without the i2c tools. The compile script does not create a new config. Use make menuconfig in the busybox source directory to select which busybox components should be compiled. Hints for some of the errors I got while compiling busybox on older Linux versions-> disable "Miscellaenous Utilities/nandwrite" and "Miscellaenous Utilities/nanddump" -> disable "Linux System Utilities/blkdiscard" -> disable "Core Utils/sync" -> disable "Linux System Utilties/nsenter" The config without these tools is saved in the file rhel6_config in the busybox source directroy. Use "make menuconfig" in the busybox source directory to use this config. |
http://www.busybox.net |
| bvi | 1.4rc0 | 2014 | cli |
bvi is a vi like editor for binary files | http://bvi.sourceforge.net/ |
| bwm-ng |
0.6.2 |
2018 |
cli | Bandwidth Monitor NG is a
small and console-based live network and disk-io
bandwidth monitor |
http://sourceforge.net/projects/bwmng/ |
| cdpinfo |
1.2 |
2012 |
cli | A perl script to
listen for Cisco Discovery Protocol (CDP) packets and
print out key values such as switch, port and vlan |
https://github.com/wildajet/scripts/blob/master/cdpinfo |
| cdpr |
2.4 |
2013 |
cli | Cisco Discovery Protocol
Reporter - view and decode CDP packets |
http://sourceforge.net/projects/cdpr/ |
| checksec | 1.10.0 |
2018 |
cli |
Test security features implemented in the
running Linux version |
https://github.com/slimm609/checksec.sh http://www.trapkit.de/tools/checksec.html |
| collectl |
4.3.1 |
2018 |
cli | powerfull performance
monitoring tool |
http://collectl.sourceforge.net/ |
| CPUHog |
2.1.3 |
2018 |
GUI |
Java app. to utilise (waste) as much CPU as it can. The application allows the user to create multiple Java threads, each performing a CPU-intensive task tasks with a selectable memory footprint. The options let you 'thrash' the aspect you want. | https://sourceforge.net/projects/cpuhog/ |
| cpumon |
2.4 |
2014 |
cli | monitor cpu usage |
http://www.softndesign.org/codes/c/cpumon/ |
| cpustat |
0.02.11 |
2020 |
cli | cpustat periodically dumps out the current CPU utilisation statistics of running processes. cpustat has been optimised to have a minimal CPU overhead and typically uses about 35% of the CPU compared to top. cpustat also includes some simple statistical analysis options that can help characterise the way CPUs are being loaded. | https://github.com/ColinIanKing/cpustat |
| darkstat |
3.0.719 |
2015 |
WebGUI |
Captures network traffic,
calculates statistics about usage, and serves reports
over HTTP. Use darkstat.sh to start or stop the darkstat daemon. |
http://unix4lyfe.org/darkstat/ |
| dhtest |
1.5 |
2018 |
cli | DHCP Test client |
https://github.com/saravana815/dhtest |
| dmidecode |
3.2 |
2019 |
cli | dmidecode reports information about your system's hardware as described in your system BIOS according to the SMBIOS/DMI standard (see a sample output) | http://www.nongnu.org/dmidecode/ |
| dstat |
0.7.3 |
2017 |
cli | Resource statistic tool |
http://dag.wieers.com/home-made/dstat/ |
| dropwatch |
1.5.0 |
2016 |
cli |
list dropped network packages |
https://github.com/nhorman/dropwatch |
| eventstat | 0.04.11 |
2020 |
cli |
eventstat periodically dumps out the current kernel event state. It keeps track of current events and outputs the change in events on each output update. The tool requires sudo to run since it needs to write to /proc/timer_stats to start and stop the event monitoring. | http://kernel.ubuntu.com/~cking/eventstat/ |
| faultstat |
0.01.4 |
2020 |
cli |
" Faultstat reports the page fault activity of processes running on a system. The tool supports a 'top' like mode to dynamically display the top page faulting processes. " | https://kernel.ubuntu.com/~cking/faultstat/ |
| fiemap |
2017 |
cli | https://github.com/ColinIanKing/fiemap |
||
| fio |
2.1.10 |
2017 |
cli | benchmark toolHints for Compiling fioIf you get these errors /usr/bin/ld: diskutil.o: in function `get_device_numbers': /var/tmp/jwm/src/fio-2.1.10/diskutil.c:184: undefined reference to `major' /usr/bin/ld: /var/tmp/jwm/src/fio-2.1.10/diskutil.c:185: undefined reference to `minor' /usr/bin/ld: /var/tmp/jwm/src/fio-2.1.10/diskutil.c:163: undefined reference to `major' add #include <sys/sysmacros.h> to the file os/os-linux.h 05.09.2020 /bs fio requires the function gettid; this function is not defined in older version of Linux. Therefor the compile script checks if the function gettid is defined in the current OS. If not the compile script will add a temporary include file with the definition of the function gettid. |
http://freecode.com/projects/fio |
| fnotifystat | 0.02.07 |
2020 |
cli |
Fnotifystat is a program
that dumps the file system activity in a given period of
time.Note:The compile script aborts the compilation if the file fanotify.h is not found in /usr/include or one of the sub directories. This file is missing in older Linux versions Hints for compiling fnotifystatIf you get the error message cc -Wall -Wextra -DVERSION='"0.01.17"' -O2 fnotifystat.o -o fnotifystat /usr/bin/ld: fnotifystat.o: in function `fnotify_get_filename.constprop.3': fnotifystat.c:(.text+0xbad): undefined reference to `minor' add the line #include <sys/sysmacros.h> to the file fnotifystat.c |
http://kernel.ubuntu.com/~cking/fnotifystat/ |
| forkstat |
0.02.16 |
2020 |
cli | forkstat is a program
that logs process fork(), exec() and exit() activity. It
is useful for monitoring system behaviour and to track
down rogue processes that are spawning off processes and
potentially abusing the system. Note that forkstat uses the Linux netlink connector to gather process activity and this may miss events if the system is overly busy. Netlink connector also requires root privilege. |
http://kernel.ubuntu.com/~cking/forkstat/ |
| fspy |
0.1.1 |
2010 |
cli | fspy is an easy to use
linux filesystem activity monitoring tool which is meant
to be small, fast and to handle system resources
conservative. you can apply filters, use diffing and
your own output format in order to get the best results.
|
https://www.security-database.com/toolswatch/fspy-v0-1-1-linux-filesystem.html |
| hdperf |
1.5 |
2013 |
cli | harddrive performance
benchmark |
http://sourceforge.net/projects/hdperf/ |
| health-check | 0.03.09 |
2020 |
cli | The health-check tool
monitors processes in various ways to help identify
areas where it is consuming too many resources. One can
trace one or more processes (including all their threads
and child processes too) for a full story of system
activity.Note:The compile script aborts the compilation if the file fanotify.h is not found in /usr/include or one of the sub directories. This file is missing in older Linux versions |
http://kernel.ubuntu.com/~cking/health-check/ |
| horst | 5.1 | 2016 | cli | horst is a small,
lightweight IEEE802.11 WLAN analyzer with a text
interface.Hints for compiling horstIf compiling horst fails with error messages like this: display.c:435:11: error: lvalue required as left operand of assignment 435 | ESCDELAY = 25; /* we don't use ESC sequences */ A workaround for this error is to comment the lines with the "invalid" assignments |
https://github.com/br101/horst |
| hostscope |
7.0 |
2020 |
cli, network |
hostscope displays
key system metrics of Linux hosts, such as detailed CPU
load, speed and temperature, I/O rates of network
interfaces, I/O rates of disks, and user process summary
information. All metrics are multicast on the LAN, if
wanted, and clients can switch between multiple hosts on
the network. |
http://www.maier-komor.de/hostscope.html |
| hping2 |
2.0.0 |
2006 |
cli | command-line oriented TCP/IP packet assembler/analyzer | https://sourceforge.net/projects/hping2/ |
| htop |
3.0.4 |
2020 |
cli | top like system monitor Note: The old htop version 2.2.0 is available as htop2. |
http://htop.sourceforge.net/ |
| httpry |
0.1.8.0 |
2014 |
cli |
a HTTP logging and information retrieval
tool |
https://github.com/jbittel/httpry# |
| ibmonitor |
1.4 |
2006 |
cli | ibmonitor is an interactive linux console
application which shows bandwidth consumed and total data transferred on all interfaces. |
http://ibmonitor.sourceforge.net/index.html |
| ifstat |
1.1 |
2004 |
cli | report network interface
bandwidth |
http://gael.roualland.free.fr/ifstat/ |
| iftop |
1.0pre4 |
2014 |
cli | report network interface bandwidth | http://www.ex-parrot.com/pdw/iftop/ |
| inxi |
3.2.01-00 |
2020 |
cli | inxi - the universal, portable, system
information tool for console and irc. |
http://smxi.org/ |
| inotify |
3.14 |
2010 |
cli |
inotify-tools is a C library and a set of
command-line programs for Linux providing a simple
interface to inotify.
These programs can be used to monitor and act upon
filesystem events. ... inotify-tools 3.14 is the latest version, released on
the 7th of March 2010. inotify is a file change notification system in the
Linux kernel, available since version 2.6.13 To check whether your own kernel version supports Inotify as well, you can run the following command: % grep INOTIFY_USER /boot/config-$(uname -r) CONFIG_INOTIFY_USER=y |
https://github.com/rvoicilas/inotify-tools/wiki see also: http://www.infoq.com/articles/inotify-linux-file-system-event-monitoring |
| inq |
9.1.0.0 |
2019 |
cli | disk inquiry program from
EMC,Notes:The archive contains only the 32bit binary and the 64bit binary The 32 Bit Version is still 7.6.2.0 |
ftp://ftp.emc.com/pub/symm3000/inquiry/ (no source code available) |
| Intel PCM |
2.11 |
2012 |
cli | Intel Performance Counter Monitor |
https://software.intel.com/en-us/articles/intel-performance-counter-monitor/ |
| ioping |
1.1 |
2018 |
cli |
simple disk I/0 latency measuring tool |
https://github.com/koct9i/ioping |
| iotop |
0.4.4 |
2013 |
cli | iotop is a Python program
with a top like UI used to show of behalf of which
process is the I/O going on. Be aware of the requirements for this iotop version: "It requires Python >= 2.5 (or Python >= 2.4 with the ctypes module) and a Linux kernel >= 2.6.20 with the CONFIG_TASK_DELAY_ACCT CONFIG_TASKSTATS, CONFIG_TASK_IO_ACCOUNTING and CONFIG_VM_EVENT_COUNTERS options on." |
http://guichaz.free.fr/iotop/ |
| iotop |
0.6 |
2013 |
cli | iotop is a Python program
with a top like UI used to show of behalf of which
process is the I/O going on. Be aware of the requirements for this iotop version: "It requires Python >= 2.7 and a Linux kernel >= 2.6.20 with the CONFIG_TASK_DELAY_ACCT CONFIG_TASKSTATS, CONFIG_TASK_IO_ACCOUNTING and CONFIG_VM_EVENT_COUNTERS options on." |
http://guichaz.free.fr/iotop/ |
| iozone |
3_491 |
2020 |
cli | IOzone is a filesystem
benchmark tool |
http://iozone.org/ |
| ipaudit |
1.1 |
2016 |
cli | IPAudit monitors network activity on a network by host, protocol and port. | http://ipaudit.sourceforge.net/ |
| ipband |
0.8.1 |
2008 |
cli | ipband is a pcap based IP traffic monitor. | http://ipband.sourceforge.net/ |
| iperf3 | 3.6.0 | 2018 | cli | iperf3 is a tool for
active measurements of the maximum achievable bandwidth
on IP networks. It supports tuning of various parameters
related to timing, protocols, and buffers. For each test
it r./src/bwm-ngeports the bandwidth, loss, and other
parameters. Note: A binary version of the "old" iperf 2.0.5 that should run on most Linux distributions is in the directory ./bin1. |
https://github.com/esnet/iperf |
| ipscan |
3.7.3 |
2020 |
GUI |
A cross-platform network scanner written
in Java that is fast and simple to use |
old releases: https://sourceforge.net/projects/ipscan/ |
| iptraf |
3.0.0 |
2005 |
cli | IPTraf is a console-based network statistics utility for Linux. | http://iptraf.seul.org/index.html |
| iptraf-ng | 1.2.1 | 2020 | cli | iptraf-ng is a fork of
the original iptraf-3.0.0Hints for compiling iptraf-ng
05.09.2020 /bs |
https://github.com/iptraf-ng/iptraf-ng |
| iptstate | 2.2.6 | 2016 | cli | IPTState is a top-like interface to your netfilter connection-tracking table. | https://www.phildev.net/iptstate/index.shtml |
| itop |
2012 |
cli | itop monitors the
interrupts of a system in real time |
http://www.void.gr/kargig/blog/2012/06/24/interrupts-top-like-utility-for-linux/ |
|
| JDiskReport | 1.4.1 | .2014 | GUI | "JDiskReport enables you
to understand how much space the files and directories
consume on your disk drives, and it helps you find
obsolete files and folders. The tool analyses your disk drives and collects several statistics which you can view as overview charts and details tables." |
http://www.jgoodies.com/freeware/jdiskreport/ |
| jnettop |
0.13 |
2006 |
cli | jnettop is a
traffic visualiser, which captures traffic going through
the host it is running from and displays streams sorted
by bandwidth they use. |
https://sourceforge.net/projects/jnettop/files/ |
| justniffer | 0.5.14 | 2014 | cli | justniffer is a network
snifferHints for compiling justnifferCompiling justniffer requires boost version 1.46 or newer. If you do not want to install a new boost version you can compile justniffer using a boost staging area. See also the hint below regarding GENL_ID_GENERATE. Update 13.09.2020 boost_regex missing error If the configure script complains about a missing library boost_regex the real missing library might be libboost_program_options.so: checking whether the Boost::Regex library is available... yes checking for exit in -lboost_regex... yes checking whether the Boost::Program_Options library is available... yes configure: error: Could not link against boost_regex ! |
http://justniffer.sourceforge.net/ https://sourceforge.net/projects/justniffer/?source=directory |
| latencytop |
0.5 |
2009 |
cli | view process latencies | http://www.latencytop.org [27.10.2013/bs: The web site is not available] http://git.infradead.org/latencytop.git |
| lxtx | 1.1.12 | 2016 | cli | A simple command line
program, like vmstat, sar, or iostat.Note:There is no source code available for this tool. |
http://ontune.us/lxtx/ |
| lynis |
3.0.2 |
2020 |
cli | Lynis is a security auditing tool for UNIX derivatives like Linux, macOS, BSD, Solaris, AIX, and others | https://cisofy.com/download/lynis/ |
| manServer |
1.07 ma1 |
2006 |
WebGUI |
manServer - convert
manual pages to HTML for viewing with a web browser. Use
start_stop_manserver.sh to
start or stop the JWM / Linux manServer. |
A copy of this page is in the directory ./htdocs. Note: the download link on that page does NOT work. Working Download Link (05.11.2016) http://www.filewatcher.com/m/manServer.pl.63487-0.html |
| memconf |
3.15 |
2019 |
cli | Identify sizes of memory modules installed on a Solaris, Linux, FreeBSD or HP-UX workstation or server. | http://sourceforge.net/projects/memconf/ |
| memstat | 1.0.0 | ? | cli | memstat is a small proc-based utility designed to help the system administrator figure out what's consuming memory | https://www.gnu.org/software/hurd/user/tlecarrour/memstat.html |
| monitor_system.sh |
1.0.0 |
2018 |
cli |
monitor_system.sh is a simple wrapper
script to start one or more monitor commands -- for
further details see the documentation for the script. |
http://bnsmb.de/Linux/monitor_system.html |
| mpathstat.py | 1.1 | 2016 | cli | Python script to sort the output of iostat for better monitoring of multipathed devices | http://prefetch.net/blog/index.php/2016/10/24/displaying-multi-path-statistics-on-linux-systems/ |
| mtr |
0.92 |
2017 |
cli | mtr combines the functionality of the 'traceroute' and 'ping' programs in a single network diagnostic tool. | http://www.bitwizard.nl/mtr/ |
| nano |
3.1 |
2018 |
cli |
nano is a small visual editor |
https://nano-editor.org/ |
| netcat |
0.7.1 |
2004 |
cli |
The GNU Netcat |
http://netcat.sourceforge.net/ |
| netdata |
1.28.0 |
2020 |
WebGUI | real time performance monitoring in a Web
dashboardVery short netdata usage helpTo use netdata start the daemon: /var/tmp/jwm/netdata/usr/bin/netdata (or use the script netdata.sh) Then connect via WebBrowser to http://127.0.0.1:19999/ To view the config use: http://127.0.0.1:19999/netdata.conf Note: Please make sure that all files and sub directories in the directory ${JWM_DIR}/netdata are owned by the user executing netdata Hints for compiling netdatanetdata needs the develop package for libuv-1 or a newer version. This package is currently [as of 10.08.2020] not available in the standard repositories for RHEL 8.x or CentOS 8.x (neither in the repositories for the base OS nor in the epel repositories. Therefor you must reinstall the package from another source (for example from the repository from okay) or download the source for the library, compile it and install it. Use the parameter --disable-cloud for
the installer netdata-installer.sh as work
around for this error while compiling netdata:externaldeps/libwebsockets/libwebsockets.a(unix-caps.c.o): In function `lws_plat_drop_app_privileges': unix-caps.c:(.text+0x2d9): undefined reference to `cap_get_proc' unix-caps.c:(.text+0x2f5): undefined reference to `cap_set_flag' |
https://github.com/firehol/netdata |
| nethogs |
0.8.0 |
2015 |
cli |
NetHogs is a small 'net top' tool | https://github.com/raboof/nethogs#readme |
| netio |
1.32 |
2012 |
cli |
network benchmark tool Note: For 10 GB connections netio is not that useful; use one of the other tools (for example netperf) instead. |
https://web.ars.de/netio/ |
| netperf |
2.7.0 |
2015 |
cli | network
benchmark tool |
http://www.netperf.org/netperf |
| netsniff-ng | 0.6.7 | 2020 | cli | netsniff-ng is a free
Linux networking toolkit, a Swiss army knife for your
daily Linux network plumbing if you will. Hints for compiling netsniff-ngnetsniff-ng does not compile with the libraries and headers from JWM / Linux . You must install the latest version of the libraries to compile netsniff-ng. Compiling the version 0.6.3 will fail with the error message staging/tools.c:485:10: error: ‘UINT64_MAX’
undeclared (first use in this function)To fix this issue add the missing statement #include <stdint.h>to the file ./staging/tools.c |
http://netsniff-ng.org/ |
| ngrep |
1.47 |
2006 |
cli | grep for network traffic |
http://ngrep.sourceforge.net/ |
| nicstat |
1.95 |
2014 |
cli | Network traffic statics utility for Solaris and Linux | http://sourceforge.net/projects/nicstat/ |
| nload |
0.7.4 |
2012 |
cli | nload is a console
application which monitors network traffic and bandwidth
usage in real time. It visualizes the in- and outgoing
traffic using two graphs and provides additional info
like total amount of transfered data and min/max network
usage. |
http://www.roland-riegel.de/nload/index.html |
| nmap |
7.70 |
2017 |
cli | network port scanner |
http://nmap.org/ |
| nmon |
16m |
2020 |
cli | Nigel's
performance Monitor for LinuxHints for compiling nmon
|
nmon and nmon chart: http://nmon.sourceforge.net/pmwiki.php nmon Analyzer: https://sourceforge.net/projects/jnmonanalyser/ |
| numatop |
1.0.4 |
2015 |
cli | NumaTOP is
an observation tool for runtime memory locality
characterization and analysis of processes and threads
running on a NUMA system. It helps the user characterize
the NUMA behavior of processes and threads and identify
where the NUMA-related performance bottlenecks reside.NumaTOP RequirementsNumaTOP requires a special patch which supports PEBS Load Latency functionality. The patch has not been integrated in 3.8 (probably it will be integrated in 3.9). Numatop is supported on Intel Xeon processors: 5500-series, 6500/7500-series, 5600 series, E7-x8xx-series, and E5-16xx/24xx/26xx/46xx-series. E5-16xx/24xx/26xx/46xx-series had better be updated to latest CPU microcode (microcode must be 0x618+ or 0x70c+). |
https://01.org/numatop |
| oprofile | 1.4.0 | 2020 | cli | OProfile is a system-wide
profiler for Linux systems, capable of profiling all
running code at low overhead Note: The binary operf will only be compiled if the kernel supports the neccessary events. |
http://oprofile.sourceforge.net/news/ |
| p0f |
3.09b |
2016 |
cli | P0f is a tool that
utilizes an array of sophisticated, purely passive
traffic fingerprinting mechanisms to identify the
players behind any incidental TCP/IP communications
(often as little as a single normal SYN) without
interfering in any way. Version 3 is a complete rewrite
of the original codebase, incorporating a significant
number of improvements to network-level fingerprinting,
and introducing the ability to reason about
application-level payloads (e.g., HTTP). |
http://lcamtuf.coredump.cx/p0f3/ |
| pagemon |
0.01.20 |
2020 |
cli | pagemon is an interactive
memory/page monitoring tool allowing one to browse the
memory map of an active running process on Linux. |
https://github.com/ColinIanKing/pagemon |
| pchar |
1.5 |
2005 |
cli | pchar is a tool to
characterize the bandwidth, latency, and loss of links
along an end-to-end path through the Internet.Hints for compiling pcharIf compiling pchar with make fails with saying something like "SO_BSDCOMPAT not defined" temporary add #define SO_BSDCOMPAT 14 to the file /usr/include/asm-generic/socket.h The compile script in JWM / Linux adds this statement to the include file pc.h from pchar if neccessary. The usage of the abs function in the pchar source file ResultTable.cc is not allowed with GCC 7.x anymore. Therefor I corrected the source file: [xtrnaw7@t61p pchar-1.5]$ diff ResultTable.cc
ResultTable.cc.org[xtrnaw7@t61p pchar-1.5]$ ls -ltr
ResultTable.cc* |
http://www.kitchenlab.org/www/bmah/Software/pchar/ |
| perftools |
(2017/12/19) |
2017 |
cli | Performance analysis
tools based on Linux perf_events (aka perf) and ftrace
(Brendan Gregg) |
https://github.com/brendangregg/perf-tools |
| pigz |
2.4.0 |
2017 |
cli | parallel gzip |
http://zlib.net/pigz/ |
| pktstat |
1.8.5 |
2012 |
cli | pktstat displays a
real-time list of active connections seen on a network
interface, and how much bandwidth is being used by what. It partially decodes HTTP and FTP protocols to show what filename is being transferred, as well as X11 application names. Entries hang around on the screen for a few seconds so you can see what just happened, in short a very useful tool to figure out network connection in real time. |
http://linuxpoison.blogspot.de/2010/12/top-like-utility-to-monitor-network.html |
| powertop |
2.13 |
2020 |
cli |
PowerTOP is a Linux tool to diagnose issues with power consumption and power management. In addition to being a diagnostic tool, PowerTOP also has an interactive mode where the user can experiment various power management settings for cases where the Linux distribution has not enabled these settings. Hints for compiling powertop 2.8 and older
|
https://01.org/powertop/ |
| powerstat |
0.02.24 |
2020 |
cli | "Powerstat measures the power consumption of a machine using the battery stats or the Intel RAPL interface. The output is like vmstat but also shows power consumption statistics. At the end of a run, powerstat will calculate the average, standard deviation and min/max of the gathered data." | https://github.com/ColinIanKing/powerstat |
| procdump | 1.1.1 | 2020 | cli | ProcDump is a Linux
reimagining of the classic ProcDump tool from the
Sysinternals suite of tools for Windows. ProcDump
provides a convenient way for Linux developers to create
core dumps of their application based on performance
triggers.Hints for compiling procdump
Changes for the source code and make file done are: |
https://github.com/Microsoft/ProcDump-for-Linux |
| prtdiag |
1.2 |
2003 |
cli | prtdiag is a little
script that displays the hardware configuration and
status of a running machine. |
http://people.redhat.com/tcallawa/prtdiag/ |
| pspy |
1.2 |
2019 |
cli |
pspy - unprivileged Linux process
snooping |
https://github.com/DominicBreuker/pspy Note: The tar archive only contains the binary because the source file is in written in go. The source code is available on the website. |
| scanlogd |
2.2.7 |
2012 |
cli |
" scanlogd is a TCP port scan detection tool, originally designed to illustrate various attacks an IDS developer has to deal with, for a Phrack Magazine article. Thus, unlike some of the other port scan detection tools out there, scanlogd is designed to be totally safe to use." | https://www.openwall.com/scanlogd/ |
| screen |
4.8.0 |
cli | screen is a full-screen
window manager that multiplexes a physical terminal
between several processes, typically interactive shells.Hints for compiling screenTo compile screen the include file /usr/include/sys/stropts.h is necessary but in standard Linux distributions this file does not exist. To get around this bug do sudo mkdir -p /usr/include/sys |
https://www.gnu.org/software/screen/ |
|
| smartmontools |
6.6 |
2017 |
cli | smartmontools contains utility programs (smartctl, smartd) to control/monitor storage systems using the Self-Monitoring, Analysis and Reporting Technology System (S.M.A.R.T.) built into most modern ATA and SCSI disks. It is derived from smartsuite. | http://sourceforge.net/projects/smartmontools/ |
| smem |
1.4 |
2013 |
cli |
smem is a tool that can give numerous reports on memory usage on Linux systems. Unlike existing tools, smem can report proportional set size (PSS), which is a more meaningful representation of the amount of memory used by libraries and applications in a virtual memory system. Because large portions of physical memory are typically shared among multiple applications, the standard measure of memory usage known as resident set size (RSS) will significantly overestimate memory usage. PSS instead measures each application's "fair share" of each shared area to give a realistic measure. |
https://www.selenic.com/smem/ |
| smemstat |
0.02.08 |
2020 |
cli | Smemstat reports the
physical memory usage taking into consideration shared
memory. The tool can either report a current snapshot of
memory usage or periodically dump out any changes in
memory. |
http://kernel.ubuntu.com/~cking/smemstat/ |
| sockperf |
3.5 |
2018 |
cli |
sockperf is a network benchmarking utility over socket API that was designed for testing performance (latency and throughput) of high-performance systems (it is also good for testing performance of regular networking systems as well). It covers most of the socket API calls and options. | https://github.com/Mellanox/sockperf |
| sockstat |
0.4.1-1 |
2019 |
cli |
"Sockstat is a tool to let you view
information about open connections. It is similar to the
tool of the same name that is included in FreeBSD,
trying to faithfully reproduce as much functionality as
is possible." |
https://packages.debian.org/unstable/main/sockstat Source: https://packages.debian.org/source/sid/sockstat |
| stress |
1.0.4 |
2014 |
cli | stress is a deliberately simple workload generator for POSIX systems. It imposes a configurable amount of CPU, memory, I/O, and disk stress on the system. It is written in C, and is free software licensed under the GPLv2. | |
| stress-ng |
0.12.0 |
2020 |
cli | stress-ng will stress
test a computer system in various selectable ways.Hints for compiling stress-ngIf you get the error message then the installed binutils are too old. Update the binutils (see Links_to libraries neccessary for JWM below) and try again 13.08.2017 /bs Changes in stress-fp-error.c from version 0.07.14 to successfully compile in ArcLinux with [xtrnaw7@t540p
/var/tmp/jwm/src/stress-ng-0.07.14]$ diff
stress-fp-error.c stress-fp-error.c.org18.08.2018 /bs stress-ng needs a GCC version that supports this: #pragma GCC diagnostic not allowed inside
functionsThe GCC version in Centos 6.9 does not support that. Therefor stress-ng must be compiled with a newer GCC version in Centos 6.9 (see Required GCC version on how to install a newer GCC version): scl enable devtoolset-7 bashcd /var/tmp/jwm/compile_scripts
&& ./compile_stress-ng.sh05.09.2020 /bs New versions of stress-ng require O_PATH to be defined. But O_PATH is not defined in older Linux versions. Therefor the compile script for stress-ng checks if O_PATH is defined in the file /usr/include/asm-generic/fcntl.h . If O_PATH is not defined the compile script will compile an older version of stress-ng; the source code for the older version of stress-ng is in the directory ${JWM_DIR}/src/old/stress-ng-without_O_PATH. (see also here) |
http://kernel.ubuntu.com/~cking/stress-ng/ |
| sysfsutils | 2.1.0 | 2006 | cli | This package's purpose is to provide a set of utilities for interfacing with sysfs | https://sourceforge.net/projects/linux-diag/files/sysfsutils/ |
| sysstat |
12.5.2 |
2020 |
cli | misc. tools : cifsiostat mpstat iostat pidstat sysstat tapestat Hints for compiling sysstat18.08.2018 /bs sysstat needs a GCC version that supports the __builtin_bswap16. The GCC version in Centos 6.9 does not support that. Therefor sysstat must be compiled with a newer GCC version in Centos 6.9 (see Required GCC version on how to install a newer GCC version): scl enable devtoolset-7 bash cd /var/tmp/jwm/compile_scripts
&& ./compile_sysstat.sh |
http://sebastien.godard.pagesperso-orange.fr/ |
| t50 |
5.8.8 |
2020 |
cli | T50 - Experimental Mixed
Packet Injector T50 (f.k.a. F22 Raptor) is a tool designed to perform "Stress Testing" |
https://gitlab.com/fredericopissarra/t50 |
| tcptrack | 1.4.2 | 2004 |
cli | Monitor TCP connections
on the network |
no home page |
| tcpdump | 4.9.3 | 2019 |
cli |
a powerful command-line packet analyzer | http://www.tcpdump.org/ |
| testssl.sh | 2.9.5-6 | 2018 | cli | testssl.sh is a free command line tool which checks a server's service on any port for the support of TLS/SSL ciphers, protocols as well as recent cryptographic flaws and more. | https://testssl.sh/ |
| tiptop |
2.3 |
cli | tiptop is a performance
monitoring tool for Linux. It provides a dynamic
real-time view of the tasks running in the system.
tiptop is very similar to the top utility, but most of
the information displayed comes from hardware counters. Requirements: Linux 2.6.31+ |
http://tiptop.gforge.inria.fr/ |
|
| trace-cmd |
2.7 |
2018 |
cli |
trace-cmd: A front-end for Ftrace see also Using the ftrace interface with shell |
https://git.kernel.org/pub/scm/linux/kernel/git/rostedt/trace-cmd.git/ |
| wavemon | 0.8.0 | 2008 |
cli | WLAN monitor | http://freecode.com/projects/wavemon/ |
| zmap |
2.1.1 |
2017 |
cli |
a fast single packet network scanner designed for Internet-wide network surveys |
https://github.com/zmap/zmap see also https://github.com/zmap/zmap/wiki |
| Script |
Purpose |
Comment |
| ./scripts/addtimestamp |
add a timestamp to every
output line of an executable |
|
| ./scripts/busybox_httpd.sh | start or stop the busybox httpd daemon |
the htdocs directory for
the httpd daemon is ${JWM_DIR}/htdocs |
| ./scripts/collectl |
wrapper script to call collectl |
|
| ./scripts/collectl_top |
call collectl with top like
output |
|
| ./scripts/collectl_top_io |
call collectl with top like
output with I/O |
|
| ./scripts/darkstat.sh |
start or stop the darkstat daemon |
|
| ./scripts/execute_on_all_hosts.sh |
execute
a script or command on multiple hosts |
|
| ./scripts/execute_tasks.sh |
a wrapper script to execute tasks defined
in an include file |
execute_tasks.include is an sample
include file for execute_tasks.sh; use ./scripts/execute_tasks.sh -v -h to get the usage help and documentation for the script |
| ./scripts/execute_scripts.sh |
execute
one or more executables in parallel or sequential
sessions |
|
| ./scripts/exec_snoop_wrapper.sh | a wrapper script for the execsnoop script from the perftools | |
| ./scripts/iotop* |
shell scripts to start iotop |
|
| ./scripts/netdata.sh |
start or stop the netdata daemon |
|
| ./scripts/open_snoop_wrapper.sh | a wrapper script for the opensnoop script from the perftools | |
| ./scripts/opensnoop1 | a patched version of the opensnoop script from the perftools | |
| ./scripts/start_stop_manserver.sh |
start or stop the JWM manServer |
|
| ./scripts/compile_justniffer_with_boost.sh | script to compile justniffer with a boost staging area | |
| ./scripts/jwm.sh | script to execute a command in a temporay JWM / Linux environment | |
| ./compile_scripts/check_for_missing_libs.sh | script to check for missing libraries | |
| ./compile_scripts/add_os_packages.sh | script to install the OS packages required to compile all tools included in JWM / Linux |
| Script
/ file |
Purpose |
Comment |
| ./develop/scriptt_mini.sh |
simple kornshell script
template with only the most useful functions |
|
| ./develop/scriptt.sh |
complex kornshell script
template with lots of predefined variables and functions |
|
| ./develop/send_monitor_login_mail.sh |
a sample script to
monitor a log file |
|
| ./compile_scripts/compile_tool.template |
a template for new compile scripts |
| File |
Type |
Purpose |
Comment |
| compile_tools.sh |
script |
simple wrapper script for
make_tools.sh |
|
| create_archive.sh |
script |
create a new
archive |
|
| init_session |
script |
start a JWM / Linux session |
|
| JWM_DESC |
textfile |
contains the description
of the archive; this file will be (re)created by
create_archive.sh before creating the new archive |
|
| jwm_env |
include script |
this is the include
script for all other scripts in JWM / Linux that defines
the necessary variables and some general functions |
|
| JWM_Linux_documentation.html |
HTML page |
this file |
|
| README |
textfile |
readme file for JWM /
Linux |
|
| VERSION |
textfile |
contains the version of
the JWM / Linux archive |
|
| NO_COMPILE_LIST |
textfile |
file with the list of
packages that should not
be compiled |
|
| compile_scripts/make_tools.sh | main script to compile the tools |
||
| compile_scripts/check_compile_status |
script |
view the compile status |
|
| compile_scripts/compile_<toolname>.sh | script |
compile the tool
<toolname> |
|
| compile_scripts/start_compiling.sh |
script |
help script for the
compile process Note: This script is used to compile the libraries included in JWM / Linux and copy the requried OS libraries to the JWM / Linux lib directory. |
|
| compile_scripts/jwml_include.inc | script |
include script for the
compile scripts |
|
| compile_scripts/compile_tool.template |
script |
template for a compile
script |
|
| ./lib/_DO_NOT_COPY_LIBS_ |
file |
semaphore file to request
make_tools.sh NOT to copy the OS libraries |
|
| compile_scripts/OS_LIBS |
textfile |
list of OS libraries that
should be copied to the JWM / Linux lib directory |
| Alias |
Purpose |
Comment |
| jwm_version |
print the version of the
installed JWM archive |
|
| jwm_tools |
list the tools in the
current JWM environment |
|
| jwm_dir |
print the the JWM / Linux
base directory |
|
| jwm_home |
change the working
directory to the JWM / Linux base directory |
|
[xtrnaw7@t540p /var/tmp/jwm/src]$ ../bin/atop -V
Version: 2.6.0 - 2020/12/21 20:45:10
<gerlof.langeveld@atoptool.nl>
[xtrnaw7@t540p /var/tmp/jwm/src]$ ../bin/atop -h
Usage: atop [-flags] [interval [samples]]
or
Usage: atop -w file [-S] [-a] [interval
[samples]]
atop -r [file] [-b
[YYYYMMDD]hhmm] [-e [YYYYMMDD]hhmm] [-flags]
generic flags:
-V show version information
-a show or log all processes
(i.s.o. active processes only)
-R calculate proportional
set size (PSS) per process
-W determine WCHAN (string)
per thread
-P generate parseable output
for specified label(s)
-L alternate line length
(default 80) in case of non-screen output
-f show fixed number of
lines with system statistics
-F suppress sorting of
system resources
-G suppress exited processes
in output
-l show limited number of
lines for certain resources
-y show threads within
process
-Y sort threads (when
combined with 'y')
-1 show average-per-second
i.s.o. total values
-x no colors in case of high
occupation
-g show general process-info
(default)
-m show memory-related
process-info
-d show disk-related
process-info
-n show network-related
process-info
-s show scheduling-related
process-info
-v show various process-info
(ppid, user/group, date/time)
-c show command line per
process
-o show own defined
process-info
-u show cumulated
process-info per user
-p show cumulated
process-info per program (i.e. same name)
-j show cumulated
process-info per container
-C sort processes in order
of cpu consumption (default)
-M sort processes in order
of memory consumption
-D sort processes in order
of disk activity
-N sort processes in order
of network activity
-E sort processes in order
of GPU activity
-A sort processes in order
of most active resource (auto mode)
specific flags for raw logfiles:
-w write raw data
to file (compressed)
-r read raw data from
file (compressed)
symbolic
file: y[y...] for yesterday (repeated)
file name
'-': read raw data from stdin
-S finish atop automatically
before midnight (i.s.o. #samples)
-b begin showing data from
specified date/time
-e finish showing data after
specified date/time
interval: number of seconds
(minimum 0)
samples: number of intervals
(minimum 1)
If the interval-value is zero, a new sample can be
forced manually by sending signal USR1 (kill -USR1 pid_atop)
or with the keystroke 't' in interactive mode.
Please refer to the man-page of 'atop' for more details.
[xtrnaw7@t540p /var/tmp/jwm/src]$
bashtop is a "Resource monitor that shows usage and
stats for processor, memory, disks, network and
processes." (see also bpytop)
[JWM session] [xtrnaw7@t540p /var/tmp/jwm/bin]$ ./bmon -h
bmon 3.9
Copyright (C) 2001-2015 by Thomas Graf
<tgraf@suug.ch>
Copyright (C) 2013 Red Hat, Inc.
bmon comes with ABSOLUTELY NO WARRANTY. This is free
software, and you
are welcome to redistribute it under certain conditions.
See the source
code for details.
Usage: bmon [OPTION]...
Options:
Startup:
-i,
--input=MODPARM
Input module(s)
-o,
--output=MODPARM
Output module(s)
-f,
--configfile=PATH
Alternative path to configuration file
-h,
--help
Show this help text
-V,
--version
Show version
Input:
-p,
--policy=POLICY
Element display policy (see below)
-a,
--show-all
Show all elements (even disabled elements)
-r,
--read-interval=FLOAT
Read interval in seconds (float)
-R,
--rate-interval=FLOAT
Rate interval in seconds (float)
-s,
--sleep-interval=FLOAT Sleep
time in seconds (float)
-L,
--lifetime=LIFETIME
Lifetime of an element in seconds (float)
Output:
-U,
--use-si
Use SI units
-b,
--use-bit
Display in bits instead of bytes
Module configuration:
modparm := MODULE:optlist,MODULE:optlist,...
optlist := option;option;...
option := TYPE[=VALUE]
Examples:
-o curses:ngraph=2
-o
list
# Shows a list of available modules
-o
curses:help # Shows a help text
for html module
Interface selection:
policy :=
[!]simple_regexp,[!]simple_regexp,...
Example: -p 'eth*,lo*,!eth1'
Please see the bmon(1) man pages for full documentation.
[JWM session] [xtrnaw7@t540p /var/tmp/jwm/bin]$
[JWM session] [xtrnaw7@t540p /var/tmp/jwm]$ bonnie++ -h
bonnie++: invalid option -- 'h'
usage: bonnie++ [-d scratch-dir] [-s
size(MiB)[:chunk-size(b)]]
[-n number-to-stat[:max-size[:min-size][:num-directories]]]
[-m machine-name]
[-r ram-size-in-MiB]
[-x number-of-tests] [-u uid-to-use:gid-to-use] [-g
gid-to-use]
[-q] [-f] [-b] [-D] [-p processes | -y]
Version: 1.03eBusyBox has been written with size-optimization and limited resources in mind. It is also extremely modular so you can easily include or exclude commands (or features) at compile time. This makes it easy to customize your embedded systems. To create a working system, just add some device nodes in /dev, a few configuration files in /etc, and a Linux kernel."
busybox is compiled for all supported tools; the binary and links are in the directory ${JWM_DIR}/busybox.[xtrnaw7@t540p /var/tmp/jwm/busybox]$ ls
[
cttyhack
fsck
iprule
mkfs.vfat
raidautorun
sleep
ubirmvol
[[
cut
fsck.minix iptunnel
mknod
rdate
smemcap
ubirsvol
acpid
date
fstrim
kbd_mode
mkpasswd
rdev
softlimit
ubiupdatevol
addgroup
dc
fsync
kill
mkswap
readahead
sort
udhcpc
add-shell
dd
ftpd
killall
mktemp
readlink
split
udhcpd
adduser
deallocvt
ftpget
killall5
modinfo
readprofile start-stop-daemon udpsvd
adjtimex
delgroup
ftpput
klogd
modprobe
realpath
stat
uevent
ar
deluser
fuser
last
more
reboot
strings
umount
arp
depmod
getopt
less
mount
reformime
stty
uname
arping
devmem
getty
linux32
mountpoint remove-shell
su
uncompress
ash
df
grep
linux64
mpstat
renice
sulogin
unexpand
awk
dhcprelay
groups
linuxrc
mt
reset
sum
uniq
base64
diff
gunzip
ln
mv
resize
sv
unix2dos
basename
dirname
gzip
loadfont
nameif
rev
svlogd
unlink
beep
dmesg
halt
loadkmap
nanddump
rm
swapoff
unlzma
blkdiscard
dnsd
hd
logger
nandwrite
rmdir
swapon
unlzop
blkid
dnsdomainname hdparm
login
nbd-client
rmmod
switch_root
unshare
blockdev
dos2unix
head
logname
nc
route
sync
unxz
bootchartd
du
hexdump
logread
netstat
rpm
sysctl
unzip
brctl
dumpkmap
hostid
losetup
nice
rpm2cpio
syslogd
uptime
bunzip2
dumpleases
hostname
lpd
nmeter
rtcwake
tac
users
busybox
echo
httpd
lpq
nohup
runlevel
tail
usleep
bzcat
ed
hush
lpr
nsenter
run-parts
tar
uudecode
bzip2
egrep
hwclock
ls
nslookup
runsv
tcpsvd
uuencode
cal
eject
i2cdetect
lsattr
ntpd
runsvdir
tee
vconfig
cat
env
i2cdump
lsmod
od
rx
telnet
vi
catv
envdir
i2cget
lsof
openvt
script
telnetd
vlock
chat
envuidgid
i2cset
lspci
passwd
scriptreplay
test
volname
chattr
ether-wake
id
lsusb
patch
sed
tftp
wall
chgrp
expand
ifconfig
lzcat
pgrep
sendmail
tftpd
watch
chmod
expr
ifdown
lzma
pidof
seq
time
watchdog
chown
fakeidentd ifenslave
lzop
ping
setarch
timeout
wc
chpasswd
false
ifplugd
lzopcat
ping6
setconsole
top
wget
chpst
fatattr
ifup
makedevs pipe_progress
setfont
touch
which
chroot
fbset
inetd
makemime
pivot_root setkeycodes
tr
who
chrt
fbsplash
init
man
pkill
setlogcons
traceroute
whoami
chvt
fdflush
insmod
md5sum
pmap
setserial
traceroute6 whois
cksum
fdformat
install
mdev
popmaildir
setsid
true
xargs
clear
fdisk
ionice
mesg
poweroff
setuidgid
truncate
xz
cmp
fgconsole
iostat
microcom
powertop
sh
tty
xzcat
comm
fgrep
ip
mkdir
printenv
sha1sum
ttysize
yes
conspy
find
ipaddr
mkdosfs
printf
sha256sum
tunctl
zcat
cp
findfs
ipcalc
mke2fs
ps
sha3sum
tune2fs
zcip
cpio
flock
ipcrm
mkfifo
pscan
sha512sum ubiattach
crond
fold
ipcs
mkfs.ext2
pstree
showkey ubidetach
crontab
free
iplink mkfs.minix
pwd
shuf
ubimkvol
cryptpw
freeramdisk
iproute mkfs.reiser
pwdx
slattach ubirename
[xtrnaw7@t540p /var/tmp/jwm/busybox]$ [JWM session] [xtrnaw7@t540p /var/tmp/jwm/scripts]$
./busybox_httpd.sh --help
[25.10.2016 18:52 ] ### busybox_httpd.sh started at Tue Oct
25 18:52:07 CEST 2016
busybox_httpd.sh
Function: start or stop the busybox httpd daemon
Usage: busybox_httpd.sh
[-v|--verbose] [-q|--quiet] [-f|--force] [-p|--port
httpd_port] [-h|--home homedir] [-c|--config configfile]
[start [httpd_options]|stop|restart
[httpd_options]|status|daemon_help]
Parameter
-v - verbose mode
-q - quiet mode
-f - force execution
-p - port for httpd (default: 8080)
-h - home dir , default: ${JWM_DIR}/htdocs or
<script_dir>/../htdocs if JWM_DIR is not set
-c - config file, default: ${JWM_DIR}/etc or
<script_dir>/../etc/httpd.conf if JWM_DIR is not set
-C - config file like -c but do NOT change the
config file at all
httpd_options - additional options for starting
the httpd
daemon_help - list the usage help for the
busybox httpd daemon
The script searches the busybox binary in these
directories:
- the current working directory
- the directory with this script
- the directory ${JWM_DIR}/busybox
- the directory ${PWD}/../busybox
Author:
Bernd Schemmer (Bernd.Schemmer@gmx.de)
[25.10.2016 18:52 ] ### busybox_httpd.sh ended at Tue Oct 25
18:52:07 CEST 2016[JWM session] [xtrnaw7@t540p /var/tmp/jwm/scripts]$
./busybox_httpd.sh start
[25.10.2016 18:52 ] ### busybox_httpd.sh started at Tue Oct
25 18:52:14 CEST 2016
[25.10.2016 18:52 ] Using the busybox directory based on the
the environment variable JWM_DIR ("/var/tmp/jwm")
[25.10.2016 18:52 ] The busybox base directory is
/var/tmp/jwm
[25.10.2016 18:52 ] Starting the httpd daemon ...
[25.10.2016 18:52 ] Using the httpd home directory
/var/tmp/jwm/htdocs
[25.10.2016 18:52 ] Using the httpd config file
/var/tmp/jwm/etc/httpd.conf
[25.10.2016 18:52 ] The port to use for the httpd daemon is
8080
[25.10.2016 18:52 ] Preparing the environment to start the
busybox httpd with php support ...
[25.10.2016 18:52 ] Searching for the php-cgi binary ...
[25.10.2016 18:52 ] Using the PHP binary "/usr/bin/php-cgi"
...
+ ./busybox/httpd '' -p 8080 -c /tmp/httpd.8080.conf -h
/var/tmp/jwm/htdocs
+ 2>& 1
[25.10.2016 18:52 ] httpd daemon started; the PID is 573
[25.10.2016 18:52 ] Use http://localhost:8080 or
http://t540p:8080 to access the httpd in your Webbrowser
[25.10.2016 18:52 ] ### busybox_httpd.sh ended at Tue Oct 25
18:52:14 CEST 2016
[JWM session] [xtrnaw7@t540p /var/tmp/jwm/scripts]$
./busybox_httpd.sh status
[25.10.2016 18:52 ] ### busybox_httpd.sh started at Tue Oct
25 18:52:25 CEST 2016
[25.10.2016 18:52 ] Using the busybox directory based on the
the environment variable JWM_DIR ("/var/tmp/jwm")
[25.10.2016 18:52 ] The busybox base directory is
/var/tmp/jwm
[25.10.2016 18:52 ] The httpd daemon is running; the PID is
573
UID PID
PPID C STIME
TTY
TIME CMD
xtrnaw7 573
1 0 18:52 ?
00:00:00 ./busybox/httpd -p 8080 -c
/tmp/httpd.8080.conf -h /var/tmp/jwm/htdocs
[25.10.2016 18:52 ] The httpd daemon is listening on these
ports:
(Not all processes could be identified, non-owned process
info
will not be shown, you would have to be root to see it
all.)
tcp6
0 0
:::8080
:::*
LISTEN 573/./busybox/httpd
[25.10.2016 18:52 ] ### busybox_httpd.sh ended at Tue Oct 25
18:52:26 CEST 2016
[JWM session] [xtrnaw7@t540p /var/tmp/jwm/scripts]$
./busybox_httpd.sh stop
[25.10.2016 18:52 ] ### busybox_httpd.sh started at Tue Oct
25 18:52:29 CEST 2016
[25.10.2016 18:52 ] Using the busybox directory based on the
the environment variable JWM_DIR ("/var/tmp/jwm")
[25.10.2016 18:52 ] The busybox base directory is
/var/tmp/jwm
[25.10.2016 18:52 ] The httpd daemon is running; the PID is
573
[25.10.2016 18:52 ] Stopping the httpd daemon ...
[25.10.2016 18:52 ] ### busybox_httpd.sh ended at Tue Oct 25
18:52:30 CEST 2016
[JWM session] [xtrnaw7@t540p /var/tmp/jwm/scripts]$
./busybox_httpd.sh status
[25.10.2016 18:52 ] ### busybox_httpd.sh started at Tue Oct
25 18:52:33 CEST 2016
[25.10.2016 18:52 ] Using the busybox directory based on the
the environment variable JWM_DIR ("/var/tmp/jwm")
[25.10.2016 18:52 ] The busybox base directory is
/var/tmp/jwm
[25.10.2016 18:52 ] The httpd daemon is NOT running (well,
it may be running but it was not started by this script)
[25.10.2016 18:52 ] ### busybox_httpd.sh ended at Tue Oct 25
18:52:33 CEST 2016
[JWM session] [xtrnaw7@t540p /var/tmp/jwm/scripts]$ [JWM session] [xtrnaw7@t540p /var/tmp/jwm/scripts]$
./busybox_httpd.sh -p 8888 start
[25.10.2016 18:53 ] ### busybox_httpd.sh started at Tue Oct
25 18:53:13 CEST 2016
[25.10.2016 18:53 ] Using the busybox directory based on the
the environment variable JWM_DIR ("/var/tmp/jwm")
[25.10.2016 18:53 ] The busybox base directory is
/var/tmp/jwm
[25.10.2016 18:53 ] Starting the httpd daemon ...
[25.10.2016 18:53 ] Using the httpd home directory
/var/tmp/jwm/htdocs
[25.10.2016 18:53 ] Using the httpd config file
/var/tmp/jwm/etc/httpd.conf
[25.10.2016 18:53 ] The port to use for the httpd daemon is
8888
[25.10.2016 18:53 ] Preparing the environment to start the
busybox httpd with php support ...
[25.10.2016 18:53 ] Searching for the php-cgi binary ...
[25.10.2016 18:53 ] Using the PHP binary "/usr/bin/php-cgi"
...
+ ./busybox/httpd '' -p 8888 -c /tmp/httpd.8888.conf -h
/var/tmp/jwm/htdocs
+ 2>& 1
[25.10.2016 18:53 ] httpd daemon started; the PID is 825
[25.10.2016 18:53 ] Use http://localhost:8888 or
http://t540p:8888 to access the httpd in your Webbrowser
[25.10.2016 18:53 ] ### busybox_httpd.sh ended at Tue Oct 25
18:53:13 CEST 2016
[JWM session] [xtrnaw7@t540p /var/tmp/jwm/scripts]$
./busybox_httpd.sh status
[25.10.2016 18:53 ] ### busybox_httpd.sh started at Tue Oct
25 18:53:19 CEST 2016
[25.10.2016 18:53 ] Using the busybox directory based on the
the environment variable JWM_DIR ("/var/tmp/jwm")
[25.10.2016 18:53 ] The busybox base directory is
/var/tmp/jwm
[25.10.2016 18:53 ] The httpd daemon is running; the PID is
825
UID PID
PPID C STIME
TTY
TIME CMD
xtrnaw7 825
1 0 18:53 ?
00:00:00 ./busybox/httpd -p 8888 -c
/tmp/httpd.8888.conf -h /var/tmp/jwm/htdocs
[25.10.2016 18:53 ] The httpd daemon is listening on these
ports:
(Not all processes could be identified, non-owned process
info
will not be shown, you would have to be root to see it
all.)
tcp6
0 0
:::8888
:::*
LISTEN 825/./busybox/httpd
[25.10.2016 18:53 ] ### busybox_httpd.sh ended at Tue Oct 25
18:53:19 CEST 2016
[JWM session] [xtrnaw7@t540p /var/tmp/jwm/scripts]$
./busybox_httpd.sh stop
[25.10.2016 18:53 ] ### busybox_httpd.sh started at Tue Oct
25 18:53:30 CEST 2016
[25.10.2016 18:53 ] Using the busybox directory based on the
the environment variable JWM_DIR ("/var/tmp/jwm")
[25.10.2016 18:53 ] The busybox base directory is
/var/tmp/jwm
[25.10.2016 18:53 ] The httpd daemon is running; the PID is
825
[25.10.2016 18:53 ] Stopping the httpd daemon ...
[25.10.2016 18:53 ] ### busybox_httpd.sh ended at Tue Oct 25
18:53:31 CEST 2016
[JWM session] [xtrnaw7@t540p /var/tmp/jwm/scripts]$ [25.10.2016 19:04 ] Additional parameter supported by
the busybox httpd daemon are:
BusyBox v1.25.0 (2016-10-25 14:12:10 CEST) multi-call
binary.
Usage: httpd [-ifv[v]] [-c CONFFILE] [-p [IP:]PORT] [-u
USER[:GRP]] [-r REALM] [-h HOME]
or httpd -d/-e/-m STRING
Listen for incoming HTTP requests
-i
Inetd mode
-f
Don't daemonize
-v[v]
Verbose
-p [IP:]PORT Bind to
IP:PORT (default *:80)
-u USER[:GRP] Set uid/gid
after binding to port
-r
REALM
Authentication Realm for Basic Authentication
-h HOME
Home directory (default .)
-c FILE
Configuration file (default
{/etc,HOME}/httpd.conf)
-m
STRING MD5 crypt STRING
-e STRING HTML
encode STRING
-d
STRING URL decode STRING
[25.10.2016 19:04 ] ### busybox_httpd.sh ended at Tue Oct 25
19:04:44 CEST 2016
[JWM session] [xtrnaw7@t540p /var/tmp/jwm/scripts]$
[JWM session] [xtrnaw7@t540p /var/tmp/jwm]$ bvi -h Usage:
bvi [-R] [-c cmd | +cmd] [-f script] [-s begin] [-e end] [-n
size] file ... file offset/size: 10k, 20m, 1g, 0x1000 hex,
0200 octal [JWM session] [xtrnaw7@t540p /var/tmp/jwm]$
[JWM session] [xtrnaw7@t540p /var/tmp/jwm/bin]$ bwm-ng
-h
Bandwidth Monitor NG (bwm-ng) v0.6.2
Copyright (C) 2004-2007 Volker Gropp <bwmng@gropp.org>
USAGE: bwm-ng [OPTION] ... [CONFIGFILE]
displays current ethernet interfaces stats
Options:
-t, --timeout <msec> displays
stats every <msec> (1msec = 1/1000sec)
default: 500
-d, --dynamic [value] show values
dynamically (Byte KB or MB)
-a, --allif [mode]
where mode is one of:
0=show only up (and selected) interfaces
1=show all up interfaces (default)
2=show all and down interfaces
-I, --interfaces <list> show only interfaces in
<list> (comma separated), or
if list is prefaced with % show all but interfaces
in list
-S, --sumhidden [value] count hidden interfaces for
total
-A, --avglength <sec> sets the span
of average stats (Default 30s)
-D, --daemon [value] fork into
background and daemonize
-h,
--help
displays this help
-V,
--version
print version info
Input:
-i, --input <method> input
method, one of: proc disk
-f, --procfile <file> filename to
read raw data from. (/proc/net/dev)
--diskstatsfile <file>
filename to read diskstats (Linux 2.6+) from.
(/proc/diskstats)
--partitionsfile <file>
filename to read diskstats (Linux 2.4) from.
(/proc/partitions)
Output:
-o, --output <method> output
method, one of:
plain, curses, curses2, csv, html
-u, --unit
<value> unit to show.
one of bytes, bits, packets, errors
-T, --type
<value> type of stats.
one of rate, max, sum, avg
-C, --csvchar <char>
delimiter for csv
-F, --outfile <file> output
file for csv and html (default stdout)
-R, --htmlrefresh <num> meta refresh for html
output
-H,
--htmlheader show
<html> and <meta> frame for html output
-c, --count
<num> number of
query/output for plain & csv
-N,
--ansiout
disable ansi codes for plain output
(ie 1 for one single output)
[JWM session] [xtrnaw7@t540p /var/tmp/jwm/bin]$
[xtrnaw7@t540p /var/tmp/jwm/scripts]$ ./cdpinfo -h
Usage: ./cdpinfo -i devX [-t tmout] [-v]
-i devX : Use the devX device
name for the interface to watch.
-t tmout : Timeout value in
seconds. Don't wait for a CDP packet longer than this.
Default is 60 seconds. 0 means no limit.
-v : Verbose
output.
-h : This help
message.
[xtrnaw7@t540p /var/tmp/jwm/scripts]$ [xtrnaw7@t540p /var/tmp/jwm/scripts]$ sudo ./cdpinfo -i
enp0s25
No CDP packet - sorry
^C[JWM session] [xtrnaw7@t540p /var/tmp/jwm]$ cdpr -h
cdpr - Cisco Discovery Protocol Reporter
Version 2.4
Copyright (c) 2002-2010 - MonkeyMental.com
d: Specify device to use (eth0, hme0, etc.)
h: Print this usage
t: time in seconds to abort waiting for a packet (should be
> 60)
v[vv]: Set verbose mode
r: read from file instead of network device
** Options dealing with server updates: **
u: Send cdpr information to a cdpr server
requires config file as arg
l: Location/description of this port for use with -u
or -s and -p
n: Override the hostname reported to the server for
use with -u or -s and -p
s: Server to send information to specify port with a :
after Server/IP
Example: 192.168.1.20:88 (default:
80) requires -p (overridden by -u)
p: Path of server script to send data to requires -s
(overridden by -u)
[JWM session] [xtrnaw7@t540p /var/tmp/jwm]$ JWM session] [xtrnaw7@t540p /var/tmp/jwm]$ collectl -h
This is a subset of the most common switches and even the
descriptions are
abbreviated. To see all type 'collectl -x', to get
started just type 'collectl'
usage: collectl [switches]
-c, --count
count collect this number of
samples and exit
-f, --filename
file name of
directory/file to write to
-i, --interval
int collection
interval in seconds [default=1]
-o, --options
options misc formatting options,
--showoptions for all
d|D - include date in output
T - include time in output
z - turn off compression of plot files
-p, --playback
file playback results
from 'file' (be sure to quote
if wild carded) or the shell
might mess it up
-P,
--plot
generate output in 'plot' format
-s, --subsys
subsys specify one or more
subsystems [default=cdn]
--verbose
display output in verbose format (automatically
selected when brief doesn't make sense)
Various types of help
-h,
--help
print this text
-v,
--version
print version
-V,
--showdefs
print operational defaults
-x,
--helpextend
extended help, more details descriptions too
-X,
--helpall
shows all help concatenated together
--showoptions
show all the options
--showsubsys
show all the subsystems
--showsubopts
show all subsystem specific options
--showtopopts
show --top options
--showheader
show file header that 'would be' generated
--showcolheaders
show column headers that 'would be' generated
--showslabaliases
for SLUB allocator, show non-root aliases
--showrootslabs
same as --showslabaliases but use 'root' names
Copyright 2003-2016 Hewlett-Packard Development Company,
L.P.
collectl may be copied only under the terms of either the
Artistic License
or the GNU General Public License, which may be found in the
source kit
[JWM session] [xtrnaw7@t540p /var/tmp/jwm]$ [JWM session] xtrnaw7@t61p Tue Oct 29 20:19:39
/var/tmp/jwm/scripts $ collectl --help
This is a subset of the most common switches and even the
descriptions are
abbreviated. To see all type 'collectl -x', to get
started just type 'collectl'
usage: collectl [switches]
-c, --count
count collect this number of
samples and exit
-f, --filename
file name of
directory/file to write to
-i, --interval
int collection
interval in seconds [default=1]
-o, --options
options misc formatting options,
--showoptions for all
d|D - include date in output
T - include time in output
z - turn off compression of plot files
-p, --playback
file playback results
from 'file' (be sure to quote
if wild carded) or the shell
might mess it up
-P,
--plot
generate output in 'plot' format
-s, --subsys
subsys specify one or more
subsystems [default=cdn]
--verbose
display output in verbose format (automatically
selected when brief doesn't make sense)
Various types of help
-h,
--help
print this text
-v,
--version
print version
-V,
--showdefs
print operational defaults
-x,
--helpextend
extended help, more details descriptions too
-X,
--helpall
shows all help concatenated together
--showoptions
show all the options
--showsubsys
show all the subsystems
--showsubopts
show all subsystem specific options
--showtopopts
show --top options
--showheader
show file header that 'would be' generated
--showcolheaders
show column headers that 'would be' generated
--showslabaliases
for SLUB allocator, show non-root aliases
--showrootslabs
same as --showslabaliases but use 'root' names
Copyright 2003-2013 Hewlett-Packard Development Company,
L.P.
collectl may be copied only under the terms of either the
Artistic License
or the GNU General Public License, which may be found in the
source kit
[JWM session] xtrnaw7@t61p Tue Oct 29 20:23:27
/var/tmp/jwm/scripts $ collectl --showoptions
Various combinations can be specified with -o or --options,
both interactively
and in playback mode, in far too many combinations to
describe. In general if
they make sense together they probably work!
Date and Time
d - preface output with 'mm/dd hh:mm:ss'
D - preface outout with 'ddmmyyyy hh:mm:ss'
T - preface output with time only
U - preface output with UTC time
m - when reporting times, include milli-secs
Numerical Formats
g - include/substitute 'g' for decimal point for
numbers > 1G
G - include decimal point (when it will fit) for
numbers > 1G
Exception Reporting
x - report exceptions only (see man page)
X - record all values + exceptions in plot format
(see manpage)
Modify results before display (do NOT effect collection)
n - do NOT normalize rates to units/second
Plot File Naming/Creation
a - if plotfile exists, append [default=skip -p file]
c - always create new plot file
u - create unique plot file names - include time
Plot Data Format
1 - plot format with 1 decimal place of precision
2 - plot format with 2 decimal places of precision
z - don't compress output file(s)
File Header Information
i - include file header in output
JWM session] xtrnaw7@t61p Tue Oct 29 20:24:46
/var/tmp/jwm/scripts $ collectl --showsubsys
The following subsystems can be specified in any
combinations with -s or
--subsys in both record and playbackmode.
[default=bcdfijlmnstx]
These generate summary, which is the total of ALL data for a
particular type
b - buddy info (memory fragmentation)
c - cpu
d - disk
f - nfs
i - inodes
j - interrupts by CPU
l - lustre
m - memory
n - network
s - sockets
t - tcp
x - interconnect (currently supported: Infiniband and
Quadrics)
y - slabs
These generate detail data, typically but not limited to the
device level
C - individual CPUs, including interrupts if
-sj or -sJ
D - individual Disks
E - environmental (fan, power, temp) [requires
ipmitool]
F - nfs data
J - interrupts by CPU by interrupt number
L - lustre
M - memory numa/node
N - individual Networks
T - tcp details (lots of data!)
X - interconnect ports/rails
(Infiniband/Quadrics)
Y - slabs/slubs
Z - processes
An alternative format lets you add and/or subtract
subsystems to the defaults by
immediately following -s with a + and/or -
eg: -s+YZ-x adds slabs & processes and removes
interconnet summary data
-s-n removes network summary
data
-s-all removes ALL
subsystems, something that can handy when playing back
data collected with --import and you ONLY want to see that
data
[JWM session] xtrnaw7@t61p Tue Oct 29 20:25:24
/var/tmp/jwm/scripts $ collectl --showsubopts
These options are all subsystem specific and all take one or
more arguments.
Options typically effect the type of data collectl and
filters effect the way
it is displayed. In the case of lustre there are also
'services'
CPU
--cpuopts
z - do not show any detail
lines which are ALL 0
Disk
--dskfilt perl-regx[,perl-regx...]
this ONLY applies to disk
stats output and not data collection
only data for disk names that
match the pattern(s) will be
included in summary stats or
displayed when details requested
if you don't know perl, a
partial string will usually work too
--dskopts
f - include fractions for
some of the detail output columns
i - include average i/o size
in brief mode (as with --iosize)
o - exclude unused devices
from new headers and plot data
see
docs on disk monitoring for more detail
z - do not show any detail
lines which are ALL 0
--rawdskfilt
this works like dskfilt
except rather than being applied to the
output it applies to the data
collection.
--rawdskignore
this is the opposite if
--rawdskfilt in that any disks matching this
pattern will not have their
statistics recorded as well as not being
shown in any output
Environmental
--envopts [def=fpt] NOTE: these do not filter
data on collection
f - display fan data
p - display power data
t - display temperature data
C - display temperature in
celcius
F - display temperature in
fahrenheit
M - display data on multiple
lines (useful when too much data)
T - display all env data
truncated to whole integers
0-9 - use as ipmi device number
--envfilt perl-regx
during collection, this
filter is applied to the data returned by
ipmitool and only those lines
that match are kept
--envremap perl-regx...
a list of regx expressions,
comma separated, are applied to the
final env names before
reporting
The following are for those needed to develop/debug
remapping rules.
See online documentation OR Ipmi.html in docs/
--envrules filename
file containin remapping rules
--envdebug
show processing of ipmi data
--envtest
filename file containing extract of
'ipmitool -c sdr'
Interconnect
--xopts
i - include i/o sizes in
brief mode
Interrupts
--intfilt perl-regx
like other filters, this filter only
applies to display output
and all interrupts will always be
collected and available for
playback
Lustre
--lustopts
B - only for OST's and
clients, collect buffer/rpc stats
D - collect lustre disk stats
(HPSFS: MDS and OSS only)
M - collect lustre client
metadata
O - collect lustre OST level
stats (detail mode only and not MDS)
R - collect lustre client
readahead stats
--lustsvc: force monitoring/reporting of these lustre
services
c - client
m - mds
o - oss
NOTE - you can specify the service in
either lower or upper case, in
case other tools might care. see
the collectl documentation on lustre
for details
Memory
--memopts
P - display physical portion
of verbose display
V - display virtual portion
of verbose display
p - display/record
alloc/refill number of pages
s - display/record
steal/kswap/direct number of pages
R - show changes in memory as
rates, not instantaneous values
note that including p or s
will collect more data and will slightly increase in
processing
time. if neither P or V
are specified none of the basic memory stats will be
displayed BUT
they will be recorded making
it possible to display later either by including P/V as an
option OR leaving off both p
and s.
Network
--netfilt perl-regx[,perl-regx...]
this ONLY applies to network
stats output and not data collection
only data for network names
that match the pattern(s) will be
included in summary stats or
displayed when details requested
if you don't know perl, a
partial string will usually work too
--netopts eEw99
e - include errors in brief
mode and explicit error types in
verbose and detail formats
E - only display intervals
which have network errors in them
i - include i/o sizes in
brief mode
o - exclude unused devices
from new headers and plot data
see
docs on network monitoring for more detail
w - sets minimal network name
width in network stats output which
can
be useful for aligning output from multiple systems
--rawnetfilt
this works like netfilt
except rather than being applied to the
output it applies to the data
collection.
--rawnetignore
this is the opposite of
--rawnetfilt in that any networks matching this
pattern will not have their
statistics recorded as well as not being
shown in any output
NFS
--nfsfilt TypeVer,...
C - client
S - server
2 - V2
3 - V3
4 - V4
By specifying a csv list,
collectl will only collect/record the type
of data indicated (eg c3,s3
indicates V3 clients/server data)
--nfsopts
z - do not show lines of 0
activity with -sF
Processes
--procopts
c - include cpu time of
children who have exited (same as ps S switch)
f - use cumulative totals for
page faults in proc data instead of rates
i - show io counters in
display
I - disable
collection/display of I/O stats. saves over 25% in
data
collection overhead
k - remove known shells from
process names
m - show memory breakdown and
faults in display
p - never look for new pids
or threads to match processing criteria
This also improves performance!
r - show root command name
for a narrower display, can be combined with w
R - show ALL process
priorities ('RT' currently displayed if realtime)
s - include process start
times in hh:mm:ss format
S - include process start
times in mmmdd-hh:mm:ss format
t - include ALL threads (can
be a lot of overhead if many active threads)
u - make username format 12
chars wide. you can also set any arbitrary
width
of at least 8, eg u10
w - make format wider by
including entire process argument string
you
can also set a max number of chars, eg w32
x - include extended process
attributes (currently only for context switches)
z - exclude any processes
with 0 in sort field
--procfilt: restricts which procs are listed,
where 'procs' is of the
Format:
<type><match>[[,<type><match>],...],
and valid types are any
combinations of:
c - any substring in command
name
C - command name starts with
this string
f - full path of command
(including args) contains string
p - pid
P - parent pid
u - any processes owned by
this user's UID or in range xxx-yyy
U - any processes owned by
this user
NOTE1: if 'procs' is
actually a filename, that file will be read and all
lines concatenated together, comma separted, as if typed in
as an
argument of --procfilt. Lines beginning with # will be
ignored
as comments and blank lines will be skipped.
NOTE2: if any type
fields are immediatly followed by a plus sign, any
threads associated with that process will also be reported.
see man page for important restrictions
--procstate Only show processes in one or
more of the following states
D - waiting in
uninterruptable disk sleep
R - running
S - sleeping in
uninterruptable wait
T - traced or stopped
W - paging
Z - zombie
Slab Options and Filters
--slabopts
s - only show slabs with
non-zero allocations
S - only show slabs that have
changed since last interval
--slabfilt: restricts which slabs are listed,
where 'slab's is of the form:
'slab[,slab...]. only slabs whose names start with
this name
will be included
TCP Stack Options - these DO effect data collection as well
as printing
--tcpfilt
i - ip stats, no brief stats
so selecting it alone will force --verbose
t - tcp stats
u - udp stats
c - Icmp Stats
I - ip extended stats
T - tcp extended stats
[JWM session] xtrnaw7@t61p Tue Oct 29 20:25:27
/var/tmp/jwm/scripts $ collectl --showtopopts
The following is a list of --top's sort types which apply to
either
process or slab data. In some cases you may be allowed
to sort
by a field that is not part of the display if you so desire
TOP PROCESS SORT FIELDS
Memory
vsz virtual memory
rss resident (physical) memory
Time
syst system time
usrt user time
time total time
accum accumulated time
I/O
rkb KB read
wkb KB written
iokb total I/O KB
rkbc KB read from pagecache
wkbc KB written to pagecache
iokbc total pagecacge I/O
ioall total I/O KB (iokb+iokbc)
rsys read system calls
wsys write system calls
iosys total system calls
iocncl Cancelled write bytes
Page Faults
majf major page faults
minf minor page faults
flt total page faults
Context Switches
vctx volunary context switches
nctx non-voluntary context switches
Miscellaneous (best when used with --procfilt)
cpu cpu number
pid process pid
thread total process threads (not counting main)
TOP SLAB SORT FIELDS
numobj total number of slab objects
actobj active slab objects
objsize sizes of slab objects
numslab number of slabs
objslab number of objects in a slab
totsize total memory sizes taken by slabs
totchg change in memory sizes
totpct percent change in memory
sizes
name slab namesJWM session] xtrnaw7@t61p Tue Oct 29 20:16:39
/var/tmp/jwm/scripts $ collectl -sn -oT
monospace;"> waiting for 1 second sample...
#
<----------Network---------->
#Time KBIn
PktIn KBOut PktOut
20:17:22
0
1
0 0
20:17:23
0
0
0 0
20:17:24
0
1
0 0
Ouch!
[JWM session] xtrnaw7@t61p Tue Oct 29 20:17:24
/var/tmp/jwm/scripts $ collectl -sn --verbose -oT
waiting for 1 second sample...
# NETWORK SUMMARY (/sec)
#Time KBIn PktIn
SizeIn MultI CmpI ErrsI KBOut
PktOut SizeO CmpO ErrsO
20:17:31
0
0
0
0
0
0
0
0
0
0 0
20:17:32
0 1
60
0
0
0
0
0
0
0 0
20:17:33
0
0
0
0
0
0
0
0
0
0 0
20:17:34
0 1
60
0
0
0
0
0
0
0 0
20:17:35
0
0
0
0
0
0
0
0
0
0 0collectl --top --export proctree
Process Tree 01:00:00 [skip when 'time'<=0 is 'on' aggr:
'on' x1024: 'off' depth 5]
# PID PPID
User PR S VSZ
RSS CP SysT UsrT Pct AccuTime
RKB WKB MajF MinF Command
00001
0 root 20 S
23G 1G 1 0.03 0.08
11 02:07.44 0
0 0 7 /sbin/init
01964
1 root 20 S 9G
497M 0 0.03 0.08 11
01:39.73 0
0 0 7 /usr/sbin/mdm
01979 1964
root 20 S 9G
495M 1 0.03 0.08 11
01:39.73 0
0 0 7
/usr/sbin/mdm
01992 1979
root 20 S 170M
60M 1 0.01 0.00 1
00:26.55 0
0 0 0
/usr/bin/X
02407 1979 xtrnaw7
20 S 9G 431M 1 0.02
0.08 10 01:13.17
0 0 0
7 gnome-session
02804 2407 xtrnaw7
20 S 3G 264M 0 0.02
0.08 10 01:06.44
0 0 0
7 /usr/bin/cinnamon
00002
0 root 20 S
0 0 1 0.01
0.00 1 00:07.16
0 0 0 0
kthreadd
00181
2 root 20 S
0 0 1 0.01
0.00 1 00:01.77
0 0 0
0 kworker/1:2
monospace;"> Ouch![JWM session] xtrnaw7@t61p Tue Oct 29 20:34:03
/var/tmp/jwm/scripts $ collectl -sZ -i:1 |more
waiting for 1 second sample...
### RECORD 1 >>> t61p <<<
(1383075264.001) (Tue Oct 29 20:34:24 2013) ###
# PROCESS SUMMARY (counters are /sec)
monospace;"> # PID User
PR PPID THRD S VSZ RSS CP
SysT UsrT Pct AccuTime RKB WKB MajF
MinF Command
1 root
20 0 0 S
24M 2M 1 0.00
0.00 0 00:00.44
0 0 0 0
/sbin/init
2 root
20 0 0
S 0 0
1 0.00 0.00 0
00:00.00 0
0 0 0 kthreadd
3 root
20 2 0
S 0 0
0 0.00 0.00 0
00:00.67 0
0 0 0 ksoftirqd/0
6 root
RT 2 0
S 0 0
0 0.00 0.00 0
00:01.59 0
0 0 0 migration/0
7 root
RT 2 0
S 0 0
0 0.00 0.00 0
00:00.03 0
0 0 0 watchdog/0
8 root
RT 2 0
S 0 0
1 0.00 0.00 0
00:00.36 0
0 0 0 migration/1 [JWM session] xtrnaw7@t61p Tue Oct 29 20:40:40
/var/tmp/jwm/scripts $ collectl --procopts i -oT
waiting for 1 second sample...
#
<--------CPU--------><----------Disks-----------><----------Network---------->
#Time cpu sys inter ctxsw
KBRead Reads KBWrit Writes KBIn
PktIn KBOut PktOut
20:40:43 3 1
252 486
0
0
0
0
0
0
0 0
20:40:44 4 1
287 658
0
0
0
0
0
1
0 0
20:40:45 3 1
262 556
0 0
56
6
0
0
0 0
20:40:46 4 1
296 576
0 0
192
3
0
1
0 0
Ouch![JWM session] xtrnaw7@t61p Tue Oct 29 20:40:46
/var/tmp/jwm/scripts $ collectl --procopts i -oTm
waiting for 1 second sample...
#
<--------CPU--------><----------Disks-----------><----------Network---------->
#Time cpu sys
inter ctxsw KBRead Reads KBWrit Writes
KBIn PktIn KBOut PktOut
20:40:51.001 12 8
402 998
0
0
8
2
0
0
0 0
20:40:52.001 5 2
326 720
0
0
0
0
0
1
0 0
20:40:53.001 6 4
299 652
0
0
0
0
0
1
0 2
Ouch![xtrnaw7@t540p /data/download]$ java -jar
CPUhog.jar -h
Usage:
java -jar CPUhog <options>
The options can be specified in any order and later
ones override earlier ones.
Available options are
-t nnn Start load nnn threads (default
10). Typically the main program
runs
in the initial thread and it starts a monitoring thread as
well
as the specified number of load threads. You may see
additional
threads created by the JVM for system use.
-s nnn The size of the vector used during
the convolution (default 100).
Note
that doubling the number coefficients will
appoximately increase the load execution time by 4.
-a Permit the
application to adjust the vector size automatically.
Initially this will reduce the size when out of memory
errors start to
occur. During adjustment the load may fluctuate.
Currently the
size
is not adjusted upwards so the -d option can be used to set
an
upper
value.
-w nnn The amount of time (ms) to wait
between log line outputs.
-sn No statistics.
-sa All statistics
-sc Compilation
information
-so Operating system
information. This is the only section output by
default.
-sr Runtime information
(includes all java system properties)
-st Thread information
-sm Memory information
-sp Memory pool
information
-c nnn The target percentage of total CPU
to use (integer - default 100).
A
delay within each load thread will be adjusted to bring the
aggregate
load
on the system to the specified percentage. The granularity
that
the
application can achieve will be determined by the size of
load
and
the speed of CPU. This also relies on the JVM / OS to
spread the
total
load evenly (although this may be what you are testing!)
-q Supress logging
information.
[xtrnaw7@t540p /data/download]$
[JWM session] [xtrnaw7@t540p /var/tmp/jwm]$
bin1/CPUhog.sh
Operating System Information
OS name: Linux
OS version: 4.7.7-100.fc23.x86_64
Architecture: amd64
Available processors: 8
Hogging all the CPU with 10 java threads
doing 10x10 matrix arithmetic.
Time /s Threads CPUs Free KBs Total
KBs Max KBs %CPU User %CPU Total
%CPU / CPU LoopTime/s Ld Wait/ms mSize
0.000
10 8
232775 241664
3557376
0.000
0.000 0.000
-1.000e-09
0 10
All threads started.
2.005
15 8
223886 241664
3557376 782.629
786.077 98.260
3.192e-04
0 10
4.007
15 8
223886 241664
3557376 779.734
780.817 97.602
2.601e-04
0 10
6.009
15 8
223886 241664
3557376 784.251
783.921 97.990
3.297e-04
0 10
8.011
15 8
223886 241664
3557376 787.799
787.870 98.484
2.610e-04
0 10
10.013
15 8
223886 241664
3557376 780.233
780.892 97.611
3.138e-04
0 10
12.015
15 8
223886 241664
3557376 791.424
790.783 98.848
3.337e-04
0 10
14.017
15 8
223886 241664
3557376 788.900
788.183 98.523
3.173e-04
0 10
16.018
15 8
223886 241664
3557376 788.500
789.356 98.669
3.610e-04
0 10
18.021
15 8
223886 241664
3557376 792.436
792.113 99.014
2.900e-04
0 10
20.023
15 8
223886 241664
3557376 789.072
789.279 98.660
3.446e-04
0 10
22.025
15 8
223886 241664
3557376 789.872
790.447 98.806
3.025e-04
0 10
24.026
15 8
223886 241664
3557376 793.408
793.212 99.152
2.974e-04
0 10
26.028
15 8
223886 241664
3557376 790.376
790.354 98.794
3.197e-04
0 10
28.029
15 8
223886 241664
3557376 788.936
789.481 98.685
3.409e-04
0 10
30.031
15 8
223886 241664
3557376 786.201
786.107 98.263
3.156e-04
0 10
32.033
15 8
223886 241664
3557376 792.136
792.731 99.091
2.965e-04
0 10
34.035
15 8
223886 241664
3557376 790.356
790.693 98.837
3.202e-04
0 10
36.037
15 8
223886 241664
3557376 789.868
789.714 98.714
3.248e-04
0 10
38.038
15 8
223886 241664
3557376 785.974
787.033 98.379
2.744e-04
0 10
Time /s Threads CPUs Free KBs Total
KBs Max KBs %CPU User %CPU Total
%CPU / CPU LoopTime/s Ld Wait/ms mSize
40.041
15 8
223886 241664
3557376 789.479
788.058 98.507
3.293e-04
0 10
42.042
15 8
223886 241664
3557376 782.507
783.508 97.938
1.827e-04
0 10
44.044
15 8
223886 241664
3557376 792.222
793.141 99.143
3.322e-04
0 10
46.045
15 8
223886 241664
3557376 792.163
790.496 98.812
3.126e-04
0 10
48.046
15 8
223886 241664
3557376 788.175
789.011 98.626
3.265e-04
0 10
50.047
15 8
223886 241664
3557376 794.052
793.869 99.234
3.083e-04
0 10
52.049
15 8
223886 241664
3557376 793.178
793.641 99.205
2.995e-04
0 10
54.050
15 8
223886 241664
3557376 774.625
774.294 96.787
3.467e-04
0 10
56.051
15 8
223886 241664
3557376 780.368
780.860 97.607
2.354e-04
0 10[JWM session] [xtrnaw7@t540p /var/tmp/jwm]$ cpumon -h
usage: cpumon [-c int] [-f str] [-h] [-k int] [-m int] [-s
int] [-t int] [-v int] [-V]
-c int: force calibration (1), need root
-f str: calibration file
(/var/lib/cpumon/calibration.txt)
-h : help message
-k int: cpu id for calibration, -1 means last core
(-1)
-m int: cpu id for monitoring, -1 means last core (0)
-s int: number of second before stopping, -1 means
infinity (-1)
-t int: timer period (5)
-v int: verbose level (1)
-V : show version
[JWM session] [xtrnaw7@t540p /var/tmp/jwm]$ [JWM session] [xtrnaw7@t540p /var/tmp/jwm]$ sudo
cpumon
sudo: cpumon: command not found
[JWM session] [xtrnaw7@t540p /var/tmp/jwm]$ sudo
bin/cpumon
can't read calibration file
(/var/lib/cpumon/calibration.txt)
runnning calibration on cpu 7
calibration max loops: 47994
cpu speed is changing from -0.000 to 2.794
cpu: 34.5% + 35.4% + 46.2% + 39.0%
+ 38.1% + 33.1% + 35.5% + 36.2%
= 297.9%
cpu: 32.4% + 35.6% + 43.7% + 35.5%
+ 32.6% + 32.7% + 32.9% + 32.8%
= 278.0%
cpu: 36.0% + 32.0% + 47.2% + 36.7%
+ 32.4% + 32.8% + 33.9% + 33.1%
= 283.9%
cpu: 43.9% + 42.4% + 43.8% + 29.9%
+ 33.6% + 32.4% + 34.4% + 32.9%
= 293.1%
[xtrnaw7@t540p /var/tmp/jwm/src]$
../bin/cpustat -h
cpustat, version 0.02.11
Usage: cpustat [options] [duration] [count]
-h help
-a calculate CPU utilisation based on all the CPU
ticks
rather than per CPU tick
-c get command name from processes comm field
-d strip directory basename off command information
-D show distribution of CPU utilisation stats at end
-g show grand total of CPU utilisation stats at end
-i ignore cpustat in the statistics
-l show long (full) command information
-n specifies number of tasks to display
-p just show utilisation for a specified PID
-q run quietly, useful with option -r
-r specifies a comma separated values output file to
dump
samples into
-s show short command information
-S timestamp output
-t specifies a task tick count threshold where
samples less
than this are ignored
-T show total CPU utilisation statistics
-x show extra stats (load average, avg cpu freq,
etc)
-X top-like curses based display mode
[xtrnaw7@t540p /var/tmp/jwm/src]$
[xtrnaw7@t540p /var/tmp/jwm/src]$ ../bin/cpustat -c -d
-D -g -n 20
%CPU %USR
%SYS PID S
CPU Time Task
15.69 0.98 14.71
9982 S 1 8.11h VirtualBoxVM
5.88 1.96 3.92 107641
S 3 2.21h VirtualBoxVM
3.92 0.00 3.92 107700
S 6 2.25h VirtualBoxVM
3.92 3.92 0.00
11184 S 4 2.27h slimjet
3.92 3.92 0.00
11322 S 0 1.05h slimjet
2.94 1.96 0.98 262429
S 6 20.49m seamonkey
1.96 0.98
0.98 9954 S 5
15.46m VBoxSVC
1.96 0.98
0.98 9267 S 1
18.08m pulseaudio
1.96 1.96 0.00
11076 S 6 41.00m slimjet
1.96 0.98 0.98 105632
S 4 12.19m Telegram
1.96 0.98
0.98 9670 S 0
18.13m mate-cpufreq-ap
1.96 0.98 0.98
13996 S 1 1.04h java
1.96 1.96 0.00
11158 S 5 1.05h slimjet
1.96 1.96
0.00 2679 S 3
49.22m Xorg
0.98 0.00
0.98 9599 S 0
10.36m top
0.98 0.98 0.00
18661 S 0 1.22m Privileged
Cont
0.98 0.98 0.00
11197 S 6 25.11m slimjet
0.98 0.00
0.98 9948 S
5 5.46m VBoxXPCOMIPCD
0.98 0.00 0.98
14051 S 3 8.50m java
0.98 0.98
0.00 9381 S
3 1.47m mate-terminal
%CPU %USR
%SYS PID S
CPU Time Task
17.17 0.00 17.17
9982 S 1 8.11h VirtualBoxVM
8.08 2.02 6.06 107641
S 3 2.21h VirtualBoxVM
5.05 2.02 3.03 107700
S 6 2.25h VirtualBoxVM
5.05 4.04 1.01
11184 S 4 2.27h slimjet
5.05 3.03 2.02
11322 S 0 1.05h slimjet
3.03 3.03 0.00
11158 S 5 1.05h slimjet
2.02 1.01 1.01
11076 S 6 41.00m slimjet
2.02 2.02 0.00
11009 S 2 41.42m slimjet
2.02 2.02 0.00
13996 S 1 1.04h java
2.02 1.01
1.01 2679 S 3
49.22m Xorg
1.01 1.01 0.00
11485 S 7 7.12m slimjet
1.01 0.00 1.01
11197 S 6 25.11m slimjet
1.01 1.01 0.00
12468 S 6 36.72s slimjet
1.01 1.01 0.00 262429
S 6 20.49m seamonkey
1.01 0.00 1.01 368505
R 6 0.02s cpustat
1.01 1.01 0.00 106032
S 3 5.19m slimjet
1.01 1.01 0.00
10578 S 0 3.07m Web Content
%CPU %USR
%SYS PID S
CPU Time Task
17.00 1.00 16.00
9982 S 1 8.11h VirtualBoxVM
6.00 1.00 5.00 107700
S 6 2.25h VirtualBoxVM
6.00 6.00 0.00 366129
S 6 8.96s slimjet
5.00 5.00 0.00
11485 S 7 7.12m slimjet
5.00 3.00 2.00 107641
S 3 2.21h VirtualBoxVM
4.00 4.00 0.00
11322 S 0 1.05h slimjet
3.00 3.00 0.00
11184 S 4 2.27h slimjet
3.00 2.00 1.00
11486 S 4 7.06m slimjet
3.00 2.00 1.00
13996 S 1 1.04h java
3.00 3.00 0.00
11158 S 5 1.05h slimjet
2.00 1.00 1.00
11633 S 5 1.30m slimjet
2.00 1.00
1.00 9954 S 5
15.46m VBoxSVC
2.00 2.00 0.00
11076 S 6 41.00m slimjet
2.00 1.00 1.00 105632
S 4 12.19m Telegram
2.00 1.00 1.00 368505
R 6 0.04s cpustat
1.00 1.00 0.00
11467 S 4 7.31m slimjet
1.00 1.00 0.00
11483 S 0 7.09m slimjet
1.00 1.00 0.00
11197 S 6 25.11m slimjet
1.00 1.00 0.00
10656 S 0 2.05m Web Content
1.00 0.00
1.00 9267 S 1
18.08m pulseaudio
%CPU %USR
%SYS PID S
CPU Time Task
15.84 0.99 14.85
9982 S 1 8.11h VirtualBoxVM
5.94 1.98 3.96 107641
S 3 2.21h VirtualBoxVM
4.95 0.99 3.96 107700
S 6 2.25h VirtualBoxVM
4.95 2.97 1.98
11322 S 0 1.05h slimjet
3.96 3.96 0.00
11184 S 4 2.27h slimjet
2.97 2.97 0.00
11158 S 5 1.05h slimjet
2.97 1.98
0.99 2679 S 3
49.22m Xorg
1.98 0.99
0.99 9599 S 0
10.36m top
1.98 0.99 0.99
11076 S 6 41.00m slimjet
1.98 0.99 0.99 262429
S 6 20.49m seamonkey
1.98 0.99 0.99
11009 S 2 41.42m slimjet
1.98 0.99 0.99
13996 S 1 1.04h java
0.99 0.99 0.00
11485 S 7 7.12m slimjet
0.99 0.99 0.00
11483 S 0 7.09m slimjet
0.99 0.99 0.00
11197 S 6 25.11m slimjet
0.99 0.99 0.00 105632
S 4 12.19m Telegram
0.99 0.99 0.00 107380
S 2 1.03m mate-terminal
0.99 0.99
0.00 9670 S 0
18.13m mate-cpufreq-ap
0.99 0.99 0.00 366129
S 6 8.97s slimjet
0.99 0.00 0.99 368505
R 6 0.05s cpustat
^C %CPU %USR
%SYS PID S
CPU Time Task
16.13 9.68
6.45 9982 S
1 8.11h VirtualBoxVM
6.45 4.84 1.61
11322 S 0 1.05h slimjet
6.45 3.23 3.23 107641
S 3 2.21h VirtualBoxVM
4.84 4.84 0.00 262429
S 6 20.49m seamonkey
3.23 1.61 1.61 107700
S 6 2.25h VirtualBoxVM
3.23 3.23 0.00
11184 S 4 2.27h slimjet
3.23 1.61 1.61 107380
S 2 1.03m mate-terminal
3.23 1.61
1.61 2679 S 3
49.22m Xorg
1.61 1.61 0.00
11467 S 4 7.31m slimjet
1.61 0.00 1.61
14051 S 3 8.50m java
1.61 1.61 0.00
11076 S 6 41.00m slimjet
1.61 0.00 1.61 105632
S 4 12.19m Telegram
1.61 1.61
0.00 9670 S 0
18.13m mate-cpufreq-ap
1.61 1.61
0.00 9462 S
7 6.56s goa-identity-se
1.61 1.61 0.00
12635 S 7 13.22m slimjet
1.61 1.61
0.00 2519 S 3
10.22m teamviewerd
1.61 0.00 1.61 368505
R 6 0.06s cpustat
1.61 1.61 0.00
13996 S 1 1.04h java
1.61 1.61 0.00
11158 S 5 1.05h slimjet
Grand Total (from 5 samples, 4.6 seconds):
%CPU %USR
%SYS PID S
CPU Time Task
16.38 1.94 14.44
9982 S 1 8.11h VirtualBoxVM
6.25 2.37 3.88 107641
S 3 2.21h VirtualBoxVM
4.74 1.08 3.66 107700
S 6 2.25h VirtualBoxVM
4.74 3.66 1.08
11322 S 0 1.05h slimjet
3.88 3.66 0.22
11184 S 4 2.27h slimjet
2.59 2.59 0.00
11158 S 5 1.05h slimjet
2.16 1.72 0.43 262429
S 6 20.49m seamonkey
2.16 1.51 0.65
13996 S 1 1.04h java
2.16 1.51
0.65 2679 S 3
49.22m Xorg
1.94 1.51 0.43
11076 S 6 41.00m slimjet
1.72 1.72 0.00 366129
S 6 8.97s slimjet
1.51 1.51 0.00
11485 S 7 7.12m slimjet
1.29 0.65 0.65 105632
S 4 12.19m Telegram
1.08 0.22 0.86 368505
R 6 0.06s cpustat
1.08 0.86 0.22 107380
S 2 1.03m mate-terminal
1.08 0.86 0.22
11009 S 2 41.42m slimjet
0.86 0.65 0.22
11197 S 6 25.11m slimjet
0.86 0.43
0.43 9954 S 5
15.46m VBoxSVC
0.86 0.65
0.22 9670 S 0
18.13m mate-cpufreq-ap
0.65 0.43 0.22
11486 S 4 7.06m slimjet
0.65 0.22
0.43 9599 S 0
10.36m top
0.65 0.22
0.43 9267 S 1
18.08m pulseaudio
0.65 0.43
0.22 9262 S 7
14.43m marco
0.43 0.00 0.43
14051 S 3 8.50m java
0.43 0.22 0.22
11633 S 5 1.30m slimjet
0.43 0.43 0.00
11483 S 0 7.09m slimjet
0.43 0.43 0.00
11467 S 4 7.31m slimjet
0.43 0.43 0.00
11262 S 0 6.26m slimjet
0.43 0.43 0.00
11081 S 5 15.46m slimjet
0.43 0.22
0.22 2519 S 3
10.22m teamviewerd
0.22 0.22 0.00 262070
S 4 22.99s slimjet
0.22 0.22 0.00 106032
S 3 5.19m slimjet
0.22 0.22 0.00
18661 S 0 1.22m Privileged
Cont
0.22 0.22 0.00
12635 S 7 13.22m slimjet
0.22 0.22 0.00
12468 S 6 36.72s slimjet
0.22 0.22 0.00
10656 S 0 2.05m Web Content
0.22 0.22 0.00
10630 S 3 1.30m Web Content
0.22 0.22 0.00
10578 S 0 3.07m Web Content
0.22 0.00
0.22 9948 S
5 5.46m VBoxXPCOMIPCD
0.22 0.22
0.00 9462 S
7 6.56s goa-identity-se
0.22 0.22
0.00 9381 S
3 1.47m mate-terminal
0.22 0.00
0.22 1737 S
6 5.57s php-fpm
Distribution of CPU utilisation (per Task):
% CPU Utilisation Count (%)
0.00 - 1.37
1921 97.02
1.37 -
2.74
0 0.00
2.74 -
4.11
35 1.77
4.11 -
5.48
0 0.00
5.48 -
6.85
7 0.35
6.85 -
8.22
7 0.35
8.23 -
9.60
4 0.20
9.60 -
10.97
0 0.00
10.97 -
12.34
1 0.05
12.34 -
13.71
0 0.00
13.71 -
15.08
0 0.00
15.08 -
16.45
1 0.05
16.45 -
17.82
0 0.00
17.82 -
19.19
0 0.00
19.19 -
20.56
0 0.00
20.56 -
21.93
0 0.00
21.94 -
23.31
0 0.00
23.31 -
24.68
0 0.00
24.68 -
26.05
2 0.10
26.05 -
27.42
2 0.10
Distribution of CPU utilisation (per CPU):
CPU# USR% SYS%
0 6.03 1.72
1 3.66 15.52
2 1.72 0.43
3 4.74 5.17
4 5.39 1.08
5 3.66 0.86
6 7.11 5.82
7 2.37 0.22
[xtrnaw7@t540p /var/tmp/jwm/src]$
[JWM session] [xtrnaw7@t540p /var/tmp/jwm]$ darkstat
--help
darkstat 3.0.719 (using libpcap version 1.0.0)
usage: darkstat [ -i interface ]
[ -f filter ]
[ -r capfile ]
[ -p port ]
[ -b bindaddr ]
[ -l network/netmask ]
[ --base path ]
[ --local-only ]
[ --snaplen bytes ]
[ --pppoe ]
[ --syslog ]
[ --verbose ]
[ --no-daemon ]
[ --no-promisc ]
[ --no-dns ]
[ --no-macs ]
[ --no-lastseen ]
[ --chroot dir ]
[ --user username ]
[ --daylog filename ]
[ --import filename ]
[ --export filename ]
[ --pidfile filename ]
[ --hosts-max count ]
[ --hosts-keep count ]
[ --ports-max count ]
[ --ports-keep count ]
[ --highest-port port ]
[ --wait secs ]
[ --hexdump ]
[ --version ]
[ --help ]
Please refer to the darkstat(8) manual page for further
documentation and usage examples.
[JWM session] [xtrnaw7@t540p /var/tmp/jwm]$ sudo darkstat -i eth0 -p 9999--chroot <outputdir>
--export <outputfile> --user <run_user>--chroot /var/tmp/jwm/data
--export darkstat.data --user xtrnaw7[JWM session] [xtrnaw7@t540p /var/tmp/jwm]$ sudo
scripts/darkstat.sh --help
[25.10.2016 18:40 ] ### darkstat.sh started at Tue Oct 25
18:40:31 CEST 2016
darkstat.sh
Function: start or stop darkstat
Usage: darkstat.sh [-v|--verbose]
[-q|--quiet] [-f|--force] [-p|--port darkstat_port]
[-i|--interface interface] [-d|--datadir|--chroot
datadirectory]
[start [darkstat_options]|stop|restart
[darkstat_options]|status|daemon_help]
Parameter
-v - verbose mode
-q - quiet mode
-f - force execution
-p - port for darkstat (default: 667)
-i - interface, default: interface used for the
first default route in the output of "netstat -rn"
-d - data directory for darkstat, default: /tmp
or ${JWM_DIR}/data/darkstat if JWM_DIR is set
darkstat_options - additional options for
starting the darkstat
daemon_help - list the usage help for the
darkstat daemon
To save the output also in a file use the start
parameter:
--chroot <outputdir>
--export <outputfile> --user <run_user>
e.g.
--chroot /var/tmp/jwm/data
--export darkstat.data --user xtrnaw7
The user <run_user> must have write access to
the directory <outputdir>
The script searches the darkstat binary in these
directories:
- the current working directory
- the directory with this script
- the directory ${JWM_DIR}/sbin
- the directory ${PWD}/../sbin
Author:
Bernd Schemmer (Bernd.Schemmer@gmx.de)
[25.10.2016 18:40 ] ### darkstat.sh ended at Tue Oct 25
18:40:31 CEST 2016[JWM session] [xtrnaw7@t540p /var/tmp/jwm]$ sudo
scripts/darkstat.sh status
[25.10.2016 18:40 ] ### darkstat.sh started at Tue Oct 25
18:40:54 CEST 2016
[25.10.2016 18:40 ] Environment variable JWM_DIR not set -
using the directory based on the script directory (scripts)
[25.10.2016 18:40 ] The darkstat base directory is
/var/tmp/jwm
[25.10.2016 18:40 ] The interface used by darkstart is
enp0s25
[25.10.2016 18:40 ] The data directory used by darkstat is
/tmp
[25.10.2016 18:40 ] The darkstat daemon is NOT running
(well, it may be running but it was not started by this
script)
[25.10.2016 18:40 ] ### darkstat.sh ended at Tue Oct 25
18:40:54 CEST 2016
[JWM session] [xtrnaw7@t540p /var/tmp/jwm]$ sudo
scripts/darkstat.sh start
[25.10.2016 18:41 ] ### darkstat.sh started at Tue Oct 25
18:41:01 CEST 2016
[25.10.2016 18:41 ] Environment variable JWM_DIR not set -
using the directory based on the script directory (scripts)
[25.10.2016 18:41 ] The darkstat base directory is
/var/tmp/jwm
[25.10.2016 18:41 ] The interface used by darkstart is
enp0s25
[25.10.2016 18:41 ] The data directory used by darkstat is
/tmp
[25.10.2016 18:41 ] Starting the darkstat daemon ...
[25.10.2016 18:41 ] The port to use for the darkstat daemon
is 667
+ ./sbin/darkstat -p 667 -i enp0s25 --chroot /tmp --pidfile
darkstat.667_enp0s25.pid
+ 2>& 1
[25.10.2016 18:41 ] darkstat daemon started; the PID is
31824
[25.10.2016 18:41 ] Use http://localhost:667 or
http://t540p:667 to access darkstat in your Webbrowser
[25.10.2016 18:41 ] ### darkstat.sh ended at Tue Oct 25
18:41:01 CEST 2016
[JWM session] [xtrnaw7@t540p /var/tmp/jwm]$ sudo
scripts/darkstat.sh status
[25.10.2016 18:41 ] ### darkstat.sh started at Tue Oct 25
18:41:07 CEST 2016
[25.10.2016 18:41 ] Environment variable JWM_DIR not set -
using the directory based on the script directory (scripts)
[25.10.2016 18:41 ] The darkstat base directory is
/var/tmp/jwm
[25.10.2016 18:41 ] The interface used by darkstart is
enp0s25
[25.10.2016 18:41 ] The data directory used by darkstat is
/tmp
[25.10.2016 18:41 ] The darkstat daemon is running; the PID
is 31824
UID PID
PPID C STIME
TTY
TIME CMD
nobody 31824 1 0
18:41 ? 00:00:00
./sbin/darkstat -p 667 -i enp0s25 --chroot /tmp --pidfile
darkstat.667_enp0s25.pid
[25.10.2016 18:41 ] The darkstat daemon is listening on
these ports:
tcp
0 0
0.0.0.0:667
0.0.0.0:*
LISTEN 31824/./sbin/darkst
tcp6
0 0
:::667
:::*
LISTEN 31824/./sbin/darkst
[25.10.2016 18:41 ] ### darkstat.sh ended at Tue Oct 25
18:41:07 CEST 2016
[JWM session] [xtrnaw7@t540p /var/tmp/jwm]$ sudo
scripts/darkstat.sh stop
[25.10.2016 18:41 ] ### darkstat.sh started at Tue Oct 25
18:41:10 CEST 2016
[25.10.2016 18:41 ] Environment variable JWM_DIR not set -
using the directory based on the script directory (scripts)
[25.10.2016 18:41 ] The darkstat base directory is
/var/tmp/jwm
[25.10.2016 18:41 ] The interface used by darkstart is
enp0s25
[25.10.2016 18:41 ] The data directory used by darkstat is
/tmp
[25.10.2016 18:41 ] The darkstat daemon is running; the PID
is 31824
[25.10.2016 18:41 ] Stopping the darkstat daemon ...
[25.10.2016 18:41 ] ### darkstat.sh ended at Tue Oct 25
18:41:11 CEST 2016
[JWM session] [xtrnaw7@t540p /var/tmp/jwm]$ sudo
scripts/darkstat.sh status
[25.10.2016 18:41 ] ### darkstat.sh started at Tue Oct 25
18:41:14 CEST 2016
[25.10.2016 18:41 ] Environment variable JWM_DIR not set -
using the directory based on the script directory (scripts)
[25.10.2016 18:41 ] The darkstat base directory is
/var/tmp/jwm
[25.10.2016 18:41 ] The interface used by darkstart is
enp0s25
[25.10.2016 18:41 ] The data directory used by darkstat is
/tmp
[25.10.2016 18:41 ] The darkstat daemon is NOT running
(well, it may be running but it was not started by this
script)
[25.10.2016 18:41 ] ### darkstat.sh ended at Tue Oct 25
18:41:14 CEST 2016[JWM session] [xtrnaw7@t540p /var/tmp/jwm]$ sudo
scripts/darkstat.sh start --export darkstat.data --user
xtrnaw7
[25.10.2016 18:45 ] ### darkstat.sh started at Tue Oct 25
18:45:16 CEST 2016
[25.10.2016 18:45 ] Environment variable JWM_DIR not set -
using the directory based on the script directory (scripts)
[25.10.2016 18:45 ] The darkstat base directory is
/var/tmp/jwm
[25.10.2016 18:45 ] The interface used by darkstart is
enp0s25
[25.10.2016 18:45 ] The data directory used by darkstat is
/tmp
[25.10.2016 18:45 ] Starting the darkstat daemon ...
[25.10.2016 18:45 ] The port to use for the darkstat daemon
is 667
[25.10.2016 18:45 ] The additional options to use for the
darkstat daemon are "--export darkstat.data --user xtrnaw7"
+ ./sbin/darkstat -p 667 -i enp0s25 --chroot /tmp --pidfile
darkstat.667_enp0s25.pid --export darkstat.data --user
xtrnaw7
+ 2>& 1
[25.10.2016 18:45 ] darkstat daemon started; the PID is
32261
[25.10.2016 18:45 ] Use http://localhost:667 or
http://t540p:667 to access darkstat in your Webbrowser
[25.10.2016 18:45 ] ### darkstat.sh ended at Tue Oct 25
18:45:17 CEST 2016
[JWM session] [xtrnaw7@t540p /var/tmp/jwm]$ sudo
scripts/darkstat.sh stop
[25.10.2016 18:45 ] ### darkstat.sh started at Tue Oct 25
18:45:36 CEST 2016
[25.10.2016 18:45 ] Environment variable JWM_DIR not set -
using the directory based on the script directory (scripts)
[25.10.2016 18:45 ] The darkstat base directory is
/var/tmp/jwm
[25.10.2016 18:45 ] The interface used by darkstart is
enp0s25
[25.10.2016 18:45 ] The data directory used by darkstat is
/tmp
[25.10.2016 18:45 ] The darkstat daemon is running; the PID
is 32261
[25.10.2016 18:45 ] Stopping the darkstat daemon ...
[25.10.2016 18:45 ] ### darkstat.sh ended at Tue Oct 25
18:45:37 CEST 2016
[JWM session] [xtrnaw7@t540p /var/tmp/jwm]$ ls -l
/tmp/darkstat.data
-rw------- 1 xtrnaw7 xtrnaw7 3402 Oct 25 18:45
/tmp/darkstat.data
[JWM session] [xtrnaw7@t540p /var/tmp/jwm]$ [JWM session] [xtrnaw7@t540p /var/tmp/jwm]$ sudo
scripts/darkstat.sh --chroot /var/tmp/test/ start
--export darkstat.data --user xtrnaw7
[25.10.2016 18:46 ] ### darkstat.sh started at Tue Oct 25
18:46:52 CEST 2016
[25.10.2016 18:46 ] Environment variable JWM_DIR not set -
using the directory based on the script directory (scripts)
[25.10.2016 18:46 ] The darkstat base directory is
/var/tmp/jwm
[25.10.2016 18:46 ] The interface used by darkstart is
enp0s25
[25.10.2016 18:46 ] The data directory used by darkstat is
/var/tmp/test/
[25.10.2016 18:46 ] Starting the darkstat daemon ...
[25.10.2016 18:46 ] The port to use for the darkstat daemon
is 667
[25.10.2016 18:46 ] The additional options to use for the
darkstat daemon are "--export darkstat.data --user xtrnaw7"
+ ./sbin/darkstat -p 667 -i enp0s25 --chroot /var/tmp/test/
--pidfile darkstat.667_enp0s25.pid --export darkstat.data
--user xtrnaw7
+ 2>& 1
[25.10.2016 18:46 ] darkstat daemon started; the PID is
32500
[25.10.2016 18:46 ] Use http://localhost:667 or
http://t540p:667 to access darkstat in your Webbrowser
[25.10.2016 18:46 ] ### darkstat.sh ended at Tue Oct 25
18:46:52 CEST 2016
[JWM session] [xtrnaw7@t540p /var/tmp/jwm]$
# Note: You must use the --chroot parameter for every call
of the script (because the PID filename is relative to the
directory in the --chroot parameter)
[JWM session] [xtrnaw7@t540p /var/tmp/jwm]$ sudo
scripts/darkstat.sh stop
[25.10.2016 18:47 ] ### darkstat.sh started at Tue Oct 25
18:47:01 CEST 2016
[25.10.2016 18:47 ] Environment variable JWM_DIR not set -
using the directory based on the script directory (scripts)
[25.10.2016 18:47 ] The darkstat base directory is
/var/tmp/jwm
[25.10.2016 18:47 ] The interface used by darkstart is
enp0s25
[25.10.2016 18:47 ] The data directory used by darkstat is
/tmp
[25.10.2016 18:47 ] The darkstat daemon is NOT running
(well, it may be running but it was not started by this
script)
[25.10.2016 18:47 ] ### darkstat.sh ended at Tue Oct 25
18:47:01 CEST 2016
[JWM session] [xtrnaw7@t540p /var/tmp/jwm]$ sudo
scripts/darkstat.sh --chroot /var/tmp/test/ stop
[25.10.2016 18:47 ] ### darkstat.sh started at Tue Oct 25
18:47:14 CEST 2016
[25.10.2016 18:47 ] Environment variable JWM_DIR not set -
using the directory based on the script directory (scripts)
[25.10.2016 18:47 ] The darkstat base directory is
/var/tmp/jwm
[25.10.2016 18:47 ] The interface used by darkstart is
enp0s25
[25.10.2016 18:47 ] The data directory used by darkstat is
/var/tmp/test/
[25.10.2016 18:47 ] The darkstat daemon is running; the PID
is 32500
[25.10.2016 18:47 ] Stopping the darkstat daemon ...
[25.10.2016 18:47 ] ### darkstat.sh ended at Tue Oct 25
18:47:15 CEST 2016
[JWM session] [xtrnaw7@t540p /var/tmp/jwm]$ ls -l
/var/tmp/test/darkstat.data
-rw------- 1 xtrnaw7 xtrnaw7 3877 Oct 25 18:47
/var/tmp/test/darkstat.data
[JWM session] [xtrnaw7@t540p /var/tmp/jwm]$ [JWM session] [xtrnaw7@t540p /var/tmp/jwm/scripts]$
sudo ./darkstat.sh daemon_help
[25.10.2016 19:07 ] ### darkstat.sh started at Tue Oct 25
19:07:02 CEST 2016
[25.10.2016 19:07 ] Environment variable JWM_DIR not set -
using the directory based on the script directory (.)
[25.10.2016 19:07 ] The darkstat base directory is
/var/tmp/jwm
[25.10.2016 19:07 ] The interface used by darkstart is
enp0s25
[25.10.2016 19:07 ] The data directory used by darkstat is
/tmp
[25.10.2016 19:07 ] Additional parameter supported by the
darkstat daemon are:
darkstat 3.0.719 (using libpcap version 1.0.0)
usage: darkstat [ -i interface ]
[ -f filter ]
[ -r capfile ]
[ -p port ]
[ -b bindaddr ]
[ -l network/netmask ]
[ --base path ]
[ --local-only ]
[ --snaplen bytes ]
[ --pppoe ]
[ --syslog ]
[ --verbose ]
[ --no-daemon ]
[ --no-promisc ]
[ --no-dns ]
[ --no-macs ]
[ --no-lastseen ]
[ --chroot dir ]
[ --user username ]
[ --daylog filename ]
[ --import filename ]
[ --export filename ]
[ --pidfile filename ]
[ --hosts-max count ]
[ --hosts-keep count ]
[ --ports-max count ]
[ --ports-keep count ]
[ --highest-port port ]
[ --wait secs ]
[ --hexdump ]
[ --version ]
[ --help ]
Please refer to the darkstat(8) manual page for further
documentation and usage examples.
[25.10.2016 19:07 ] ### darkstat.sh ended at Tue Oct 25
19:07:02 CEST 2016
[JWM session] [xtrnaw7@t540p /var/tmp/jwm/scripts]$ [xtrnaw7@t540p /data/download/dhtest-master]$ ./dhtest
-h
Usage: ./dhtest [ options ]
-m mac_address
-N
#
always use interface's MAC address in Ethernet frame
-r, --release
# Releases obtained
DHCP IP for corresponding MAC
-L, --option51-lease_time [ Lease_time ] # Option 51.
Requested lease time in secondes
-I, --option50-ip [ IP_address
] # Option 50 IP address on DHCP discover
-o, --option60-vci [ VCI_string
] # Vendor Class Idendifier string
-h, --option12-hostname [ hostname_string ] # Client
hostname string
-c, --custom-dhcp-option [ option_format ] #
option_format -
option_number,type_of_option_value(str|num|hex|ip),option_value
-v, --vlan [
vlan_id ] # VLAN ID. Range(1 - 4094)
-t, --tos [
TOS_value ] # IP header TOS value
-i, --interface [ interface
] # Interface to use. Default eth0
-T, --timeout [
cmd_timeout ] # Command returns within
specified timout in seconds
-b, --bind-ip
# Listens on the
obtained IP. Supported protocols - ARP and ICMP
-k, --bind-timeout [ timeout
] # Listen timout in seconds. Default 3600
seconds
-f, --bcast_flag
# Sets broadcast flag on DHCP discover
and request
-d, --fqdn-domain-name [ fqdn
] # FQDN domain name to use
-n, --fqdn-server-not-update
# Sets FQDN server not update flag
-s, --fqdn-server-update-a
# Sets FQDN server update flag
-p, --padding
# Add padding to
packet to be at least 300 bytes
-P, --port [
port ] # Use port instead of 67
-g, --giaddr [
giaddr ] # Use giaddr instead of 0.0.0.0
-u, --unicast [
ip ] # Unicast request,
IP is optional. If not specified, the interface address will
be used.
-a, --nagios
# Nagios output
format.
-S, --server [
address ] # Use server address instead of
255.255.255.255
-j, --json
# Set the output
format to json
-D, --decline
# Declines obtained
DHCP IP for corresponding MAC
-V, --verbose
# Prints DHCP offer
and ack details
dhtest version 1.5
[xtrnaw7@t540p /data/download/dhtest-master]$
[xtrnaw7@t540p /var/tmp/jwm/src/dmidecode-3.0]$
dmidecode -h
Usage: dmidecode [OPTIONS]
Options are:
-d, --dev-mem FILE Read memory
from device FILE (default: /dev/mem)
-h,
--help
Display this help text and exit
-q,
--quiet
Less verbose output
-s, --string KEYWORD Only display the
value of the given DMI string
-t, --type
TYPE Only display
the entries of given type
-u,
--dump
Do not decode the entries
--dump-bin FILE
Dump the DMI data to a binary file
--from-dump FILE Read
the DMI data from a binary file
--no-sysfs
Do not attempt to read DMI data from sysfs files
-V,
--version
Display the version and exitdropwatch is a tool to improve the ability for developers and system administrator to diagnose problems in the Linux Networking stack, specifically in our ability to diagnose where packets are getting dropped.
The usage for dstat is:
xtrnaw7@t61p Thu Oct 31 20:29:18 /var/tmp/jwm/bin $ ./dstat
--help
Usage: dstat [-afv] [options..] [delay [count]]
Versatile tool for generating system resource statistics
Dstat options:
-c,
--cpu
enable cpu stats
-C
0,3,total
include cpu0, cpu3 and total
-d,
--disk
enable disk stats
-D
total,hda
include hda and total
-g,
--page
enable page stats
-i,
--int
enable interrupt stats
-I
5,eth2
include int5 and interrupt used by eth2
-l,
--load
enable load stats
-m,
--mem
enable memory stats
-n,
--net
enable network stats
-N
eth1,total
include eth1 and total
-p,
--proc
enable process stats
-r,
--io
enable io stats (I/O requests completed)
-s,
--swap
enable swap stats
-S
swap1,total
include swap1 and total
-t,
--time
enable time/date output
-T,
--epoch
enable time counter (seconds since epoch)
-y,
--sys
enable system stats
--aio
enable aio stats
--fs, --filesystem enable fs
stats
--ipc
enable ipc stats
--lock
enable lock stats
--raw
enable raw stats
--socket
enable socket stats
--tcp
enable tcp stats
--udp
enable udp stats
--unix
enable unix stats
--vm
enable vm stats
--plugin-name
enable plugins by plugin name (see manual)
--list
list all available plugins
-a,
--all
equals -cdngy (default)
-f,
--full
automatically expand -C, -D, -I, -N and -S lists
-v,
--vmstat
equals -pmgdsc -D total
--float
force float values on screen
--integer
force integer values on screen
--bw, --blackonwhite change colors for
white background terminal
--nocolor
disable colors (implies --noupdate)
--noheaders
disable repetitive headers
--noupdate
disable intermediate updates
--output
file
write CSV output to file
delay is the delay in seconds between each update (default:
1)
count is the number of updates to display before exiting
(default: unlimited)[JWM session] [xtrnaw7@t540p /var/tmp/jwm/src]$ fiemap
/boot/initramfs-4.7.7-100.fc23.x86_64.img
File /boot/initramfs-4.7.7-100.fc23.x86_64.img has 2
extents:
#
Logical
Physical
Length
Flags
0: 0000000000000000 0000000007600400
0000000000a00000 0000
1: 0000000000a00000 000000000a800400
0000000000833800 0001
[JWM session] [xtrnaw7@t540p /var/tmp/jwm/src]$ fiemap
/data/VirtualBox_Harddisks/sles11/SLES\ 11.vdi
File /data/VirtualBox_Harddisks/sles11/SLES 11.vdi has 48
extents:
#
Logical
Physical
Length
Flags
0: 0000000000000000 0000009bd3800000
0000000008000000 0000
1: 0000000008000000 0000009bdb800000
0000000008000000 0000
2: 0000000010000000 0000009be3800000
0000000008000000 0000
3: 0000000018000000 0000009beb800000
0000000008000000 0000
4: 0000000020000000 0000009bf3800000
0000000008000000 0000
5: 0000000028000000 0000009bfb800000
0000000004800000 0000
6: 000000002c800000 0000009c08000000
0000000008000000 0000
7: 0000000034800000 0000009c10000000
0000000008000000 0000
8: 000000003c800000 0000009c18000000
0000000008000000 0000
9: 0000000044800000 0000009c20000000
0000000008000000 0000
10: 000000004c800000 0000009c28000000
0000000008000000 0000
11: 0000000054800000 0000009c30000000
0000000008000000 0000
12: 000000005c800000 0000009c38000000
0000000008000000 0000
13: 0000000064800000 0000009c40000000
0000000008000000 0000
14: 000000006c800000 0000009c48000000
0000000008000000 0000
15: 0000000074800000 0000009c50000000
0000000008000000 0000
16: 000000007c800000 0000009c58000000
0000000008000000 0000
17: 0000000084800000 0000009c60000000
0000000008000000 0000
18: 000000008c800000 0000009c68000000
0000000008000000 0000
19: 0000000094800000 0000009c70000000
0000000008000000 0000
20: 000000009c800000 0000009c78000000
0000000008000000 0000
21: 00000000a4800000 0000009c88000000
0000000008000000 0000
22: 00000000ac800000 0000009c90000000
0000000008000000 0000
23: 00000000b4800000 0000009c98000000
0000000008000000 0000
24: 00000000bc800000 0000009ca0000000
0000000008000000 0000
25: 00000000c4800000 0000009ca8000000
0000000008000000 0000
26: 00000000cc800000 0000009cb0000000
0000000008000000 0000
27: 00000000d4800000 0000009cb8000000
0000000008000000 0000
28: 00000000dc800000 0000009cc0000000
0000000008000000 0000
29: 00000000e4800000 0000009cc8000000
0000000008000000 0000
30: 00000000ec800000 0000009cd0000000
0000000008000000 0000
31: 00000000f4800000 0000009cd8000000
0000000008000000 0000
32: 00000000fc800000 0000009ce0000000
0000000008000000 0000
33: 0000000104800000 0000009ce8000000
0000000008000000 0000
34: 000000010c800000 0000009cf0000000
0000000008000000 0000
35: 0000000114800000 0000009cf8000000
0000000008000000 0000
36: 000000011c800000 0000009d08000000
0000000008000000 0000
37: 0000000124800000 0000009d10000000
0000000008000000 0000
38: 000000012c800000 0000009d18000000
0000000008000000 0000
39: 0000000134800000 0000009d20000000
0000000008000000 0000
40: 000000013c800000 0000009d28000000
0000000008000000 0000
41: 0000000144800000 0000009d30000000
0000000008000000 0000
42: 000000014c800000 0000009d38000000
0000000008000000 0000
43: 0000000154800000 0000009d40000000
0000000008000000 0000
44: 000000015c800000 0000009d48000000
0000000008000000 0000
45: 0000000164800000 0000009d50000000
0000000008000000 0000
46: 000000016c800000 0000009d58000000
0000000008000000 0000
47: 0000000174800000 0000009d60000000
0000000005d09000 0001xtrnaw7@t61p Thu Oct 31 20:30:28 /var/tmp/jwm/bin $
./fio --help
fio-2.1.2
./fio [options] [job options] <job file(s)>
--debug=options Enable debug
logging. May be one/more of:
process,file,io,mem,blktrace,verify,random,parse,
diskutil,job,mutex,profile,time,net
--parse-only
Parse options only, don't start any IO
--output Write
output to file
--runtime
Runtime in seconds
--latency-log
Generate per-job latency logs
--bandwidth-log Generate per-job
bandwidth logs
--minimal
Minimal (terse) output
--output-format=x Output format
(terse,json,normal)
--terse-version=x Set terse version
output format to 'x'
--version Print
version info and exit
--help Print
this page
--cpuclock-test Perform
test/validation of CPU clock
--cmdhelp=cmd
Print command help, "all" for all of them
--enghelp=engine Print ioengine
help, or list available ioengines
--enghelp=engine,cmd Print help for
an ioengine cmd
--showcmd Turn a
job file into command line options
--eta=when When
ETA estimate should be printed
May be "always",
"never" or "auto"
--eta-newline=time Force a new line
for every 'time' period passed
--status-interval=t Force full
status dump every 't' period passed
--readonly Turn
on safety read-only checks, preventing writes
--section=name Only run specified
section in job file
--alloc-size=kb Set smalloc pool to
this size in kb (def 1024)
--warnings-fatal Fio parser
warnings are fatal
--max-jobs=nr
Maximum number of threads/processes to support
--server=args
Start a backend fio server
--daemonize=pidfile Background fio
server, write pid to file
--client=hostname Talk to remote
backend fio server at hostname
--idle-prof=option Report cpu
idleness on a system or percpu basis
(option=system,percpu) or run unit work
calibration only (option=calibrate)
Fio was written by Jens Axboe <jens.axboe@oracle.com>
Jens Axboe <jaxboe@fusionio.com>[JWM session] [xtrnaw7@t540p /var/tmp/jwm/src]$
fnotifystat -h
fnotifystat, version 0.01.16
Options are:
-c cumulative totals over
time
-d strip directory off the
filenames
-D order stats by unique
device
-f force output
-h show this help
-i specify pathnames to
include on path events
-I order stats by unique
device and inode
-m merge events on same file
and pid in same second
-n no stats, just -v verbose
mode only
-p PID collect stats for just process with pid PID
-P sort stats by process ID
-s disable scaling of file
counts
-t N show just the busiest N files
-T show timestamp
-v verbose mode, dump out all
file activity
-x specify pathnames to
exclude on path events
[JWM session] [xtrnaw7@t540p /var/tmp/jwm/src]$ [JWM session] [xtrnaw7@t540p /var/tmp/jwm/src]$ sudo
../sbin/fnotifystat -i /var/log
Total Open Close Read
Write PID
Process
Pathname
4.0 1.0
1.0 2.0 0.0 24828
<unknown> /var/log
4.0 1.0
1.0 2.0 0.0 24827
<unknown> /var/log
Total Open Close Read
Write PID
Process
Pathname
4.0 1.0
1.0 2.0 0.0 24831
<unknown> /var/log
Total Open Close Read
Write PID
Process
Pathname
6.0 0.0
0.0 0.0 6.0
1335 rsyslogd
/var/log/messages
6.0 0.0
0.0 0.0 6.0
1335 rsyslogd
/var/log/secure
3.0 0.0
0.0 0.0 3.0
1257
auditd
/var/log/audit/audit.log
2.0 1.0
0.0 1.0 0.0 24852
more
/var/log/messages
Total Open Close Read
Write PID
Process
Pathname
4.0 0.0
0.0 0.0 4.0
1335 rsyslogd
/var/log/messages
2.0 0.0
0.0 0.0 2.0
1257
auditd
/var/log/audit/audit.log
2.0 0.0
0.0 0.0 2.0
1335 rsyslogd
/var/log/secure
1.0 0.0
1.0 0.0 0.0 24852
more
/var/log/messages
^C[JWM session] [xtrnaw7@t540p /var/tmp/jwm/src]$ [xtrnaw7@t540p /var/tmp/jwm/src/forkstat-0.02.05]$
./forkstat -h
forkstat, version 0.02.05
usage: ./forkstat [-d|-D|-e|-E|-g|-h|-l|-s|-S|-q]
-d strip off directory path from process
name.
-D specify run duration in seconds.
-e select which events to monitor.
-E equivalent to -e all.
-g show glyphs for event types.
-h show this help.
-l force stdout line buffering.
-r run with real time FIFO scheduler.
-s show short process name.
-S show event statistics at end of the
run.
-q run quietly and enable -S option.
-x show extra process information.
[xtrnaw7@t540p /var/tmp/jwm/src/forkstat-0.02.05]$
[JWM session] [xtrnaw7@t540p /var/tmp/jwm]$ sudo
sbin/forkstat -sS -D 5
Time Event PID
Info Duration Process
21:20:43 fork 1944
parent
bash
21:20:43 fork 5562
child
bash
21:20:43 exec
5562
/usr/sbin/tc
21:20:43 exit 5562
0 0.001 /usr/sbin/tc
21:20:44 fork 1944
parent
bash
21:20:44 fork 5563
child
bash
21:20:44 exec
5563
/usr/sbin/tc
21:20:44 exit 5563
0 0.001 /usr/sbin/tc
21:20:44 clone 1
parent
/usr/lib/systemd/systemd
21:20:44 clone 5564
thread
/usr/lib/systemd/systemd
21:20:44 exit 5564
0 0.000 /usr/lib/systemd/systemd
21:20:45 fork 1944
parent
bash
21:20:45 fork 5565
child
bash
21:20:45 exec
5565
/usr/sbin/tc
21:20:45 exit 5565
0 0.001 /usr/sbin/tc
21:20:45 clone 1
parent
/usr/lib/systemd/systemd
21:20:45 clone 5566
thread
/usr/lib/systemd/systemd
21:20:45 exit 5566
0 0.000 /usr/lib/systemd/systemd
21:20:45 clone 1422
parent
/usr/sbin/NetworkManager
21:20:45 clone 5567
thread
/usr/sbin/NetworkManager
21:20:45 exit 5554
0 unknown sleep
21:20:45 fork 4711
parent
/bin/bash
21:20:45 fork 5568
child
/bin/bash
21:20:45 exit 5568
0 0.000 /bin/bash
21:20:45 fork 4711
parent
/bin/bash
21:20:45 fork 5569
child
/bin/bash
21:20:45 exec
5569
/usr/bin/esmtp
21:20:45 exit 5569 19968
0.002 /usr/bin/esmtp
21:20:45 fork 4711
parent
/bin/bash
21:20:45 fork 5570
child
/bin/bash
21:20:45 exec
5570
expr
21:20:45 exit 5570
0 0.001 expr
21:20:45 fork 4711
parent
/bin/bash
21:20:45 fork 5571
child
/bin/bash
21:20:45 exec
5571
sleep
21:20:46 fork 1944
parent
bash
21:20:46 fork 5572
child
bash
21:20:46 exec
5572
/usr/sbin/tc
21:20:46 exit 5572
0 0.001 /usr/sbin/tc
21:20:46 clone 1
parent
/usr/lib/systemd/systemd
21:20:46 clone 5573
thread
/usr/lib/systemd/systemd
21:20:46 exit 5573
0 0.000 /usr/lib/systemd/systemd
21:20:46 fork 2
parent
[kthreadd]
21:20:46 fork 5574
child
[kworker/u16:7]
21:20:46 exit 5479
0 unknown /usr/lib64/firefox/firefox
21:20:47 fork 1944
parent
bash
Time Event PID
Info Duration Process
21:20:47 fork 5575
child
bash
21:20:47 exec
5575
/usr/sbin/tc
21:20:47 exit 5575
0 0.001 /usr/sbin/tc
21:20:47 clone 1
parent
/usr/lib/systemd/systemd
21:20:47 clone 5576
thread
/usr/lib/systemd/systemd
21:20:47 exit 5576
0 0.000 /usr/lib/systemd/systemd
[JWM session] [xtrnaw7@t540p /var/tmp/jwm]$ xtrnaw7@t540p /var/tmp/jwm/src/eventstat-0.04.04]$
./eventstat -h
eventstat, version 0.04.04
Usage: eventstat [options] [duration] [count]
Options are:
-c report
cumulative events rather than events per second.
-C report event
count rather than event per second in CSV output.
-d remove
pathname from long process name in CSV output.
-h print this
help.
-l use long
cmdline text from /proc/pid/cmdline for process name.
-n events specifies number of
events to display.
-q run quietly,
useful with option -r.
-r filename specifies a comma
separated values (CSV) output file
to dump samples into.
-s use short
process name from /proc/pid/cmdline for process name.
-S calculate
min, max, average and standard deviation in CSV
output.
-t threshold samples less than the
specified threshold are ignored.
-T enable 'top'
mode rather than a scrolling output.
-w add time
stamp (when events occurred) to output.
[xtrnaw7@t540p /var/tmp/jwm/src/eventstat-0.04.04]$
[JWM session] [xtrnaw7@t540p /var/tmp/jwm/src]$ sudo
../sbin/eventstat -c -C -l 1 5
Events PID
Task
Init
Function
Callback
99 1691
/opt/teamviewer/tv_bin/teamviewerd
schedule_hrtimeout_range_clock
hrtimer_wakeup
99 14663
/usr/lib64/firefox/plugin-containe
schedule_hrtimeout_range_clock
hrtimer_wakeup
61 3287
/tools/jre1.8_0.101/bin/java -jar
futex_wait_queue_me
hrtimer_wakeup
60 14103
/usr/lib64/firefox/firefox
futex_wait_queue_me
hrtimer_wakeup
50 24351 ./usr/sbin/netdata
-P /tmp/netdata
do_nanosleep
hrtimer_wakeup
34 7
[rcu_sched]
rcu_gp_kthread
process_timeout
26 14078
/usr/lib64/firefox/firefox
futex_wait_queue_me
hrtimer_wakeup
21 3279
/tools/jre1.8_0.101/bin/java -jar
futex_wait_queue_me
hrtimer_wakeup
21 3233 java -Xms16m
-Xmx320m -Djava.libra
futex_wait_queue_me
hrtimer_wakeup
10 1678
/usr/libexec/Xorg -background none
schedule_hrtimeout_range_clock
hrtimer_wakeup
7 18193
mate-terminal
schedule_hrtimeout_range_clock
hrtimer_wakeup
4 1694
/opt/teamviewer/tv_bin/teamviewerd
futex_wait_queue_me
hrtimer_wakeup
4 1693
/opt/teamviewer/tv_bin/teamviewerd
futex_wait_queue_me
hrtimer_wakeup
3 0
[swapper/0]
rpm_suspend
pm_suspend_timer_fn
2 0
[swapper/5]
ehci_enable_event
ehci_hrtimer_func
2 13420
/usr/lib64/virtualbox/VirtualBox
futex_wait_queue_me
hrtimer_wakeup
2 3284
/tools/jre1.8_0.101/bin/java -jar
schedule_hrtimeout_range_clock
hrtimer_wakeup
2 5866
/data/tools/seamonkey/seamonkey-bi
futex_wait_queue_me
hrtimer_wakeup
2 1309
/usr/libexec/accounts-daemon
schedule_hrtimeout_range_clock
hrtimer_wakeup
2 0
[swapper/6]
clocksource_watchdog
clocksource_watchdog
2 13409
/usr/lib64/virtualbox/VBoxSVC --au
futex_wait_queue_me
hrtimer_wakeup
2 3235 java
-Xms16m -Xmx320m -Djava.libra
schedule_hrtimeout_range_clock
hrtimer_wakeup
2 0
[swapper/0]
ehci_enable_event
ehci_hrtimer_func
2 13415
/usr/lib64/virtualbox/VBoxSVC --au
futex_wait_queue_me
hrtimer_wakeup
1 2157
caja
schedule_hrtimeout_range_clock
hrtimer_wakeup
1 20249
[kworker/0:1]
ehci_enable_event
ehci_hrtimer_func
1 3244 java
-Xms16m -Xmx320m -Djava.libra
futex_wait_queue_me
hrtimer_wakeup
1 3224 java
-Xms16m -Xmx320m -Djava.libra
futex_wait_queue_me
hrtimer_wakeup
1 1 /usr/lib/systemd/systemd
--switche
do_timerfd_settime
timerfd_tmrproc
1 20249
[kworker/0:1]
e1000_watchdog_task
e1000_watchdog
1 3275
/tools/jre1.8_0.101/bin/java -jar
futex_wait_queue_me
hrtimer_wakeup
1 24367 /usr/bin/python
/var/tmp/jwm/netda
schedule_hrtimeout_range_clock
hrtimer_wakeup
1 15886
/usr/libexec/goa-identity-service
schedule_hrtimeout_range_clock
hrtimer_wakeup
1 3243 java
-Xms16m -Xmx320m -Djava.libra
futex_wait_queue_me
hrtimer_wakeup
1 2457 syndaemon
-i 0.5 -K
-R
schedule_hrtimeout_range_clock
hrtimer_wakeup
1 0
[swapper/2]
rpm_suspend
pm_suspend_timer_fn
1 3248 java
-Xms16m -Xmx320m -Djava.libra
futex_wait_queue_me
hrtimer_wakeup
1 3247 java
-Xms16m -Xmx320m -Djava.libra
futex_wait_queue_me
hrtimer_wakeup
1 24497 /usr/bin/python
/var/tmp/jwm/netda
schedule_hrtimeout_range_clock
hrtimer_wakeup
1 3245 java
-Xms16m -Xmx320m -Djava.libra
futex_wait_queue_me
hrtimer_wakeup
1 13916
/usr/lib64/firefox/plugin-containe
futex_wait_queue_me
hrtimer_wakeup
1 3246 java
-Xms16m -Xmx320m -Djava.libra
futex_wait_queue_me
hrtimer_wakeup
1 13419
/usr/lib64/virtualbox/VBoxSVC --au
futex_wait_queue_me
hrtimer_wakeup
1 20249
[kworker/0:1]
queue_delayed_work_on
delayed_work_timer_fn
1 16491 bash
/var/tmp/jwm/netdata/usr/libe
do_setitimer
it_real_fn
1 13427
/usr/lib64/virtualbox/VBoxSVC --au
futex_wait_queue_me
hrtimer_wakeup
1 3277
/tools/jre1.8_0.101/bin/java -jar
futex_wait_queue_me
hrtimer_wakeup
1 24354
./usr/sbin/netdata -P /tmp/netdata
do_nanosleep
hrtimer_wakeup
1 1652
/usr/sbin/httpd
-DFOREGROUND
schedule_hrtimeout_range_clock
hrtimer_wakeup
1 3249 java
-Xms16m -Xmx320m -Djava.libra
futex_wait_queue_me
hrtimer_wakeup
1 810
/sbin/multipathd
do_nanosleep
hrtimer_wakeup
1 1682
/opt/teamviewer/tv_bin/teamviewerd
do_nanosleep
hrtimer_wakeup
1 3270
/tools/jre1.8_0.101/bin/java -jar
futex_wait_queue_me
hrtimer_wakeup
1 20249
[kworker/0:1]
msleep
process_timeout
1 24356
./usr/sbin/netdata -P /tmp/netdata
do_nanosleep
hrtimer_wakeup
1 24498 /usr/bin/python
/var/tmp/jwm/netda
schedule_hrtimeout_range_clock
hrtimer_wakeup
1 3042 gpg-agent
--homedir /home/xtrnaw7/
schedule_hrtimeout_range_clock
hrtimer_wakeup
1 3250 java
-Xms16m -Xmx320m -Djava.libra
futex_wait_queue_me
hrtimer_wakeup
1 19553
[kworker/5:1]
ehci_enable_event
ehci_hrtimer_func
1 2775
/usr/lib64/thunderbird/thunderbird
futex_wait_queue_me
hrtimer_wakeup
1 2254
/usr/bin/cairo-dock
schedule_hrtimeout_range_clock
hrtimer_wakeup
1 19174 adb -P 5037
fork-server server --r
do_nanosleep
hrtimer_wakeup
1 14678
/usr/lib64/firefox/plugin-containe
futex_wait_queue_me
hrtimer_wakeup
1 13
[watchdog/0]
enqueue_task_rt
sched_rt_period_timer
1 5287
top
schedule_hrtimeout_range_clock
hrtimer_wakeup
1 392
systemd-udevd
gen6_read32
intel_uncore_fw_release_timer
1 3276
/tools/jre1.8_0.101/bin/java -jar
futex_wait_queue_me
hrtimer_wakeup
1 64
[watchdog/7]
watchdog_enable
watchdog_timer_fn
1 16611
[kworker/u16:1]
queue_delayed_work_on
delayed_work_timer_fn
1 19553
[kworker/5:1]
msleep
process_timeout
1 3274
/tools/jre1.8_0.101/bin/java -jar
futex_wait_queue_me
hrtimer_wakeup
1 1707
/opt/teamviewer/tv_bin/teamviewerd
schedule_hrtimeout_range_clock
hrtimer_wakeup
1 56
[watchdog/6]
watchdog_enable
watchdog_timer_fn
1 24352
./usr/sbin/netdata -P /tmp/netdata
do_nanosleep
hrtimer_wakeup
1 12989
/var/tmp/jwm/netdata/usr/libexec/n
do_nanosleep
hrtimer_wakeup
570 Total events, 569.43 events/sec (kernel: 53.95,
userspace: 515.48)
Using eventstat in top mode:
[JWM session] [xtrnaw7@t540p /var/tmp/jwm/src]$ sudo
../sbin/eventstat -T
Using faultstat in top like mode:
[xtrnaw7@t540p /var/tmp/jwm/src]$ ../bin/faultstat
-t -d -a -s
xtrnaw7@t61p Thu Oct 31 20:31:37 /var/tmp/jwm/bin $
./fspy --help
Usage: fspy [options] [file/dir]
Options:
-F, --filter STRING/REGEX a string
or regular expression which will be used to filter the
output.
(the regex will be matched against the
whole path e.g. [/etc/passwd])
-I, --inverted STRING/REGEX its the
same like -F/--filter but inverted. you can combine both.
e.g. -F '.conf' -I 'wvdial.conf' will
filter for files with ".conf"
in its name but without "wvdial.conf" in
it.
-R, --recursive NUMBER enables the
recursive engine to look at a depth of NUMBER.
-A, --adaptive
(HIGHLY-EXPERIMENTAL) enables the
adaptive mode. e.g. if new items will be added
within the path fspy
will automatically add those items to the watch list.
-D, --diff VALUE
(EXPERIMENTAL) enables the diffing feature.
VALUE may be a comma
separated list of:
s - element size
(byte)
A - last access time
(e.g. Mon Jul 21 21:32:31 2008)
M - last modification
time (e.g. Mon Jul 21 21:32:31 2008)
S - last status change
time (e.g. Mon Jul 21 21:32:31 2008)
O - permissions
(octal)
U - owner (uid)
G - group (gid)
I - inode number
D - device id
-T, --type VALUE
specifies the type of objects to look for.
VALUE may be a comma
separated list of:
f - regular file
d - directory
s - symlink
p - FIFO/pipe
c - character device
b - block device
o - socket
default is any.
-O, --output VALUE
specifies output format.
VALUE may be a comma
separated list of:
f - filename
p - path
d - access description
t - element type
s - element size
(byte)
w - watch descriptor
(inotify manpage)
c - cookie (inotify
manpage)
m - access mask
(inotify manpage | src/fsevents.h)
l - len (inotify
manpage)
A - last access time
(e.g. Mon Jul 21 21:32:31 2008)
M - last modification
time (e.g. Mon Jul 21 21:32:31 2008)
S - last status change
time (e.g. Mon Jul 21 21:32:31 2008)
O - permissions
(octal)
U - owner (uid)
G - group (gid)
I - inode number
D - device id
T - date and time (for
this event) (e.g. Tue Mar 25 09:23:16 CET 2008)
e.g.: '[,T,],
,d,:,p,f' would result in:
'[Mon Sep 1
12:31:25 2008] file was opened:/etc/passwd'
(take a look at the
README).
-h, --help
this short help.
--version
version information.[xtrnaw7@t540p /var/tmp/jwm/src]$ ../sbin/health-check
-h
health-check, version 0.03.09
Usage: health-check [options] [command [options]]
Options are:
-b brief (terse)
output
-c
find all child processes on start-up
(only useful with -p option)
-d
specify the analysis duration in seconds
(default is 60 seconds)
-f follow
fork/vfork/clone system calls
-h
show this help
-p pid[,pid] specify process id(s) or process
name(s) to be traced
-m max
specify maximum number of system calls to trace
(default is 1000000)
-o file output
results to a json data file
-r
resolve IP addresses
-u user run
command as a specified user
-v
verbose output
-w
monitor wakelock count
-W
monitor wakelock usage (has overhead)
[xtrnaw7@t540p /var/tmp/jwm/src]$
[[JWM session] [xtrnaw7@t540p /var/tmp/jwm]$ sudo
/var/tmp/jwm/sbin/health-check uname
Linux
CPU usage (in terms of 1 CPU):
PID
Process
USR% SYS% TOTAL% Duration
14561
uname
0.00 0.00
0.00 0.00 (idle)
Page Faults:
PID
Process
Minor/sec Major/sec
Total/sec
14561
uname
45189.50
0.00 45189.50
Context Switches:
PID
Process
Voluntary Involuntary
Total
Ctxt Sw/Sec Ctxt Sw/Sec Ctxt Sw/Sec
14561
uname
48833.82
0.00 48833.82 (very high)
File I/O operations:
PID
Process
Count Op Filename
14561
uname
1 C /usr/lib/locale/locale-archive
14561
uname
1 C /usr/lib64/libc-2.26.so
14561
uname
1 C /usr/lib64/ld-2.26.so
14561
uname
1 C /usr/bin/uname
14561
uname
1 O /usr/lib/locale/locale-archive
14561
uname
1 C /etc/ld.so.cache
14561
uname
1 R /usr/lib64/libc-2.26.so
14561
uname
1 O /usr/lib64/libc-2.26.so
14561
uname
1 O /etc/ld.so.cache
14561
uname
1 OR /usr/lib64/ld-2.26.so
14561
uname
1 OR /usr/bin/uname
Total
11
Op: O=Open, R=Read, W=Write, C=Close
File I/O Operations per second:
PID
Process
Open Close Read
Write
14561
uname
3644.31 3644.31 2186.59 0.00
System calls traced:
PID
Process
Syscall
Count Rate/Sec Total
μSecs % Call Time
14561
uname
mmap
6
4373.1778
50 11.6822
14561
uname
close
5
3644.3149
25 5.8411
14561
uname
fstat
4
2915.4519
19 4.4393
14561
uname
brk
4
2915.4519
25 5.8411
14561
uname
mprotect
4
2915.4519
25 5.8411
14561
uname
openat
2
1457.7259
15 3.5047
14561
uname
access
1
728.8630
12 2.8037
14561
uname
open
1
728.8630
9 2.1028
14561
uname
read
1
728.8630
6 1.4019
14561
uname
write
1
728.8630
30 7.0093
14561
uname
munmap
1
728.8630
10 2.3364
14561
uname
uname
1
728.8630
4 0.9346
14561
uname
execve
1
728.8630
194 45.3271
14561
uname
arch_prctl
1
728.8630
4 0.9346
14561
uname
exit_group
1
728.8630
0 0.0000
Total
34
24781.3411
428
Filesystem Syncs:
None.
Inotify watches added:
None.
Memory:
Per Process Memory (K):
PID
Process
Type
Size
RSS PSS
14561
uname
Stack
132
12 12
14561
uname
Heap
160
32 32
14561
uname
Mapped
113328
2076 85
Change in memory (K/second):
PID
Process
Type
Size
RSS PSS
14561
uname
Stack 0.00
-2915.45 -2915.45 (shrinking very fast)
14561
uname
Heap -306122.45 -276967.93 -151603.50 (shrinking
very fast)
14561
uname
Mapped 76539358.60 1046647.23 -11661.81 (growing very fast)
Heap Change via brk():
PID
brk Count Change (K) Rate (K/Sec)
14561
uname
1
0 0.00
(no change)
Memory Change via mmap() and munmap():
PID
mmaps munmaps Change (K) Rate (K/Sec)
14561
uname
6
1
113172 82486926.02 (growing
very fast)
Open Network Connections:
None.
Analysis ran for just 0.0014 seconds, so rate calculations
may be misleading
[JWM session] [xtrnaw7@t540p /var/tmp/jwm]$
./hdperf [device] [secs][[xtrnaw7@t540p /var/tmp/jwm/src/horst-5.1]$ ./horst -h
Usage: ./horst [options]
General Options: Description (default value)
-v show version
-h Help
-q Quiet, no
output
-D Show lots of
debug output, no UI
-a Always add
virtual monitor interface
-c <file> Config file
(/etc/horst.conf)
-C <chan> Set initial channel
-i <intf> Interface name
(wlan0)
-t <sec> Node timeout in
seconds (60)
-d <ms> Display update
interval in ms (100)
-V view Display view:
history|essid|statistics|spectrum
-b <bytes> Receive buffer
size in bytes (not set)
-M[filename] MAC address to host
name mapping (/tmp/dhcp.leases)
Feature Options:
-s (Poor mans)
Spectrum analyzer mode
-u Upper channel
limit
-N Allow network
connection, server mode (off)
-n <IP> Connect to server
with <IP>, client mode (off)
-p <port> Port number of
server (4444)
-o <filename> Write packet
info into 'filename'
-X[filename] Allow control socket
on 'filename' (/tmp/horst)
-x <command> Send control
command
Filter Options:
Filters are generally 'positive' or 'inclusive' which
means you define
what you want to see, and everything else is getting
filtered out.
If a filter is not set it is inactive and nothing is
filtered.
Most filter options can be specified multiple times
and will be combined
-e <MAC> Source MAC addresses
(xx:xx:xx:xx:xx:xx), up to 9 times
-f <PKT_NAME> Filter packet
types, multiple
-m <MODE> Operating mode:
AP|STA|ADH|PRB|WDS|UNKNOWN, multiple
-B <MAC> BSSID
(xx:xx:xx:xx:xx:xx), only one
[xtrnaw7@t540p /var/tmp/jwm/src/horst-5.1]$
To test if Multicast is enabled for the port 6375 you
can use iperf:
Test Multicasting on Port 6375:
Session 1:
[root@t540p ~]# iperf -s -u -B 224.0.0.75 -i 1 -p 6375
------------------------------------------------------------
Server listening on UDP port 6375
Binding to local address 224.0.0.75
Joining multicast group 224.0.0.75
Receiving 1470 byte datagrams
UDP buffer size: 208 KByte (default)
------------------------------------------------------------
Session 2:
[xtrnaw7@t540p test]$ iperf -c 224.0.0.75 -u -T 32 -t3 -i 1
-p 6375
------------------------------------------------------------
Client connecting to 224.0.0.75, UDP port 6375
Sending 1470 byte datagrams
Setting multicast TTL to 32
UDP buffer size: 208 KByte (default)
------------------------------------------------------------
[ 3] local 192.168.1.164 port 57501 connected with
224.0.0.75 port 6375
[ ID] Interval
Transfer Bandwidth
[ 3] 0.0- 1.0 sec 129 KBytes
1.06 Mbits/sec
[ 3] 1.0- 2.0 sec 128 KBytes
1.05 Mbits/sec
[ 3] 2.0- 3.0 sec 128 KBytes
1.05 Mbits/sec
[ 3] 0.0- 3.0 sec 386 KBytes
1.05 Mbits/sec
[ 3] Sent 269 datagrams
[xtrnaw7@t540p test]$
Now there should be Multicast packets listed also in session
1. If that works, stop iperf in session 2 and start
hostscope. Now you should see the mulitcast packets from
hostscope in session 1.[JWM session] [root@t540p compile_scripts]#
../bin/hostscope -h
hostscope [option]
Options:
-h : display this
help screen and exit
-k : kill
hostscope's daemon
-L : operate in
local mode (no multicasts)
-l <log> : write log to file <log>
-m <a:p> : set multicast group address and port
(optional) to <a:p>
-p <port> : set multicast group port to <port>
-v <lvl> : set verbose mode to level <lvl>
-V : display
version number and exit
[JWM session] [root@t540p compile_scripts]# [JWM session] [root@t540p compile_scripts]#
../sbin/hostscoped -h
hostscoped [options]
Options:
-h : display this
help screen and exit
-k : kill
hostscope's daemon
-l : operate in
pipe mode
-m <a:p> : set multicast group address and port
(optional) to <a:p>
-p <port> : set multicast group port to <port>
-f : run in
foreground mode - i.e. do not run as a daemon
-d : disable disk
stats gathering
-e : enable
effective uid determination
-u : disable user
process statistics gathering
-i : disable user
process I/O statistics gathering
-n : omit network
statistics
-v <num> : set verbosity to num, where 0=silent
and 5=debugging
-V : display
version number and exit
[JWM session] [root@t540p compile_scripts]# xtrnaw7@t61p Thu Oct 31 20:34:13 /var/tmp/jwm/bin $
./hping2 --help
usage: hping host [options]
-h --help show
this help
-v --version show version
-c --count packet count
-i --interval wait (uX for X
microseconds, for example -i u1000)
--fast alias for -i u10000 (10
packets for second)
-n --numeric numeric output
-q --quiet quiet
-I --interface interface name (otherwise
default routing interface)
-V --verbose verbose mode
-D --debug debugging
info
-z --bind bind
ctrl+z to
ttl
(default to dst port)
-Z --unbind unbind ctrl+z
Mode
default mode TCP
-0 --rawip RAW IP
mode
-1 --icmp
ICMP mode
-2
--udp UDP mode
-9 --listen listen mode
IP
-a --spoof spoof
source address
-t
--ttl ttl (default
64)
-N
--id id
(default random)
-W --winid use
win* id byte ordering
-r
--rel relativize
id
field
(to estimate host traffic)
-f --frag
split packets in more frag. (may pass weak acl)
-x --morefrag set more fragments
flag
-y --dontfrag set dont fragment
flag
-g --fragoff set the fragment
offset
-m
--mtu set virtual
mtu, implies --frag if packet size > mtu
-o
--tos type of
service (default 0x00), try --tos help
-G --rroute includes
RECORD_ROUTE option and display the route buffer
-H --ipproto set the IP
protocol field, only in RAW IP mode
ICMP
-C --icmptype icmp type (default
echo request)
-K --icmpcode icmp code (default 0)
--icmp-ts
Alias for --icmp --icmptype 13 (ICMP timestamp)
--icmp-addr Alias for
--icmp --icmptype 17 (ICMP address subnet mask)
--icmp-help display
help for others icmp options
UDP/TCP
-s --baseport base source
port
(default random)
-p --destport [+][+]<port>
destination port(default 0) ctrl+z inc/dec
-k --keep
keep still source port
-w
--win winsize
(default 64)
-O --tcpoff set fake
tcp data offset (instead of
tcphdrlen / 4)
-Q --seqnum shows only
tcp sequence number
-b --badcksum (try to) send packets
with a bad IP checksum
many systems will fix the IP checksum sending the packet
so you'll get bad UDP/TCP checksum instead.
-M --setseq set TCP
sequence number
-L --setack set TCP ack
-F
--fin set FIN flag
-S
--syn set SYN flag
-R
--rst set RST flag
-P --push
set PUSH flag
-A
--ack set ACK flag
-U
--urg set URG flag
-X --xmas
set X unused flag (0x40)
-Y --ymas
set Y unused flag (0x80)
--tcpexitcode use last
tcp->th_flags as exit code
--tcp-timestamp enable the TCP timestamp option
to guess the HZ/uptime
Common
-d --data
data
size
(default is 0)
-E --file
data from file
-e --sign
add 'signature'
-j --dump
dump packets in hex
-J --print dump
printable characters
-B --safe
enable 'safe' protocol
-u
--end tell you
when --file reached EOF and prevent rewind
-T --traceroute traceroute
mode
(implies --bind and --ttl 1)
--tr-stop
Exit when receive the first not ICMP in traceroute mode
--tr-keep-ttl Keep the source TTL
fixed, useful to monitor just one hop
--tr-no-rtt
Don't calculate/show RTT information in traceroute mode[xtrnaw7@t540p /var/tmp/jwm/src/htop-2.2.0]$ ./htop -h
htop 2.2.0 - (C) 2004-2018 Hisham Muhammad
Released under the GNU GPL.
-C
--no-color
Use a monochrome color scheme
-d
--delay=DELAY
Set the delay between updates, in tenths of seconds
-h
--help
Print this help screen
-s
--sort-key=COLUMN
Sort by COLUMN (try --sort-key=help for a list)
-t
--tree
Show the tree view by default
-u
--user=USERNAME
Show only processes of a given user
-p --pid=PID,[,PID,PID...] Show only the given PIDs
-v
--version
Print version info
Long options may be passed with a single dash.
Press F1 inside htop for online help.
See 'man htop' for more information.
[xtrnaw7@t540p /var/tmp/jwm/src/htop-2.2.0]$