[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[altq 1620] altqstat raw console mode
Hi.
I test following altq.conf file(I use altq.conf man page's sample file and
Just add name on filter)
tenet2$ more /etc/altq.conf
# priq configuration for fxp0 (100Mbps ether)
# icmp: high priority
4 # tcp: medium priority
5 # others: low priority
6 #
7 interface fxp0 bandwidth 100M priq
8 #
9 class priq fxp0 high_class NULL priority 2
10 filter fxp0 high_class name high_class_filter 0 0 0 0 1
11 class priq fxp0 med_class NULL priority 1
12 filter fxp0 med_class name med_class_filter 0 0 0 0 6
13 class priq fxp0 low_class NULL priority 0 default
tenet2# ifconfig
fxp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
inet 155.230.12.92 netmask 0xfffffc00 broadcast 155.230.15.255
inet6 fe80::2d0:b7ff:fe09:4af9%fxp0 prefixlen 64 scopeid 0x1
ether 00:d0:b7:09:4a:f9
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
But when I use this conf file with "altqd -d"(Command line mode,) altqstat
doesn't work, I think.
Just use altqstat with no options works fine
tenet2# altqstat
altqstat: priq on interface fxp0
fxp0:
fxp0:
[high_class] handle:0xc1ade840 pri:2
measured: 0bps qlen: 0 period:0
packets:0 (0 bytes) drops:0
[med_class] handle:0xc16dcfc0 pri:1
measured: 0.16Kbps qlen: 0 period:4
packets:4 (477 bytes) drops:0
[low_class] handle:0xc16d4840 pri:0
measured: 0bps qlen: 0 period:0
packets:0 (0 bytes) drops:0
But, when I try to look filter status,
tenet2# altqstat -r
>>>Entering the raw interactive mode to the server:
% GET list?*:*:*
<< GET list?*:*:* QUIP/1.0
> QUIP/1.0 204 No content
>
% GET list?*:*
<< GET list?*:* QUIP/1.0
> QUIP/1.0 200 OK
> Content-Length:27
>
> 0xc16d4840 fxp0:/low_class
altqstat doesn't show all filter or all class.
What is missing?
PS)
BTW, I found altq.conf man page's erratum
In PRIQ Example,
filter fxp0 high_class 0 0 0 0 6 => filter fxp0 med_class 0 0 0 0 6