Displaying RESTCONF Configuration and Status Information

You can use the following show commands to display information about the RESTCONF configuration and status. All of the commands are optional and do not need to be entered in the specified order.

  1. Enter the show restconf config command to show which RESTCONF parameters are configured.
    device> show restconf config
    RESTConf Feature Configuration
    restconf enable
    protocol-debug-level error
    platform-debug-level info
    config-sync enabled
    config-sync-timeout 5 mins
    Note: RESTCONF maintains own database for fast processing. When database sync is happening from FastIron to RESTCONF, the show commands and configuration commands to RESTCONF module result in failure due to ITC timeout. The following message is displayed during the failure instances.
    device# show restconf config
    Restconf DB sync is in-progress, try after sometime
  2. Enter the show restconf event-counters command to display information about RESTCONF event counters.
    device> show restconf event-counters
    SCP Event  |Processed    |YANG Map    |Queued    |Duplicate    |Unknown Oper    |
    153        |1            |1           |1         |0            |0               |
    154        |0            |2           |0         |0            |0               |
    155        |0            |3           |0         |0            |0               |
    131        |2            |4           |1         |1            |0               |
    143        |1            |5           |1         |0            |0               |
    144        |0            |6           |0         |0            |0               |
    161        |0            |9           |0         |0            |0               |
               |             |10          |0         |0            |0               |
    140        |0            |8           |0         |0            |0               |
               |             |7           |0         |0            |0               |
    141        |0            |11          |0         |0            |0               |
    145        |0            |12          |0         |0            |0               |
    146        |0            |13          |0         |0            |0               |
    147        |0            |14          |0         |0            |0               |
    148        |0            |15          |0         |0            |0               |
    149        |0            |16          |0         |0            |0               |
    156        |0            |17          |0         |0            |0               |
    157        |0            |18          |0         |0            |0               |
    158        |0            |19          |0         |0            |0               |
    150        |0            |20          |0         |0            |0               |
    8          |0            |21          |0         |0            |0               |
    81         |0            |22          |0         |0            |0               |
    65535      |0            |0           |0         |0            |0               |
  3. Enter the show restconf event-map command to display RESTCONF event-mapping information.
    device> show restconf event-map
    SCP Event             YANG ID             YANG Mapping
    153                     1                 /system/aaa/authentication/users
    154                     2                 /system/aaa/server-groups/server-group/tacacs-group/servers/server/tacacs
    155                     3                 /system/aaa/authentication/config/authentication-method
    131                     4                 /system/dns
    143                     5                 /lldp/config
    144                     6                 /lldp/interfaces
    161                     9                 /interfaces/interface/#wc/aggregation
                            10                /interfaces/interface/#wc/ethernet/config/aggregate-id
    140                     8                 /interfaces/interface/#wc/ethernet/switched-vlan/config
                            7                 /network-instances/network-instance/#wc/vlans
    141                     11                /openconfig-spanning-tree:stp
    145                     12                /network-instances/network-instance/#wc/protocols/protocol/OSPF/#wc
    146                     13                /network-instances/network-instance/#wc/protocols/protocol/OSPF/#wc/ospfv2/areas
    147                     14                /network-instances/network-instance/#wc/protocols/protocol/OSPF/#wc/ospfv2/areas/
    area/#wc/interfaces
    148                     15                /network-instances/network-instance/#wc/protocols/protocol/OSPF/#wc/ospfv2/areas/
    area/#wc/interfaces
    149                     16                /network-instances/network-instance/#wc/protocols/protocol/STATIC/#wc/staticroutes
    156                     17                /system/aaa/server-groups/server-group/radius-group/servers/server/radius
    157                     18                /system/aaa/authentication/icx-openconfig-aaa-aug:dot1x
    158                     19                /system/aaa/authorization/icx-openconfig-aaa-aug:coa/openconfig
    interfaces:interfaces
    150                     20                /openconfig-acl:acl
    8                       21                (null)
    81                      22                (null)
  4. Enter the show restconf running-config command to display RESTCONF running configuration information.
    device> show restconf running-config
    
    Get RC Req : File /var/log/restconf/ui_config.xml, XPath /, Def 0 State 0
    
    RESTConf Running Configuration XML File : /var/log/restconf/ui_config.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <config xmlns="http://yumaworks.com/ns/yumaworks-db-api">
      <interfaces xmlns="http://openconfig.net/yang/interfaces">
        <interface>
          <config>
            <description/>  
            <enabled>true</enabled>
            <name>ethernet 1/1/1</name>   
            <type>ianaift:ethernetCsmacd</type>
         </config>
         <ethernet xmlns="http://openconfig.net/yang/interfaces/ethernet">   
           <config>
             <auto-negotiate>false</auto-negotiate>
             <duplex-mode>FULL</duplex-mode>
             <ethernet-clock xmlns="http://commscope.com/ns/yang/icx/icx-openconfig-if-ethernet
    aug">none</ethernet-clock>
               <port-speed>oc-eth:SPEED_1GB</port-speed>
            </config>
          </ethernet>
          <name>ethernet 1/1/1</name>  
        </interface>
    …  
      </interfaces>
      <lldp xmlns="http://openconfig.net/yang/lldp">
        <config>
         <enabled>true</enabled>
        </config>
        <interfaces>
          <interface>
            <config>
              <enabled>true</enabled>
              <name>ethernet 1/1/1</name>
            </config>
            <name>ethernet 1/1/1</name>
          </interface>
  5. Enter the show restconf status command to display the RESTCONF status information.
    device> show restconf status
    RESTConf Status
    YControl Interface Init      : 1
    YControl Showdown            : 0
    DB-API Service Down          : 0
    YControl Init Fail           : 0
    DB-API Service Init Fail     : 0
    Netconfd Debug Edit Fail     : 0
    RESTConf Config Edit Fail    : 513
    RESTConf Config Delete Fail  : 10
    RESTConf Get Config Fail     : 0
    RESTConf Edit Debug Pass     : 1
    RESTConf Edit Config Pass    : 315
    RESTConf Delete Config Pass  : 2
    RESTConf Get Config Pass     : 0
    RESTConf Invalid Operation   : 0
    Invalid File Request         : 0
    Config Sync Pass             : 1
    Config Sync Fail             : 0
    Config Sync Timer Start      : 1
    Config Sync Timer Cancel     : 0
    Config Sync Timer Expire     : 1
    Event Timer Start            : 0
    Event Timer Cancel           : 0
    Event Timer Expire           : 0
    Config Sync Timer Status     : Disabled
    Event Timer Status           : Disabled
    .....................................