This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

confd-client.plx change_object: Remove value from array

Hello all,

I am trying to automate the accepted domain field of my Lab UTM9.5 via cli.

Adding a new domain works great with this command:

/usr/local/bin/confd-client.plx change_object REF_SMTPGlobalProfile domains 'newdomain.com'

But how to I delete a specific domain? I was not able to find anything in the forums and search engines...

 

Thank you!

Greetings

Sebastian



This thread was automatically locked due to age.
  • Hi, Sebastian, and welcome to the UTM Community!

    You have the command to add an item to an array, but I don't know of a command line approach to delete an item.

    Cheers - Bob

     
    Sophos UTM Community Moderator
    Sophos Certified Architect - UTM
    Sophos Certified Engineer - XG
    Gold Solution Partner since 2005
    MediaSoft, Inc. USA
  • Hi Sebastian,

    Try this, /usr/local/bin/confd-client.plx del_object REF_SMTPGlobalProfile domains 'xyz.com'

    Any help?

    Sachin Gurung
    Team Lead | Sophos Technical Support
    Knowledge Base  |  @SophosSupport  |  Video tutorials
    Remember to like a post.  If a post (on a question thread) solves your question use the 'This helped me' link.

  • That adds the xyz.com domain to the list of domains handled by the default SMTP profile, but he was asking about removing a domain with a command.

    Cheers - Bob

     
    Sophos UTM Community Moderator
    Sophos Certified Architect - UTM
    Sophos Certified Engineer - XG
    Gold Solution Partner since 2005
    MediaSoft, Inc. USA
  • I do not have the access to my Lab here but that command definitely does not add the domain, I did test it on my VM setup and the command  deleted my created profile.

    Correct me if I am heading in a different direction here.

    Thanks

    Sachin Gurung
    Team Lead | Sophos Technical Support
    Knowledge Base  |  @SophosSupport  |  Video tutorials
    Remember to like a post.  If a post (on a question thread) solves your question use the 'This helped me' link.

  • I didn't read your post closely enough, Sachin - you had del_object instead of change_object.  I haven't used that before.  In this case, a quick test yielded 'OBJECT_DELETE_LOCKED'.

    Cheers - Bob

     
    Sophos UTM Community Moderator
    Sophos Certified Architect - UTM
    Sophos Certified Engineer - XG
    Gold Solution Partner since 2005
    MediaSoft, Inc. USA