Author Topic: XML to remove users from CMOD needed.  (Read 2750 times)

B.Rivers

  • Guest
XML to remove users from CMOD needed.
« on: October 21, 2016, 12:52:36 PM »
XML to remove users from CMOD needed.

 :-\

Nolan

  • Full Member
  • ***
  • Posts: 152
    • View Profile
Re: XML to remove users from CMOD needed.
« Reply #1 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
J.

#zOS #AIX #Windows #Multiplatforms
#DB2 #TSM #ODF #zODF #ODWEK
#CapacityPlanning #AFP #ReportDistribution
#Finance #ICN

Justin Derrick

  • IBM Content Manager OnDemand Consultant
  • Administrator
  • Hero Member
  • *****
  • Posts: 2230
  • CMOD Guru for hire...
    • View Profile
    • Tenacious Consulting
Re: XML to remove users from CMOD needed.
« Reply #2 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.
IBM CMOD Professional Services: http://TenaciousConsulting.com
Call:  +1-866-533-7742  or  eMail:  jd@justinderrick.com
IBM CMOD Wiki:  https://CMOD.wiki/
FREE IBM CMOD Education & Webinars:  https://CMOD.Training/

Interests: #AIX #Linux #Multiplatforms #DB2 #TSM #SP #Performance #Security #Audits #Customizing #Availability #HA #DR

B.Rivers

  • Guest
Re: XML to remove users from CMOD needed.
« Reply #3 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.

  ::)



fnb4321

  • Jr. Member
  • **
  • Posts: 59
    • View Profile
Re: XML to remove users from CMOD needed.
« Reply #4 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>

B.Rivers

  • Guest
Re: XML to remove users from CMOD needed.
« Reply #5 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