Sybase NNTP forums - End Of Life (EOL)

The NNTP forums from Sybase - forums.sybase.com - are now closed.

All new questions should be directed to the appropriate forum at the SAP Community Network (SCN).

Individual products have links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center.

Afaria 6.6 : Session Manager Channel - Synchronising files to Win32 clients

4 posts in General Last posting was on 2012-05-04 08:58:18.0Z
Darren Griffin Posted on 2012-04-19 20:35:55.0Z
Sender: 2188.4f9071ed.1804289383@sybase.com
From: Darren Griffin
Newsgroups: ianywhere.public.afaria.general
Subject: Afaria 6.6 : Session Manager Channel - Synchronising files to Win32 clients
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <4f90772b.21f9.1681692777@sybase.com>
NNTP-Posting-Host: 172.20.134.41
X-Original-NNTP-Posting-Host: 172.20.134.41
Date: 19 Apr 2012 13:35:55 -0700
X-Trace: forums-1-dub 1334867755 172.20.134.41 (19 Apr 2012 13:35:55 -0700)
X-Original-Trace: 19 Apr 2012 13:35:55 -0700, 172.20.134.41
Lines: 27
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub ianywhere.public.afaria.general:469
Article PK: 808

I have been working on creating a "Document Management"
channel via a Session Manager channel on Afaria 6.6 (HF6).
In essence I want to reference a dynamic directory (on
either the Afaria Server or on a network share) that will be
synchronised to Win32 client workstations. The addition of
directories and files on the source should be
copied/replicated to the clients and if files/directories
are removed from the source those changes should also be
reflected on the client. The automatic synch is
accomplished by a Monitor-Client action pair for the
channel.

The creation of the client directory is relatively straight
forward ... as is putting the initial files on the client.
Updated files also transfer relatively simply. These
actions are accomplished by some basic logic statements, the
"Make Directory" and "Send File to Client" commands with the
"Include Subdirectories" option enabled. Where things seem
to go a little awry is when a file or directory that once
existed on the source (which was sync'd to the client) was
later removed from the source. This change does not seem to
get reflected with the basic commands listed above.

Has anyone played with that functionality via a Session
Manager channel so that the destination directory on the
client is an exact mirror of the source? If so any
suggestions or examples would be greatly appreciated.


Mahendra Bhandari Posted on 2012-04-23 13:39:44.0Z
Sender: 7cc1.4f955ae8.1804289383@sybase.com
From: Mahendra Bhandari
Newsgroups: ianywhere.public.afaria.general
Subject: Re: Afaria 6.6 : Session Manager Channel - Synchronising files to Win32 clients
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <4f955ba0.7cd5.1681692777@sybase.com>
References: <4f90772b.21f9.1681692777@sybase.com>
NNTP-Posting-Host: 172.20.134.41
X-Original-NNTP-Posting-Host: 172.20.134.41
Date: 23 Apr 2012 06:39:44 -0700
X-Trace: forums-1-dub 1335188384 172.20.134.41 (23 Apr 2012 06:39:44 -0700)
X-Original-Trace: 23 Apr 2012 06:39:44 -0700, 172.20.134.41
Lines: 83
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub ianywhere.public.afaria.general:470
Article PK: 809

Hi,

I've posted your question on LinkedIn, so below are the
revert which might be helpful for you.

First Resolution

1. On server use subst command to create virtual drive eg: s
drive to map to desired directory where source file exist.

2. Create document manager channel to sync entire s:\ drive.

3. Create a session manager to run subst s: /D to remove
mapped drive. And then execute subst s: <new folder>. Then
trigger refresh document manager channel as drive letter is
same should work.

Note: Automatic document refresh schedule works daily once.
so you might have to do manual update of document manager
channel after above steps when source directory change.

Have used subst based drive with Afaria however, above steps
have not been tested practically, Give it a try and let me
know if it works.

Hope this helps!

- Sandesh

Second Resolution

1) Use the Document Manager Channel (isn't that available
for WIn32?)

