Jira (FACT-2229) load_averages fact for AIX

2020-01-06 Thread Ciprian Badescu (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Ciprian Badescu commented on  FACT-2229  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: load_averages fact for AIX   
 

  
 
 
 
 

 
 The dlopen subroutine can be used to load a module that is a member of an archive https://www.ibm.com/support/knowledgecenter/ssw_aix_71/d_bostechref/dlopen.html require 'ffi' module Hello extend FFI::Library @ffi_lib_flags=0x0004|0x0001|0x0004 ffi_lib "libc.a(shr.o)" attach_function :puts, [ :string ], :int end Hello.puts("Hello, World")  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.338936.1576054336000.12399.1578328440319%40Atlassian.JIRA.


Jira (FACT-2229) load_averages fact for AIX

2019-12-24 Thread Ciprian Badescu (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Ciprian Badescu commented on  FACT-2229  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: load_averages fact for AIX   
 

  
 
 
 
 

 
 I created a gem native extension see if load_averages could be read like that: https://github.com/ciprianbadescu/aix_facter_helper irb(main):001:0> require 'aix_facter_helper.so' => true irb(main):002:0> AixFacterHelper::getLoadAverages => [1.7595977783203125, 1.557647705078125, 1.699554443359375]  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.338936.1576054336000.9230.1577187780111%40Atlassian.JIRA.


Jira (FACT-2229) load_averages fact for AIX

2019-12-24 Thread Ciprian Badescu (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Ciprian Badescu assigned an issue to Ciprian Badescu  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Facter /  FACT-2229  
 
 
  load_averages fact for AIX   
 

  
 
 
 
 

 
Change By: 
 Ciprian Badescu  
 
 
Assignee: 
 Ciprian Badescu  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.338936.1576054336000.9225.1577187720368%40Atlassian.JIRA.


Jira (FACT-2229) load_averages fact for AIX

2019-12-23 Thread Ciprian Badescu (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Ciprian Badescu commented on  FACT-2229  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: load_averages fact for AIX   
 

  
 
 
 
 

 
 I have not found getkerninfo available in system dynamic libraries on aix 6.1 (I assume bellow java related library doesn't count): [0] [AIX] root@aix61-2:~ # for i in `find / -name *\.so*`; do nm $i 2>/dev/null | grep T | grep getkerninfo; if [ $? -eq 0 ]; then echo $i; fi; done .getkerninfo T 268473200 /usr/java6/jre/lib/ppc/libnet.so .getkerninfo T 268452320 /usr/lpp/cas.agent/inst_root/var/opt/tivoli/ep/_jvm/jre/lib/ppc/libnet.so .getkerninfo T 268452320 /var/opt/tivoli/ep/_jvm/jre/lib/ppc/libnet.so   Instead it is found in static system library: [0] [AIX] root@aix61-2:~ # nm /lib/libc.a | grep T | grep getkerninfo .getkerninfo T 1298384   One solution would be to go with a native extension, should I give it a try or there are other ways?  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.338936.1576054336000.8806.1577111280131%40Atlassian.JIRA.


Jira (FACT-2229) load_averages fact for AIX

2019-12-23 Thread Ciprian Badescu (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Ciprian Badescu commented on  FACT-2229  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: load_averages fact for AIX   
 

  
 
 
 
 

 
 int rc = getkerninfo(KINFO_GET_AVENRUN, reinterpret_cast(averages.data()), _size, 0);  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.338936.1576054336000.8797.1577108340127%40Atlassian.JIRA.


Jira (FACT-2229) load_averages fact for AIX

2019-12-11 Thread Bogdan Irimie (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Bogdan Irimie updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Facter /  FACT-2229  
 
 
  load_averages fact for AIX   
 

  
 
 
 
 

 
Change By: 
 Bogdan Irimie  
 
 
Summary: 
 load_averages fact  for AIX  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.338936.1576054336000.4061.1576066200459%40Atlassian.JIRA.