OnDemand User Group

Support Forums => MP Server => Topic started by: B.Rivers on October 21, 2016, 12:52:36 PM

Title: XML to remove users from CMOD needed.
Post by: B.Rivers on October 21, 2016, 12:52:36 PM
XML to remove users from CMOD needed.

 :-\
Title: Re: XML to remove users from CMOD needed.
Post by: Nolan on October 21, 2016, 01:27:40 PM
That is a pretty basic XML process.   What part did you not understand from the documentation?

<?xml version="1.0" encoding="IBM-1047"?>                                       
<onDemand xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="/usr/lpp/ars/od390/bin/xml/ondemand.xsd">
<user name="USERID">                                       
</onDemand>

Note this is for Z/OS
Title: Re: XML to remove users from CMOD needed.
Post by: Justin Derrick on October 22, 2016, 03:05:12 AM
Please let us know what you tried, what the result was, and how it was different from your expectations.

-JD.
Title: Re: XML to remove users from CMOD needed.
Post by: B.Rivers on October 24, 2016, 10:04:32 AM
Thanks for getting back to me.

So far I have only tried to disable users.  This is working with this XML:

<?xml version="1.0" encoding="UTF-8"?>
<onDemand xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="/opt/ibm/ondemand/V9.0//xml/ondemand.xsd">
<user name="USERNAME" disableUser="true" />
</onDemand>

Not sure what this would look like to remove a user from CMOD.

  ::)


Title: Re: XML to remove users from CMOD needed.
Post by: fnb4321 on October 24, 2016, 10:26:59 AM
  We run a script every month that creates a XML file of any user who has not viewed (or been added) within the last 90 days.  This is our way of removing inactive users and staying under our license entitlement.  Once the script is done we have an xml file of users that are eligible to be deleted.

We then run the following command:
arsxml delete -h hostserver -u userid -p password -x -i /migrate2/mt/deleteusers.xml

Below is sample of what the deleteusers.xml script would contain:

<?xml version="1.0" encoding="UTF-8"?>
<onDemand xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="/opt/ibm/ondemand/V9.0//xml/ondemand.xsd">
<user name="USERNAME" />
</onDemand>
Title: Re: XML to remove users from CMOD needed.
Post by: B.Rivers on October 24, 2016, 10:33:49 AM
fnb4321,

Thank you!  That is just what I was looking for.

I am sure this work for us.

Brian   ;D