'netstat' and '-f inet' option

'netstat' and '-f inet' option

Post by Karthik Balagur » Sun, 21 Feb 2010 21:30:52



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

 
 
 

'netstat' and '-f inet' option

Post by Martijn Lievaar » Sun, 21 Feb 2010 22:18:48



> 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

 
 
 

'netstat' and '-f inet' option

Post by Pascal Hambour » Thu, 25 Feb 2010 01:08:05


[Crosspost with a non-Usenet hierarchy removed, follow-up set to
comp.os.linux.networking]

Hello,

Martijn Lievaart a crit :


>> 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.

Anyway, --inet does not list only TCP and UDP sockets neither all TCP
and UDP sockets : it lists also raw IPv4 sockets but does not list IPv6
sockets. If you want to list all and only TCP and UDP sockets, better
use --tcp --udp (or -t -u or -tu).
 
 
 

'netstat' and '-f inet' option

Post by Karthik Balagur » Fri, 26 Feb 2010 15:01:39




> > 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.

Thx for highlighting it.

Thx,
Karthik Balaguru

 
 
 

1. '-i' option for 'cp' and 'mv'

I am using a system running System V on a 386 machine.  In 4.3 bsd, 'cp'
and 'mv' have the option '-i' which will warn me if the file exists.
In the system I am using, only 'rm' has such an option.   I would like to change
it so that '-i' will work for 'cp' and 'mv' as well.  Can someone tell me how to
do it?

Many thanks

philip

2. Solaris 2.4, PPP and NFS-mount ???

3. 'net.inet.tcp.sack' option gone ??

4. laptop linux

5. 'diff' option like 'grep -q'?

6. make xconfig

7. menu option 'Y' or 'y'

8. Interesting?

9. in 'getopt()', how to handle multiple options in the 'optarg' string?

10. XF86Config: 'EarlySC','BlankDelay' options gone?

11. Need help for 'ipfw' with 'fwd' option

12. Shouldn't 'netstat -ain' show my eth0?

13. OpenServer 5.0.2's 'netstat -m' output