Skip to content

Commit 8e727a8

Browse files
Merge pull request #235952 from msaenzbosupport/patch-18
[Doc-A-thon]Updating code block
2 parents 4ddcd66 + 1a29c7b commit 8e727a8

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

articles/automation/troubleshoot/update-agent-issues-linux.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ The operating system check verifies if the Hybrid Runbook Worker is running one
5252

5353
To verify if a VM is an Azure VM, check for Asset tag value using the below command:
5454

55-
```
55+
```bash
5656
sudo dmidecode
5757
```
5858

@@ -73,13 +73,13 @@ This task checks if the folder is present -
7373

7474
To fix this issue, you must start the OMS Agent service by using the following command:
7575

76-
```
76+
```bash
7777
sudo /opt/microsoft/omsagent/bin/service_control restart
7878
```
7979

8080
To validate you can perform process check using the below command:
8181

82-
```
82+
```bash
8383
process_name="omsagent"
8484
ps aux | grep %s | grep -v grep" % (process_name)"
8585
```
@@ -102,26 +102,26 @@ As they are the directories of workspaces, the number of directories equals the
102102
### Hybrid Runbook Worker
103103
To fix the issue, run the following command:
104104

105-
```
105+
```bash
106106
sudo su omsagent -c 'python /opt/microsoft/omsconfig/Scripts/PerformRequiredConfigurationChecks.py'
107107
```
108108

109109
This command forces the omsconfig agent to talk to Azure Monitor and retrieve the latest configuration.
110110

111111
Validate to check if the following two paths exists:
112112

113-
```
113+
```bash
114114
/opt/microsoft/omsconfig/modules/nxOMSAutomationWorker/VERSION </br> /opt/microsoft/omsconfig/modules/nxOMSAutomationWorker/DSCResources/MSFT_nxOMSAutomationWorkerResource/automationworker/worker/configuration.py
115115
```
116116

117117
### Hybrid Runbook Worker status
118118

119119
This check makes sure the Hybrid Runbook Worker is running on the machine. The processes in the example below should be present if the Hybrid Runbook Worker is running correctly.
120-
```
120+
```bash
121121
ps -ef | grep python
122122
```
123123

124-
```
124+
```output
125125
nxautom+ 8567 1 0 14:45 ? 00:00:00 python /opt/microsoft/omsconfig/modules/nxOMSAutomationWorker/DSCResources/MSFT_nxOMSAutomationWorkerResource/automationworker/worker/main.py /var/opt/microsoft/omsagent/state/automationworker/oms.conf rworkspace:<workspaceId> <Linux hybrid worker version>
126126
nxautom+ 8593 1 0 14:45 ? 00:00:02 python /opt/microsoft/omsconfig/modules/nxOMSAutomationWorker/DSCResources/MSFT_nxOMSAutomationWorkerResource/automationworker/worker/hybridworker.py /var/opt/microsoft/omsagent/state/automationworker/worker.conf managed rworkspace:<workspaceId> rversion:<Linux hybrid worker version>
127127
nxautom+ 8595 1 0 14:45 ? 00:00:02 python /opt/microsoft/omsconfig/modules/nxOMSAutomationWorker/DSCResources/MSFT_nxOMSAutomationWorkerResource/automationworker/worker/hybridworker.py /var/opt/microsoft/omsagent/<workspaceId>/state/automationworker/diy/worker.conf managed rworkspace:<workspaceId> rversion:<Linux hybrid worker version>
@@ -131,7 +131,7 @@ Update Management downloads Hybrid Runbook Worker packages from the operations e
131131

132132
To fix this issue, run the following command:
133133

134-
```
134+
```bash
135135
sudo su omsagent -c 'python /opt/microsoft/omsconfig/Scripts/PerformRequiredConfigurationChecks.py'
136136
```
137137

@@ -149,7 +149,7 @@ To fix the issue, either remove the proxy or make sure that the proxy address is
149149

150150
You can validate the task by running the below command:
151151

152-
```
152+
```bash
153153
HTTP_PROXY
154154
```
155155

@@ -159,7 +159,7 @@ To fix this issue, allow access to IP **169.254.169.254**. For more information,
159159

160160
After the network changes, you can either rerun the Troubleshooter or run the below commands to validate:
161161

162-
```
162+
```bash
163163
curl -H \"Metadata: true\" http://169.254.169.254/metadata/instance?api-version=2018-02-01
164164
```
165165

@@ -214,7 +214,7 @@ Curl on software repositories configured in package manager.
214214

215215
Refreshing repos would help to confirm the communication.
216216

217-
```
217+
```bash
218218
sudo apt-get check
219219
sudo yum check-update
220220
```

0 commit comments

Comments
 (0)