Operating System - HP-UX
1830933 Members
1946 Online
110017 Solutions
New Discussion

Power Cycle HP Machine In Command Line

 
Robjan
Frequent Advisor

Power Cycle HP Machine In Command Line

Hi

Can anyone help me how to power cycle a HP machine in command line .

Everyone will be knowing that using MP console we can power cycle the machine But I need that to be done in a commandline (nothing but a session .)
15 REPLIES 15
Torsten.
Acclaimed Contributor

Re: Power Cycle HP Machine In Command Line

Why not using the MP? It's only possible from the MP.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Paul McCleary
Honored Contributor

Re: Power Cycle HP Machine In Command Line

What behaviour are you trying to achieve and under what condition(s) does it need to be triggered?
Olivier Masse
Honored Contributor

Re: Power Cycle HP Machine In Command Line

If you really need to do a power cycle from a command-line, for example to automate the task, the only thing I can think of is writing an expect script that runs from a remote system and logs on the MP. Think of writing a script that covers both low-end and mid-range systems, as the power-related MP commands are different.

You can turn off a server with shutdown -h but there's no way to turn it back on. Furthermore, I'm not convinced that every server model will actually power off; low-end systems do, but I'm less sure about mid-range systems.

Patrick Wallek
Honored Contributor

Re: Power Cycle HP Machine In Command Line

Stop and think for a minute.

If the machine is OFF, how do you expect to get a command line to turn it back on? HP-UX isn't running, so you can't log in normally.

The MP is the only way to accomplish this.
Robjan
Frequent Advisor

Re: Power Cycle HP Machine In Command Line

Hi ,

We are not having any mid range or higher end servers .

It will be great if you can give some ideas controlling MP .

--Robin.
Alan Shearer_1
Frequent Advisor

Re: Power Cycle HP Machine In Command Line

What servers do you have then?
Torsten.
Acclaimed Contributor

Re: Power Cycle HP Machine In Command Line

What is the meaning of "controlling MP"?

What server model do you have?

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Anshumali
Esteemed Contributor

Re: Power Cycle HP Machine In Command Line

Rob,
I thought you wrote, "Everyone will be knowing that using MP console we can power cycle the machine" :)
Normally you can login to MP, select command prompt(cm) and issue pe(or similar) select and power it of.
Will require your model number for specific commands....
Dreams are not which you see while sleeping, Dreams are which doesnt allow you to sleep while you are chasing for them!!
Robjan
Frequent Advisor

Re: Power Cycle HP Machine In Command Line

We have entry Level servers .

Is there any way I can control MP from commandline remotely .
Robjan
Frequent Advisor

Re: Power Cycle HP Machine In Command Line

Hi

9000/800/L3000-5x
9000/800/rp3410
rp3440 .

are some of the models we have .

-- robin
YAQUB_1
Respected Contributor

Re: Power Cycle HP Machine In Command Line

Hi Robjan,

Without GSP/MP you can not machine power cycle.

GSP/MP LAN process power cycle:
===============================
MP> cm
MP:CM> pc then "off" ---------- entry level server rp/rx series
MP:CM> pe then "T" then "off" then "Y" ------mid/high level server rp/rx

System OS level you can only system halt or reboot only.

# shutdown â hy 0 or now --------- halt
# shutdown â ry 0 or now --------- reboot

BR/
Yaqub
Mridul Shrivastava
Honored Contributor

Re: Power Cycle HP Machine In Command Line

You can login to MP remotely if MP LAN is configured and all the task can be done remotely.

I hope you are familiar with MP login and command.
Time has a wonderful way of weeding out the trivial
Torsten.
Acclaimed Contributor

Re: Power Cycle HP Machine In Command Line

Newer MP (iLO) moedls can be switched to a special mode (SMCLP):

MP MAIN MENU:


CO: Console

VFP: Virtual Front Panel

CM: Command Menu

SMCLP: Server Management Command Line Protocol

CL: Console Log

SL: Show Event Logs

HE: Main Help Menu

X: Exit Connection

http://docs.hp.com/en/5991-6005/ch06s03.html?jumpid=reg_R1002_USEN

But the systems you listed cannot.

I still miss an information what you really want to do.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Dennis Handly
Acclaimed Contributor

Re: Power Cycle HP Machine In Command Line

You can of course use reboot -r or shutdown -r from the command line. The power won't be shut off.
Robjan
Frequent Advisor

Re: Power Cycle HP Machine In Command Line

Thanks to all your replies . Finally I got a script to execute and operate the MP remotely .