Quoth Andrea on Mon, Oct 30, 2006 at 01:10:10AM -0800: > My understanding is that it's possible to remove a service from the > repository using command > > # svccfg delete <FMRI> > > After this command is run that FMRI doesn't appear in the output of > any svcs command and svcadm returns "doesn't match any instances" > however that FMRI is still present in the output of "svccfg archive"
I believe that should only be true if the FMRI you deleted was an instance (like system/cron:default). If you delete a service (like system/cron), then I don't think it will show up in svccfg archive output. If you just delete an instance, then you should still be able to see the service with svccfg. > You can make those FMRI again available using command > > # svccfg import <path to manifest file> > > Question is? > > - How can I easly find out all FMRI that have been deleted from > repository? There is a sort of log file for that? In the usual log > file for that FMRI the delete operation is not logged You can't. Soon the repository will have auditing capability, and then you should be able to turn auditing on and svc.configd will record audit records whenever a service is deleted. > - How can I easly import all FMRI that have been deleted from > repository? (It seems that svc:/system/manifest-import:default has no > effect) Well you could use find to run svccfg import on every xml file in /var/svc/manifest. I would like to better understand your problem better before recommending this as a solution, though. Are services being accidentally deleted? Or are you purposefully deleting them, as though to reset their configuration? > - What "svccfg delete" does in details? It only removes that FMRI from > repository? That's right. David