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

Product Support Talos Support Cisco Support Reference + Current Release
Gateway Reputation Lookup Open a support case Secure Email Guided Setup
Gateway: 14.2.0-616
Cloud Gateway Email Status Portal Support & Downloads docs.ces.cisco.com
Email and Web Manager: 14.2.0-203
Email and Web Manager Web & Email Reputation Worldwide Contacts Product Naming Quick Reference
Reporting Plug-in: 1.1.0.136
Encryption Bug Search
Encryption Plug-in: 1.2.1.167
Cloud Mailbox Notification Service
Outlook Add-in(s): More info

4477
Views
10
Helpful
12
Replies

Script Automation - IronPort

Hello, 


I am writing a script to automate the blocking of malicious senders on my IronPort, but I have some questions about how to execute a sequence of commands. I have a Linux server that connects via SSH but I am not able to execute all commands after connecting to the CLI.

 

I did some tests, but they all showed the same error as if it only identified one command.

 

Examples:

 

ssh user@$server "dictconfig" "edit" "7" "new" "teste.com"

 

ssh user@$server

"dictconfig"

"edit"

"7"

"new"

"teste.com"

 

How can I solve this problem?

 

Best Regards

1 ACCEPTED SOLUTION

Accepted Solutions

You can solve the problem this way:

 

ssh user@server.com "dictionaryconfig edit List new $domain; commit -y"

 

I will create a repository on github as soon as possible. I am working on some script improvements now.

View solution in original post

12 REPLIES 12
Ken Stieers