Photo by Josh Olalde on Unsplash

CCIE Service Provider #2 $whoami S\ys\4dmin

CC1E 0x108D4
13 min readOct 4, 2023

Those with experience with Linux distribution both for their own computer daily tasks or to deploy services like Email, DHCP, NFS, DNS, and SSH soon. It won't have news for them for components that are part of modern OS.

IOS XR Process Management

XR is a multitasking preempt system, where higher priority processes are able to interrupt lower ones. Threads run while parent process is running.

  • Process
    Processes are groups of threads that share virtual memory space.
  • Job ID — Each Process has its own JID when first run. The JID doesn't changes even after stop or restart the process
  • Process ID — Each process has its own PID but the value changes when a process is restarted or stopped.
  • DLL — Process may call and access Dynamic Link libraries, which is a way to share a peace of code
  • Threads
    Threads are like "sub-process" for a unit of execution. For example: The OSPF process might have a couple of threads, one of which handles "hello" messages. There are many threads states like RUNNING, READY, JOIN, DEAD, CONDVAR, MUTEX, RECEIVE, REPLY, and many others.
  • Instance
    One process can have more than one process as well. Exemplo: More than one OSPF instance.

interesting managemen commands

show process
show process <option> process name | JID
monitor process (like top linux tool)
monitor threads or top

Sysmgr

All process need to be registered with sysmgr before start. This means, sysmgr is responsible for managing processes like starting, stopping, and restarting. Log available at /tmp/sysmgr.log

RP/0/RP0/CPU0:R0#show process
Wed Oct 4 02:30:24.807 UTC
JID TID Stack pri state NAME rt_pri
1 1 0K 20 Sleeping systemd 0
2 2 0K 20 Sleeping kthreadd 0
3 3 0K 20 Sleeping ksoftirqd/0 0
5 5 0K 0 Sleeping kworker/0:0H 0
7 7 0K 20 Sleeping rcu_sched 0
8 8 0K 20 Sleeping rcu_bh 0
65634 98 0K 0 Sleeping bioset 0
< SKIP >




RP/0/RP0/CPU0:R0#show processes boot
Wed Oct 4 02:42:02.061 UTC
Band Name FinishTimeStamp BandTime Finished %Idle JID Ready Last Process
----- ------------ ------------------- -------- -------- -------- ----- ------- ---------------
20.0 PBI Oct 4 01:27:39:509 45.058 45.058 0.000% 333 45.058 shelfmgr
90.0 IPC Oct 4 01:27:43:147 3.638 48.696 0.000% 139 3.638 tamsvcs_tamm
100.0 INFRA Oct 4 01:28:29:465 46.318 95.015 0.000% 339 46.318 qos_ea
150.0 ACTIVE Oct 4 01:29:29:199 59.733 154.748 0.000% 121 59.733 object_tracking
999.0 FINAL Oct 4 01:29:31:709 2.509 157.258 0.000% 202 2.509 pyztp2


