Thanks for the response Victor. We’re typically creating a few hundred new node definitions a day and removing about that same amount.
We currently create definitions via a python application running on the MN that we interact with. Based on the options passed in, it generates all the definitions for the new rack (typically ToR switches, chassis/blade/rack nodes and BMCs), and then spawns a process for each new node to call mkdef/chdef via a subprocess call in parallel. The reason I asked is because I’m working on moving our application away from the MN to a remote server in order to keep them separate. I’ll look into xcat-inventory, I was hoping to be able to bulk import new definitions without dropping files/accessing the MN directly but the import using xcat-inventory may cover our needs. Ryan Bowen | Integration Systems Engineer | SHI International Corp | C: (609)619-2571 | E: ryan_bo...@shi.com From: Victor Hu <v...@us.ibm.com> Sent: Tuesday, January 22, 2019 1:38 PM To: xcat-user@lists.sourceforge.net Subject: Re: [xcat-user] REST API - Bulk import Let me try this again, I hit send too early. Hi Ryan I don't think the REST API can do this, but if someone knows of a way they can inject in this discussion. How often are you creating node definitions?There is a sub project off of the xcat2 repo called xcat-inventory that we have been playing with, it's not currently shipped with xcat-core but you can clone and build it, or download the release... If you are moving node definitions you can export to json/yaml and then import on another xCAT MN. The starting idea behind this tool is a way to allow admins to source control xCAT node definitions and osimage definitions and simply import them into xCAT.. so you could have a few node groups defined in source control and then using a regular expression run a mkdef command... OR create the .yaml files via some scripts and directly import them into xCAT using `xcat-inventory import` Victor ----- Original message ----- From: Ryan Bowen <ryan_bo...@shi.com<mailto:ryan_bo...@shi.com>> To: xCAT Users Mailing list <xcat-user@lists.sourceforge.net<mailto:xcat-user@lists.sourceforge.net>> Cc: Subject: [xcat-user] REST API - Bulk import Date: Tue, Jan 22, 2019 11:15 AM Does the REST API currently have the capability to create multiple nodes at once with the nodes having different values for the fields using one HTTP request (similar to a stanza import)? Or is the only way to define one per request? I’m looking to move the node definition creation utilities off the management node but we often define 300+ nodes at a time so I’m afraid of the time amount of time it would take compared to what we use now. Ryan Bowen Integration Systems Engineer | Integration Services – Data Center SHI International Corp | Phone: (609)619-2571 | Email: ryan_bo...@shi.com<mailto:ryan_bo...@shi.com> _______________________________________________ xCAT-user mailing list xCAT-user@lists.sourceforge.net<mailto:xCAT-user@lists.sourceforge.net> https://lists.sourceforge.net/lists/listinfo/xcat-user
_______________________________________________ xCAT-user mailing list xCAT-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xcat-user