Indirizzo ip e porte ( IFCONFIG, NETSTAT )

Indirizzo ip delle interfacce del server


# ifconfig eth0 | grep -i inet | awk '{print $2}'


#ifconfig eth0 | grep "inet" | grep -v "inet6" | tr -s " " ":"  | cut -f4 -d ":"


Come vedere le porte aperte o in ascolto su server.


# netstat -na | grep LISTEN

# netstat -na | grep LISTEN | grep 7180
tcp        0      0 :::7180                     :::*                        LISTEN





 

Post popolari in questo blog

Create e Drop Pluggable Database

ORA-12154: TNS: il listener non è attualmente a conoscenza del servizio richiesto nel descrittore di connessione