mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-11-04 05:12:30 +00:00 
			
		
		
		
	[Docu] IB switch configuration: fix passwd entry
The entry in the passwd table has to use the key `switch`, otherwise the sshusername and password is not detected.
See `man switches` page:
```
       sshusername
                 The remote login user name. It can be for ssh or telnet. If it is for telnet,
                 set protocol to "telnet". If the sshusername is blank, the username, password
                 and protocol will be retrieved from the passwd table with "switch" as the key.
       sshpassword
                 The remote login password. It can be for ssh or telnet. If it is for telnet, set
                 protocol to "telnet". If the sshusername is blank, the username, password and
                 protocol will be retrieved from the passwd table with "switch" as the key.
```
See `man passwd` page:
```
       key
              The type of component this user/pw is for. Valid values: blade (management module), 
              ipmi (BMC), system (nodes), omapi (DHCP), hmc, ivm, cec, frame, switch.
```
			
			
This commit is contained in:
		@@ -23,12 +23,12 @@ The switches table will look like this: ::
 | 
			
		||||
 | 
			
		||||
If there is only one admin and one password for all the switches then put the entry in the xCAT passwd table for the admin id and password to use to login. ::
 | 
			
		||||
 | 
			
		||||
	tabch key=mswitch  passwd.username=admin passwd.password=admin
 | 
			
		||||
	tabch key=switch  passwd.username=admin passwd.password=admin
 | 
			
		||||
 | 
			
		||||
The passwd table will look like this: ::
 | 
			
		||||
 | 
			
		||||
	#key,username,password,cryptmethod,comments,disable
 | 
			
		||||
	"mswitch","admin","admin",,,
 | 
			
		||||
	"switch","admin","admin",,,
 | 
			
		||||
 | 
			
		||||
Setup ssh connection to the Mellanox Switch
 | 
			
		||||
-------------------------------------------
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user