OCS – how to retrieve user information using SQL queries

There might be a situation where you would like an overview of the SIP URIs of the active users connected to one of the OCS servers in a pool, their last logon and what client version they are using.

All these kind of information can be retrieved using SQL queries in the SQL Management Tools, connect to the RTC database on the backend server and run the selected queries below.

Get a list of active users on the OCS Server (pool):

Select a.UserAtHost “Active-Users” from rtc.dbo.Resource

a,rtcdyn.dbo.DeliveryContext b where a.ResourceId=b.SubscriberId and b.FrontEndId=1

The FrontEndId is the ID of the OCS Frontend server where the users are connected to. In an environment with only one OCS, the value is 1.

The ID can be obtained from the FrontEnd table of the rtcdyn database.

Further more if you need the above information along with information about which Client App (communicator version) they use, the following query command will give you that result:

select count(*) as Occurrences, cast(e.ClientApp as varchar(128)) as 

ClientApp from rtcdyn.dbo.Endpoint as e group by cast(e.ClientApp as 

varchar(128)) order by cast(e.ClientApp as varchar(128)) select r.UserAtHost, 

cast(e.ClientApp as varchar(128)) as ClientApp from rtcdyn.dbo.Endpoint as e 

inner join rtc.dbo.Resource as r on r.ResourceId = e.OwnerId

Need to known when your enabled OCS users last logged in, run the following query below:

select res.UserAtHost as “SIP Address”, hud.LastNewRegisterTime as “Last Logon” from rtcdyn.dbo.HomedUserDynamic hud join
(Select ResourceId, UserAtHost from rtc.dbo.Resource
group by ResourceId, UserAtHost)
res
on hud.OwnerId=res.ResourceId
order by “Last Logon”

All SQL queries work for both OCS Standard and Enteprise Edition.

Exchange 2007 Storage Cost Calculator has been updated

Microsoft has announced an update of the Exchange 2007 Storage Cost Calculator.

The new version 2.9 is available for download here.

For more information about the enhancements in the new version, check the blogpost at msexchangeteam.com.

URL Rewrite Module – Released To Web

The IIS team has made the URL Rewrite Module for IIS 7.0 Release To Web (RTW) available for download. This is a final, production-ready release that is officially supported by Microsoft.

Overview

URL rewrite module provides a rule-based rewriting mechanism for changing requested URL’s before they get processed by web server. The module can be used to express URL rewriting logic that can use regular expressions or wildcards and can make rewriting decisions based on HTTP headers and server variables. While the primary purpose of the module is to rewrite requested URL’s, it also has functionality to perform redirects, send custom responses or abort requests based on the logic expressed in the rewrite rules. In the end this means more Search Engine Friendly (SEF) URLs, something used in a lot of web applications like Wordpress, Drupal, Joomla, just to list a few, there’s already some documentation from Microsoft on how to enable pretty Permalinks in Wordpress.

Benefits

The Microsoft URL Rewrite Module for IIS 7.0 provides flexible rules-based rewrite engine that can be used to perform broad spectrum of URL manipulation tasks, including, but not limited to:

  • Enabling user friendly and search engine friendly URL with dynamic web applications
  • Rewriting URL’s based on HTTP headers and server variables
  • Web site content management
  • Controlling access to web site content

Download

More info

More information and a full feature list at Ruslans Blog.

Exchange Client for Android

A third party Exchange Client for Google Android (The Google Mobile platform) has been confirmed. It’s being developed by Aardvark Labs and is currently in limited beta.

The client will provide real-time, wireless synchronization of email, calendar, and contacts for the Google Android OS and T-Mobile G1.

Public launch of the Exchange Client begins Q1 of 2009 and a limited beta will commence shortly.

Not that Google Android phones are that available yet, it could be interesting for some. In Europe T-Mobile has announced a G1 phone.

Read more and sign up for the beta here.

Read more about what is Android and the Android platform.

Apache Emulation on IIS 7.0

Stumpled across a interesting new module for IIS 7.0: Helicon APE (APache Emulation) by Helicon Tech, currently in beta and available for download.

Helicon Ape is a unique module that emulates Apache execution environment on Microsoft IIS. It literally implements Apache configuration model (like .htaccess and httpd.conf files) and all most demanded Apache modules in a single IIS add-on, not only making IIS compatible with Apache, but also extending it’s functionality by a number of highly essential features.

Key features of Helicon APE:

  • compatibility with Apache modules configurations (beta version includes only basic modules but the list will be extending with future releases)
  • unprecedented compatibility with PHP-based applications;
  • user-friendly interface and plain text configurations (no XML!)
  • per-site installation without hosting administration involvement/assistance
  • powerful and flexible modules for URL rewriting
  • extensive forward and reverse proxy instruments
  • comprehensive authorization capabilities

Benefits:

  • users can move their Apache web sites to IIS without modifications
  • current PHP and other Unix oriented web applications can be easily configured for IIS
  • flexible user permissions control (as they implemented in Apache world)
  • powerful URL rewriting compatible with Apache does not require rule redesign
  • reverse and forward proxy features available for your web server
  • low level controls over web site behavior open extended abilities for optimisation, security and performance

