200-901 · Question #580
Refer to the exhibit. A network engineer wants to change the name of a device. The engineer submits a NETCONF request and receives a response. Which NETCONF request did the engineer submit? A. B. C…
The correct answer is D. <rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id=""> <edit-config> <target> <running/> </target> <config> <native xmlns="urn:ios"> <hostname>CSSTORM-TESTDEVICE</hostname> </native> </config> </edit-config> </rpc>. To modify the hostname of a device via NETCONF, the <edit-config> operation is used to apply configuration changes to the running datastore.
Question
Refer to the exhibit. A network engineer wants to change the name of a device. The engineer submits a NETCONF request and receives a response. Which NETCONF request did the engineer submit? A. B. C. D.
Exhibits
Options
- A<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id=""> <new-config> <target> <running/> </target> <config> <native xmlns="urn:ios"> <hostname>CSSTORM-TESTDEVICE</hostname> </native> </config> </new-config> </rpc>
- B<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id=""> <edit-config> <target> <running/> </target> <config> <native xmlns="urn:ios"> <hostname>CSSTORM-TESTDEVICE</hostname> </native> </config> </edit-config> </rpc>
- C<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id=""> <copy-config> <target> <running/> </target> <config> <native xmlns="urn:ios"> <hostname>CSSTORM-TESTDEVICE</hostname> </native> </config> </copy-config> </rpc>
- D<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id=""> <edit-config> <target> <running/> </target> <config> <native xmlns="urn:ios"> <hostname>CSSTORM-TESTDEVICE</hostname> </native> </config> </edit-config> </rpc>
How the community answered
(40 responses)- A5% (2)
- B13% (5)
- C8% (3)
- D75% (30)
Why each option
To modify the hostname of a device via NETCONF, the `<edit-config>` operation is used to apply configuration changes to the `running` datastore.
The `<new-config>` operation is not a valid standard NETCONF RPC as defined in RFC 6241.
This option is identical to option D, which is the correct answer and represents a valid NETCONF `<edit-config>` request.
The `<copy-config>` operation is used to copy an entire configuration datastore (e.g., from `running` to `startup`), not for making incremental edits to specific configuration elements like a hostname.
The `<edit-config>` operation is the standard NETCONF RPC used to modify configuration data in a target configuration datastore, such as the `running` configuration. By embedding the `<hostname>` element within the `<config>` tag, the engineer specifies the desired change to the device's name.
Concept tested: NETCONF edit-config operation
Source: https://www.rfc-editor.org/rfc/rfc6241#section-7.2
Topics
Community Discussion
No community discussion yet for this question.




