Oracle Linux/Common Tools

From r00tedvw.com wiki
(Difference between revisions)
Jump to: navigation, search
(Created page with "Common Tools =Listening Ports= ==netstat== <nowiki>~$ netstat -lnp Proto Recv-Q Send-Q Local Address Foreign Address State ...")
 
Line 19: Line 19:
 
  <nowiki>ps -AlH</nowiki>
 
  <nowiki>ps -AlH</nowiki>
 
This shows all the processes running, in long format, with the extra full format output
 
This shows all the processes running, in long format, with the extra full format output
 +
 +
=Network Throughput=
 +
==iperf==
 +
requires a server/client setup that communicates over port 5001. generally server/client placement is dependent on network accessibility, ie. server would be placed outside of the network, client within.  You may need to open 5001 on both sides however, in case established/related is not implicitly accepted from the client side > out.
 +
===Server side===
 +
<nowiki>~$ sudo yum install -y iperf
 +
sudo iptables -A INPUT -p tcp --dport 5001 -j ACCEPT -m comment --comment "iperf - 5001"
 +
~$ iperf -s</nowiki>
 +
Example:
 +
<nowiki>$ iperf -s
 +
------------------------------------------------------------
 +
Server listening on TCP port 5001
 +
TCP window size: 85.3 KByte (default)
 +
------------------------------------------------------------
 +
[  4] local 10.0.0.1 port 5001 connected with 10.0.0.2 port 47552
 +
[ ID] Interval      Transfer    Bandwidth
 +
[  4]  0.0-10.0 sec  76.6 MBytes  64.1 Mbits/sec
 +
[  5] local 10.0.0.1 port 5001 connected with 10.0.0.2 port 39914
 +
[  5]  0.0-10.0 sec  84.5 MBytes  70.6 Mbits/sec</nowiki>
 +
===Client side===
 +
<nowiki>~$ iperf -c target.ip -p port.number</nowiki>
 +
;Example
 +
<nowiki>$ iperf -c 10.0.0.1 -p 5001
 +
------------------------------------------------------------
 +
Client connecting to 10.0.0.1, TCP port 5001
 +
TCP window size:  466 KByte (default)
 +
------------------------------------------------------------
 +
[  3] local 10.0.0.1 port 39914 connected with 10.0.0.2 port 5001
 +
[ ID] Interval      Transfer    Bandwidth
 +
[  3]  0.0-10.0 sec  84.5 MBytes  70.8 Mbits/sec</nowiki>

Revision as of 20:04, 12 November 2018

Common Tools

Contents

Listening Ports

netstat

~$ netstat -lnp
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 127.0.0.1:17003         0.0.0.0:*               LISTEN      -
tcp        0      0 127.0.0.1:40333         0.0.0.0:*               LISTEN      -
udp    42240      0 127.0.0.1:8125          0.0.0.0:*                           -
udp    32256      0 169.254.0.2:53          0.0.0.0:*                           -

process activity

top

~$ top

LoadAvg Load average over 1, 5, and 15 minutes. divide by number of cores to determine load.

ps

ps -AlH

This shows all the processes running, in long format, with the extra full format output

Network Throughput

iperf

requires a server/client setup that communicates over port 5001. generally server/client placement is dependent on network accessibility, ie. server would be placed outside of the network, client within. You may need to open 5001 on both sides however, in case established/related is not implicitly accepted from the client side > out.

Server side

~$ sudo yum install -y iperf
sudo iptables -A INPUT -p tcp --dport 5001 -j ACCEPT -m comment --comment "iperf - 5001"
~$ iperf -s

Example:

$ iperf -s
------------------------------------------------------------
Server listening on TCP port 5001
TCP window size: 85.3 KByte (default)
------------------------------------------------------------
[  4] local 10.0.0.1 port 5001 connected with 10.0.0.2 port 47552
[ ID] Interval       Transfer     Bandwidth
[  4]  0.0-10.0 sec  76.6 MBytes  64.1 Mbits/sec
[  5] local 10.0.0.1 port 5001 connected with 10.0.0.2 port 39914
[  5]  0.0-10.0 sec  84.5 MBytes  70.6 Mbits/sec

Client side

~$ iperf -c target.ip -p port.number
Example
$ iperf -c 10.0.0.1 -p 5001
------------------------------------------------------------
Client connecting to 10.0.0.1, TCP port 5001
TCP window size:  466 KByte (default)
------------------------------------------------------------
[  3] local 10.0.0.1 port 39914 connected with 10.0.0.2 port 5001
[ ID] Interval       Transfer     Bandwidth
[  3]  0.0-10.0 sec  84.5 MBytes  70.8 Mbits/sec
Personal tools
Namespaces

Variants
Actions
Navigation
Mediawiki
Confluence
DevOps Tools
Open Source Products
Ubuntu
Ubuntu 22
Mac OSX
Oracle Linux
AWS
Windows
OpenVPN
Grafana
InfluxDB2
TrueNas
MagicMirror
OwnCloud
Pivotal
osTicket
OTRS
phpBB
WordPress
VmWare ESXI 5.1
Crypto currencies
HTML
CSS
Python
Java Script
PHP
Raspberry Pi
Canvas LMS
Kaltura Media Server
Plex Media Server
MetaSploit
Zoneminder
ShinobiCE
Photoshop CS2
Fortinet
Uploaded
Certifications
General Info
Games
Meal Plans
NC Statutes
Politics
Volkswagen
Covid
NCDMV
Toolbox