You can enter ‘configuration mode’, ‘edit mode’, ‘enable mode’, ‘evelated mode’ or ‘sudo mode’ for Linux for a device in a Netpicker rule using:
def rule_processes(device):
with device.cli.in_config():
processes = device.cli('show system processes | display set')
print(processes)
The secret used to enter the elevated mode can be set in the vault:
