Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. If you'd prefer to explore, try our test area to get started. And see here for current known issues.

New Member

Script to run minor configs at predefined intervals?

Dear All,

I would like to create a script that is run on Saturday morning to include another extnesion in the hunt group and the run another script on Sunday to remove this extension from hunt group on a cisco UC 500 series.

I tried to create a batch file that executes the following command:

@echo

plink -ssh hostIP -P 22 -l admin -pw xxxx -m C:\pass.txt

Where txt contians the commands to do the modifications required. However, I kept getting the error:

Line has invalid autocommand "enable

show running-config

exit

"

Where the commands between " " are the commands that are in the textfile. Appartely it is not capable to execute these commands one by one.

Can you please give any ideas how this could be done?

Cheers,

Josef

  • EEM Scripting
Everyone's tags (1)
524
Views
0
Helpful
0
Replies