Sun Microsystems, Inc.  Sun System Handbook - ISO 4.1 October 2012 Internal/Partner Edition
   Home | Current Systems | Former STK Products | EOL Systems | Components | General Info | Search | Feedback

Asset ID: 1-72-1383988.1
Update Date:2011-12-16
Keywords:

Solution Type  Problem Resolution Sure

Solution  1383988.1 :   CheckSWProfile.Sh Reports "Failed To Login Admin User With Given Password For Switch"  


Related Items
  • Exadata Database Machine V2
  •  
Related Categories
  • PLA-Support>Database Technology>Engineered Systems>Oracle Exadata>DB: Exadata_EST
  •  




In this Document
  Symptoms
  Cause
  Solution
  References


Created from <SR 3-4993759920>

Symptoms


When running the script  '/opt/oracle.SupportTools/CheckSWProfile.sh' with -I or -S options  (used to check Infiniband switch configuration)  the script reports  the message:

# /opt/oracle.SupportTools/CheckSWProfile.sh -I myswitch
...
[ERROR] Failed to login admin user with given password for switch 'myswitch'
...

- The correct root password has been supplied.

- The script goes on to connect successfully to the switch and is able to print the switch information:

Enter admin or root password for <my switch>:
Confirm password:
[ERROR] Failed to login admin user with given password for switch <my switch>
[INFO] SUCCESS Switch <my switch> has correct software and firmware version:
SWVer: 1.3.3-2
[INFO] SUCCESS Switch <my switch> has correct opensm configuration:
controlled_handover=TRUE polling_retry_number=5 routing_engine=ftree sminfo_polling_timeout=1000 sm_priority=5

Note:

- This script is also called from exachk so you may see exachk reporting a similar failure.
- The message is slightly misleading as there is no 'admin' user on the V2/X2 switches, also the correct root password was supplied to the script.



Cause


Most likely 'ssh' to that switch is slow. Try 'ssh' from the command line ( from a DB node for example):

# ssh <my switch>

If this takes 20 to 30 seconds then this delay is likely to be the reason for the message "Failed to login admin user with given password for switch" as the script has timed out.

Solution


- When the CheckSWProfile.sh script displays the message :

[ERROR] Failed to login admin user with given password for switch 'myswitch'

There could be many reasons but most likely these are related to the network configuration on the switch related to ssh. If ssh tries to lookup the client IP and  it can't reach the DNS servers then it waits for a timeout.

Possible Workarounds:

1) Check /etc/resolv.conf has valid entries.  Compare the settings with switches that do not have slow 'ssh'.
or
2) Put IP address and hostnames of the client into the /etc/host on the switch.
or
3) On the switch, verify 'ifconfig -a' output and contents of '/etc/sysconfig/network-scripts/ifcfg-eth0' are valid.

The following bug was logged to make the error message more meaningful -  as there was no admin user on the switch and the correct password was supplied:

<Bug:13474864> MISLEADING MESSAGE FROM CHECKSWPROFILE.SH WHEN SSH TIMES OUT


References

<NOTE:1286263.1> - Troubleshooting InfiniBand Switch Problems on Exadata
<BUG:13474864> - MISLEADING MESSAGE FROM CHECKSWPROFILE.SH WHEN SSH TIMES OUT

Attachments
This solution has no attachment
  Copyright © 2012 Sun Microsystems, Inc.  All rights reserved.
 Feedback