Skip to content

Commit 5ef1b58

Browse files
committed
Create howto-upgrade-os-of-terminal-server.md
1 parent aa33b14 commit 5ef1b58

File tree

1 file changed

+202
-0
lines changed

1 file changed

+202
-0
lines changed
Lines changed: 202 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,202 @@
1+
---
2+
title: How to Upgrade the operating system of a Terminal Server
3+
description: Learn the process for upgrading the operating system of a Terminal Server
4+
author: sushantjrao
5+
ms.author: sushrao
6+
ms.date: 23/01/2024
7+
ms.topic: how-to
8+
ms.service: azure-operator-nexus
9+
ms.custom: template-how-to, devx-track-azurecli
10+
---
11+
12+
# Upgrading the operating system of a Terminal Server
13+
14+
This document provides a step-by-step guide to upgrade the operating system (OS) of a Terminal Server. The outlined procedure is manual and includes essential checks, a backup process, and actions for post-upgrade validation.
15+
16+
---
17+
18+
## **Prerequisites**
19+
20+
- **Root account password** for the Terminal Server.
21+
22+
- An **on-premises machine** with access to the Terminal Server for file transfers.
23+
24+
- **Latest firmware download**: [Opengear Firmware](https://ftp.opengear.com/download/opengear_appliances/OM/current/).
25+
26+
>[!Note:]
27+
> Terminal server upgrade was validated with the opengear version is 24.07.1.
28+
29+
## **Stage 1: Pre-Upgrade Checks (Terminal Server)**
30+
31+
### Check current version of Terminal Server
32+
33+
Execute following command on the terminal server to get the current OS version.
34+
35+
```bash
36+
cat /etc/version
37+
```
38+
39+
```Example output
40+
22.06.0
41+
```
42+
> [!Note:]
43+
> Current OS version running on the terminal server should be lesser than the one your upgrading to.
44+
45+
### LLDP service check and enable
46+
47+
Execute following on the terminal server to check and enable the LLDP service.
48+
49+
```bash
50+
ogcli update services/lldp enabled=true
51+
ogcli get services/lldp
52+
```
53+
54+
```Expected output
55+
description=""
56+
enabled=true
57+
physifs=[]
58+
platform=""
59+
```
60+
61+
### LLDP neighbor check
62+
63+
Execute following command on the terminal server to check the LLDP neighbor.
64+
65+
```bash
66+
lldpctl
67+
```
68+
69+
```Expected neighbors:
70+
Mgmt Switch, PE2, PE1
71+
```
72+
73+
### Ping connectivity check
74+
75+
Execute following command on the terminal server to perform a ping connectivity check.
76+
77+
```bash
78+
default_routes=$(ip route show default | awk '{print $3}')
79+
for ip in $default_routes; do
80+
echo "Pinging $ip..."
81+
ping -c 4 $ip
82+
done
83+
```
84+
85+
```Expected output
86+
Pinging 10.103.0.2...
87+
PING 10.103.0.2 (10.103.0.2) 56(84) bytes of data.
88+
64 bytes from 10.103.0.2: icmp_seq=1 ttl=64 time=0.319 ms
89+
64 bytes from 10.103.0.2: icmp_seq=2 ttl=64 time=0.352 ms
90+
64 bytes from 10.103.0.2: icmp_seq=3 ttl=64 time=0.334 ms
91+
64 bytes from 10.103.0.2: icmp_seq=4 ttl=64 time=0.358 ms
92+
93+
--- 10.103.0.2 ping statistics ---
94+
4 packets transmitted, 4 received, 0% packet loss, time 3071ms
95+
rtt min/avg/max/mdev = 0.319/0.340/0.358/0.015 ms
96+
Pinging 10.103.0.6...
97+
PING 10.103.0.6 (10.103.0.6) 56(84) bytes of data.
98+
64 bytes from 10.103.0.6: icmp_seq=1 ttl=64 time=0.324 ms
99+
64 bytes from 10.103.0.6: icmp_seq=2 ttl=64 time=0.344 ms
100+
64 bytes from 10.103.0.6: icmp_seq=3 ttl=64 time=0.305 ms
101+
64 bytes from 10.103.0.6: icmp_seq=4 ttl=64 time=0.340 ms
102+
103+
--- 10.103.0.6 ping statistics ---
104+
4 packets transmitted, 4 received, 0% packet loss, time 3065ms
105+
rtt min/avg/max/mdev = 0.305/0.328/0.344/0.015 ms
106+
```
107+
108+
109+
### Create backup of the current Terminal Server configuration
110+
111+
Execute following command on terminal server to create a backup of the current configuration.
112+
113+
```bash
114+
ogcli export ogcli_export_<date>
115+
```
116+
117+
## **Stage 2: Backup Files (On-Premises Machine)**
118+
119+
### Transfer Backup Files to On-Premises Machine
120+
121+
Execute following command on the on premise machine to create a backup of terminal server configration and to transfer it to the on premise machine.
122+
123+
```bash
124+
mkdir ~/ts_backup
125+
cd ~/ts_backup
126+
scp -o [email protected] root@<ts_ip>:/etc/dhcp/dhcpd.conf ./
127+
scp -r -o [email protected] root@<ts_ip>:/mnt/nvram/files/conf ./
128+
scp -o [email protected] root@<ts_ip>:~/ogcli_export_<date> ./
129+
scp -r -o [email protected] root@<ts_ip>:/mnt/nvram/nexus ./
130+
scp -r -o [email protected] root@<ts_ip>:/mnt/nvram/opengear_provisioning_rev5 ./
131+
```
132+
133+
>[!Note:]
134+
> Replace <ts_ip> with the terminal server IP.
135+
136+
## **Stage 3: Install Firmware (Terminal Server)**
137+
138+
### Upload Firmware
139+
140+
Upload the latest downloaded firmware from on premise machine to the terminal server.
141+
142+
```bash
143+
scp -r -o [email protected] ./operations_manager-24.07.1-production-signed.raucb root@<ts_ip>:/tmp/
144+
```
145+
146+
>[!Note:]
147+
> Replace <ts_ip> with the terminal server IP.<br>
148+
> Make sure to update the file name while executing above command as `<operations_manager-24.07.1-production-signed.raucb>` is the file name of opengear OS version `24.07.1`.
149+
150+
### Install Firmware
151+
152+
Execute following command on the terminal server to install the firmware.
153+
154+
```bash
155+
puginstall --reboot-after /tmp/operations_manager-24.07.1-production-signed.raucb
156+
```
157+
> {!Note:]
158+
> The installation takes 5-10 minutes, and the Terminal Server will reboot automatically.
159+
160+
161+
## **Stage 4: Cleanup (On-Premises Machine)**
162+
163+
### Remove Backup and Firmware
164+
165+
Execute following command on the on-premise machine to clean up the downloaded firmware and back up files.
166+
167+
```bash
168+
rm -rf ~/ts_backup
169+
rm -rf ./operations_manager-24.07.1-production-signed.raucb
170+
```
171+
172+
>[!Note:]
173+
> Perform this action once the terminal server has been upgraded successfully.
174+
175+
## **Appendix**
176+
177+
### Firmware Upgrade Failure
178+
179+
If the firmware upgrade fails:
180+
181+
1. Perform a **factory reset**:
182+
183+
Execute following command on the terminal server to perform a factory reset.
184+
185+
```bash
186+
factory_reset
187+
```
188+
189+
Or, push the Erase button on the port-side panel twice with a bent paper clip while the unit is powered on.
190+
191+
2. Reinstall the latest firmware.
192+
193+
3. Reconfigure or restore the device from backup:
194+
195+
Execute following command on the terminal server to reconfigure or restore the device from backup
196+
```bash
197+
ogcli restore <file_path>
198+
```
199+
200+
### Next Steps
201+
202+
[Reconfigure Device Post-Reset](howto-platform-prerequisites)

0 commit comments

Comments
 (0)