RUGGEDCOM NETCONF
Reference Guide
Chapter 7
Examples
77
Examples
This section provides examples of how to set and retrieve data on a device. Each example shows how to set or
retrieve a specific element or set of elements. Each example also demonstrates a general NETCONF concept, such
as how to retrieve data from the running configuration, or how to use special attributes to delete or replace data.
Each example assumes that you are connected to a device and have established a NETCONF session. For
instructions on how to establish a NETCONF session, see
.
Each example provides all of the
<rpc>
commands necessary to perform the function.
NETCONF Example
Example demonstrates these techniques:
Section 7.1, “Getting the System Name”
Querying for running configuration data.
Section 7.2, “Getting the ROX Release”
Querying for fixed system data.
Section 7.3, “Getting the Chassis Status”
Querying for state information.
Section 7.4, “Setting the System Clock”
Using an action command.
Section 7.5, “Acknowledging Alarms”
Using an action command.
Section 7.6, “Clearing All Alarms”
Using an action command.
Querying for state information.
Section 7.8, “Restoring Factory Defaults”
Using an action command.
Section 7.9, “Changing the System Name by Locking and
Recommended editing procedure.
Section 7.10, “Changing the System Name Directly”
Editing configuration data in the running configuration.
Section 7.11, “Creating a Static VLAN”
Recommended editing procedure.
Section 7.12, “Assigning a PVID on a Port”
Recommended editing procedure.
Section 7.13, “Disabling Spanning Tree on a Specific Port”
Recommended editing procedure.
Section 7.14, “Configuring an IP Address on a Specific Port”
Recommended editing procedure.
Section 7.15, “Deleting an IP Address”
Recommended editing procedure.
Section 7.16, “Setting a Static Route”
Recommended editing procedure.
Section 7.17, “Disabling Spanning Tree Globally”
Recommended editing procedure.
Deleting data with the
nc:operation="delete"
attribute.
Section 7.18, “Retrieving all IP Addresses from the Running
Recommended editing procedure.
Section 7.19, “Retrieving the Active Routes on a Device”
Querying for running configuration data.
Section 7.20, “Configuring Static Multicast Routing on a Layer 3
Recommended editing procedure.
Section 7.21, “Enabling Static Multicast Routing on a Layer 3 Device”
Recommended editing procedure.
Summary of Contents for RUGGEDCOM MX5000RE
Page 8: ...Table of Contents RUGGEDCOM NETCONF Reference Guide viii ...
Page 12: ...Preface RUGGEDCOM NETCONF Reference Guide xii Customer Support ...
Page 26: ...Chapter 1 Introduction RUGGEDCOM NETCONF Reference Guide 14 Sample Session Editing Data ...
Page 40: ...Chapter 3 NETCONF Sessions RUGGEDCOM NETCONF Reference Guide 28 Killing a Session ...
Page 64: ...Chapter 5 Changing Configuration Data RUGGEDCOM NETCONF Reference Guide 52 Committing Changes ...
Page 148: ...Chapter 8 NETCONF XML Elements RUGGEDCOM NETCONF Reference Guide 136 validate ...