system
June 16, 2011, 12:50am
1
(imported topic written by SystemAdmin)
I wanted to share something that I put together, And I found it very useful.
I found this URL, and used it to create this task
The Task will add an “Administrator” account and fail if it already exists. I do this incase the Administrator account was renamed or deleted. Then it resets the “Administrator” password. I create several log file while running hponcfg and then delete them at the end of the task, these could be commented out and then read after
the see if it succeeded or failed
system
June 16, 2011, 11:20pm
2
(imported comment written by SystemAdmin)
Heres the Task, I removed the logging
action parameter query
"Password" with description
"Enter Password to be deployed to the selected iLo's"
//parameter "Password" = ""
//--------------------------------------------------------------------------------------------------------------------------------- delete __createfile delete Administrator_Add.xml delete
"{pathname of parent folder of regapp "BESClient.exe
"}\Administrator_Add.xml" createfile until endoffile <ribcl version=
"2.0"> <login USER_LOGIN=
"Administrator" PASSWORD=
"password"> <user_INFO MODE=
"write" > <add_USER USER_NAME=
"Administrator" USER_LOGIN=
"Administrator" PASSWORD=
"{parameter "Password
" of action}"> <reset_SERVER_PRIV value =
"Y" /> <admin_PRIV value =
"Y" /> <REMOTE_CONS_PRIV value =
"Y" /> <RESET_SERVER_PRIV value =
"Y" /> <VIRTUAL_MEDIA_PRIV value =
"Y" /> <CONFIG_ILO_PRIV value =
"Y" /> </add_USER> </user_INFO> </login> </ribcl> endoffile move __createfile
"{pathname of parent folder of regapp "BESClient.exe
"}\Administrator_Add.xml"
//--------------------------------------------------------------------------------------------------------------------------------- delete __createfile delete Administrator_Reset.xml delete
"{pathname of parent folder of regapp "BESClient.exe
"}\Administrator_Reset.xml" createfile until endoffile <ribcl VERSION=
"2.0"> <login USER_LOGIN=
"Administrator" PASSWORD=
"password"> <user_INFO MODE=
"write"> <mod_USER USER_LOGIN=
"Administrator"> <password value=
"{parameter "Password
" of action}"/> </mod_USER> </user_INFO> </login> </ribcl> endoffile move __createfile
"{pathname of parent folder of regapp "BESClient.exe
"}\Administrator_Reset.xml"
//--------------------------------------------------------------------------------------------------------------------------------- delete __createfile delete hponcfg.bat delete
"{pathname of parent folder of regapp "BESClient.exe
"}\hponcfg.bat" createfile until endoffile
{name of drive of windows folder
} CD
{pathname of parent folder of regapp
"BESClient.exe"
}
"{((name of drive of windows folder) & "\Program files\HP\hponcfg\hponcfg.exe
")}" /f
"{pathname of parent folder of regapp "BESClient.exe
"}\Administrator_Add.xml"
"{((name of drive of windows folder) & "\Program files\HP\hponcfg\hponcfg.exe
")}" /f
"{pathname of parent folder of regapp "BESClient.exe
"}\Administrator_Reset.xml" endoffile move __createfile
"{pathname of parent folder of regapp "BESClient.exe
"}\hponcfg.bat"
//--------------------------------------------------------------------------------------------------------------------------------- waithidden
"{pathname of parent folder of regapp "BESClient.exe
"}\hponcfg.bat"
//delete "{pathname of parent folder of regapp "BESClient.exe"}\hponcfg.bat" delete
"{pathname of parent folder of regapp "BESClient.exe
"}\Administrator_Reset.xml" delete
"{pathname of parent folder of regapp "BESClient.exe
"}\Administrator_Add.xml