StrtTimeStmp Started Level JID Inst RdyTimeStmp Ready Process
------------ -------- ------ ---- ---- ------------ ------- -------------------
01:26:54:111 0.000s 39.00 51 1 01:26:54:111 0.000 processmgr
01:26:54:484 0.372s 10.00 134 1 01:26:54:531 0.047 cerrno_server
01:26:54:492 0.381s 11.00 256 1 01:26:55:004 0.512 syslogd
01:26:54:500 0.389s 11.00 117 1 01:26:54:547 0.046 syslogd_helper
01:26:54:513 0.402s 11.00 114 1 01:26:54:554 0.041 syslog_dev
01:26:54:521 0.410s 12.00 166 1 01:26:54:744 0.223 clustermgr
01:26:54:538 0.426s 13.00 390 1 01:27:01:217 6.679 obflmgr
01:26:54:546 0.435s 13.00 312 1 01:26:54:707 0.160 alarm_mgr
01:26:54:557 0.445s 14.00 333 1 01:27:39:504 44.947 shelfmgr
01:27:45:312 51.200s 99.00 384 1 01:27:46:707 1.395 optics_driver
01:27:45:368 51.256s 99.00 240 1 01:27:45:604 0.236 procfind
01:27:45:415 51.303s 99.00 269 1 01:27:46:167 0.752 xlncd
01:27:45:471 51.359s 100.00 283 1 01:27:45:821 0.350 ipv6_ma
01:27:45:565 51.454s 100.00 392 1 01:27:46:387 0.821 mpls_lsd
01:27:45:587 51.476s 100.00 300 1 01:27:45:771 0.184 bgp_policy_reg_agent
01:27:45:612 51.500s 100.00 319 1 01:27:45:897 0.285 igmp_policy_reg_agent
01:27:45:657 51.546s 100.00 132 1 01:27:45:894 0.237 isis_policy_reg_agent
01:27:45:692 51.581s 100.00 192 1 01:27:46:404 0.711 l2vpn_policy_reg_agent
01:27:45:733 51.621s 100.00 286 1 01:27:46:011 0.278 mldp_policy_reg_agent
01:27:45:795 51.683s 100.00 282 1 01:27:46:057 0.262 ospf_policy_reg_agent
01:27:45:870 51.758s 0.00 216 1 01:27:46:047 0.177 ixdb_gc
01:27:45:940 51.828s 100.00 261 1 01:27:46:081 0.141 ospfv3_policy_reg_agenv4_mpa
01:28:30:128 96.016s 172.00 1152 1 01:28:32:377 2.249 policy_repository
01:28:30:186 96.074s 170.00 1151 1 01:29:29:194 59.008* mrib6
01:28:30:250 96.139s 170.00 1150 1 01:29:29:194 58.943* mrib
01:28:30:284 96.173s 170.00 1149 1 01:28:31:584 1.299 ipv6_rib
01:28:30:319 96.208s 170.00 1148 1 01:28:30:414 0.095 ipv6_mfwd_ma
01:28:30:336 96.224s 170.00 1147 1 01:28:31:534 1.198 ipv4_rib

< SKIP >

Process placement

RP/0/RP0/CPU0:R0#show placement program ipv6_rib
Wed Oct 4 02:46:47.052 UTC
Display program related information. This is the program information corresponding to this LR as
perceived by the placement daemon.
------------------------------------------------------------------------------------------------------------------------------------------
Process Information
------------------------------------------------------------------------------------------------------------------------------------------
Program Group jid Active Active-state Standby Standby-state
------------------------------------------------------------------------------------------------------------------------------------------
ipv6_rib v6-routing 1149 0/RP0/CPU0 RUNNING NONE PLACEMENT_DECIDED
------------------------------------------------------------------------------------------------------------------------------------------
RP/0/RP0/CPU0:R0#show placement program l2vpn_mgr
Wed Oct 4 02:47:21.168 UTC
Display program related information. This is the program information corresponding to this LR as
perceived by the placement daemon.
------------------------------------------------------------------------------------------------------------------------------------------
Process Information
------------------------------------------------------------------------------------------------------------------------------------------
Program Group jid Active Active-state Standby Standby-state
------------------------------------------------------------------------------------------------------------------------------------------
l2vpn_mgr v4-routing 1177 0/RP0/CPU0 RUNNING NONE NOT_SPAWNED
------------------------------------------------------------------------------------------------------------------------------------------
RP/0/RP0/CPU0:R0#show placement program ipv4_rib
Wed Oct 4 02:47:34.131 UTC
Display program related information. This is the program information corresponding to this LR as
perceived by the placement daemon.
------------------------------------------------------------------------------------------------------------------------------------------
Process Information
------------------------------------------------------------------------------------------------------------------------------------------
Program Group jid Active Active-state Standby Standby-state
------------------------------------------------------------------------------------------------------------------------------------------
ipv4_rib v4-routing 1147 0/RP0/CPU0 RUNNING NONE PLACEMENT_DECIDED
------------------------------------------------------------------------------------------------------------------------------------------
RP/0/RP0/CPU0:R0#

Process not Spawned (No started)

RP/0/RP0/CPU0:R0#show process bgp 
Wed Oct 4 02:56:10.131 UTC
Job Id: 1069
Process name: bgp
Executable path: /opt/cisco/install-iosxr/base/bin/bgp
Instance #: 1
Version ID: 00.00.0000
Respawn: ON
Respawn count: 0
Last started: Not yet spawned
Process state: Hold
Package state: Normal
Feature name: ON
Process group: v4-routing
core: MAINMEM
Max. core: 0
Placement: Placeable
startup_path: /opt/cisco/install-iosxr/base/startup/bgp.startup
-------------------------------------------------------------------------------

CPU and Memory

show process cpu
top dumbtty
show memory summary
show memory
show process memory
show dll memory
monitor process

