Página 3 de 3 PrimeiroPrimeiro 123
+ Responder ao Tópico

CBQ



  1. #11
    karfax
    echo -n " 5-) Insira o Valor de $bandaup dividido por 10: "
    read weightup
    echo -n " 6-) Insira o Valor de $bandadown dividido por 10: "
    read weightdown

    Voce pode usar bc ou expr para setar o valor $bandup / 10 sem precisar pedir pro individuo.

    PS: Esse script deve rodar com kernel 2.6 também


    []s,

  2. Tentei usar o escript e tive alguns erros, gostaria que se alguem podesse me ajudar, pois não entendo muito; segue os erros que apareceram.

    cat: /tmp/cbq/ip-old: No such file or directory
    ---- Ultimo IP Modificado: . ----

    esse erá o ip que queria controlar.

    cat: /etc/cbq/*192.168.0.3*: No such file or directory
    touch: cannot touch `/etc/cbq/.cbq-0000.192.168.0.3-up': No such file or directory
    touch: cannot touch `/etc/cbq/.cbq-0001.192.168.0.3-down': No such file or directory
    ls: /etc/cbq/*192.168.0.3-up: No such file or directory
    ls: /etc/cbq/*192.168.0.3-down: No such file or directory
    cat: /etc/cbq/cbq-.192.168.0.3-down: No such file or directory
    cat: /etc/cbq/cbq-.192.168.0.3-down: No such file or directory
    cat: /etc/cbq/cbq-.192.168.0.3-up: No such file or directory
    cat: /etc/cbq/cbq-.192.168.0.3-up: No such file or directory
    head: /var/www/htdocs/mrtg/200.205.216.17/200.205.216.17_1.html: No such file or directory
    head: /var/www/htdocs/mrtg/200.205.216.17/200.205.216.17_1.html: No such file or directory
    ls: /etc/cbq: No such file or directory

    cp: impossível fazer stat em `/etc/cbq/cbq-.192.168.0.3-up': No such file or directory
    cp: impossível fazer stat em `/etc/cbq/cbq-.192.168.0.3-down': No such file or directory

    ./criar-regra.sh: line 125: /etc/cbq/cbq-.192.168.0.3-down: No such file or directory
    ./criar-regra.sh: line 127: /etc/cbq/cbq-.192.168.0.3-down: No such file or directory
    ./criar-regra.sh: line 128: /etc/cbq/cbq-.192.168.0.3-down: No such file or directory
    ./criar-regra.sh: line 129: /etc/cbq/cbq-.192.168.0.3-down: No such file or directory
    ./criar-regra.sh: line 130: /etc/cbq/cbq-.192.168.0.3-down: No such file or directory
    ./criar-regra.sh: line 131: /etc/cbq/cbq-.192.168.0.3-down: No such file or directory
    ./criar-regra.sh: line 132: /etc/cbq/cbq-.192.168.0.3-down: No such file or directory
    ./criar-regra.sh: line 133: /etc/cbq/cbq-.192.168.0.3-down: No such file or directory
    ./criar-regra.sh: line 134: /etc/cbq/cbq-.192.168.0.3-down: No such file or directory
    ./criar-regra.sh: line 135: /etc/cbq/cbq-.192.168.0.3-down: No such file or directory
    ./criar-regra.sh: line 136: /etc/cbq/cbq-.192.168.0.3-down: No such file or directory
    ./criar-regra.sh: line 137: /etc/cbq/cbq-.192.168.0.3-down: No such file or directory
    ./criar-regra.sh: line 138: /etc/cbq/cbq-.192.168.0.3-down: No such file or directory
    ./criar-regra.sh: line 139: /etc/cbq/cbq-.192.168.0.3-down: No such file or directory

    ./criar-regra.sh: line 143: /etc/cbq/cbq-.192.168.0.3-up: No such file or directory
    ./criar-regra.sh: line 145: /etc/cbq/cbq-.192.168.0.3-up: No such file or directory
    ./criar-regra.sh: line 146: /etc/cbq/cbq-.192.168.0.3-up: No such file or directory
    ./criar-regra.sh: line 147: /etc/cbq/cbq-.192.168.0.3-up: No such file or directory
    ./criar-regra.sh: line 148: /etc/cbq/cbq-.192.168.0.3-up: No such file or directory
    ./criar-regra.sh: line 149: /etc/cbq/cbq-.192.168.0.3-up: No such file or directory
    ./criar-regra.sh: line 150: /etc/cbq/cbq-.192.168.0.3-up: No such file or directory
    ./criar-regra.sh: line 151: /etc/cbq/cbq-.192.168.0.3-up: No such file or directory
    ./criar-regra.sh: line 152: /etc/cbq/cbq-.192.168.0.3-up: No such file or directory
    ./criar-regra.sh: line 153: /etc/cbq/cbq-.192.168.0.3-up: No such file or directory
    ./criar-regra.sh: line 154: /etc/cbq/cbq-.192.168.0.3-up: No such file or directory
    ./criar-regra.sh: line 155: /etc/cbq/cbq-.192.168.0.3-up: No such file or directory
    ./criar-regra.sh: line 156: /etc/cbq/cbq-.192.168.0.3-up: No such file or directory
    ./criar-regra.sh: line 157: /etc/cbq/cbq-.192.168.0.3-up: No such file or directory

    ./criar-regra.sh: line 160: /tmp/cbq/ip-old: No such file or directory


    alguem poderia me ajudar, o meu escript do cbq está em /etc/sysconfig/cbq.init

    e as regas na mesma pasta.

    está funcionando normal, mais gostei do escript e gostaria de usá-lo para automatizar novas regras que eu queira usar no futuro.






Tópicos Similares

  1. problemas com cbq
    Por no fórum Servidores de Rede
    Respostas: 0
    Último Post: 15-11-2002, 19:57
  2. Problemas com o Cbq
    Por gil_maq no fórum Servidores de Rede
    Respostas: 2
    Último Post: 14-11-2002, 15:05
  3. cbq com horário
    Por ediguedes no fórum Servidores de Rede
    Respostas: 0
    Último Post: 09-10-2002, 21:53
  4. SQUID + CBQ + FIREWALL ????
    Por thiagog no fórum Servidores de Rede
    Respostas: 0
    Último Post: 02-09-2002, 10:45
  5. CBQ no Conectiva 8
    Por Spetsnaz no fórum Servidores de Rede
    Respostas: 3
    Último Post: 15-08-2002, 09:28

Visite: BR-Linux ·  VivaOLinux ·  Dicas-L