count
使用
<rpc>
<get-configuration>
<configuration>
<!-- opening tags for each parent of the object -->
<object-type count="count"/>
<!-- closing tags for each parent of the object -->
</configuration>
</get-configuration>
</rpc>
描述
指定要返回信息的类型的配置对象数量。如果省略属性,则 Junos XML 协议服务器将返回有关该类型的所有对象的信息。
属性可以与一个或多个 , matchingrecurse和start属性组合在一起。
如果应用程序请求 Junos XML 标记的输出(默认),Junos XML 协议服务器会为每个返回的对象包含两个属性:
junos:position- 指定对象的数字索引。junos:total-报告层次结构中存在的此类对象的总数。
如果应用程序请求将 ASCII 输出格式化为打开<get-configuration>标记中,则不会显示这些format="text"属性。