paris/i-07ee8069972d7eb33
by SadServersMore by SadServers
admin@i-01dbf574f5b8ca719:~$ admin@i-01dbf574f5b8ca719:~$ mpstat bash: mpstat: command not found admin@i-01dbf574f5b8ca719:~$ admin@i-01dbf574f5b8ca719:~$ vmstat procs -----------memory---------- ---swap-- -----io---- -system-- ------cpu----- r b swpd free buff cache si so bi bo in cs us sy id wa st 2 0 0 224528 13460 152836 0 0 836 127 99 155 3 2 95 1 0admin@i-01dbf574f5b8ca719:~$ vmstat 1 procs -----------memory---------- ---swap-- -----io---- -system-- ------cpu----- r b swpd free buff cache si so bi bo in cs us sy id wa st 1 0 0 224272 13460 152872 0 0 800 122 98 156 2 2 95 1 0 0 0 0 223892 13460 152872 0 0 0 0 74 135 0 0 100 0 ^C admin@i-01dbf574f5b8ca719:~$
kihei/i-01dbf574f5b8ca719 00:24
by SadServersadmin@i-07e7b27bf9af3ef2e:~$ admin@i-07e7b27bf9af3ef2e:~$ admin@i-07e7b27bf9af3ef2e:~$ ls agent data datafile kihei admin@i-07e7b27bf9af3ef2e:~$ ls agent check.sh sadagent sadagent.txt admin@i-07e7b27bf9af3ef2e:~$ ls data admin@i-07e7b27bf9af3ef2e:~$ ^C admin@i-07e7b27bf9af3ef2e:~$ admin@i-07e7b27bf9af3ef2e:~$ admin@i-07e7b27bf9af3ef2e:~$ admin@i-07e7b27bf9af3ef2e:~$ admin@i-07e7b27bf9af3ef2e:~$ kihei -v bash: kihei: command not found admin@i-07e7b27bf9af3ef2e:~$
kihei/i-07e7b27bf9af3ef2e 03:06
by SadServers# Define the range of ports you want to test (from PORT_START to PORT_END) PORT_START=1 PORT_END=65535 # Define the target host (localhost in this case) TARGET_HOST="localhost" # Loop through the range of ports and run curl with a 1-second timeout for ((port = PORT_START; port <= PORT_END; port++)); do "$TARGET_HOST:$port" &>/dev/null if [ $? -eq 0 ]; then echo "Port $port is open" fi done