Three Steps:
- Launch windows cmd with admin role
- Execute: netsh winsock reset
- Reboot windows
Three Steps:
By ssh local port forward, we can access the iLO4 and Remote console of Home from the corporation network which protected by firewall, with only 80 and 433 ports opened via proxy.
HOME
HP Proliant MicroServer Gen8
iLO4 Advance License installed
iLO4 IP=HOME_ILO4_IP ( Local IP of iLO4 port, 172.24.0.xxx )
WAN Router
WNR2000 V3
DD-WRT build 24160,
Remote ssh login enabled
WAN IP=HOME_WAN_IP ( 220.234.xxx.xxx, public IP )
OFFICE
Network:
Only out going 89/443 allowed via HTTP Proxy:
OFFICE_PROXY_IP : OFFICE_PROXY_PORT
Linux workstation:
Ubuntu 10.10
Open JDK v7.0 Installed
CorkScrew Installed
Windows workstation:
Windows 7
putty 0.63 Installed
by using SSH local port forward, From Office Workstation to Home SSH Server (Router), we can assess iLO4 and Remote Console in Office.
#!/bin/sh
# Http proxy of Corp
HTTP_PROXY_HOST=OFFICE_PROXY_IP
HTTP_PROXY_PORT=OFFICE_PROXY_PROXY
# Home ssh server
SSH_HOST=HOME_WAN_IP
SSH_PORT=443
SSH_USER=xxxx
# Home ILO4 Host
REMOTE_ILO_HOST=HOME_ILO4_IP
REMOTE_ILO_PORT=”22 23 17990 80 443 17988 161 162 623″
# Office Workstation ILO4 IP
BIND_ILO_HOST=127.0.0.1
#BIND_ILO_HOST=192.168.127.8
#Generate proxy config file
ILO_SSH_PROXY_CONFIG=/tmp/ilo_ssh_config
echo “Host ${DDWRT_SSH_HOST}” > ${ILO_SSH_PROXY_CONFIG}
echo “ProxyCommand corkscrew ${HTTP_PROXY_HOST} ${HTTP_PROXY_PORT} %h %p” >> ${ILO_SSH_PROXY_CONFIG}
echo “port ${DDWRT_SSH_PORT}” >> ${ILO_SSH_PROXY_CONFIG}
echo “Host ${LINUX_SSH_HOST}” >> ${ILO_SSH_PROXY_CONFIG}
echo “ProxyCommand corkscrew ${HTTP_PROXY_HOST} ${HTTP_PROXY_PORT} %h %p” >> ${ILO_SSH_PROXY_CONFIG}
echo “port ${LINUX_SSH_PORT}” >> ${ILO_SSH_PROXY_CONFIG}
ILO_OPT_LIST=””
for p in ${REMOTE_ILO_PORT}; do
ILO_OPT_LIST=”${ILO_OPT_LIST} -L ${BIND_ILO_HOST}:${p}:${REMOTE_ILO_HOST}:${p}”
done
# Stop local services already bind to the local ILO4 Ports
sudo /etc/init.d/ssh stop
sudo /etc/init.d/lighttpd stop
# Setup SSH local forward link from Office to Home
echo “sudo ssh -N -f -F ${ILO_SSH_PROXY_CONFIG} ${ILO_OPT_LIST} ${SSH_USER}@${SSH_HOST}”
sudo ssh -N -f -F ${ILO_SSH_PROXY_CONFIG} ${ILO_OPT_LIST} ${SSH_USER}@${SSH_HOST}
SSH_PID=`pgrep -f “${ILO_OPT_LIST}”`
# Access the iLO4 via firefox browser
firefox https://${BIND_ILO_HOST}/
# Launch the Java remote console from iLO4
# cleanup, stop the ssh local forward
sudo kill -9 ${SSH_PID}
Config putty iLO4 session as following:
Config Connection/Proxy/HTTP proxy
Config Connection/SSH/Tunnels, by add follow local port forwarding:
(BIND_ILO_HOST -> HOME_ILO4_IP)
22 23 17990 80 443 17988 161 162 623
Launch firefox, and goto https:// BIND_ILO_HOST => iLO4 Panel Access
Launch remote console/ .iNET.IRC from iLO4 panel
Note:
Note:
If the PC support Intel AMT technology, you may meet the error 10013 when try to forward 623 port,
because the port 623 have been taken by the LMS.exe service:
Solution: Disable the LMS service
Launch the terminal with admin permission, and run:
sc stop “UNS”
sc stop “LMS”
Or disable it forever:
sc config “UNS” start= disabled
sc config “LMS” start= disabled
*********************************************
iLO 2 Advanced License Keys:
35DPH-SVSXJ-HGBJN-C7N5R-2SS4W
35SCR-RYLML-CBK7N-TD3B9-GGBW2
Target:
Install windows7 from ISO file on Cifs server, onto to the iscsi target.
With the help of the following software:
pxe/ipxe
http
cifs
winpe
Test Environment:
Server: Linux PC, IP_Server=192.168.127.88
Including tftp/samba/iscsc server
Client: Diskless Virtual Box on window7
Router: DDWRT with IP_router=192.168.127.2
1.命令行配置ISCSI。
开启iSCSI server && 设为”automatically” 自动–开机启动。
sc config msiscsi start= auto
net start msiscsi
2.使用iscsi命令行接口连接iSCSI目标、列出有效目标。
iscsicli QAddTargetPortal 192.168.1.31
3.列出目标
iscsicli ListTargets
4.连接目标
iscsicli qlogintarget TargetName
5.确认连接成功
iscsicli reporttargetmappings
6.断开目标
iscsicli logouttarget SESSIONID(如:0xfffffa800626e018-0x4000013700000006)
7.确认断开成功
iscsicli reporttargetmappings
*********************************************************************************************************
Being able to automate disk partitioning, volume creation, and filesystem formatting can be very useful. It is especially handy for imaging processes, e.g. from a WinPE boot disk.
The windows diskpart command can be automated using a simple text file. Unfamiliar with Diskpart? Open Windows Command Processor (cmd.exe) and type:
diskpart
help
If you want help with a specific command, type:
help <command>
Where <command> is the command that you want help with.
To automate diskpart, you simply need to create a text file with your diskpart commands, then call diskpart from your command prompt or script and pass it the name of the text file.
For example, let’s say that you have booted a computer to WinPE, and wish to wipe the local “C:” drive and create a fresh one. To do so, open notepad.exe, then type the following:
select disk 0
clean
create partition primary
assign letter=C
active
format fs=ntfs label=Windows quick
Now save that as WipeC.txt and close Notepad.
Then run it like so:
diskpart.exe /s WipeC.txt
Please note that this example will completely remove the contents of the local Disk 0!
More specifically, it will: wipe all partitions off of Disk 0, create a single primary partition which will occupy the whole disk, assign that partition the drive letter C:, set it as active so that you can boot from it, and then create a volume called “Windows” formatted quickly as NTFS.