Dear Jesse,
                 I am using centos 6.3 and this is what I see in the
rc.local.

#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.

touch /var/lock/subsys/local

So what should I do just replace the whole script with your script is it? I
dont think I got many interfaces to monitor just one that is eth0 but I am
not too sure regarding the drivers as I did not touch this before?

Regards,
Frwa.





On Sat, Mar 2, 2013 at 9:05 AM, Jesse Bowling <[email protected]>wrote:

> If your OS has (and uses) /etc/rc.local you could include a script there
> similar to:
>
> #!/bin/bash
>
> for INT in `cat /root/configs/interfaces_to_monitor`
> do
>   ifconfig ${INT} down
> done
>
> modprobe -r igb pf_ring
> sleep 1
> modprobe igb
> modprobe pf_ring
> sleep 1
>
> for INT in `cat /root/configs/interfaces_to_monitor`
> do
>   ethtool -G ${INT} rx 4096
>   ethtool -C ${INT} adaptive-rx off
>   ethtool -K ${INT} tso off
>   ethtool -K ${INT} gro off
>   ethtool -K ${INT} lro off
>   ethtool -K ${INT} gso off
>   ethtool -K ${INT} rx off
>   ethtool -K ${INT} tx off
>   ethtool -K ${INT} sg off
>   ifconfig ${INT} up
> done
>
> ##
>
> You will need to have a file containing a list of interfaces you want to
> monitor and substitute the appropriate driver for your system (i.e., igb,
> e1000e, or ixgbe)...
>
> There may (should) of course be better ways to do it, but that's how I got
> it done on my system...
>
> HTH,
>
> Jesse
>
>
> On Fri, Mar 1, 2013 at 1:13 PM, frwa onto <[email protected]> wrote:
>
>> Dear All,
>>              We are having an issue here where each time after reboot we
>> have to run insmod pf_ring.ko. Is there any mechanism to overcome this? The
>> problem we have set cronjob @reboot to run if before running the packet
>> capture script but when we check the sequence is that packet capture script
>> runs first and fail and there after only the insmod pr_ring.ko shell script
>> is ran?
>>
>> _______________________________________________
>> Ntop-misc mailing list
>> [email protected]
>> http://listgateway.unipi.it/mailman/listinfo/ntop-misc
>>
>>
>
>
> --
> Jesse Bowling
>
>
> _______________________________________________
> Ntop-misc mailing list
> [email protected]
> http://listgateway.unipi.it/mailman/listinfo/ntop-misc
>
>
_______________________________________________
Ntop-misc mailing list
[email protected]
http://listgateway.unipi.it/mailman/listinfo/ntop-misc

Reply via email to