HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
cancel
Showing results for 
Search instead for 
Did you mean: 

HP SMH retrieve password

 
Naj
Valued Contributor

HP SMH retrieve password

Hello expert,

 

Is there has any way to retrieve back username & password via console for HP SMH?

I've root access into server but for HP SMH hold by some one and he left from organization

Any idea on this?

 

Thanks

 

BR

Naj


____________________________________________
:: Really appreciate if you could assign some points.
:: Don't know how to assign point? Click the KUDOS! star!
3 REPLIES
Stephan.
Honored Contributor

Re: HP SMH retrieve password

Hi Naj,

you can run a trace while authenticating from SMH. You need tusc installed for it, use the following script to enable the trace.

 

#!/usr/bin/sh
CIMSERVER_PID=$(UNIX95=1 ps -C cimserver -opid=)
CIMSERVERMAIN_PID=$(UNIX95=1 ps -C cimservermain -opid=)
OUTPUTDIR=/var/tmp
 
# echo $CIMSERVER_PID $CIMSERVERMAIN_PID
 
/usr/local/bin/tusc -fune -r all -w all -T "" -o $OUTPUTDIR/cimserver_$$.tusc -p $CIMSERVER_PID &
/usr/local/bin/tusc -fune -r all -w all -T "" -o $OUTPUTDIR/cimservermain_$$.tusc -p $CIMSERVERMAIN_PID &
 
echo
echo "Trace active - reproduce whatever is needed"
echo "Press enter to shutdown trace"
echo
read DUMMY
 
kill $(UNIX95=1 ps -C tusc -opid=)
echo "Check the generated traces:"
echo "$OUTPUTDIR/cimserver_$$.tusc"
echo "$OUTPUTDIR/cimservermain_$$.tusc"
echo

 Authenticate via the SMH, in the file cimserver_$$.tusc you will find at the beginning a section like this:

 

1302679014.008394 [/opt/wbem/lb][3100] #1 read(6, 0x9fffffffffff73e0, 4096) ........................................................... = 4096
r o o t \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0
\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0
\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0
\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0
\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0
\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0
\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0
\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0
\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0

 Obviously root is your user and a little bit below you find the password (take out the blanks).

 

hth,

Stephan

Naj
Valued Contributor

Re: HP SMH retrieve password

Hi,

Thanks for the reply, but could you please give me step to perform this..

Thnks in advanced

BR
Naj

____________________________________________
:: Really appreciate if you could assign some points.
:: Don't know how to assign point? Click the KUDOS! star!
Stephan.
Honored Contributor

Re: HP SMH retrieve password