2) Ask Support/PSO for their Session Mgr Dir Sync Tool or
whatever they call it. It's built to do just what you
want...

3) Build some logic in VB/JScript to handle this. Use
DirListing function from session mgr to gather directory
contents from destination.

4) Talk to www.unwiredrevolution.com they have built a
document library on steroids for Afaria..

Cheers

- Peter


KR,
Mahendra Bhandari

> I have been working on creating a "Document Management"
> channel via a Session Manager channel on Afaria 6.6 (HF6).
> In essence I want to reference a dynamic directory (on
> either the Afaria Server or on a network share) that will
> be synchronised to Win32 client workstations. The
> addition of directories and files on the source should be
> copied/replicated to the clients and if files/directories
> are removed from the source those changes should also be
> reflected on the client. The automatic synch is
> accomplished by a Monitor-Client action pair for the
> channel.
>
> The creation of the client directory is relatively
> straight forward ... as is putting the initial files on
> the client. Updated files also transfer relatively
> simply. These actions are accomplished by some basic
> logic statements, the "Make Directory" and "Send File to
> Client" commands with the "Include Subdirectories" option
> enabled. Where things seem to go a little awry is when a
> file or directory that once existed on the source (which
> was sync'd to the client) was later removed from the
> source. This change does not seem to get reflected with
> the basic commands listed above.
>
> Has anyone played with that functionality via a Session
> Manager channel so that the destination directory on the
> client is an exact mirror of the source? If so any
> suggestions or examples would be greatly appreciated.


Darren Griffin Posted on 2012-04-26 15:46:42.0Z
Sender: aef.4f996ba2.1804289383@sybase.com
From: Darren Griffin
Newsgroups: ianywhere.public.afaria.general
Subject: Re: Afaria 6.6 : Session Manager Channel - Synchronising files to Win32 clients
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <4f996de2.b51.1681692777@sybase.com>
References: <4f955ba0.7cd5.1681692777@sybase.com>
NNTP-Posting-Host: 172.20.134.41
X-Original-NNTP-Posting-Host: 172.20.134.41
Date: 26 Apr 2012 08:46:42 -0700
X-Trace: forums-1-dub 1335455202 172.20.134.41 (26 Apr 2012 08:46:42 -0700)
X-Original-Trace: 26 Apr 2012 08:46:42 -0700, 172.20.134.41
Lines: 112
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub ianywhere.public.afaria.general:471
Article PK: 810

Thanks for the response Mahendra ... a couple of things:

I was looking to create the channel with Session Manager in
6.6 because the Document Manager channel goes away in
version 7; I didn't want to develop something that wasn't
going to port when/if we upgrade.

I was hoping that the channel would be a "smart" copy. I
guess I could do the following on the client each time the
channel ran but it seems wasteful to do:

- Delete the directory and all sub directories on the client
- Copy the entire share folder (and sub-folders) to the
client

That would ensure there was no variance between the source
and destination. It is, however, bandwidth intensive as the
directory and file structure grows.

Creating a VB/JScript to do the smart copy would work but
that seems like cheating ... it may be the only option that
will work :)

Darren.