Currently implemented modules:

  • mod_auth_basic - allows the use of HTTP Basic Authentication
  • mod_auth_digest - allows the use of MD5 Digest Authentication
  • mod_authn_anon - configures anonymous users access authenticated areas
  • mod_authn_default - rejects whatever credentials if no authentication is set
  • mod_authn_file - provides authentication based on user look-up in plain text password file
  • mod_authz_default - rejects any authorization request if no authentication is configured
  • mod_authz_groupfile - allows or denies access to particular areas of the site depending on user group membership
  • mod_authz_host - allows access control to particular parts of web server based on hostname, IP address, or other characteristics of the client request
  • mod_authz_user - allows or denies access of authenticated users to portions of the web site
  • mod_core - implements core features of Helicon Ape
  • mod_env - allows control of the environment provided to CGI scripts and SSI pages
  • mod_expires - allows setting of Expires HTTP header and max-age directive of Cache-Control HTTP header in server responses in relation to either the time the source file was last modified, or to the time of the client access
  • mod_headers - enables modification of HTTP request and response headers
  • mod_proxy - implements forward and reverse proxy functions for your IIS server
  • mod_rewrite - allows rewriting of requested URLs on the fly based on regular-expressions-based rules and various conditions
  • mod_setenvif - allows setting environment variables depending on whether different parts of the request match specified regular expressions
  • mod_so - emulates loading modules functions

More info. and download at: http://www.helicontech.com/ape/

URLScan 3.1 Released

About a week ago, the IIS Team released an updated version 3.1 of the URLScan tool. If you are running ver. 3.0, it’s recommended that you upgrade to URLScan 3.1.

URLScan is the tool to protect your websites against SQL Injection Attacks, the new version is updated to handle new variation of attacks.

Our internal security team brought it to our attention that they’d seen a new variation on the attacks.  This new variation is trying to exploit a behavior in ASP’s parsing of the query string for the Request.QueryString function.

UrlScan version 3.1 is a security tool that restricts the types of HTTP requests that Internet Information Services (IIS) 6.0 will process. UrlScan screens all incoming requests to the server by filtering the requests based on rules that are set by the administrator. Filtering requests helps secure the server by ensuring that only valid requests are processed.

The UrlScan version 3.1 security tool gives administrators even greater control over UrlScan configuration, providing functionality that helps administrators further secure and lock down the server.

New features

  • New installer that allows URLScan 3.1 to be installed on IIS 5.1 or later, including IIS 7.
  • Deny rules that can be independently applied to URL, query string, all headers, a particular header or a combination of these.
  • A global DenyQueryString section that lets you add deny rules for query strings with the option of checking un-escaped version of the query string as well.
  • Support for escape sequences in the deny rules so it’s possible to deny CRLF and other non-printable characters in configuration.
  • Multiple urlscan instances can be installed as site filters, each with its own configuration and logging options (urlscan.ini).
  • Configuration (urlscan.ini) change notifications that are propagated to worker processes without having to recycle them. Note that log settings still have to be recycled.

Download

IIS Media Pack 1.0 Released

The IIS Team has released the final version (1.0) of the IIS Media Pack.

IIS Media Pack 1.0 currently includes the Bit Rate Throttling and Web Playlists extensions for IIS 7.0, which enable you to:

  • Save bandwidth costs by throttling the speed at which content is downloaded
  • Decrease network traffic by metering your media deliveries
  • Monetize media assets with Web playlists that personalize content and prevent ad skipping
  • Intelligently deliver multiple media formats from a single server, including .wmv, .flv, and .mp4 files

Rich media usage is exploding on the Web, and seventy percent of videos are delivered from Web servers. IIS Media Pack 1.0 provides media-specific IIS extensions that make Web server delivery of media simple and cost-effective. Building on the security, reliability, and manageability of IIS 7.0, IIS Media Pack 1.0 protects media assets as it increases scalability by supporting more concurrent users per server.

Bit Rate Throttling

Bit Rate Throttling lets Web server administrators meter the delivery of multiple media file types as well as data. By controlling how fast or how much data is downloaded to the client, site operators can see significant bandwidth cost savings for rich media content that has a high drop-off rate. Additionally, by controlling how much data is sent to the client, the number of concurrent users per server will increase.

Web Playlists

Web Playlists let you deliver server-controlled media playlists from your Web server infrastructure rather than using a dedicated streaming server.  They enable you to control whether clients can Seek or Skip for each media asset, which lends itself very well to monetizing your content with pre-roll and in-stream ads. Web Playlists also obfuscate the location of media assets from the end user, and prevent client-side caching of those assets.

More extensions

In the future we’ll see more extensions for IIS 7.0, this is just the beginning. A future extension would be Smooth Streaming, which enables adaptive streaming of media to Silverlight clients over HTTP.  This provides a high-quality viewing experience that scales massively on content distribution networks.

Download

x86 – 32-bit version

x64 – 64-bit version

Relocate your Groove 2007 files to another disk

If you are like me and you use Groove 2007 and also have several partitions on your disk, I use a smaller partition for the OS and another one for data etc.

I’ve found a great guide on how to relocate your Groove 2007 data files to another disk and it works for Groove 2007 in Windows Vista.

Read the full guide: How to relocate your Groove 2007 files to another disk