Sophos Antivirus - client relay script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on 11-22-2011 12:28 PM
!/bin/bash
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>"
![rob_potvin rob_potvin](https://community.jamf.com/legacyfs/online/avatars/b2def7cf3e634ea38b03dc702de0f548.png)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on 02-01-2012 01:01 AM
What does this do? I get the result bill
Thanks
![ctangora ctangora](https://community.jamf.com/legacyfs/online/avatars/97460ad4943346a187cb937aa3652190.png)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on 07-24-2012 08:12 AM
This returns the server that Sophos gets its policies from, correct?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
![tkimpton tkimpton](https://community.jamf.com/legacyfs/online/avatars/ad684ad820274b0089fe1f7a45370f0e.jpg)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
![](/skins/images/7AE5AE8D7127187188CBABB6FDE916E4/responsive_peak/images/icon_anonymous_message.png)