Date: Tue, 7 Sep 1999 10:48:50 -0700 From: "Michael W. Akers" <mwakers@home.com> To: 'Decebal Topala' <decebal@mail.md> Cc: 'FreeBSD' <freebsd-questions@FreeBSD.ORG> Subject: RE: Message-ID: <01BEF91E.924B0E00@c67050-a.plstn1.sfba.home.com>
next in thread | raw e-mail | index | archive | help
Decebal,
Remove the ampersand ' & ' from the ping command. What this script is =
doing is rapidly generating ping commands and dumping them onto the =
process stack for latter execution. That is why your system dumps, your =
overwhelming it. Run the script its self in the background, not the ping =
command.
Hope this helps,
Mike Akers
M. Akers Enterprises
Try this:
#!/bin/sh
class_c=3D0
class_b=3D0
count=3D2
subnet=3D2.16
while [ ${class_b} !=3D 255 ]
do
class_c=3D0
while [ ${class_c} !=3D 255 ]
do
echo "Testing ${subnet}.${class_b}.${class_c} ..." >> pingsweep_log
ping -c ${count} ${subnet}.$class_b}.${class_c} 2>&1 >> pingsweep_log
class_c=3D$((${class_c} + 1))
done
class_b=3D$((${class_b + 1))
done
Then run it.
./pingsweep &
----------
From: Decebal Topala [SMTP:decebal@mail.md]
Sent: Tuesday, September 07, 1999 9:06 AM
To: questions@FreeBSD.ORG
Hi=20
I used an script to ping all ip addresses in my ocal ip subnet.
I was very slow. In order to make this faster i put ping process in=20
baground. After 15 second system is dumpimg.
Here is the script=20
#################################################################
#!/bin/sh -x
class_c=3D0
class_b=3D0
subnet=3D172.16
count=3D2
while [ ${class_b} !=3D 255 ]
do=20
class_c=3D0
while [ ${class_c} !=3D 255 ]
do=20
ping -c ${count} ${subnet}.${class_b}.${class_c} &
class_c=3D$((${class_c}+1))
echo ${class_b}.${class_c}
done
class_b=3D$((${class_b}+1))
done=20
#####################################################
And here is my kernel config file.
################################################################
machine "i386"
cpu "I686_CPU"
ident fire
maxusers 500
options "MAXDSIZ=3D(256*1024*1024)"
options "DFLDSIZ=3D(256*1024*1024)"
options MATH_EMULATE #Support for x87 emulation
options INET #InterNETworking
options FFS #Berkeley Fast Filesystem
options FFS_ROOT #FFS usable as root device [keep =
this!]
options MSDOSFS #MSDOS Filesystem
options "CD9660" #ISO 9660 Filesystem
options "CD9660_ROOT" #CD-ROM usable as root. "CD9660" =
req'ed
options PROCFS #Process filesystem
options "COMPAT_43" #Compatible with BSD 4.3 [KEEP =
THIS!]
options SCSI_DELAY=3D15000 #Be pessimistic about Joe SCSI =
device
options UCONSOLE #Allow users to grab the console
options FAILSAFE #Be conservative
options USERCONFIG #boot -c editor
options VISUAL_USERCONFIG #visual boot -c editor
config kernel root on wd0
controller isa0
controller pnp0
controller eisa0
controller pci0
controller fdc0 at isa? port "IO_FD1" bio irq 6 drq 2
disk fd0 at fdc0 drive 0
disk fd1 at fdc0 drive 1
options "CMD640" # work around CMD640 chip deficiency
controller wdc0 at isa? port "IO_WD1" bio irq 14
disk wd0 at wdc0 drive 0
disk wd1 at wdc0 drive 1
controller wdc1 at isa? port "IO_WD2" bio irq 15
disk wd2 at wdc1 drive 0
disk wd3 at wdc1 drive 1
options ATAPI #Enable ATAPI support for IDE bus
options ATAPI_STATIC #Don't do it as an LKM
device acd0 #IDE CD-ROM
device wfd0 #IDE Floppy (e.g. LS-120)
device mcd0 at isa? port 0x300 bio irq 10
controller atkbdc0 at isa? port IO_KBD tty
device atkbd0 at isa? tty irq 1
device psm0 at isa? tty irq 12
device vga0 at isa? port ? conflicts
pseudo-device splash
device sc0 at isa? tty
device npx0 at isa? port IO_NPX irq 13
device sio0 at isa? port "IO_COM1" flags 0x10 tty irq 4
device sio1 at isa? port "IO_COM2" tty irq 3
device sio2 at isa? disable port "IO_COM3" tty irq 5
device sio3 at isa? disable port "IO_COM4" tty irq 9
device xl0 # 3Com 3c90x (``Boomerang'', ``Cyclone'')
pseudo-device loop
pseudo-device ether
pseudo-device pty 16
pseudo-device gzip # Exec gzipped a.out's
options KTRACE #kernel tracing
options SYSVSHM
options SYSVMSG
options SYSVSEM
pseudo-device bpfilter 4 #Berkeley packet filter
#############################################################
I tried the same the same on linux and it does not trap the system.
Please advice any ideas how to solve this.
DEcebal=20
=20
___________________________________________
Get your free mail box @ http://www.mail.md
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?01BEF91E.924B0E00>
