mirror of
https://github.com/myvesta/vesta
synced 2025-08-20 21:34:12 -07:00
Server monitoring tools
This commit is contained in:
parent
9db728e1ad
commit
841c97982f
10 changed files with 586 additions and 9 deletions
40
bin/v-list-sys-network-status
Executable file
40
bin/v-list-sys-network-status
Executable file
|
@ -0,0 +1,40 @@
|
|||
#!/bin/bash
|
||||
# info: list system network status
|
||||
# options: [FORMAT]
|
||||
#
|
||||
# The function lists network status
|
||||
|
||||
|
||||
#----------------------------------------------------------#
|
||||
# Variable&Function #
|
||||
#----------------------------------------------------------#
|
||||
|
||||
# Argument defenition
|
||||
#format=${1-shell}
|
||||
|
||||
# Includes
|
||||
#source $VESTA/func/main.sh
|
||||
|
||||
|
||||
#----------------------------------------------------------#
|
||||
# Action #
|
||||
#----------------------------------------------------------#
|
||||
|
||||
# Displaying network stats
|
||||
ss -s
|
||||
echo -en "\n-------------------------------------"
|
||||
echo -en "-------------------------------------\n\n"
|
||||
|
||||
# Displaying network usage
|
||||
lsof -itcp -n -P
|
||||
echo -en "\n-------------------------------------"
|
||||
echo -en "-------------------------------------\n\n"
|
||||
|
||||
# Displaying network interfaces
|
||||
ifconfig
|
||||
|
||||
#----------------------------------------------------------#
|
||||
# Vesta #
|
||||
#----------------------------------------------------------#
|
||||
|
||||
exit
|
Loading…
Add table
Add a link
Reference in a new issue