Differences between revisions 3 and 4
Revision 3 as of 2017-09-15 09:11:23
Size: 2153
Editor: HungTa
Comment:
Revision 4 as of 2017-09-15 09:17:03
Size: 2613
Editor: HungTa
Comment:
Deletions are marked like this. Additions are marked like this.
Line 30: Line 30:

If <filter> doesn't contain any attribute (for example), type: get-config source=<running/> filter=<myService><config><homeLocation/></config></myService>. Xml generated:

        <get-config>
          <source>
            <running/>
          </source>
          <filter>
            <myService>
              <config>
                <homeLocation/>
              </config>
            </myService>
          </filter>
        </get-config>

The OpenClovis Managment Command Line Interface

Overview

OpenClovis provides a powerful graphical Command Line Interface (CLI) and Text Command Line interface application that allows users to easily access information presented by network elements via the NETCONF protocol but in this first version, we only provide the latter.

To get started with the supported commands, you must be familiar with Netconf specification (https://tools.ietf.org/html/rfc6241) and Netconf notification (https://tools.ietf.org/html/rfc5277). These specifications define concepts as well as message structure in xml you must know in order to communicate with netconf server via commands such as get-config, edit-config, create-subscription...

First, you need to run ./safplus_cli

To get the command list, type help.

To run an rpc command, type: <command> [<name=value> <name=value> ...] <br> <command>: rpc command supported by OpenYuma such as get-config, edit-config... and your own commands defined in your app.<br> <name=value>: arguments for the command in pair separated by '=' and each pair is separated by space the command has several arguments. Each name in pair will be translated as an xml tag and value will be the text value for the tag. For example, get-config source=running will be translated as <get-config><source>running</source></get-config> . But according to the Netconf specification, the get-config xml message must be: <get-config><source><running/></source></get-config>. To achieve this, you must type: get-config source=<running/> <br> If the tag doesn't include any attribute, like <source><running/></source>, you can type get-config source=<running/>. But if a tag contains attribute like <br>

  • <get-config>

    • <source>

      • <running/>

      </source> <filter type="subtree">

      • <myService>

        • <config>

          • <homeLocation/>

          </config>

        </myService>

      </filter>

    </get-config>

you must type: get-config source=<running/> <filter type="subtree">=<myService><config><homeLocation/></config></myService>

If <filter> doesn't contain any attribute (for example), type: get-config source=<running/> filter=<myService><config><homeLocation/></config></myService>. Xml generated:

  • <get-config>

    • <source>

      • <running/>

      </source> <filter>

      • <myService>

        • <config>

          • <homeLocation/>

          </config>

        </myService>

      </filter>

    </get-config>

SAFplus: SAFplus Management CLI Guide (last edited 2018-01-11 06:55:20 by HungTa)