Auto startup and shutdown in AIX

Hi All,

I would like to schedule auto IPL (shutdown and start-up) by using a shell script.
Can you please give me some idea?

want to test on my lab box first.

shell script should bring AIX LPAR down and then need to start/activate the LPAR after 30 min

any idea is highly appreciated.

Thanks,
RK

Doing the shutdown is easy: put "/sbin/shutdown" into a scipt, put it in roots crontab and be done.

As you want a 30 min downtime a simple reboot won't suffice. Booting the system at a specific time is trickier and will depend on your environment: HMC or IVM?

I hope this helps.

bakunin

@bakunin

its HMC managed LPAR.
i would like to test on LAB box. need to shutdown my LPAR at some time and after that it has to start automatically after 30 min.

There is a HMC scheduler, basically just an interface to cron - and I believe one option is to schedule PowerOn.

Another way would be a script - that connects to the HMC/IVM and then executes a command simaliar to

ssh padmin@x101 chsysstate -o on -r lpar --id $i

With a HMC the -m ManagedSysName argument will also be needed. You might need to specify a profile name as well (nothing might be taken to mean the default profile, but no HMC to test)