Use this task to generate RPC messages to install IOS XR image.
This task supports Cisco NCS 1010 setup, deployment, upgrade, or maintenance workflows.
Before you begin
Not all software versions are supported as the target upgrade software version. You must review the supported upgrade and downgrade paths, hardware or software limitations, and bridging SMUs required for the version. For more information about checking the release support between the current and target versions, see Supported upgrade and downgrade releases.
Follow these steps to generate RPC messages to install IOS XR image.
Procedure
|
1. |
Invoke the install-replace RPC on the Cisco-IOS-XR-install-act.yang data model to upgrade NCS 1010. |
|
2. |
Configure the values of the source-type, source, and file parameters. |
|
3. |
Send edit-config NETCONF RPC request using the data model to configure the repository. Edit the values in the repositories parameters and send this request to NCS 1010 from the client. |
|
4. |
Apply the changes to activate the ISO on NCS 1010 using RPCs by using the install-apply RPC on theCisco-IOS-XR-install-augmented-act.yang datamodel and send the RPC from the client to NCS 1010.
Example:
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="101">
<install-apply xmlns="http://cisco.com/ns/yang/Cisco-IOS-XR-install-augmented-act">
<apply-method>least-impactful</apply-method>
</install-apply>
</rpc>
View the RPC response received from NCS 1010.
<?xml version="1.0"?>
<rpc-reply message-id="101" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<op-id xmlns="http://cisco.com/ns/yang/Cisco-IOS-XR-install-augmented-act">2.1</op-id>
</rpc-reply>
In the response, NCS 1010 sends an ID indicating that the changes are applied successfully.
|
|
5. |
Verify that the software upgrade is successful. Use the getRPCon Cisco-IOS-XR-install-oper.yang data model. Edit the install parameter and send an RPC request from the client to NCS 1010.
Example:
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="101">
<get>
<filter>
<install xmlns="http://cisco.com/ns/yang/Cisco-IOS-XR-install-oper">
<request/>
</install>
</filter>
</get>
</rpc>
View the RPC response received from NCS 1010.
<?xml version="1.0"?>
<rpc-reply message-id="101" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<data>
<install xmlns="http://cisco.com/ns/yang/Cisco-IOS-XR-install-oper">
<request>
<request>install commit</request>
<state>success</state>
<timestamp>2022-06-27 T02:52:07Z</timestamp>
<operation-id>26</operation-id>
</request>
</install>
The state of the install operation in the RPC response indicates that the software and the RPMs are upgraded successfully.
|
What to do next
Perform preliminary checks to verify that NCS 1010 is upgraded successfully.