Package init

This commit is contained in:
jeff200902 2020-08-10 15:39:50 +08:00
parent a9c4a9fc5f
commit 3ad5e9bd4b
5 changed files with 8701 additions and 0 deletions

7
Documentation.txt Normal file
View File

@ -0,0 +1,7 @@
nmon for Linux
For documentation take a look at http://nmon.sourceforge.net
nmon for Linux was an internal project at IBM for many years and was released to open source under GPL Version 3 on 27th July 2009.
Thanks for your interest - Nigel Griffiths

8602
lmon16g.c Normal file

File diff suppressed because it is too large Load Diff

47
nmon.1 Normal file
View File

@ -0,0 +1,47 @@
.TH NMON "1" "August 2009" "nmon " "User Commands"
.SH NAME
nmon \- systems administrator, tuner, benchmark tool.
.SH DESCRIPTION
This manual page documents briefly the
.B nmon
command.
This manual page was written for the Debian distribution
because the original program does not have a manual page.
.PP
\fBnmon\fP is is a systems administrator, tuner, benchmark tool.
It can display the CPU, memory, network, disks (mini graphs or numbers),
file systems, NFS, top processes, resources (Linux version & processors) and
on Power micro-partition information.
.SH OPTIONS
.B nmon
follow the usual GNU command line syntax, with long
options starting with two dashes (`-').
nmon [\-h] [\-s <seconds>] [\-c <count>] [\-f \fB\-d\fR <disks> \fB\-t\fR \fB\-r\fR <name>] [\-x]
A summary of options is included below.
.TP
\fB\-h\fR
FULL help information
.IP
Interactive\-Mode:
read startup banner and type: "h" once it is running
For Data\-Collect\-Mode (\fB\-f\fR)
.TP
\fB\-f\fR spreadsheet output format [note: default \fB\-s300\fR \fB\-c288]\fR
optional
.TP
\fB\-s\fR <seconds> between refreshing the screen [default 2]
.TP
\fB\-c\fR <number> of refreshes [default millions]
.TP
\fB\-d\fR <disks> to increase the number of disks [default 256]
.TP
\fB\-t\fR spreadsheet includes top processes
.TP
\fB\-x\fR capacity planning (15 min for 1 day = \fB\-fdt\fR \fB\-s\fR 900 \fB\-c\fR 96)
.PP
.SH AUTHOR
nmon was written by Nigel Griffiths <nag@uk.ibm.com>
.PP
This manual page was written by Giuseppe Iuculano <giuseppe@iuculano.it>,
for the Debian project (but may be used by others).

41
nmon.spec Normal file
View File

@ -0,0 +1,41 @@
Name: nmon
Version: 16g
Release: 1
Summary: Nigel's performance Monitor for Linux
License: GPLv3
URL: http://nmon.sourceforge.net
Source0: https://sourceforge.net/projects/nmon/files/lmon%{version}.c
Source1: https://sourceforge.net/projects/nmon/files/Documentation.txt
Source2: nmon.1
BuildRequires: gcc ncurses-devel
%description
nmon is a systems administrator, tuner, benchmark tool, which provides
information about CPU, disks, network, etc., all in one view.
%prep
%setup -T -c -n %{name}
sed -e "s/\r//" %{SOURCE1} > Documentation.txt
touch -c -r %{SOURCE1} Documentation.txt
cp %{SOURCE0} .
%build
%ifarch ppc %{power64}
%{__cc} %{optflags} -D JFS -D GETUSER \
-D LARGEMEM -lncurses -lm lmon%{version}.c -D POWER -o %{name}
%else
%{__cc} %{optflags} -D JFS -D GETUSER \
-D LARGEMEM -D X86 -lncurses -lm lmon%{version}.c -o %{name}
%endif
%install
install -D -p -m 0755 %{name} %{buildroot}%{_bindir}/%{name}
install -D -p -m 0644 %{SOURCE2} %{buildroot}%{_mandir}/man1/%{name}.1
%files
%doc Documentation.txt
%{_mandir}/man1/%{name}.1.*
%{_bindir}/%{name}
%changelog
* Mon Aug 3 2020 Jeffery.Gao <gaojianxing@huawei.com> - 16g-1
- Package init

4
nmon.yaml Normal file
View File

@ -0,0 +1,4 @@
version_control: NA
src_repo: NA
tag_prefix: NA
seperator: NA