Submit a ticketCall us

Don’t fall victim to a ransomware attack
Backups are helpful, but sometimes that’s not enough to protect your business against ransomware. At our live webcast we will discuss how to protect against ransomware attacks with SolarWinds® Patch Manager and how to leverage log data to detect ransomware. Register now for our live webcast.

Home > Success Center > Network Configuration Manager (NCM) > NCM 7.6 Administrator Guide > Pre-command and command template variables > Switch user context with command template variables

Switch user context with command template variables

Table of contents
No headers
Created by Caroline Juszczak, last modified by Anthony.Rinaldi_ret on Oct 03, 2016

Views: 9 Votes: 0 Revisions: 4

If you log in to a device and must switch user context to execute a command, resulting in a different command prompt, use the following command variables to switch context and recognize the new command prompt:

<Command Name="MenuBased" Value="false"/>

Specifies that the template logic should run in CLI mode

<Command Name="Reset" Value="appropriateSwitchContextCommands" RegEx="newPrompt"/>

Specifies the reset command to switch user context and the new command prompt to expect. Use pre-command variables to designate the switch context commands and specify the entire new prompt in the RegEx value.


Last modified
13:50, 3 Oct 2016