Hi Gary,

I see there are python samples provided with the opensaf distribution.
What's involved in getting the python samples to work?
When I did the initial build, I enabled python as part of the configure command 
as follows:

./configure --enable-python && make rpm

I could not find the python samples in any of the rpms that were built. Do they 
not get included?
I then tried just copying the python version of ntfsubscribe just to see what 
would happen but it fails as follows:

[2020-08-24 11:23:35 root@dhoyt-ha-1: ~ ]# ./ntfsubscribe
1
Traceback (most recent call last):
  File "./ntfsubscribe", line 294, in <module>
    selection_object = ntf.SELECTION_OBJECT.value
AttributeError: 'module' object has no attribute 'SELECTION_OBJECT'
[2020-08-24 11:23:46 root@dhoyt-ha-1: ~ ]#


[2020-08-24 11:23:46 root@dhoyt-ha-1: ~ ]# ./ntfsubscribe -h
usage: ntfsubscribe [-h] [--timeout TIME] [--alarm] [--objectCreateDelete]
                    [--attributeChange] [--stateChange] [--securityAlarm]

ntfsubscribe is a SAF NTF client used to subscribe for all incoming
notifications.

optional arguments:
  -h, --help            show this help message and exit
  --timeout TIME, -t TIME
                        timeout (sec) waiting for notification
  --alarm, -a           subscribe for only alarm notifications
  --objectCreateDelete, -o
                        subscribe for only objectCreateDelete notifications
  --attributeChange, -c
                        subscribe for only attributeChange notifications
  --stateChange, -s     subscribe for only stateChange notifications
  --securityAlarm, -y   subscribe for only securityAlarm notifications
[2020-08-24 11:23:55 root@dhoyt-ha-1: ~ ]#

Regards,
David


-----------------------------------------------------------------------------------------------------------------------
Notice: This e-mail together with any attachments may contain information of 
Ribbon Communications Inc. that
is confidential and/or proprietary for the sole use of the intended recipient.  
Any review, disclosure, reliance or
distribution by others or forwarding without express permission is strictly 
prohibited.  If you are not the intended
recipient, please notify the sender immediately and then delete all copies, 
including any attachments.
-----------------------------------------------------------------------------------------------------------------------

_______________________________________________
Opensaf-users mailing list
Opensaf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensaf-users

Reply via email to