Command to see the status of managed node from CLI of HMC?


 
Thread Tools Search this Thread
Operating Systems AIX Command to see the status of managed node from CLI of HMC?
# 1  
Old 01-19-2015
IBM Command to see the status of managed node from CLI of HMC?

Folks,

Asking a silly question - is there a way to know the status(Power Off/Running) of a managed node from CLI of HMC, alike the way we see it for the LPARs running on the node from 'vtmenu'?

Most of us use the UI to see the status of the LPARs/Managed node - but just inquisitive to know if there is a CLI cmd to see the same for the managed node?

Thanks!


-- Souvik
# 2  
Old 01-19-2015
A basic question, yes, but definitely not silly at all.

The commands to power down/on a managed system are:

Code:
hscroot@hmc # chsysstate -m <ms-name> -r sys -o [on|off]

to just list the state of the MS use the lssyscfg command. A state of "Operating" means "powered on", "Power Off" means exactly that.

Example:
Code:
hscroot@hmc # lssyscfg -r sys -F name,state
MS-ONE,Power Off
MS-TWO,Operating
MS-THREE,No Connection
[...]

See the man pages for lssyscfg and chsysstate´for details and possible variations on these commands.

I hope this helps.

bakunin
These 2 Users Gave Thanks to bakunin For This Post:
# 3  
Old 01-19-2015
Code:
root@hmc>lssyscfg -r sys -F name:serial_num:state
root@hmc> lssyscfg -m NAME-SERVER -r lpar -F name:state

Moderator's Comments:
Mod Comment edit by bakunin: please use CODE-tags when posting code, as required by the rules. Thank you.

Last edited by bakunin; 01-20-2015 at 05:15 AM..
# 4  
Old 01-20-2015
Quote:
Originally Posted by aav1307
Code:
root@hmc>lssyscfg -r sys -F name:serial_num:state
root@hmc> lssyscfg -m NAME-SERVER -r lpar -F name:state

ahem... i don't think you need to (or should) become "root" only to issue this command. Most probably this works as "hscroot".

I hope this helps.

bakunin
# 5  
Old 01-21-2015
Hello Bakunin,

Your help worked, many thanks.. Smilie


-- Souvik
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Running a command in another cli

I am writing a script to login to to a mongo DB node and get the status of that machine. The usual work flow is : # mongo admin -u root -p root MongoDB shell version: 3.0.11 connecting to: admin rs0:SECONDARY> Then in the new prompt I can run a command to check status : ... (0 Replies)
Discussion started by: Junaid Subhani
0 Replies

2. UNIX for Dummies Questions & Answers

Conversion program/command via CLI

I already know about the docx2txt program, and it's extremely helpful. ssconvert is also really helpful, but unlike docx2txt, it works both ways. How does one convert a .txt file to .docx via CLI, or is it even possible?? This: docx2txt example.docx results in making a .txt file out of... (2 Replies)
Discussion started by: Huitzilopochtli
2 Replies

3. AIX

HEA configuration on managed node.

Folks, Please have a look to the attached screenshot from my managed node's HEA configuration option page. I would like to know - what does "Flow Control Enabled" checkbox help us with if opted for? Thanks! -- Souvik (3 Replies)
Discussion started by: thisissouvik
3 Replies

4. Linux

Way to execute a command from CLI

OS : Linux Kernel ver : 2.6x Is there any legit difference between way that shell interprets the below mentioned command lines in Linux environment? Option A> . <exec_file_name> arg1 agr2 Option B> ./<exec_file_name> arg1 agr2 The reason for me asking this silly question is... (2 Replies)
Discussion started by: kumarjt
2 Replies

5. AIX

HMC login - Command line and terminal session

Hi Admins, Just a small question - Can we have multiple session for single user on HMC. e.g. Can I have a terminal session (via IE ) and command line (ssh) at same time ?? I am not sure whether it will impact HMC system or not. So want to make sure. let me know folks. Thanks (3 Replies)
Discussion started by: snchaudhari2
3 Replies

6. AIX

Command to show HMC of this lpar?

Does anyone know of a command that can be run on the lpar to show the name of the lpars managing HMC? We have a large environment and records a little old on which HMC manages which lpars....if i could login to an lpar and just issue a command to show me its managing hmc that would be great. (2 Replies)
Discussion started by: Foiled
2 Replies

7. AIX

HMC updates managed system firmware on both T and P sides ?

Hi, I'm planning to update managed system firmware to new release using HMC. This is cite from IBM documentation describing HMC managed system updates: What I know we install new firmware to T side and in case some problems we boot P side and reject new fw on T. So if HMC updates both T and... (0 Replies)
Discussion started by: vilius
0 Replies

8. AIX

lauch command line from HMC

is possible to launch command line(shell) from HMC console? :( (2 Replies)
Discussion started by: prpkrk
2 Replies

9. AIX

Command return value in HMC

I have script runninn from cron pulling backup of hmc through nfs share ssh user@hmc "bkconsdata -r nfs -h <hostname> -l <nfs share> " This works perfect and I pull the backups regularly.. but problem Now I need to enhance the script, like take action if a backup fails.. "How do I... (2 Replies)
Discussion started by: balaji_prk
2 Replies

10. Linux

Find node of a command

I want to know how to find a node path of a unix command. I tried the command which, but it didn't find the "makekey" command node path... Are there any tricks about the "which" command? Should I use this command on a special level of directories? Moreover, I am accessing in remote the computers of... (5 Replies)
Discussion started by: blueberryffin
5 Replies
Login or Register to Ask a Question