[Spacewalk-list] command to delete system from Spacewalk

2015-01-05 Thread Dave Goodbourn
Hi, Is there a command that can be run from the client systems that will remove them from the Spacewalk system? Instead of using the Delete System button within Spacewalk? A kind of reverse to the rhnreg_ks command? Cheers, Dave. ___ Spacewalk-list

Re: [Spacewalk-list] command to delete system from Spacewalk

2015-01-05 Thread Matthew Madey
You can do it easily from the Spacewalk server using spacecmd. # spacecmd system_delete system.example.com spacecmd {SSM:0} system_delete system_delete: Delete a system profile usage: system_delete SYSTEMS SYSTEMS can be any of the following: name ssm (see 'help ssm') search:QUERY (see 'help

Re: [Spacewalk-list] command to delete system from Spacewalk

2015-01-05 Thread Waldirio Manhães Pinheiro
Hello Dave You can use spacecmd or create a script to do this. In your SW click in Help TAB, API, Sample Scripts To use via API, use the method like bellow Method: deleteNote https://rhnsat01/rhn/apidoc/handlers/SystemHandler.jsp#topDescription: Deletes the given note from the server.

Re: [Spacewalk-list] command to delete system from Spacewalk

2015-01-05 Thread Dave Goodbourn
Ah, I was hoping to be able to run it from the client before I re-kickstart it so there isn't a duplicate entry in Spacewalk, so it was going to be part of the whole kickstart process. On 5 January 2015 at 16:30, Matthew Madey mattma...@gmail.com wrote: You can do it easily from the Spacewalk

Re: [Spacewalk-list] command to delete system from Spacewalk

2015-01-05 Thread Waldirio Manhães Pinheiro
Humm As best practice I recommend you create a routine in the server to check if you have duplicate and if yes, remove the older. This is one way, you can do by different's ways. Take Care __ Atenciosamente Waldirio msn: waldi...@gmail.com Skype: waldirio Site: www.waldirio.com.br

Re: [Spacewalk-list] command to delete system from Spacewalk

2015-01-05 Thread Paul Robert Marino
Generally if you kickstart the host from spacewalk it will backup and restore the original registration file so you won't see a duplicate.-- Sent from my HP Pre3On Jan 5, 2015 12:38 PM, Waldirio Manhães Pinheiro waldi...@gmail.com wrote: HummAs best practice I recommend you create a routine in the