HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- HPE ProLiant
- >
- Server Management - Remote Server Management
- >
- Re: cannot execute dos cmds via TEXTCONS of iLO3 u...
Server Management - Remote Server Management
        1839888
        Members
    
    
        4147
        Online
    
    
        110156
        Solutions
    
Forums
        Categories
Company
Local Language
                
                  
                  back
                
        
                
        
                
        
                
        
        
        
                
        
                
        
        
        
                
        
              
              Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
                
                  
                  back
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
            
                
            
                
            
                
            
                
            
            
                
            
                
            
            
                
            
                
              
            Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
        Information
        Community
Resources
Community Language
        Language
        Forums
Blogs
Topic Options
			
				
					
	
			
		
	- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2011 11:59 AM
05-26-2011 11:59 AM
			
				
					
						
							cannot execute dos cmds via TEXTCONS of iLO3 using expect+ssh session
						
					
					
				
			
		
	
			
	
	
	
	
	
			
				
					
					
						I am not able to send any dos commands via TEXTCONS on iLO3 via expect session.
I am able to grab the TEXTCONS, but after this I am not able to execute any dos commands.
I tried all combinations or "\r\n".
I am trying to do below from my expect script:
1) ssh to iLO3 using credentials
2) grab TEXTCONS
NOTE: The system is already booted using DOS USB key
3) I could see c:\> but I am not able to execute any dos commands there after.
Any solutions ?
					
				
			
			
				
			
			
				
			
			
			
			
			
			
		
		
		
	
	
	
I am able to grab the TEXTCONS, but after this I am not able to execute any dos commands.
I tried all combinations or "\r\n".
I am trying to do below from my expect script:
1) ssh to iLO3 using credentials
2) grab TEXTCONS
NOTE: The system is already booted using DOS USB key
3) I could see c:\> but I am not able to execute any dos commands there after.
Any solutions ?
		1 REPLY 1
	
	            
            
		
		
			
            
                - Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2017 05:47 PM
09-07-2017 05:47 PM
			
				
					
						
							Re: cannot execute dos cmds via TEXTCONS of iLO3 using expect+ssh session
						
					
					
				
			
		
	
			
	
	
	
	
	
Reply originally by Chris White
Albeit 6 years later - here's how i managed to resolve this issue (against a REDHAT 6 machine). The key being you need to emulate a human typing (i.e slower keystrokes than the default):
set timeout 20
spawn ssh user@remoteconsole.server.com
sleep 1
expect "user"
send "password\r"
sleep 1
expect "hpiLO"
send "TEXTCONS\r"
sleep 5
# Emulate human typing
set send_human {.1 .3 1 .05 2}
send -h "command here\r\n"
exit 0
					
				
			
			
				
			
			
				
			
			
			
			
			
			
		The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
		
	
	
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP
