# Restart a bzero agent from the ZLI

## `zli v. 6.9.5`

### New

* **Restart `bzero` from the `zli`.** Administrators can use `zli target restart <target name or id>` to manually kick off a `bzero` agent restart. This can be used as a failsafe measure in the event that a target is still online but is not accepting user connections. <mark style="color:purple;">To take advantage of this feature, you must be running</mark> <mark style="color:purple;">`zli >= 6.9.0`</mark> <mark style="color:purple;">and</mark> <mark style="color:purple;">`bzero agent >= 6.7.0`</mark>
* **Set default target user for shell, SSH, and SCP connections**. To simplify workflows, `zli v. 6.9.5` supports setting a default target user for shell, SSH, and SCP connections.
  * For shell, set your default target user by executing `zli configure default-targetuser [targetUser]`
  * For SSH or SCP, execute the command above followed by `zli generate sshConfig`. This will ensure that the `User` field in your `bzero-bz-config` is updated to reflect your set default target user
  * To reset your default target user, use `zli configure default-targetuser --reset` and if resetting the target user for SSH and SCP, also run `zli generate sshConfig`

### Fixes

* **`bzero-bz-config` generation.** Corrected a typo in the BastionZero-generated SSH configuration file comment

## `bzero v. 6.7.3`

### New

* **Restart `bzero` from the `zli`.** As noted in the `zli` changes this week, the `bzero v. 6.7.3` agent supports manual restart from the `zli`. Ensure you are running `zli >= 6.9.0` and `bzero agent >= 6.7.0` to utilize this feature

### Fixes

* **Agent version.** Resolved issue where the agent version was not reflecting accurately if the agent was upgraded using package managers. Note that this was limited to the displayed version *only* and had no impact on the agent software itself\_.\_ To ensure the correct version is displaying when viewing the targets table in the web app or `list-targets` in the `zli`, upgrade or re-register your agent. If you need help with either of these actions, reach out to [<mark style="color:purple;">product@bastionzero.com</mark>](mailto:product@bastionzero.com)
* **Leverage `.profile` when connecting through the `zli`.** Resolved issue where `zli connect` was not sourcing from the `.profile` file

For questions or to give us feedback on how we can make our updates better, reach out to [<mark style="color:purple;">product@bastionzero.com</mark>](mailto:product@bastionzero.com).


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://changes.bastionzero.com/2022/restart-a-bzero-agent-from-the-zli.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
