Tuesday, November 8, 2011

How to Download and Install ARInside?

Hi colleagues,

Some of you ask how to download and install ARInside, therefore I would like to give you hints on that. First you need to download ARInside from http://arinside.org/. Open zipped stuff to a specific folder. This folder will be referenced in the following files therefore update references if you change it later.

Then you need to create an ini file in ARInside folder as the following. Name it as "settings_<server_name>.ini".

# Application Settings
TargetFolder     = <Full address to the destination folder; where you would like ARInside to be generated>
FileMode     = FALSE
ObjListXML     = DHS.xml
UTF-8     = TRUE
BlackList     = MyBlacklist
LoadServerInfoList   = TRUE
CompactFolder     = FALSE
DeleteExistingFiles  = FALSE


# Data Retrieval
LoadUserList = TRUE
UserForm = User
UserQuery = '1'!=$NULL$


LoadGroupList = TRUE
GroupForm = Group
GroupQuery = '1'!=$NULL$


LoadRoleList = TRUE
RoleForm = Roles
RoleQuery = '1'!=$NULL$
MaxRetrieve = 0


# Layout
CompanyName = <Company Name>
CompanyUrl = <Company URL>


Create a .bat file with the following content and rename it as "<server_name>.bat". This file can also be implemented on Unix side with a shell script. However it is better to avoid from putting ARInside on the same machine where your actual ARS implementation is.

cd\
cd <folder where you placed all your ARInside stuff>
ARInside.exe -i settings_<server_name>.ini -p <password> -l <username> -t <port_number> -s <server_name>
cd\


Now you are able to schedule this file with:
Windows Start Menu -> All Programs -> Accessories -> System Tools -> Scheduled Tasks.

Create a scheduled task when your ARS application has less traffic. You can do a similar scheduling with crontab on Unix systems.

Thursday, November 3, 2011

Copying Files From One Server to Another

Hi folks,

Today I would like to provide two methods for copying files from one server to another. You can use this for synchronizing your scripts or some ARS folders between servers. The first method is SFTP (Secure FTP). You can type the following to connect to a server:

sftp <server_name>

Then you need to change to the correct directory on remote folder:

cd <directory_name>

Finally you can copy the file from local to remote via "put" or from remote to local via "get":

get <file_name>
put <file_name>

You can use wild cards like in Unix environment:

get *.log

The disadvantage of sftp is that directories can not be copied easily. As a second method for copying files and   directories, you can use "scp" command:

scp -r <user_name>@<server_name>:<full_path_to_the_file_or_directory> <destination_folder>