Bienvenido(a) a Alcance Libre 29/03/2023, 07:16

Alcance Libre Foros

 Índice del foro > Todo acerca de Linux > Redes y Servidores New Topic Post Reply
 ayuda con CBQ, sale error de compile
Tópico anterior Tópico siguiente
   
edjatears
 11/25/08 09:08AM (Leído 2,573 veces)  

Participa mucho

Estado: desconectado
Forum User

Identificado: 11/25/08
Mensajes: 54
hola a todos, espero me puedan ayudar, cuando pongo este comendo que me dice el manual me sale este error, no se que es , alguien me puede ayudar.
Gracias de antemano

[root@localhost cbq]# service cbq compile
find: warning: you have specified the -maxdepth option after a non-option argument (, but options are not positional (-maxdepth affects tests specified before it as well as those specified after it). Please specify options before other arguments.

find: warning: you have specified the -maxdepth option after a non-option argument (, but options are not positional (-maxdepth affects tests specified before it as well as those specified after it). Please specify options before other arguments.

/sbin/tc qdisc del dev eth0 root
/sbin/tc qdisc add dev eth0 root handle 1 cbq bandwidth 10Mbit avpkt 3000 cell 8
/sbin/tc class change dev eth0 root cbq weight 1Mbit allot 1514

/sbin/tc qdisc del dev eth1 root
/sbin/tc qdisc add dev eth1 root handle 1 cbq bandwidth 512Kbit avpkt 3000 cell 8

**CBQ: class ID of cbq-0000.example must be in range <0002-FFFF>!
/sbin/tc qdisc del dev lo root
/sbin/tc qdisc del dev eth1 root
/sbin/tc qdisc del dev eth0 root
/sbin/tc qdisc del dev sit0 root
 
Profile Email
 Quote
Jaime M. Tan Nozawa
 08/09/11 01:19PM  

Miembro regular

Estado: desconectado
Forum User

Identificado: 03/31/07
Mensajes: 114
Localización:Peru
Es un post antiguo, pero igual respondo.
Es un problema del nombre del archivo.
probar con 0001 o con 0002 y formatos similares al manual

Saludos desde Peru

Jaime M. Tan Nozawa
RHCE ITILv3 CEHv7 BCIP

Mi blog de PHP: http://phpexperto.blogspot.com
 
Profile Email Website
 Quote
Jaime M. Tan Nozawa
 08/10/11 03:17PM  

Miembro regular

Estado: desconectado
Forum User

Identificado: 03/31/07
Mensajes: 114
Localización:Peru
Revisando bien, es un bug de la versión de cbq:
En mi caso de mi fedora corrio sin problemas pero en CentOS dio error: asi que compare los dos archivos solo difiere en lo siguiente:

Hay que reemplazar y comentar en /etc/init.d/cbq o el script cbq que compilas , haces start y stop:
# CLASSLIST=`find $1 \( -type f -or -type l \) -name 'cbq-*' \
# -not -name '*~' -maxdepth 1 -printf "%f\n"| sort`
# [ -z "$CLASSLIST" ] &&
# cbq_failure "no configuration files found in $1!"
### Gather all DEVICE fields from $1/cbq-*
# DEVFIELDS=`find $1 \( -type f -or -type l \) -name 'cbq-*' \
# -not -name '*~' -maxdepth 1| xargs sed -n 's/#.*//; \
# s/[[:space:]]//g; /^DEVICE=[^,]*,[^,]*\(,[^,]*\)\?/ \
# { s/.*=//; p; }'| sort -u`
### Get a list of configured classes
CLASSLIST=`find $1 -maxdepth 1 \( -type f -or -type l \) -name 'cbq-*' \
-not -name '*~' -printf "%f\n"| sort`
[ -z "$CLASSLIST" ] &&
cbq_failure "no configuration files found in $1!"

### Gather all DEVICE fields from $1/cbq-*
DEVFIELDS=`find $1 -maxdepth 1 \( -type f -or -type l \) -name 'cbq-*' \
-not -name '*~' | xargs sed -n 's/#.*//; \
s/[[:space:]]//g; /^DEVICE=[^,]*,[^,]*\(,[^,]*\)\?/ \
{ s/.*=//; p; }'| sort -u`

Mi blog de PHP: http://phpexperto.blogspot.com
 
Profile Email Website
 Quote
Contenido generado en: 0.12 segundos New Topic Post Reply
 Todas las horas son CST. Hora actual 07:16 AM.
Tópico normal Tópico normal
Tópico Pegado Tópico Pegado
Tópico bloqueado Tópico bloqueado
Mensaje Nuevo Mensaje Nuevo
Tópico pegado con nuevo mensaje Tópico pegado con nuevo mensaje
Tópico bloqueado con nuevo mensaje Tópico bloqueado con nuevo mensaje
Ver mensajes anónimos 
Los usuarios anónimos pueden enviar 
Se permite HTML Filtrado 
Contenido censurado