Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install tlscli

How to install tlscli

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install tlscli
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
1.1.0Never BuiltWhy not?
1.0.0 Failed View build log
0.8.0 Failed View build log
Windows (64-bit)
1.1.0Never BuiltWhy not?
1.0.0 Failed View build log
0.8.0 Failed View build log
Mac OS X (10.5+)
1.1.0Never BuiltWhy not?
1.0.0 Failed View build log
0.8.0 Failed View build log
Linux (32-bit)
1.1.0 Available View build log
1.0.1 Failed View build log
1.0.0 Failed View build log
0.8.0 Failed View build log
Linux (64-bit)
1.1.0 Available View build log
1.0.1 Failed View build log
1.0.0 Failed View build log
0.8.0 Failed View build log
 
Links
Author
License
New BSD License
Lastest release
version 1.1.0 on Apr 9th, 2013

Telecom Log Service Client (tlscli) is a Python command-line client for CORBA Telecom Log Service.

Using it you can:

  • create a new log
  • query a log
  • add or remove log records
For more information on the TelecomLogService, see:
http://www.omg.org/spec/TLOG/
The project is hosted on Launchpad:
https://launchpad.net/tlscli

Example

Here's an example session, assuming a Telecom Log Service is running:

me@mymachine$ tlscli -ORBInitRef LogMgr=`cat /var/run/corba/tls.ior` list
me@mymachine$ tlscli -ORBInitRef LogMgr=`cat /var/run/corba/tls.ior` create
0
me@mymachine$ tlscli -ORBInitRef LogMgr=`cat /var/run/corba/tls.ior` list
0
me@mymachine$ tlscli -ORBInitRef LogMgr=`cat /var/run/corba/tls.ior` info 0
id: 0
QoS: none
max-record-life: infinite
max-size: unlimited
current-size: 56 bytes
records: 1
log-full-action: wrap
administrative-state: unlocked
forwarding-state: on
operational-state: enabled
interval: now - forever
availability-status: { off-duty: False; full: False }
capacity-alarm-thresholds: [100]
week-mask:
------------------------------------------------------------------------------
me@mymachine$ tlscli -ORBInitRef LogMgr=`cat /var/run/corba/tls.ior` write 'Hello world!' to 0
me@mymachine$ tlscli -ORBInitRef LogMgr=`cat /var/run/corba/tls.ior` info 0
id: 0
QoS: none
max-record-life: infinite
max-size: unlimited
current-size: 57 bytes
records: 1
log-full-action: wrap
administrative-state: unlocked
forwarding-state: on
operational-state: enabled
interval: now - forever
availability-status: { off-duty: False; full: False }
capacity-alarm-thresholds: [100]
week-mask:
------------------------------------------------------------------------------
me@mymachine$ tlscli -ORBInitRef LogMgr=`cat /var/run/corba/tls.ior` retrieve 10 after `date +%Y%m%d` from 0
id: 1
time: Sat Dec 25 17:11:57 2010
attributes: []
info: Hello world!
------------------------------------------------------------------------------

This creates a new log with id 0, then write a new log record to it with text Hello world.

Prerequisites

To install tlscli, you need:

To proceed to installation, run the following command from where you unpacked tlscli:

me@mymachine$ python setup.py install --user

This will automatically install everything needed into your $HOME/.local (tlscli itself will be in $HOME/.local/bin).

To run tlscli, you need a Telecom Log Service running somewhere. tlscli is known to work with the following implementations:

  • tao_tls_basic, tao_tls_event and tao_tls_notify provided with TAO
  • tlserl, an Erlang implementation available on bitbucket

Running

When invoking tlscli you need to specify how to connect to the LogMgr. The LogMgr is the object to use to access (or create) logs.

This is achieved by specifying an initial reference for the LogMgr, using one of the three following methods:

  • add -ORBInitRef LogMgr=corbaname:iiop:1.2@MACHINE:PORT#NAME
  • add -ORBInitRef LogMgr=corbaloc:iiop:1.2@MACHINE:PORT/NAME
  • add -ORBInitRef LogMgr=IOR:IOR

where MACHINE:PORT specify where to find a Telecom Log Service (or a Name Service for corbaname), and NAME is the name to use for the service (or the Name Service for corbaname).

Please read The corbaloc and corbaname URLs chapter in the great online free book CORBA Explained Simply.

Commands

Creating a new log

To create a new log, use tlscli create. This will return the id of the newly created log.

Querying an existing log
  • list will return the id of all logs available from the given LogMgr. This is the default command if none is specified
  • info will return information about an existing log, such as size, record count and current status
  • query can be used to search for log records matching a given constraint
  • retrieve retrieves a given count of log records before or after the specified date
Modifying an existing log
  • write adds a new log record to an existing log
  • delete removes log records matching a given constraint from an existing log

For more information on commands, use tlscli --help.

Subscribe to package updates

Last updated Apr 9th, 2013

Download Stats

Last month:1

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.