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

Import File format

I have a question regarding the import file format. We have different groups in Sophos, some of them nested in each other. What format do I need to provide the Group Name in the import file?

For example: I have a group called "Windows7", which has a subgroup called "Firefox_No". How do I specify that structure in the file? If I do the example below, it will create a new Group with that name in the root structure. 

[Windows7_Firefox_No]
DT-0128J-ECB

I have tried:

[Windows7|Windows7_Firefox_No]

[Windows7\Windows7_Firefox_No]

[\Windows7\Windows7_Firefox_No]

but none of them worked. Does anyone know how I can specify the path correctly?

Many thanks!!

André

:54609


This thread was automatically locked due to age.
  • Hello André,

    [Group\Subgroup 1\Subgroup1.1] works for me (I've deliberately used space and dot). This in your case it should be [Windows7\Firefox_No] (unless you really named the subgroup Windows7_Firefox_No). 

    Note: If you specify a group which does not yet exist, the change is not immediately visible in the Groups tree though - while you see the computers contained in the supergroup the group "is not yet there" and the Computer Details don't show a group. You have to create or delete a group using the console to makes the changes visible (SEC 5.2.1).

    Christian

    :54615
  • Hi Christian,

    thank you very much for the reply. I think I tried that and it didn't work, but I'm giving that another go right now.

    I have about 100 machines I need to move from one group to another and I thought I could do it this way. I remember doing it in the past (3-4 years ago). The logic being that a computer can only be in one group at a time. So if I import 100 machines into a new group, they will simply be pulled out of their current locations and moved into the new one I specified.

    We have SEC 5.1.0.1839, in case it makes a difference.

    Edit: I just tried it and the machine is not being moved from one group to the other. Is there another recommended way of moving multiple machines at a time? (from different groups into a single group)

    :54619
  • Hello André,

    as far as I can see the Import logic does not move computers.

    100 aren't many - what militates against drag and drop? Otherwise the import would move the computers if you delete them from the console. Don't worry, no information is lost - delete just sets a flag, any message from then endpoint resets this flag as does Import (thus if the endpoint send a message after you've deleted it but before you run the import it stay in its group).

    Christian

    :54621
  • Hello Christian,

    nothing mitigates against drag'n drop. It's just that the 100 machines are spread out through different groups and I didn't want to have to fish them out manually :smileywink:

    If I have to do more than 10 or so manual steps then I try to automate or script it. I just thought that maybe this would work.

    Thanks a lot for your other suggestion. I'll give that a try.

    Cheers,

    André

    :54623
  • Hello André,

    If I have to do more than 10 or so manual steps then I try to automate or script it

    even if it takes 10 times as long :smileylol: - used to do that too, but after many years I'm just doing tasks with less than 10 steps, avoid the scripting altogether, and delegate the rest :smileywink:.

    Unsupported and not recommended: If you automate the deletion (simple SQL statement) the subsequent import will do what you want.

    Christian

    :54625
  • "even if it takes 10 times as long"

    Well, my thinking is that, sooner or later I will need to do this again, then next time I can use the script or whatever I developed and have it done in no time.

    Unfortunately I'm just a poor tecchie, so I can't delegate that work :smileysad:

    I'll try a few things. If I find a good (enough) solution I'll come back and post it. Deleting and adding, though, would always work. Or moving individually.

    :54627