GetDomainShaper - Получить список ограничений для указанного домена и SSID, привязанных к нему

Общая информация

  1. Команда служит для получения полного списка ограничений по трафику на ТД в домене и SSID, привязанных к нему

  2. Команда актуальна, начиная с версии 1.5

Входные параметры

Параметр Значение Формат значения Расшифровка формата Ссылка

apDomain

Домен

(?=^.{1,235}$)(^((?!-|_|.*(__|--).*)[a-zA-Z0-9_\-]\{1,63}\.)*((?!-|_|.*(__|--).*)[a-zA-Z0-9_\-]{1,63})$)

Текст длиной до 235 символов, удовлетворяющий правилам FQDN

Domain

Выходные параметры

Параметр Значение Формат значения

code

Код ответа

Целое неотрицательное число

detail

Пояснение к ответу

Текст английскими буквами с пробелами и спецсимволами

profile

Профиль - все ограничения на ТД внутри домена и SSID, привязанные к домену

Объект NbiDomainShaperProfile

Примеры команд и кодов

Код Описание ошибки

0

Успешно (ограничения только на ТД в домене)

Запрос
<soapenv:Envelope
    xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:nbi="http://nbi.radius.eltex.org">
    <soapenv:Header/>
    <soapenv:Body>
        <nbi:GetDomainShaper>
            <nbi:apDomain>box.mike.root</nbi:apDomain>
        </nbi:GetDomainShaper>
    </soapenv:Body>
</soapenv:Envelope>
Ответ
<soapenv:Envelope
    xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <soapenv:Body>
        <ns:GetDomainShaperResponse
            xmlns:ns="http://nbi.radius.eltex.org">
            <ns:return>
                <ax21:code>0</ax21:code>
                <ax21:detail/>
                <ax219:profile xsi:type="ax219:NbiDomainShaperProfile">
                    <ax219:averageDown>10</ax219:averageDown>
                    <ax219:averageUp>10</ax219:averageUp>
                    <ax219:domain>box.mike.root</ax219:domain>
                    <ax219:peakDown>30</ax219:peakDown>
                    <ax219:peakUp>20</ax219:peakUp>
                </ax219:profile>
            </ns:return>
        </ns:GetDomainShaperResponse>
    </soapenv:Body>
</soapenv:Envelope>

Код Описание ошибки

0

Успешно (ограничения на ТД в домене и на SSID, привязанные к домену)

Запрос
<soapenv:Envelope
    xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:nbi="http://nbi.radius.eltex.org">
    <soapenv:Header/>
    <soapenv:Body>
        <nbi:GetDomainShaper>
            <nbi:apDomain>unbox.mike.root</nbi:apDomain>
        </nbi:GetDomainShaper>
    </soapenv:Body>
</soapenv:Envelope>
Ответ
<soapenv:Envelope
    xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <soapenv:Body>
        <ns:GetDomainShaperResponse
            xmlns:ns="http://nbi.radius.eltex.org">
            <ns:return>
                <ax21:code>0</ax21:code>
                <ax21:detail/>
                <ax219:profile xsi:type="ax219:NbiDomainShaperProfile">
                    <ax219:averageDown>100</ax219:averageDown>
                    <ax219:averageUp>200</ax219:averageUp>
                    <ax219:domain>unbox.mike.root</ax219:domain>
                    <ax219:peakDown>8800</ax219:peakDown>
                    <ax219:peakUp>9900</ax219:peakUp>
                    <ax219:ssid xsi:type="ax219:NbiSsidShaperProfile">
                        <ax219:averageDown>335</ax219:averageDown>
                        <ax219:averageUp>115</ax219:averageUp>
                        <ax219:domain>unbox.mike.root</ax219:domain>
                        <ax219:name>SSIDUNBOX</ax219:name>
                        <ax219:peakDown>4555</ax219:peakDown>
                        <ax219:peakUp>225</ax219:peakUp>
                    </ax219:ssid>
                    <ax219:ssid xsi:type="ax219:NbiSsidShaperProfile">
                        <ax219:averageDown>0</ax219:averageDown>
                        <ax219:averageUp>0</ax219:averageUp>
                        <ax219:domain>unbox.mike.root</ax219:domain>
                        <ax219:name>SSIDUNBOX2</ax219:name>
                        <ax219:peakDown>0</ax219:peakDown>
                        <ax219:peakUp>0</ax219:peakUp>
                    </ax219:ssid>
                </ax219:profile>
            </ns:return>
        </ns:GetDomainShaperResponse>
    </soapenv:Body>
</soapenv:Envelope>

Код Описание ошибки

0

Успешно (ограничения только на SSID)

Запрос
<soapenv:Envelope
    xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:nbi="http://nbi.radius.eltex.org">
    <soapenv:Header/>
    <soapenv:Body>
        <nbi:GetDomainShaper>
            <nbi:apDomain>empty.mike.root</nbi:apDomain>
        </nbi:GetDomainShaper>
    </soapenv:Body>
</soapenv:Envelope>
Ответ
<soapenv:Envelope
    xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <soapenv:Body>
        <ns:GetDomainShaperResponse
            xmlns:ns="http://nbi.radius.eltex.org">
            <ns:return>
                <ax21:code>0</ax21:code>
                <ax21:detail/>
                <ax29:profile xsi:type="ax29:NbiDomainShaperProfile">
                    <ax29:averageDown>0</ax29:averageDown>
                    <ax29:averageUp>0</ax29:averageUp>
                    <ax29:domain>empty.mike.root</ax29:domain>
                    <ax29:peakDown>0</ax29:peakDown>
                    <ax29:peakUp>0</ax29:peakUp>
                    <ax29:ssid xsi:type="ax29:NbiSsidShaperProfile">
                        <ax29:averageDown>60</ax29:averageDown>
                        <ax29:averageUp>30</ax29:averageUp>
                        <ax29:domain>root</ax29:domain>
                        <ax29:name>SSID77</ax29:name>
                        <ax29:peakDown>120</ax29:peakDown>
                        <ax29:peakUp>60</ax29:peakUp>
                    </ax29:ssid>
                </ax29:profile>
            </ns:return>
        </ns:GetDomainShaperResponse>
    </soapenv:Body>
