Configuring the iRMC S2/S3 via SCCI and scripted configuration

12.2.2.3 Scripting with Visual Basic (VB) Script

The following VB script sends a configuration file to the iRMC S2/S3:

IP_ADDRESS = "<iRMC S2/S3 IP address>"

USER_NAME = "admin"

PASSWORD = "admin"

FILE_NAME = ".\\ConfigFile.pre"

Const ForReading = 1

Set objFSO = CreateObject("Scripting.FileSystemObject") Set objFile = objFSO.OpenTextFile(FILE_NAME, ForReading)

' --------------------------------------------------------------

On Error Resume Next

Set xmlHttp = CreateObject("Microsoft.XMLHTTP")

xmlHttp.Open "POST", "http://" & IP_ADDRESS & "/config", False,

USER_NAME, PASSWORD

xmlhttp.setRequestHeader "Content-Type", "application/x-www- form-urlencoded"

xmlHttp.Send objFile.ReadAll Wscript.Echo xmlhttp.responsexml.xml

422

iRMC S2/S3

Page 422
Image 422
Fujitsu IRMC S2/S3 manual 422, USERNAME, Password