loafoe/terraform-provider-ssh

Send Command Sequence to Cisco Device

Opened this issue · 1 comments

I'm looking for a way to send the following sequence command to a Cisco device:

commands = [
"conf t",
"vlan 1234",
"name TEST-VLAN"
]

but I'm getting the error below on debug log:

error: Process exited with status 16
command: vlan 1234
done: true
stdout:
Syntax error while parsing 'vlan 1234'
Cmd exec error.

Is there a way to execute this command sequences?

loafoe commented

@julianomluz1970 does the conf t command execute OK? I have no knowledge of the Cisco device but it seems the Syntax error is being reported back on this vlan 1234 command itself. Can you confirm?