About Ndd

What is in Linux the equivalent command to Ndd of Unix?
rutiAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

edicomCommented:
You can access various kernel parameters through the /proc (and essentially /proc/sys/) filesystem, reading values from it using cat /proc/../filename and sending values with echo value > /proc/filename.

See /usr/src/linux/Documentation/proc.txt for more infos.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
rutiAuthor Commented:
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
0
edicomCommented:
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)

0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux Networking

From novice to tech pro — start learning today.