Do you have FOG 1.2.0 working? It can do all these things already.
Yes we have FOG 1.2.0 working.
Why do you want bash commands for those things?
We need to automate some actions. We use glpi and rabbit mq.
when we put a machine discarded with glpi, rabbit mq send to fog " a wipe and imaging and delete a machine."