'netstat' and '-f inet' option

K

Karthik Balaguru

Hi,

I have been trying to use the command of
'netstat -a -n -f inet' to generate a report on all
network end points not just the ESTABLISHED
(-a option) by printing the IP addresses as
dotted-decimal numbers(-n option), but only for
TCP and UDP end points(-f inet option). But,
strangely, the '-f inet' option does not seem
to work in linux.

So, i tried the same command in windows vista
too, but the same option of '-f inet' did not work
there too.

So, is the option of '-f inet' has been deprecated
in netstat command . Which other option covers up
the feature of reporting only TCP and UDP
end points that was provided by '-f inet' option ?
Any ideas ?

Thx in advans,
Karthik Balaguru
 
M

Martijn Lievaart

So, is the option of '-f inet' has been deprecated in netstat command .
Which other option covers up the feature of reporting only TCP and UDP
end points that was provided by '-f inet' option ? Any ideas ?

Try --inet instead on linux. These kinds of flags are not standarised, so
for every OS it's different.

M4
 
K

Karthik Balaguru

Try --inet instead on linux. These kinds of flags are not standarised, so
for every OS it's different.

Thx for highlighting it.

Thx,
Karthik Balaguru
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top