cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1239
Views
0
Helpful
1
Replies
Highlighted

ASR9001 BNG: XML query in IOS-XR related to subscriber sessions.

Hi, 

   I would like to query a Cisco ASR9001 using XML.

  My ASR9001 is working as BNG and I would like to make specific queries to monitor users with XML.

  In Cisco documentation I found the XML equivalent to the "show subscriber session ..." command:

 

show subscriber session all summary location <location>

Subscriber.Session.NodeTable.Node.Summary

 

sh sub sess all detail location <location>

Subscriber.Session.NodeTable.Node.SessionTable(SubscriberDetailAllSessionFilter)

 

sh sub sess all username loc

Subscriber.Session.NodeTable.Node.SessionTable(SubscriberAllUsenameFilter)

 

The question is: how to build the correct XML query?
I was unable to find the XML schema or adapt an XML example.

My initial XML file is this:

 

RP/0/RSP0/CPU0:ASR9001#xml format echo
Thu Nov 2 15:59:58.250 MET
XML>

<?xml version="1.0" encoding="UTF-8"?>
<Request MajorVersion="1" MinorVersion="0">
  <Get>
    <Configuration>
             <Subscriber> <Session><NodeTable><Node>
              <SessionTable></SessionTable>

              </Node></NodeTable></Session></Subscriber>     
    </Configuration>
  </Get>
</Request>


<?xml version="1.0" encoding="UTF-8"?>
<Response MajorVersion="1" MinorVersion="0" ErrorCode="0xa367ca00" ErrorMsg="&apos;XML Service Library&apos; detected the &apos;fatal&ap
that the XML Request is invalid.&apos;">
<ResultSummary ErrorCount="0"/>
</Response>
XML>

 

Did any of you had the same problem?

Thankyou

 

Gianrico Fichera

 

1 REPLY 1
Highlighted
Beginner

We are attempting to do something similar to this. Was there a solution found for this issue?

Content for Community-Ad