The last step of any Configuration Management script is typically to logout of the device. This is preferably done with the Configuration Management @logout command.

The @logout command writes out a logout command (the command defaults to exit) to the device with optional parameters to specify the command written and to specify expected device queries. After the command is written, Configuration Management waits to read the device's output.

The @logout command takes the following form:

@logout <optional device logout word><optional query>

Examples

Command

Output

@logout

Writes exit to the device.

@logout "logout"

Writes logout to the device.

@logout "logout" {"Are you sure?", "Y"}

Writes logout to the device, then waits to read "Are you sure?" When "Are you sure?" is found, Configuration Management writes "Y" to the device.