SI6 UserGuide ServiceGateway
SI6 UserGuide ServiceGateway
Version 6
SNOWSOFTWARE.COM
CONTENTS
1 Introduction ............................................................................................................................. 3
Page 2 of 10 SNOWSOFTWARE.COM
1 INTRODUCTION
A Snow Inventory infrastructure consists of one or more Inventory databases and Master Server
instances, and Inventory Agents for one or several platforms. To ensure high-availability of the
Master Server, Service Gateway instances can be configured for load-balancing. This makes it
possible to have the Inventory Agents configured for multiple Service Gateways when sending and
receiving data, to have fallback options if one of the Service Gateways is unavailable.
The Service Gateway instances can also serve as proxies in segmented networks.
This document describes installation and functionality of a Service Gateway in Snow Inventory.
Page 3 of 10 SNOWSOFTWARE.COM
2 INSTALLATION PACKAGE
The installation package is called SnowInventoryServerSetup.exe and includes the following
components:
▪ Snow Management and Configuration Center (will only be installed if Snow License Manager
is not already installed on the target machine)
▪ Snow Inventory Admin Console plug-in (plug-in for Snow Management and Configuration
Center)
When running the installation, a selection must be made whether to install a Master Server or a
Service Gateway. A Master Server installation includes all of the components listed above, while a
Service Gateway installation only includes the Snow Inventory Server component.
NOTE
▪ Snow Inventory will share the components Snow Management and Configuration Center
(SnowMACC) and Snow Update Service (SUS) with Snow License Manager. Therefore,
these components will always be installed in the location of the system variable
%PROGRAM FILES% and not in the selected destination folder. Please make sure that the
user running the installation package has access to that path.
▪ Snow Update Service will be installed in a default folder on the C: drive. Do not move
Snow Update Service from this location as this is not a supported configuration.
Page 4 of 10 SNOWSOFTWARE.COM
2.2 DATA FOLDERS
The table shows the data folders that are used by the Inventory Server. They are created when the
server is started for the first time.
Page 5 of 10 SNOWSOFTWARE.COM
3 CREATE A SERVICE GATEWAY INSTANCE
1. Start Snow Inventory Server Configuration Manager (run snowserverconfig.exe).
2. On the Welcome page of the Snow Inventory Server Configuration Manager, click Create
Service Gateway.
3. In the HTTP Bindings step:
▪ For HTTPS (recommended)
Select an existing server certificate in the list. Select Network interface, and type a
Port and a DNS name that will be used for accessing this Snow Inventory server.
▪ For HTTP
Type a Port and a DNS name that will be used for accessing this Snow Inventory
server.
4. Click Next.
Page 6 of 10 SNOWSOFTWARE.COM
6. Click Next.
Page 7 of 10 SNOWSOFTWARE.COM
4 SERVICE GATEWAY FUNCTIONALITY
Every 30 seconds, the Service Gateway asks the Master Server if there are any commands to be
executed in the database. If so, it receives the commands from the Master and puts them into an
own queue. The time interval can be changed through the configuration. In this example, the
interval has been changed to once every 15 minutes.
EXAMPLE
The snowserver.config of the Service Gateway
<ModuleConfiguration>
<Module
typeName="SnowSoftware.Inventory.Server.ServiceGatewayCommandControlModule">
<Setter propertyName="Interval">"00:15:00"</Setter>
</Module>
</ModuleConfiguration>
Depending on the setup of the Master Server, the Service Gateway asks for updates and
commands over HTTP or HTTPS. The requests are either sent directly to the Master Server, or sent
via other Service Gateways installed "upstream" in the Snow Inventory infrastructure.
Discovery settings are stored locally on the Service Gateway in an encrypted file called
SnowInventoryServer5.db (located in C:\ProgramData\SnowSoftware\Inventory\Server
\LocalStorage). This file includes everything the Service Gateway needs to know to be able to start
(or continue) both Active Directory Discovery or Network Discovery depending on the commands
from the Master Server.
Page 8 of 10 SNOWSOFTWARE.COM
4.2 HANDLING OF SNOWPACKS
Once an Inventory agent is ready to send a snowpack (inventory result file) to the Service Gateway,
it tries to connect to it. If the Service Gateway responds, the agent is allowed to send the file to it.
The snowpack is then temporarily stored in the processing folder (default location is C:\Program
Files\Snow Software\Snow Inventory\Server\Incoming\data\processing) until the Service
Gateway tries to pass it on to the Master Server. This is typically done every 30 seconds.
If the Master Server isn't reachable from the Service Gateway, the files will be stored in the
processing folder until the Master Server is reachable again.
On the Master Server, you need to specify the IDX URL to License Manager so that the Master
Server knows where to get the web application patterns from. This setting is only required on the
Master Server, it is not needed on the Service Gateway. Just make sure to add the Service Gateway
IDX endpoint in the Inventory agent configuration.
EXAMPLE
System setting in snowagent.config
4.4 LOGGING
All log files of the Service Gateway are located in the C:\ProgramData\SnowSoftware\Inventory
\Server folder. Only the last five log files are kept and by default, the files are configured to be
maximum 2MB in size.
Configure the maximum log file size in the server.config file by using the MaxLogSize parameter
(in megabytes). Also, it is possible to filter the log to only show specified tags.
EXAMPLE
The snowserver.config of the Service Gateway
<Logging>
<Tags>
<Tag>discovery</Tag>
<Tag>discovery-active-directory</Tag>
</Tags>
<MaxLogSize>1024</MaxLogSize>
</Logging>
Page 9 of 10 SNOWSOFTWARE.COM
4.4.1 LOG DETAILS
EXAMPLE
Service Gateway asks for updates
EXAMPLE
Active Directory Discovery - connecting and starting
2017-08-22T07:51:31+02:00;discovery-active-directory;;;;Connecting to 'LDAP://
DC=contoso,DC=com'...
2017-08-22T07:51:32+02:00;discovery-active-directory;;;;Successfully connected to
'LDAP://DC=contoso,DC=com', returned ID is ca6bbcc5-60d3-4c54-a618-9b953b7a5f9f
2017-08-22T07:51:32+02:00;discovery-active-directory;;;;Starting Active Directory
discovery crawler...
2017-08-22T07:51:32+02:00;discovery-active-directory;;;;Active Directory
discovery of 'LDAP://DC=contoso,DC=com' started.
EXAMPLE
Network Discovery
The target computer does not allow Win RPC connections and that causes problems when
trying to deploy an agent to that computer.
EXAMPLE
Receiving a file and passing it forward
Page 10 of 10 SNOWSOFTWARE.COM