XML to remove users from CMOD needed.

Previous topic - Next topic

B.Rivers

XML to remove users from CMOD needed.

:-\

Nolan

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

Please let us know what you tried, what the result was, and how it was different from your expectations.

-JD.
Call:  +1-866-533-7742  or  eMail:  jd@justinderrick.com
IBM CMOD Wiki:  https://CMOD.wiki/
FREE IBM CMOD Webinars:  https://CMOD.Training/
IBM CMOD Professional Services: https://CMOD.cloud

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

B.Rivers

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

  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

fnb4321,

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

I am sure this work for us.

Brian   ;D