Diberdayakan oleh Blogger.

linux command

Networking is a necessary half UNIX operating system and it provide many tools and command to diagnose any networking drawback. once I was engaged on FIX Protocol we have a tendency to get heap of support queries to check whether or not FIX Sessions ar connected or not. Since FIX Protocol uses sockets you'll be able to use web stat , telnet and alternative networking command accessible in UNIX for locating drawback and solve that.In this article i'll show you basic networking commands in UNIX operating system and for what purpose they're used. with the mix of grep and notice command on them you'll be able to troubleshoot most of networking drawback.

These ar most helpful commands in my list whereas engaged on UNIX server , this permits you to quickly troubleshoot association problems e.g. whether or not alternative system is connected or not , whether or not alternative host is responding or not and whereas operating for FIX property for advanced commerce system this tools saves quite heap of your time .

This article is in continuation of my article a way to work quick in UNIX operating system and UNIX operating system Command tutorials and Examples for beginners.
• finding host/domain name and information science address - hostname
• take a look at network association – ping
• obtaining network configuration – ifconfig
• Network connections, routing tables, interface statistics – netstat
• question DNS search name – nslookup
• communicate with alternative hostname – telnet
• outing steps that packets want get to network host – traceroute
• read user info – finger
• checking standing of destination host - telnet

 Example of Networking commands in UNIX operating system
let's see some example of assorted networking command in UNIX operating system and UNIX. a number of them ar quite basic  e.g. ping and telnet and a few ar additional powerful e.g. nslookup and netstat. after you used these commands together of notice and grep you'll be able to get something you're probing for e.g. hostname, association finish points, association standing etc.


hostname

hostname with no choices displays the machines host name
hostname –d displays the name the machine belongs to
hostname –f displays the absolutely qualified host and name
hostname –i displays the information science address for the present machine


ping
It sends packets of knowledge to the user-defined supply. If the packets ar received, the destination device sends packets back. Ping is used for 2 functions

1. to make sure that a network association is established.
2. temporal arrangement info on the speed of the association.

If you are doing ping computer network.yahoo.com it'll show its information science address. Use ctrl+C to prevent the take a look at.

ifconfig
View network configuration, it displays the present network adapter configuration. it's handy to work out if you're obtaining transmit (TX) or receive (RX) errors.


netstat
Most helpful and really versatile for locating association to and from the host. you'll be able to decide all the multicast teams (network) signed by this host by provision "netstat -g"

netstat -nap | grep port can show method id of application that is victimization that port
netstat -a  or netstat –all can show all connections as well as communications protocol  and UDP 
netstat --tcp  or netstat –t can show solely communications protocol association
netstat --udp or netstat –u can show solely UDP association
netstat -g can show all multicast network signed by this host.

nslookup
If you recognize the information science address it'll show hostname. to search out all the information science addresses for a given name, the command nslookup is employed. you want to have a association to the net for this utility to be helpful.
E.g. nslookup blogger.com

You can conjointly use nslookup to convert hostname to information science Address and from information science Address from hostname.

traceroute
A handy utility to look at the quantity of hops and interval to urge to an overseas system or computing device is traceroute. once more you would like an online association to form use of this tool.

Tidak ada komentar:

Posting Komentar