API-Call for QOS results in 'interface has unexpected text'

Reply
Highlighted
L1 Bithead

API-Call for QOS results in 'interface has unexpected text'

Hi,

 

when I try to use an api call to query the qos statistics of an interface i get this errormessage:

 

<response status="error" code="17">
<msg>
<line>
<![CDATA[ show -> qos -> interface has unexpected text. ]]>
</line>
<line>
<![CDATA[ show -> qos -> interface is invalid ]]>
</line>
</msg>
</response>
 
I tried these requests:
 
&type=op&cmd=<show><qos><interface>ethernet1%2F3<%2Finterface><%2Fqos><%2Fshow>
 
&type=op&cmd=<show><qos><interface>ethernet1%2F3<%2Finterface><throughput>1<%2Fthroughput><%2Fqos><%2Fshow>
 
Do I have an error in my syntax?
 
 
Thank you in advance,
 
Andreas Bux
Tags (3)

Accepted Solutions
Highlighted
L1 Bithead

Re: API-Call for QOS results in 'interface has unexpected text'

Hi all,

 

I created a support case and got this feedback:

 

Syntax:

<show><qos><interface><entry name='ethernet1/3'><throughput>0</throughput></entry></interface></qos></show>

 

 

Just i case someone has the same problem.

 

Regards,

Andreas

View solution in original post


All Replies
Highlighted
L1 Bithead

Re: API-Call for QOS results in 'interface has unexpected text'

Hi all,

 

I created a support case and got this feedback:

 

Syntax:

<show><qos><interface><entry name='ethernet1/3'><throughput>0</throughput></entry></interface></qos></show>

 

 

Just i case someone has the same problem.

 

Regards,

Andreas

View solution in original post

L7 Applicator

Re: API-Call for QOS results in 'interface has unexpected text'

Hi @ABux

 

Do you maybe also know how to run the cli command "show qos interface ethernet1/1 counter"?

 

Regards,

Remo

Highlighted
L1 Bithead

Re: API-Call for QOS results in 'interface has unexpected text'

Hi Remo,

 

no, I do not know the syntax. Sorry.

 

Regards,

Andreas

Highlighted
L0 Member

Re: API-Call for QOS results in 'interface has unexpected text'

Thank you!!!

Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the Live Community as a whole!

The Live Community thanks you for your participation!