Hi lists,

I just uploaded two files - smcli and finduserdirentry.  smcli is a
compliled wrapper around SMAPI originating from IBM. It is called in the
bash script finduserdirentry. See:

 https://sourceforge.net/projects/system-zoom/files

We have a process to cycle through our managed guests and see if they were
modified "out of band" (for example, if someone on z/VM adds a CPU to a
user directory entry). To get each user directory entry using SMAPI takes a
handful of seconds.  Let's say 5 seconds for round numbers.  But to cycle
through say 3600 guests would take 5 hours - not too usable.  This code
sample gets the entire user directory and keeps it in memory.  So the first
User ID is more expensive but then I'm hoping around 100ms for each one
after that.  So maybe 5 hours is now 5 minutes... time will tell...

I plan to incorporate this prototype into zoom, but thought the it might be
useful as is.  The code merges PROFILEs into USERs by default (CPU cards
for example can be in PROFILEs), strips comments and leading spaces.

For it to work, you need a zLinux virtual machine authorized to use a
functioning SMAPI.  smcli may need a library path setting, but I can't seem
to recall.

Enjoy.  Feedback is welcome. It is only lightly tested.

--
     -Mike MacIsaac

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390
----------------------------------------------------------------------
For more information on Linux on System z, visit
http://wiki.linuxvm.org/

Reply via email to