Link to home
Start Free TrialLog in
Avatar of ruti
ruti

asked on

About Ndd

What is in Linux the equivalent command to Ndd of Unix?
ASKER CERTIFIED SOLUTION
Avatar of edicom
edicom

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ruti
ruti

ASKER

Thanks, but I have another question. I use RedHat5.2. In my /proc I have this:

-r--r--r--   1 root     root      0 Jan 13 16:26 cmdline
-r--r--r--   1 root     root            0 Jan 13 16:26 cpuinfo
-r--r--r--   1 root     root            0 Jan 13 16:26 devices
-r--r--r--   1 root     root            0 Jan 13 16:26 dma
-r--r--r--   1 root     root            0 Jan 13 16:26 filesystems
-r--r--r--   1 root     root            0 Jan 13 16:26 interrupts
-r--r--r--   1 root     root            0 Jan 13 16:26 ioports
-r--------   1 root     root     67112960 Jan 13 16:26 kcore
-r--------   1 root     root            0 Dec 31 13:54 kmsg
-r--r--r--   1 root     root            0 Jan 13 16:26 ksyms
-r--r--r--   1 root     root            0 Jan 13 04:54 loadavg
-r--r--r--   1 root     root            0 Jan 13 16:26 locks
-r--r--r--   1 root     root            0 Jan 13 16:26 mdstat
-r--r--r--   1 root     root            0 Jan 13 10:19 meminfo
-r--r--r--   1 root     root            0 Jan 13 16:26 misc
-r--r--r--   1 root     root            0 Jan 13 09:23 modules
-r--r--r--   1 root     root            0 Jan 13 16:26 mounts
dr-xr-xr-x   2 root     root            0 Jan 13 09:23 net
-r--r--r--   1 root     root            0 Jan 13 16:26 pci
-r--r--r--   1 root     root            0 Jan 13 16:26 rtc
dr-xr-xr-x   2 root     root            0 Jan 13 16:26 scsi
lrwxrwxrwx   1 root     root           64 Jan 13 09:23 self -> 17016
-r--r--r--   1 root     root            0 Jan 13 16:26 stat
dr-xr-xr-x   5 root     root            0 Jan 13 16:26 sys
-r--r--r--   1 root     root            0 Jan 13 10:19 uptime
-r--r--r--   1 root     root            0 Jan 13 16:26 version
-r--r--r--   1 root     root            0 Jan 13 16:26 vmnet

Thats files are empty. It's normal?. Where I can extract that information?.

Thanks
On my system also the files have 0 length (appart kcore (image of the kernel), maybe because it s just a virtual filesystem?

So, for instance you can access your cpuinfo by doing cat /proc/cpuinfo.
On one of our boxes I got:

processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 7
model name      : Pentium III (Katmai)
stepping        : 3
cpu MHz         : 451.028941
cache size      : 512 KB
fdiv_bug        : no
hlt_bug         : no
sep_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 2
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 mmx fxsr xmm
bogomips        : 450.56

processor       : 1
vendor_id       : GenuineIntel
cpu family      : 6
model           : 7
model name      : Pentium III (Katmai)
stepping        : 3
cpu MHz         : 451.028941
cache size      : 512 KB
fdiv_bug        : no
hlt_bug         : no
sep_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 2
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 mmx fxsr xmm
bogomips        : 448.92

Also, a cat /proc/sys/net/ipv4/tcp_max_syn_backlog

returns 128

and if you should be able to increase it by doing:

echo 256 > /proc/sys/net/ipv4/tcp_max_syn_backlog

Beware that when you want to get data, less may not work where cat will.

(also avoid a cat /proc/kcore... or at least, use strings instead)