No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

RESTful API Reference

CloudEngine 8800, 7800, 6800, and 5800 V200R002C50

This document describes the OPS APIs supported by the device, including OPS-supported operations, request examples, elements in the requests, response examples, elements in the responses, and response status codes.
Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Query Global BFD Statistics

Query Global BFD Statistics

Operation

URI

Description

GET

/bfd/bfdStat

Query global BFD statistics.

  • Request example
    <?xml version="1.0" encoding="UTF-8"?> 
    <bfdStat> 
        <ipSessNum></ipSessNum> 
        <teLspSessNum></teLspSessNum> 
        <totalSessNum></totalSessNum> 
        <SessUpNum></SessUpNum> 
        <SessDownNum></SessDownNum> 
        <staticSessNum></staticSessNum> 
        <dynSessNum></dynSessNum> 
    </bfdStat>

    Table 3-636 describes elements in requests.

    Table 3-636  Elements

    Element

    Description

    hafStaEnum

    Specifies the HA status of the BFD component.

    ipSessNum

    Specifies the number of IP BFD sessions.

    ldpLspSessNum

    Specifies the number of LDP LSP BFD sessions.

    sLspSessNum

    Specifies the number of static LSP BFD sessions.

    teLspSessNum

    Specifies the number of TE LSP BFD sessions.

    totalSessNum

    Specifies the total number of BFD sessions.

    SessUpNum

    Specifies the number of BFD sessions that are in the Up state.

    SessDownNum

    Specifies the number of BFD sessions that are in the Down state.

    staticSessNum

    Specifies the number of static BFD sessions.

    dynSessNum

    Specifies the number of dynamic BFD sessions.

    autoSessNum

    Specifies the number of static BFD sessions with automatically negotiated discriminators.

    passiveSessNum

    Specifies the number of fully dynamic (passive) BFD sessions.

    teTunnelSessNum

    Specifies the number of TE tunnel BFD sessions.

    usedDiscrNum

    Specifies the number of used session discriminators.

    pwSessNum

    Specifies the total number of BFD PW sessions.

    vsiPwSessNum

    Specifies the total number of BFD VSI PW sessions.

    ldpTnlSessNum

    Specifies the number of LDP tunnel BFD sessions.

    bgpTnlSessNum

    Specifies the number of BGP tunnel BFD sessions.

    mainSessUpNum

    Specifies the number of main BFD sessions that are in the Up state.

    mainSessDownNum

    Specifies the number of main BFD sessions that are in the Down state.

    subSessUpNum

    Specifies the number of BFD sub-sessions that are in the Up state.

    subSessDownNum

    Specifies the number of BFD sub-sessions that are in the Down state.

  • Response example (XML format)
    <?xml version="1.0" encoding="UTF-8"?> 
    <bfdStat> 
        <ipSessNum>1</ipSessNum> 
        <teLspSessNum>0</teLspSessNum> 
        <totalSessNum>1</totalSessNum> 
        <SessUpNum>0</SessUpNum> 
        <SessDownNum>1</SessDownNum> 
        <staticSessNum>1</staticSessNum> 
        <dynSessNum>0</dynSessNum> 
        <autoSessNum>0</autoSessNum> 
        <usedDiscrNum>1</usedDiscrNum> 
        <ldpTnlSessNum>0</ldpTnlSessNum> 
        <bgpTnlSessNum>0</bgpTnlSessNum> 
        <mainSessUpNum>0</mainSessUpNum> 
        <mainSessDownNum>0</mainSessDownNum> 
        <subSessUpNum>0</subSessUpNum> 
        <subSessDownNum>0</subSessDownNum> 
    </bfdStat>

    Table 3-637 describes elements in responses.

    Table 3-637  Elements

    Element

    Description

    ipSessNum

    Specifies the number of IP BFD sessions.

    teLspSessNum

    Specifies the number of TE LSP BFD sessions.

    totalSessNum

    Specifies the total number BFD sessions.

    SessUpNum

    Specifies the number of BFD sessions that are in the Up state.

    SessDownNum

    Specifies the number of BFD sessions that are in the Down state.

    staticSessNum

    Specifies the number of static BFD sessions.

    dynSessNum

    Specifies the number of dynamic BFD sessions.

    autoSessNum

    Specifies the number of static BFD sessions with automatically negotiated discriminators.

    usedDiscrNum

    Specifies the number of used session discriminators.

    ldpTnlSessNum

    Specifies the number of LDP tunnel BFD sessions.

    bgpTnlSessNum

    Specifies the number of BGP tunnel BFD sessions.

    mainSessUpNum

    Specifies the number of main BFD sessions that are in the Up state.

    mainSessDownNum

    Specifies the number of main BFD sessions that are in the Down state.

    subSessUpNum

    Specifies the number of BFD sub-sessions that are in the Up state.

    subSessDownNum

    Specifies the number of BFD sub-sessions that are in the Down state.

    Table 3-638 describes status codes in responses.

    Table 3-638  Status codes

    Status Code

    Description

    200 OK

    The operation succeeded.

    400 Bad Request

    The request operation failed because the request is incorrect in syntax or the information attribute in the request is incorrect.

    500 Internal Server Error

    The request operation failed because of internal errors in services or unidentified processing errors.

Translation
Download
Updated: 2019-03-21

Document ID: EDOC1000166567

Views: 30121

Downloads: 127

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next