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.0.2-020
Cloud Gateway Email Status Portal Support & Downloads docs.ces.cisco.com
Email and Web Manager: 14.1.0-239
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

943
Views
5
Helpful
0
Replies

Automate creating text resources

Hi, I want to create a message disclaimer text resource. I was hoping to avoid all the input prompts and have it automated using a script. I was trying out combinations of commands but they all say too many arguments for some reason.

footer.txt was the resource i was trying to import. Contents of footer.txt - 

[html_version]
<br>Hi

[text_version]

Hi

I first SCPed  footer.txt file to configuration directory to be able to run the following command. This didn't work - 

echo "textconfig import \"Message Disclaimer\" \"Test 1\" footer.txt US-ASCII" | ssh user@host
.
.
Invalid arguments when processing textconfig:
textconfig: too many arguments.

Then i tried to do it all on the console. Something like this - 

echo "textconfig new \"Message Disclaimer\" \"Test 1\" \"US-ASCII\" \"<br>hi.\" 1" | ssh user@host
.
.
Invalid arguments when processing textconfig:
Unknown option: new

The last argument in the command above i.e "1" is the answer to this input - 

1. Use the auto-generated plain text version
2. Enter a different plain text version
[1]>

Please note all the arguments in echo are simply the inputs we're required to fill in for setting up a text resource interactively.

 

Reference - https://www.cisco.com/c/en/us/td/docs/security/esa/esa10-0/cli/b_CLI_Reference_Guide/b_CLI_Reference_Guide_chapter_0100.html#con_1100030

 

The above commands fail, however I am able to list the existing resources so I'm guessing batch commands are allowed for textconfig. The following command works -

echo "textconfig list" | ssh user@host

I get a new request to add in resources on a weekly basis so I'm hoping for an automated way to do this. Really appreciate any help.

 

Thanks in advance

 

 

0 REPLIES 0
Create
Recognize Your Peers
Content for Community-Ad