Skip to content

Network connection, status, open ports in Linux.

License

Notifications You must be signed in to change notification settings

intelligsystems/bash-portstatus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bash-portstatus

Network connection, status, open ports in Linux with HTML export

- kernel routing table
- kernel interface table
- internet connections

configuration

Check files permisions

bashportstatus.sh should be executable. Go to bash-portstatus directory and check:

$ ls -l | cut -d' ' -f1,9

you should see:

$ total
-rwx------ bash-portstatus.sh
-rw-r--r-- config
-rw-r--r-- generator

Configure script

Edit config file:

$ vim config
# If "yes" the script generates shell report
SHELL='yes'

# If "yes" the script generates index.html file
HTML='yes'

# HTML file path 
# you can set here your index.html destination
HTML_PATH='/home/www/localhost/'

# Refresh browser in seconds
# It works with HTML='yes' (option above)
RF=15

# System date and time
# %Y - year, %m - month, %d -day
# %H - hour, %M - minutes, %s - seconds
DT=`date "+%Y-%m-%d %H:%M:%S"`

# Show system information (man uname)
# -a, --all print all information, in the following order, except omit -p and -i if unknown:
# -s, --kernel-name print the kernel name
# -n, --nodename print the network node hostname
# -r, --kernel-release print the kernel release
# -v, --kernel-version print the kernel version
# -m, --machine print the machine hardware name
# -p, --processor print the processor type (non-portable)
# -i, --hardware-platform print the hardware platform (non-portable)
# -o, --operating-system print the operating system
S_UNAME_PARAM='-a'

Run script

$ ./bash-portstatus.sh

Todos

- HTML menu
- more funcionality

License

MIT

About

Network connection, status, open ports in Linux.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages