Posted on 11-22-2011 12:28 PM
echo "<result>"$(cat /Library/Sophos Anti-Virus/RMS/MRInit.conf | grep -e "ParentRouterAddress" | cut -d"=" -f 2 | cut -d"," -f 3 | tail -1 | sed 's/.{2}$//')"</result>"
Posted on 02-01-2012 01:01 AM
What does this do? I get the result bill
Thanks
Posted on 07-24-2012 08:12 AM
This returns the server that Sophos gets its policies from, correct?
Posted on 08-21-2012 01:06 AM
This is only useful if you're in a large environment with Sophos Message Relay servers. This returns the Message Relay server the client is pointed to, which is kept in mrinit.conf. This is the server uses to send and receive it's status and policy updates
Posted on 08-21-2012 11:37 PM
Yep it the mrinit.conf that's they key :)
Actually useful for all types of environments and not just large ones! I am in a small environment with many Windows and Mac laptop users and I need to know and see if there are threats on the machines.
Posted on 02-25-2013 02:56 AM
I use this CLI in my scripts. It's a little simpler. The one above doesn't seem to work for me.
head -n 12 /Library/Sophos Anti-Virus/RMS/MRInit.conf | tail -n 1
I wouldn't say it's only useful for Message Relay Environments. Any SEC-managed environment might need to confirm this line is correct.