Global memory report memory for location (RSP/RP and LC)

RP/0/RP0/CPU0:R0#show memory summary 
Wed Oct 4 03:04:32.008 UTC

node: node0_RP0_CPU0
------------------------------------------------------------------

Physical Memory: 15879M total (11860M available)
Application Memory : 15879M (11860M available)
Image: 4M (bootram: 0M)
Reserved: 0M, IOMem: 0M, flashfsys: 0M
Total shared window: 312M
  • Physical memory: Amount of memory the device has.
  • Application memory: Memory available for system to use
  • Image — Size of bootable image
  • Reserved — IOmem back for packet memory, flashfsys flash file system memory

Each process hes it own private virtual memory space. A process cannot access private memory of another process' memory.

If a process start to growth and each its dynamic memory limit, the XR will crash the process and restart to decreasing memory consunption.

RP/0/RP0/CPU0:R0#show processes ipv4_rib
Wed Oct 4 03:09:10.563 UTC
Job Id: 1147
PID: 6200
Process name: ipv4_rib
Executable path: /opt/cisco/install-iosxr/base/bin/ipv4_rib
Instance #: 1
Version ID: 00.00.0000
Respawn: ON
Respawn count: 1
Last started: Wed Oct 4 01:28:30 2023
Process state: Run
Package state: Normal
Process group: v4-routing
core: MAINMEM
Max. core: 0
Level: 170
Placement: Placeable
startup_path: /opt/cisco/install-iosxr/base/startup/ipv4_rib.startup
Ready: 1.198s
Available: 1.128s
Process cpu time: 0.160 user, 0.130 kernel, 0.290 total
JID TID Stack pri state NAME rt_pri
1147 6200 0K 20 Sleeping ipv4_rib 0
1147 6241 0K 20 Sleeping lwm_service_thr 0

RP/0/RP0/CPU0:R0#show processes memory ?
<1-2147483647> process id
detail display detail output(cisco-support)
location location to display
| Output Modifiers
<cr>
RP/0/RP0/CPU0:R0#show processes memory 6200
Wed Oct 4 03:09:50.777 UTC
JID Text(KB) Data(KB) Stack(KB) Dynamic(KB) Process
------ ---------- ---------- ---------- ----------- ------------------------------
1147 1076 55180 132 18884 ipv4_rib
RP/0/RP0/CPU0:R0#

RP/0/RP0/CPU0:R0#show process memory detail 6200
Wed Oct 4 03:12:29.489 UTC
JID Text Data Stack Dynamic Dyn-Limit Shm-Tot Phy-Tot Process
============================================================================================================
1147 1M 53M 132K 18M 8192M 53M 61M ipv4_rib
RP/0/RP0/CPU0:R0#

shared memory share space where multiple processes can access /dev/shmem. Show shmwin summary

Filesystem

  • /disk0:
    Store software packet and config files .
    can be formatted FAT16/32, QNX4 etc
  • /harddisk:
    used for process, kernel dumps. Nice to also store PIE/RPM, EEM scripts, etc.
RP/0/RP0/CPU0:R0#show media  location all
Wed Oct 4 03:33:44.522 UTC

Media Info for Location: node0_RP0_CPU0
Partition Size Used Percent Avail
--------------------------------------------------------------------
/var/lib/docker 6.9G 17M 1% 6.5G
disk0: 4.0G 9.2M 1% 3.8G
log: 5.5G 294M 6% 4.9G
harddisk: 63G 61M 1% 60G
RP/0/RP0/CPU0:R0#show filesystem location all
Wed Oct 4 03:33:49.625 UTC

node: node0_RP0_CPU0
------------------------------------------------------------------
File Systems:

Size(b) Free(b) Type Flags Prefixes
67490279424 67426947072 harddisk rw harddisk:
0 0 network rw ftp:
0 0 network rw tftp:
4225425408 4215820288 flash-disk rw disk0:
60453752832 53891620864 flash rw /misc/config

to format flash disk use "format disk0:" or :format harddisk:"

Cisco IOS XR Software Installation | Cisco U. Lab

  • Bring up Docker instance for remote repo purpose
  • Setup local repo in the XR device
  • Install e remove software packeger and SMU fix

Docket container
. Set up a repository on Docker repo

