Advertisement
Guest User

Untitled

a guest
Oct 30th, 2014
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. [root@vm2 ganeshactl (test)]# cat display-exp
  2. #!/usr/bin/env python
  3.  
  4. import sys, gobject, dbus, dbus.glib
  5.  
  6. gobject.threads_init()
  7. dbus.glib.init_threads()
  8.  
  9. # Create a session bus.
  10. bus = dbus.SystemBus()
  11.  
  12. # Create an object that will proxy for a particular remote object.
  13. mgr = bus.get_object("org.ganesha.nfsd", "/org/ganesha/nfsd/ExportMgr")
  14.  
  15. # call method
  16. display_exp = mgr.get_dbus_method('DisplayExport',
  17. 'org.ganesha.nfsd.exportmgr')
  18.  
  19. #id, fullpath, pseudopath, tag = display_exp(13)
  20. print display_exp(13)
  21. [root@vm2 ganeshactl (test)]# ./display-exp
  22. (dbus.UInt16(13), dbus.String(u'/gpfs/gpfsA/A'), dbus.String(u'/gpfs/gpfsA/A'), dbus.String(u''))
  23. [root@vm2 ganeshactl (test)]#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement