0
I would like to create a shell script connecting on the controller SPECK to insert the macAddres of customers, using expect, I really need to create a script to automate the process.
Variables mac_desired ,Description
control
config macfilter add mac_desejado 0 management "descrição"
#!/usr/bin/expect -f
spawn ssh -l andre 11.111.11.1
expect "password: "
send "PASSWORD\r"
expect "ls\r"
send "exit\r"
Andre does not use the Answer field to make an "edit of your question". Copy the code and edit your original question!
– hugocsl
Hello, I closed the question, researched and did some more tests and it worked!
– Andre Brancalion