Alert.png The wiki is deprecated and due to be decommissioned by the end of September 2022.
The content is being migrated to other supports, new updates will be ignored and lost.
If needed you can get in touch with EGI SDIS team using operations @ egi.eu.

Difference between revisions of "APEL/SSM2AddingFiles"

From EGIWiki
Jump to navigation Jump to search
(Created page with "= Adding files to SSM2 =")
 
Line 1: Line 1:
* Back to [[APEL/SSM]]
= Adding files to SSM2 =
= Adding files to SSM2 =
In SSM2 we changed to using the EMI Messaging team's 'directory queue' libraries: https://twiki.cern.ch/twiki/bin/view/EMI/MessagingLibraries.  This changes how messages are added to SSM2.
There are two ways of adding messages to SSM2:
* Programmatically, using perl or python
* Manually, writing files to the filesystem
== Programmatically ==
You can add messages to SSM2 using the <code>python-dirq</code> or the <code>perl-Directory-Queue</code> libraries.
Create a QueueSimple object with path <code>/var/spool/apel/outgoing</code> and add messages.  Follow the above link or email apel-ssm-test@jiscmail.ac.uk for more help.
== Manually ==
If you are not using perl or python, you can simply write files to the filesystem and SSM2 will send them.  However, there are constraints on the filenames:
* Files must be in the location <code>/var/spool/apel/outgoing/<directory>/<file></code>
* '''<directory> must be 6 hex characters'''
* '''<file> must be 14 hex characters'''

Revision as of 17:09, 17 January 2013

Adding files to SSM2

In SSM2 we changed to using the EMI Messaging team's 'directory queue' libraries: https://twiki.cern.ch/twiki/bin/view/EMI/MessagingLibraries. This changes how messages are added to SSM2.

There are two ways of adding messages to SSM2:

* Programmatically, using perl or python 
* Manually, writing files to the filesystem

Programmatically

You can add messages to SSM2 using the python-dirq or the perl-Directory-Queue libraries.

Create a QueueSimple object with path /var/spool/apel/outgoing and add messages. Follow the above link or email apel-ssm-test@jiscmail.ac.uk for more help.

Manually

If you are not using perl or python, you can simply write files to the filesystem and SSM2 will send them. However, there are constraints on the filenames:

* Files must be in the location /var/spool/apel/outgoing/<directory>/<file>
* <directory> must be 6 hex characters
* <file> must be 14 hex characters