[root@d2ab70fdab75 repo]# ls -l
total 7888
-rw-r--r-- 1 1000 1000 4034560 Mar 25 2022 8000-7.3.2.CSCvz57398.tar
-r--r--r-- 1 241211 25 1280 Nov 22 2021 8000-7.3.2.CSCvz57398.txt
drwxr-xr-x 2 241211 25 4096 Nov 2 2021 8000-x86_64-7.3.2-CSCvz57398
-rw-r--r-- 1 241211 25 4029478 Nov 22 2021 8000-x86_64-7.3.2-CSCvz57398.tgz
drwxr-xr-x 2 root root 4096 Oct 4 20:50 repodata
[root@d2ab70fdab75 repo]# python3 -m http.server 80
Serving HTTP on 0.0.0.0 port 80 (http://0.0.0.0:80/) ...

XRv — Remote repo

  • Set up a remote repository in XR
  • Install SMU fixes for OSPF
  • Rollback
# remote repo
RP/0/RP0/CPU0:R0(config)#install repository remote_repo url http://192.168.122.1/

# Check available and install available SMU fixes
# show install fixes available
# install package upgrade xr-ospf-7.3.2v1.0.1-1 synchronous
# install apply
# show install fixes active
# show install fixes committe




RP/0/RP0/CPU0:R0#show install fixes available
Wed Oct 4 21:20:26.818 UTC
Trying to access repositories...

Available Fixes (count: 1):
Bug Id Packages Repository Cached
----------- ----------------------------------------------------------- ---------------------------------------- ------
CSCvz57398 xr-ospf-7.3.2v1.0.1-1 remote_repo
RP/0/RP0/CPU0:R0#install package upgrade xr-ospf-7.3.2v1.0.1-1
Wed Oct 4 21:21:54.571 UTC
Install upgrade operation 1.1.1 has started
Install operation will continue in the background

RP/0/RP0/CPU0:R0#show install fixes active
Wed Oct 4 21:27:08.376 UTC
There are currently no fixes active.

RP/0/RP0/CPU0:R0#show install request
Wed Oct 4 21:27:29.930 UTC

User request: install package upgrade xr-ospf-7.3.2v1.0.1-1
Operation ID: 1.1.1
State: Success since 2023-10-04 21:23:05 UTC

Current activity: Await user input
Time started: 2023-10-04 21:23:06

The following actions are available:
install package add
install package remove
install package upgrade
install package downgrade
install package replace
install package rollback
install package abort latest
install package abort all-since-apply
install apply restart
install apply reload

RP/0/RP0/CPU0:R0#install apply synchronous
Wed Oct 4 21:27:52.249 UTC
Once the packaging dependencies have been determined, the install operation may have to reload the system.
If you want more control of the operation, then explicitly use 'install apply restart' or 'install apply reload' as reported by 'show install request'.
Continue? [yes/no]:[yes] yes
Starting:
install apply restart
Atomic change 1.1
Press Ctrl-C to return to the exec prompt. This will not cancel the install operation

Current activity: Initializing
Current activity: Apply by restarting processes ....

Atomic change 1.1: 'install apply restart' completed without error

RP/0/RP0/CPU0:R0#show install request
Wed Oct 4 21:29:25.316 UTC

User request: install apply restart
Operation ID: 1.1
State: Success since 2023-10-04 21:28:43 UTC

Current activity: Await user input
Time started: 2023-10-04 21:28:43

The following actions are available:
install package add
install package remove
install package upgrade
install package downgrade
install package replace
install package rollback
install replace
install rollback
install source
install commit
RP/0/RP0/CPU0:R0#show install fixes active
Wed Oct 4 21:29:38.287 UTC

Active Fixes (count: 1):
Bug Id Packages
----------- -----------------------------------------------------------
CSCvz57398 xr-ospf-7.3.2v1.0.1-1

RP/0/RP0/CPU0:R0#show install fixes committed
Wed Oct 4 21:29:52.465 UTC
There are currently no fixes committed.
RP/0/RP0/CPU0:R0#install commit synchronous
Wed Oct 4 21:30:12.227 UTC
Starting:
install commit
Transaction 1
Press Ctrl-C to return to the exec prompt. This will not cancel the install operation

Current activity: Initializing
Current activity: Commit transaction

Transaction 1: 'install commit' completed without error

RP/0/RP0/CPU0:R0#show install fixes committed
Wed Oct 4 21:31:05.708 UTC

Committed Fixes (count: 1):
Bug Id Packages
----------- -----------------------------------------------------------
CSCvz57398 xr-ospf-7.3.2v1.0.1-1
RP/0/RP0/CPU0:R0#

#### ROLLBACK

RP/0/RP0/CPU0:R0#show install rollback list-ids
Wed Oct 4 21:34:37.117 UTC
It is possible to rollback to the following transaction IDs:

# Pkgs to rollback
Id Software Committed At: Add Mod Rem
---- ----------------------- ------- ------- -------
0 From Boot 0 1 0
1 2023-10-04 21:30:21 UTC 0 0 0

The maximum number of rollback points retained on this system is 5
For additional information, use the command 'show install rollback id N [changes]'
RP/0/RP0/CPU0:R0#show install rollback id 0 changes
Wed Oct 4 21:35:04.786 UTC
Rollback to transaction ID 0 will result in the following packages being added:

Name Version Arch
------------------------------ -------------------- ----------
xr-ospf 7.3.2v1.0.0-1 x86_64

Rollback to transaction ID 0 will result in the following packages being removed:

Name Version Arch
------------------------------ -------------------- ----------
xr-ospf 7.3.2v1.0.1-1 x86_64
RP/0/RP0/CPU0:R0#install rollback 0 commit synchronous
Wed Oct 4 21:35:29.954 UTC
Once the packaging dependencies have been determined, the install operation may have to reload the system.
If you want to control the timing of system reload, you must not continue, but use the 'install package rollback' command instead, followed by 'install apply'.
Continue? [yes/no]:[yes] yes
Starting:
install rollback 0 commit
Transaction 2
Press Ctrl-C to return to the exec prompt. This will not cancel the install operation

Current activity: Initializing ..
Current activity: Veto check .........
Current activity: Package add or other package operation .
Current activity: Apply by restarting processes ..
Current activity: Commit transaction

Transaction 2: 'install rollback 0 commit' completed without error
RP/0/RP0/CPU0:R0#show install request
Wed Oct 4 21:39:07.926 UTC

User request: install rollback 0 commit
Operation ID: 2
State: Success since 2023-10-04 21:38:33 UTC

Current activity: No install operation in progress

The following actions are available:
install package add
install package remove
install package upgrade
install package downgrade
install package replace
install package rollback
install replace
install rollback
install source
RP/0/RP0/CPU0:R0#

XVr — Local repo

  • Copy RPMs files from Docker to filesystem in XR
student@student-vm:~/XR7_Install_Files/7.3.2/RPMs$ scp 8000-optional-rpms.7.3.2.tar cisco@192.168.122.50:/harddisk:/8000-optinal-rpms.7.3.2.tar
8000-optional-rpms.7.3.2.tar
100% 890KB 18.3MB/s 00:00

RP/0/RP0/CPU0:R0#run
[node0_RP0_CPU0:/]$cd harddisk\:
[node0_RP0_CPU0:/harddisk:]$ls -l
total 9152
-rw-r--r--. 1 root root 911360 Oct 4 21:44 8000-optinal-rpms.7.3.2.tar

[node0_RP0_CPU0:/harddisk:]$tar -xvf 8000-optinal-rpms.7.3.2.tar
optional-rpms/cdp/
optional-rpms/cdp/xr-cdp-3692251fac396a2d-7.3.2v1.0.0-1.x86_64.rpm
optional-rpms/cdp/xr-cdp-7.3.2v1.0.0-1.x86_64.rpm
optional-rpms/cdp/xr-cdp-78bb1e1f26c2908f-7.3.2v1.0.0-1.x86_64.rpm
optional-rpms/cdp/xr-cdp-8101-32h-7.3.2v1.0.0-1.x86_64.rpm
optional-rpms/cdp/xr-cdp-8202-7.3.2v1.0.0-1.x86_64.rpm
[. . .]
optional-rpms/telnet/
optional-rpms/telnet/xr-telnet-3692251fac396a2d-7.3.2v1.0.0-1.x86_64.rpm
optional-rpms/telnet/xr-telnet-7.3.2v1.0.0-1.x86_64.rpm
optional-rpms/telnet/xr-telnet-8101-32h-7.3.2v1.0.0-1.x86_64.rpm
optional-rpms/telnet/xr-telnet-8102-64h-7.3.2v1.0.0-1.x86_64.rpm
[. . .]


RP/0/RP0/CPU0:R0(config)#install repository local-repo url file:///harddisk:/optional-rpms
RP/0/RP0/CPU0:R0#show install available
Wed Oct 4 21:52:33.369 UTC
Trying to access repositories...

Package Architecture Version Repository Cached
---------------------------------------------------- ---------------- --------------------------- ----------------------------------- ------
xr-cdp x86_64 7.3.2v1.0.0-1 local-repo
xr-healthcheck x86_64 7.3.2v1.0.0-1 local-repo
xr-ospf x86_64 7.3.2v1.0.1-1 remote_repo
xr-telnet x86_64 7.3.2v1.0.0-1 local-repo


RP/0/RP0/CPU0:R0#show install committed summary
Wed Oct 4 21:53:28.617 UTC
Committed Packages: XR: 180 All: 1282
Label: 7.3.2
Software Hash: d7fb6b4adbb9704ce63a960b5c6af85a

Optional Packages Version
---------------------------------------------------- ---------------------------
xr-8000-mcast 7.3.2v1.0.0-1
xr-8000-netflow 7.3.2v1.0.0-1
xr-bgp 7.3.2v1.0.0-1
xr-ipsla 7.3.2v1.0.0-1
xr-is-is 7.3.2v1.0.0-1
xr-lldp 7.3.2v1.0.0-1
xr-mcast 7.3.2v1.0.0-1
xr-mpls-oam 7.3.2v1.0.0-1
xr-netflow 7.3.2v1.0.0-1
xr-ospf 7.3.2v1.0.0-1
xr-perfmgmt 7.3.2v1.0.0-1
xr-track 7.3.2v1.0.0-1
RP/0/RP0/CPU0:R0#

RP/0/RP0/CPU0:R0#show install committed
Wed Oct 4 21:54:39.421 UTC

Package Version
---------------------------------------------------- ---------------------------
xr-8000-af-ea 7.3.2v1.0.0-1
xr-8000-aib 7.3.2v1.0.0-1
xr-8000-bfd 7.3.2v1.0.0-1
xr-8000-bmc 7.3.2v1.0.0-1
xr-8000-buffhdr-ea 7.3.2v1.0.0-1
xr-8000-bundles 7.3.2v1.0.0-1
xr-8000-card-support 7.3.2v1.0.0-1
xr-8000-cdp-ea 7.3.2v1.0.0-1
xr-8000-cfm 7.3.2v1.0.0-1
xr-8000-core 7.3.2v1.0.0-1
xr-8000-cpa 7.3.2v1.0.0-1
xr-8000-cpa-npu 7.3.2v1.0.0-1
xr-8000-cpa-sb-data 7.3.2v1.0.0-1
xr-8000-dsm 7.3.2v1.0.0-1
xr-8000-encap-id 7.3.2v1.0.0-1
xr-8000-ether-ea 7.3.2v1.0.0-1
xr-8000-fabric 7.3.2v1.0.0-1
xr-8000-feat-mgr 7.3.2v1.0.0-1
xr-8000-fib-ea 7.3.2v1.0.0-1
xr-8000-forwarder 7.3.2v1.0.0-1
xr-8000-fpd 7.3.2v1.0.0-1
[...]

RP/0/RP0/CPU0:R0#show install committed | include "telnet|ospf"
Wed Oct 4 21:56:43.265 UTC
xr-ospf 7.3.2v1.0.0-1
RP/0/RP0/CPU0:R0#

RP/0/RP0/CPU0:R0#install source local-repo xr-telnet
Wed Oct 4 21:57:27.496 UTC
Once the packaging dependencies have been determined, the install operation may have to reload the system.
If you want to control the timing of system reload, you must not continue, but use the 'install package add' command instead, followed by 'install apply'.
Continue? [yes/no]:[yes] yes
Install source operation 3.1 has started
Install operation will continue in the background

RP/0/RP0/CPU0:R0#show install history last package
Wed Oct 4 21:57:48.676 UTC
2023-10-04 21:57:30 UTC Packaging operation 3.1.1 started
2023-10-04 21:57:30 UTC Add
2023-10-04 21:57:30 UTC xr-telnet
RP/0/RP0/CPU0:R0#install commit synchronous
Wed Oct 4 21:58:03.542 UTC
Failed to start commit: 'Install' detected the 'warning' condition 'Packaging operation in progress. Cannot accept further requests until complete'

RP/0/RP0/CPU0:R0#show install request
Wed Oct 4 21:58:39.080 UTC

User request: install source local-repo xr-telnet
Operation ID: 3.1
State: In progress since 2023-10-04 21:58:25 UTC

Current activity: Apply by restarting processes
Next activity: Await user input
Time started: 2023-10-04 21:58:24

No per-location information.

RP/0/RP0/CPU0:R0#show install request
Wed Oct 4 22:00:32.762 UTC

User request: install source local-repo xr-telnet
Operation ID: 3.1
State: Success since 2023-10-04 21:59:07 UTC

Current activity: Await user input
Time started: 2023-10-04 21:59:07

The following actions are available:
install package add
install package remove
install package upgrade
install package downgrade
install package replace
install package rollback
install replace
install rollback
install source
install commit

RP/0/RP0/CPU0:R0#install commit
Wed Oct 4 22:01:04.947 UTC
Install commit operation 3 has started
Install operation will continue in the background

RP/0/RP0/CPU0:R0#show install request
Wed Oct 4 22:01:13.468 UTC

User request: install commit
Operation ID: 3
State: In progress since 2023-10-04 22:01:05 UTC

Current activity: Commit transaction
Next activity: Transaction complete
Time started: 2023-10-04 22:01:05

No per-location information.

RP/0/RP0/CPU0:R0#show install request
Wed Oct 4 22:01:44.401 UTC

User request: install commit
Operation ID: 3
State: Success since 2023-10-04 22:01:17 UTC

Current activity: No install operation in progress

The following actions are available:
install package add
install package remove
install package upgrade
install package downgrade
install package replace
install package rollback
install replace
install rollback
install source

RP/0/RP0/CPU0:R0#show install committed | include "telnet|ospf"
Wed Oct 4 22:04:01.792 UTC
xr-ospf 7.3.2v1.0.0-1
xr-telnet 7.3.2v1.0.0-1

RP/0/RP0/CPU0:R0#telnet ?
A.B.C.D IPv4 address
WORD Hostname of the remote node
X:X::X IPv6 address
disconnect-char telnet client disconnect char
vrf vrf table for the route lookup
RP/0/RP0/CPU0:R0#telnet

Remove RPMs

install package remove
show install history last package
install apply
install commit


RP/0/RP0/CPU0:R0#install package remove xr-telnet
Wed Oct 4 22:09:35.366 UTC
Install remove operation 4.1.1 has started
Install operation will continue in the background

RP/0/RP0/CPU0:R0#show install history last package
Wed Oct 4 22:12:13.017 UTC
2023-10-04 22:09:35 UTC Packaging operation 4.1.1 started
2023-10-04 22:09:35 UTC Remove
2023-10-04 22:09:35 UTC xr-telnet
2023-10-04 22:10:16 UTC Packaging operation 4.1.1 success

Location 0/RP0/CPU0
Remove xr-telnet-7.3.2v1.0.0-1.x86_64
Remove xr-telnet-3692251fac396a2d-7.3.2v1.0.0-1.x86_64
Remove xr-telnet-8201-7.3.2v1.0.0-1.x86_64
Remove xr-telnet-d17f630e9aaec8a3-7.3.2v1.0.0-1.x86_64

RP/0/RP0/CPU0:R0#install apply
Wed Oct 4 22:12:24.686 UTC
Once the packaging dependencies have been determined, the install operation may have to reload the system.
If you want more control of the operation, then explicitly use 'install apply restart' or 'install apply reload' as reported by 'show install request'.
Continue? [yes/no]:[yes] yes
Install apply operation 4.1 has started
Install operation will continue in the background

RP/0/RP0/CPU0:R0#install commit
Wed Oct 4 22:12:33.431 UTC
Failed to start commit: 'Install' detected the 'warning' condition 'Apply atomic change in progress. Cannot accept further requests until complete'

RP/0/RP0/CPU0:R0#show install request
Wed Oct 4 22:12:40.936 UTC

User request: install apply restart
Operation ID: 4.1
State: In progress since 2023-10-04 22:12:27 UTC

Current activity: Apply by restarting processes
Next activity: Await user input
Time started: 2023-10-04 22:12:27

No per-location information.

RP/0/RP0/CPU0:R0#install commit
Wed Oct 4 22:16:05.232 UTC
Install commit operation 4 has started
Install operation will continue in the background
RP/0/RP0/CPU0:R0#telnet ?
^
% Invalid input detected at '^' marker.
RP/0/RP0/CPU0:R0#telnet

--

--