HPE 9000 and HPE e3000 Servers
1748008 Members
4971 Online
108757 Solutions
New Discussion юеВ

Re: GSP username/passsword through UNIX command line

 
SOLVED
Go to solution
skt_skt
Honored Contributor

GSP username/passsword through UNIX command line

is there way to identify the GSP's username/password by some commands/method from UNIX command line.I wanted to indentify if any GSP's are still set with default username/password
10 REPLIES 10
Torsten.
Acclaimed Contributor
Solution

Re: GSP username/passsword through UNIX command line

Not directly.
But you can telnet to the MP and grep for a message similar to "access is unsecured".

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!   
VK2COT
Honored Contributor

Re: GSP username/passsword through UNIX command line

Hello,

Yes, you can.

In fact, your request is part of Operations Acceptance Testing that I do for any project
or new HP-UX servers I work on:

http://www.circlingcycle.com.au/Unix-sources/HP-UX-check-OAT.pl.txt

Basically, the trick is:

a) Install Net::Telnet Perl module;

b) Change the MP prompt in my script
(by default I use):

My $GSPprompt = "MP>";

c) Use my script, for example:

HP-UX-check-OAT.pl -u MPlogin -p MPpassword ...

or, simply check the routine I have set up,
and make your own Perl script.

In my Perl script, I also test MP
for default accounts Admin/Admin and Oper/Oper, and similar...

Cheers,

VK2COT
VK2COT - Dusan Baljevic
VK2COT
Honored Contributor

Re: GSP username/passsword through UNIX command line

Hello,

To make it easier for you, I created Perl script, just to show you the power of it.

If I get some time soon, I will add support for
SSH logins as well.

Here is the script:

http://www.circlingcycle.com.au/Unix-sources/HP-UX-check-GSP.pl.txt

And here is what it shows for an RP4440 server:

# HP-UX-check-GSP.pl -s servgsp -u Admin -p zzz123

CHECKING GUARDIAN SERVICE PROCESSOR STATUS
__________________________________________
WARN servgsp is NOT reachable (first type ICMP)
WARN servgsp is NOT reachable (second type ICMP)
PASS Port 23@servgsp is ACTIVE

NOTE Factory-default GSP account should always be changed

INFO Trying to log into GSP as user ""

INFO Trying to log into GSP as user hp

INFO Trying to log into GSP as user Admin

INFO Successfully logged into GSP as user "Admin" with password "zzz123"

Current LAN Configuration:
MAC Address : 0x0014c254a063
DHCP Status : Disabled
IP Address : 192.168.42.45
MP Host Name : servgsp
Subnet Mask : 255.255.255.0
Gateway Address : 192.168.42.1
Link State : Auto Negotiate
Remote Serial Console Port : 2023
SSH Access Port : - (MP Feature Not Licensed)
IPMI / LAN Port : 623

LAN status: UP and RUNNING

INFO GSP firmware version reported as
Current firmware revisions

MP FW : E.03.30
BMC FW :04.03
System FW :46.34

INFO Trying to log into GSP as user Oper


And here is what it shows for a SuperDome
complex:

# HP-UX-check-GSP.pl -s serv2gsp -u myadm -p pass55

CHECKING GUARDIAN SERVICE PROCESSOR STATUS
__________________________________________
PASS serv2gsp is reachable (first type ICMP)
PASS serv2gsp is reachable (second type ICMP)
PASS Port 23@serv2gsp is ACTIVE

NOTE Factory-default GSP account should always be changed

INFO Trying to log into GSP as user ""

INFO Trying to log into GSP as user hp

INFO Trying to log into GSP as user myadm
INFO Successfully logged into GSP as user "myadm" with password "pas55"

Current LAN Configuration:
MAC Address : 0x00306e3a951c
IP Address : 10.5.5.129
MP Host Name : serv2gsp
Subnet Mask : 255.255.255.0
Gateway Address : 10.5.5.1
Link State : Auto Negotiate
Web Console Port Number : 2023

LAN status: UP and RUNNING

INFO GSP firmware version reported as
Current firmware revisions

MP FW : E.02.26
BMC FW :01.50
EFI FW :01.22
System FW :02.21

INFO Trying to log into GSP as user Admin

INFO Trying to log into GSP as user Oper

I did not format the results yet
(I am a hard-core admin who does not
care too much about the beauty of the report,
as long as it provides useful information).
Only managers like reports with colours :)

Cheers,

VK2COT
VK2COT - Dusan Baljevic
Doug Burton
Respected Contributor

Re: GSP username/passsword through UNIX command line

You can telnet as mentioned above.

The only command line option I know of other than a telnet session is to reset the beast while someone is standing at the console....

Run the following command on the command line to "reboot" the GSP (without rebooting the server):

stty +resetGSP < /dev/GSPdiag1

When you run this command you will get a prompt on the console: "Press 'p' now to clear all GSP passwords and users...". If you press "p" and then confirm it (you only have a few seconds to respond), the GSP user/password info is wiped. Your LAN info is kept however.

And wha-la - you can then make your own user/password mix.
skt_skt
Honored Contributor

Re: GSP username/passsword through UNIX command line

any idea what controls the this property

root [/root] stty +resetGSP This operation is not permitted.
skt_skt
Honored Contributor

Re: GSP username/passsword through UNIX command line

any idea what controls this property

root [/root] stty +resetGSP This operation is not permitted.
Torsten.
Acclaimed Contributor

Re: GSP username/passsword through UNIX command line

This may not run on every type of server.

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!   
Doug Burton
Respected Contributor

Re: GSP username/passsword through UNIX command line

I've only seen the GSP "reset" command on newer "RP" type servers. What model are you working one? If it's an L or N you have a hardware switch (button actually) you can press to reset the GSP.
skt_skt
Honored Contributor

Re: GSP username/passsword through UNIX command line

9000/800/SD32000