> Hi,
>
> I've posted your question on LinkedIn, so below are the
> revert which might be helpful for you.
>
> First Resolution
>
> 1. On server use subst command to create virtual drive eg:
> s drive to map to desired directory where source file
> exist.
>
> 2. Create document manager channel to sync entire s:\
> drive.
>
> 3. Create a session manager to run subst s: /D to remove
> mapped drive. And then execute subst s: <new folder>. Then
> trigger refresh document manager channel as drive letter
> is same should work.
>
> Note: Automatic document refresh schedule works daily
> once. so you might have to do manual update of document
> manager channel after above steps when source directory
> change.
>
> Have used subst based drive with Afaria however, above
> steps have not been tested practically, Give it a try and
> let me know if it works.
>
> Hope this helps!
>
> - Sandesh
>
> Second Resolution
>
> 1) Use the Document Manager Channel (isn't that available
> for WIn32?)
>
> 2) Ask Support/PSO for their Session Mgr Dir Sync Tool or
> whatever they call it. It's built to do just what you
> want...
>
> 3) Build some logic in VB/JScript to handle this. Use
> DirListing function from session mgr to gather directory
> contents from destination.
>
> 4) Talk to www.unwiredrevolution.com they have built a
> document library on steroids for Afaria..
>
> Cheers
>
> - Peter
>
>
> KR,
> Mahendra Bhandari
>
>
>
> > I have been working on creating a "Document Management"
> > channel via a Session Manager channel on Afaria 6.6
> > (HF6). In essence I want to reference a dynamic
> > directory (on either the Afaria Server or on a network
> > share) that will be synchronised to Win32 client
> > workstations. The addition of directories and files on
> > the source should be copied/replicated to the clients
> > and if files/directories are removed from the source
> > those changes should also be reflected on the client.
> > The automatic synch is accomplished by a Monitor-Client
> > action pair for the channel.
> >
> > The creation of the client directory is relatively
> > straight forward ... as is putting the initial files on
> > the client. Updated files also transfer relatively
> > simply. These actions are accomplished by some basic
> > logic statements, the "Make Directory" and "Send File to
> > Client" commands with the "Include Subdirectories"
> > option enabled. Where things seem to go a little awry
> > is when a file or directory that once existed on the
> > source (which was sync'd to the client) was later
> > removed from the source. This change does not seem to
> > get reflected with the basic commands listed above.
> >
> > Has anyone played with that functionality via a Session
> > Manager channel so that the destination directory on the
> > client is an exact mirror of the source? If so any
> > suggestions or examples would be greatly appreciated.


Mahendra Bhandari Posted on 2012-05-04 08:58:18.0Z
Sender: 3f82.4fa39966.1804289383@sybase.com
From: Mahendra Bhandari
Newsgroups: ianywhere.public.afaria.general
Subject: Re: Afaria 6.6 : Session Manager Channel - Synchronising files to Win32 clients
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <4fa39a29.3fa0.1681692777@sybase.com>
References: <4f996de2.b51.1681692777@sybase.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: quoted-printable
NNTP-Posting-Host: 172.20.134.41
X-Original-NNTP-Posting-Host: 172.20.134.41
Date: 4 May 2012 01:58:18 -0700
X-Trace: forums-1-dub 1336121898 172.20.134.41 (4 May 2012 01:58:18 -0700)
X-Original-Trace: 4 May 2012 01:58:18 -0700, 172.20.134.41
Lines: 159
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub ianywhere.public.afaria.general:477
Article PK: 814

Hi Darren,

One more response to your question,

The utility (called DocSync) supports some moderately
sophisticated server to client file/folder synchronization
options. The primary advantages of the tool over the other
options suggested are flexibility and performance. In the
end, we leverage Afaria only as a transport, handling all of
the sync logic outside the session. We find the process
Afaria uses to determine changes become problematic when:

1) The number of files that need to be synchronized becomes
large (meaning thousands), and/or
2) The size of the files being synchronized are very large
(hundreds of MBs+)

Part of the magic is that we create the Afaria worklist on
the fly. This keeps the channel small and efficient. It also
helps preserve the audit trail provided by Afaria's logs
(something other external script methods are not likely to
do).

We have customers that use Afaria and DocSync to efficiently
(in a differential way) syncs of tens of thousands of files.
This includes handling replicated file deletes. The tool
also supports syncing different files to different groups
(or individual devices) as needed.

Many of the other options suggest are fine for small sync
situations. However, if the data set is larger or more
complex, I’m confident that there isn’t a better
approach than DocSync.

