This issue has been solved.

SMG command line for DNS change?

Created: 02 May 2013 • Updated: 09 May 2013
cus000's picture
Login to vote
0 0 Votes

Is there any? I have search Symantec KB but didn't manage to found any command...

 

Thanks!

Quick Look Solution

Seems delete osconfig still

Seems delete osconfig still working in version 10....it won't keep the last "ifconfig"....  since it deletes osconfig.xml

require physical access (console)....

 

 

thanks

Filed Under

Comments

pete_4u2002
Symantec Employee
Accredited
02
May
2013

these are the command line

these are the command line for SMG

http://www.symantec.com/docs/HOWTO53796

02
May
2013

Hello, Symantec™ Messaging

Hello,

Symantec™ Messaging Gateway 10.0 Command Line Reference Guide

Article:DOC5743  |  Created: 2012-07-11  |  Updated: 2012-08-20  |  Article URL http://www.symantec.com/docs/DOC5743

 

AttachmentSize
smg_commandline_reference.pdf 868.93 KB

 

Don't forget to mark your thread as 'SOLVED' with the answer that best helped you.

cus000
Partner
Accredited
02
May
2013

Thanks for the help...i

Thanks for the help...i already got those

....i actually want to change SBG DNS directly via command line..

 

seems the only way is via delete/clear osconfig .... my question is after running this command will it kept the last IP settings given or it will reset all?

If it reset all means i need to run this command physically... if it still keep the last IP settings..i can run this via putty

 

 

 

Regards

Art_P
Symantec Employee
07
May
2013

This cannot be done via the

This cannot be done via the command line because this is a configuration that needs to exist in the Control Center database. Delete osconfig will take the appliance offline until the bootstrap is completed and the appliance rebooted again. The delete osconfig command may not exist in future versions.

Why do you need to modify DNS via the command line? You may be able to accomplish this task by pointing the SMG appliance to another caching server on the network that you can modify via command line.

If you find a useful post, please use the "thumbs up" feature to mark the post as helpful. If your question has been answered, please select the "Mark as solution" for the post that best answered your question. Thank you.

cus000
Partner
Accredited
07
May
2013

Thank you for kind reply

Thank you for kind reply art.

After the appliance reboot post booststrap will the previous ifconfig settings will be kept?

From my reading in the forum this is the only way to do ip or dns changes via command line...

 

Why via command line? It's for convenience, SBG GUI may be not accesible due certain issue and only SSH port being open....

Art_P
Symantec Employee
08
May
2013

The Symantec Messaging

The Symantec Messaging Gateway was not designed to be administered from the command line, which is meant for diagnotic and troubleshooting. Changes made by deleting osconfig are temporary and will eventually revert back to what is stored in the Control Center database.

I still think your best bet is to use the Control Center web GUI to configure the scanner to point to intermediate DNS server that you can modify via the command line. That way you can adjust the forwarders to point to whatever DNS servers you want whenever you want.

If you need command line administration of the Messaging Gateway, I suggest using the Ideas section to submit, or add to, an enhancement request.

https://www-secure.symantec.com/connect/security/ideas

 

If you find a useful post, please use the "thumbs up" feature to mark the post as helpful. If your question has been answered, please select the "Mark as solution" for the post that best answered your question. Thank you.

cus000
Partner
Accredited
09
May
2013
SOLUTION

Seems delete osconfig still

Seems delete osconfig still working in version 10....it won't keep the last "ifconfig"....  since it deletes osconfig.xml

require physical access (console)....

 

 

thanks