diff --git a/src/content/docs/apm/agents/java-agent/troubleshooting/host-links-missing-java-apps-apm-summary.mdx b/src/content/docs/apm/agents/java-agent/troubleshooting/host-links-missing-java-apps-apm-summary.mdx index d5af76a8c79..441e5ab378b 100644 --- a/src/content/docs/apm/agents/java-agent/troubleshooting/host-links-missing-java-apps-apm-summary.mdx +++ b/src/content/docs/apm/agents/java-agent/troubleshooting/host-links-missing-java-apps-apm-summary.mdx @@ -66,7 +66,7 @@ Configure the hostname settings so that the New Relic infrastructure agent in a ``` 3. Use the command line to set the current hostname, so the changes take effect without restarting the server: - ``` + ```shell sudo hostname myhost.example.com ``` 4. Restart the Java agent and infrastructure agent to register the new hostname. @@ -80,7 +80,7 @@ Configure the hostname settings so that the New Relic infrastructure agent in a This example script configures all hostname settings. Depending on your Linux distribution, the `echo` command to `/etc/sysconfig/network` may not be required. - ``` + ```shell #!/bin/sh # Set the hostname so the infrastructure agent