Finally, we have another add-on solution (actually have a
ton of them) called DocLib. The key difference is DocLib has
a client UI (a bit explorer like) that allows users to
subscribe to content (files) or view files that are admin
forced. DocSync is completely background (support other uses
for file-based content).

- By Michael Lowry

Cheers!!!
Mahendra Bhandari

> Thanks for the response Mahendra ... a couple of things:
>
> I was looking to create the channel with Session Manager
> in 6.6 because the Document Manager channel goes away in
> version 7; I didn't want to develop something that wasn't
> going to port when/if we upgrade.
>
> I was hoping that the channel would be a "smart" copy. I
> guess I could do the following on the client each time the
> channel ran but it seems wasteful to do:
>
> - Delete the directory and all sub directories on the
> client - Copy the entire share folder (and sub-folders) to
> the client
>
> That would ensure there was no variance between the source
> and destination. It is, however, bandwidth intensive as
> the directory and file structure grows.
>
> Creating a VB/JScript to do the smart copy would work but
> that seems like cheating ... it may be the only option
> that will work :)
>
> Darren.
>
>
> > Hi,
> >
> > I've posted your question on LinkedIn, so below are the
> > revert which might be helpful for you.
> >
> > First Resolution
> >
> > 1. On server use subst command to create virtual drive
> > eg: s drive to map to desired directory where source
> > file exist.
> >
> > 2. Create document manager channel to sync entire s:\
> > drive.
> >
> > 3. Create a session manager to run subst s: /D to remove
> > mapped drive. And then execute subst s: <new folder>.
> > Then trigger refresh document manager channel as drive
> > letter is same should work.
> >
> > Note: Automatic document refresh schedule works daily
> > once. so you might have to do manual update of document
> > manager channel after above steps when source directory
> > change.
> >
> > Have used subst based drive with Afaria however, above
> > steps have not been tested practically, Give it a try
> > and let me know if it works.
> >
> > Hope this helps!
> >
> > - Sandesh
> >
> > Second Resolution
> >
> > 1) Use the Document Manager Channel (isn't that
> > available for WIn32?)
> >
> > 2) Ask Support/PSO for their Session Mgr Dir Sync Tool
> > or whatever they call it. It's built to do just what you
> > want...
> >
> > 3) Build some logic in VB/JScript to handle this. Use
> > DirListing function from session mgr to gather directory
> > contents from destination.
> >
> > 4) Talk to www.unwiredrevolution.com they have built a
> > document library on steroids for Afaria..
> >
> > Cheers
> >
> > - Peter
> >
> >
> > KR,
> > Mahendra Bhandari
> >
> >
> >
> > > I have been working on creating a "Document
> > > Management" channel via a Session Manager channel on
> > > Afaria 6.6 (HF6). In essence I want to reference a
> > > dynamic directory (on either the Afaria Server or on a
> > > network share) that will be synchronised to Win32
> > > client workstations. The addition of directories and
> > > files on the source should be copied/replicated to the
> > > clients and if files/directories are removed from the
> > > source those changes should also be reflected on the
> > > client. The automatic synch is accomplished by a
> > > Monitor-Client action pair for the channel.
> > >
> > > The creation of the client directory is relatively
> > > straight forward ... as is putting the initial files
> > > on the client. Updated files also transfer relatively
> > > simply. These actions are accomplished by some basic
> > > logic statements, the "Make Directory" and "Send File
> > > to Client" commands with the "Include Subdirectories"
> > > option enabled. Where things seem to go a little awry
> > > is when a file or directory that once existed on the
> > > source (which was sync'd to the client) was later
> > > removed from the source. This change does not seem to
> > > get reflected with the basic commands listed above.
> > >
> > > Has anyone played with that functionality via a
> > > Session Manager channel so that the destination
> > > directory on the client is an exact mirror of the
> > > source? If so any suggestions or examples would be
> greatly appreciated.