</soapenv:Envelope>

Код Описание ошибки

282

Не заданы ограничения для домена

Запрос
<soapenv:Envelope
    xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:nbi="http://nbi.radius.eltex.org">
    <soapenv:Header/>
    <soapenv:Body>
        <nbi:GetDomainShaper>
            <nbi:apDomain>root</nbi:apDomain>
        </nbi:GetDomainShaper>
    </soapenv:Body>
</soapenv:Envelope>
Ответ
<soapenv:Envelope
    xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <soapenv:Body>
        <ns:GetDomainShaperResponse
            xmlns:ns="http://nbi.radius.eltex.org">
            <ns:return>
                <ax21:code>282</ax21:code>
                <ax21:detail>Shaper profile doesn't exist for 'root'</ax21:detail>
                <ax219:profile xsi:nil="true"/>
            </ns:return>
        </ns:GetDomainShaperResponse>
    </soapenv:Body>
</soapenv:Envelope>

Код Описание ошибки

62

Домен не существует

Запрос
<soapenv:Envelope
    xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:nbi="http://nbi.radius.eltex.org">
    <soapenv:Header/>
    <soapenv:Body>
        <nbi:GetDomainShaper>
            <nbi:apDomain>de.root</nbi:apDomain>
        </nbi:GetDomainShaper>
    </soapenv:Body>
</soapenv:Envelope>
Ответ
<soapenv:Envelope
    xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <soapenv:Body>
        <ns:GetDomainShaperResponse
            xmlns:ns="http://nbi.radius.eltex.org">
            <ns:return>
                <ax21:code>62</ax21:code>
                <ax21:detail>Such domain 'de.root' is not registered in ELTEX_EMS.DOMAINS</ax21:detail>
                <ax219:profile xsi:nil="true"/>
            </ns:return>
        </ns:GetDomainShaperResponse>
    </soapenv:Body>
</soapenv:Envelope>

Код Описание ошибки

281

Не найден обязательный параметр запроса (домен)

Запрос
<soapenv:Envelope
    xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:nbi="http://nbi.radius.eltex.org">
    <soapenv:Header/>
    <soapenv:Body>
        <nbi:GetDomainShaper>
            <nbi:apDomain></nbi:apDomain>
        </nbi:GetDomainShaper>
    </soapenv:Body>
</soapenv:Envelope>
Ответ
<soapenv:Envelope
    xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <soapenv:Body>
        <ns:GetDomainShaperResponse
            xmlns:ns="http://nbi.radius.eltex.org">
            <ns:return>
                <ax21:code>281</ax21:code>
                <ax21:detail>Request parameter 'apDomain' has not specified or empty</ax21:detail>
                <ax219:profile xsi:nil="true"/>
            </ns:return>
        </ns:GetDomainShaperResponse>
    </soapenv:Body>
</soapenv:Envelope>

Код Описание ошибки

280

В файле конфигурации /etc/eltex-radius-nbi/radius_nbi_config.txt отключена MongoDB

Запрос
<soapenv:Envelope
    xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:nbi="http://nbi.radius.eltex.org">
    <soapenv:Header/>
    <soapenv:Body>
        <nbi:GetDomainShaper>
            <nbi:apDomain>root</nbi:apDomain>
        </nbi:GetDomainShaper>
    </soapenv:Body>
</soapenv:Envelope>
Ответ
<soapenv:Envelope
    xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <soapenv:Body>
        <ns:GetDomainShaperResponse
            xmlns:ns="http://nbi.radius.eltex.org">
            <ns:return>
                <ax21:code>280</ax21:code>
                <ax21:detail>MongoDB disabled at configuration. Check out 'radius_nbi_config.txt', please.</ax21:detail>
                <ax219:profile xsi:nil="true"/>
            </ns:return>
        </ns:GetDomainShaperResponse>
    </soapenv:Body>
</soapenv:Envelope>

Код Описание ошибки

999

Нет доступа до MongoDB Идет под индексом системной ошибки. Отдельного кода не имеет.

Запрос
<soapenv:Envelope
    xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:nbi="http://nbi.radius.eltex.org">
    <soapenv:Header/>
    <soapenv:Body>
        <nbi:GetDomainShaper>
            <nbi:apDomain>root</nbi:apDomain>
        </nbi:GetDomainShaper>
    </soapenv:Body>
</soapenv:Envelope>
Ответ
<soapenv:Envelope
    xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <soapenv:Body>
        <ns:GetDomainShaperResponse
            xmlns:ns="http://nbi.radius.eltex.org">
            <ns:return>
                <ax21:code>999</ax21:code>
                <ax21:detail>Timed out after 10000 ms while waiting to connect. Client view of cluster state is {type=Unknown, servers=[{address=192.168.26.233:27017, type=Unknown, state=Connecting, exception={com.mongodb.MongoException$Network: Exception opening the socket}, caused by {java.net.NoRouteToHostException: No route to host}}]</ax21:detail>
                <ax219:profile xsi:nil="true"/>
            </ns:return>
        </ns:GetDomainShaperResponse>
    </soapenv:Body>
</soapenv:Envelope>

См. также

Вернуться к списку команд
Версия 1.21-2362
Дата публикации 17-01-2022 09:09:34