Logincreator.pl
Run logincreator.pl to create service accounts on all ESX/i hosts managed by the target vCenter server. It can do the following:
- Create a service account on a single ESX/i host managed or unmanaged.
- Find valid accounts on a vCenter server and its managed hosts.
- Find valid accounts on a vCenter server or single ESX/i host.
- List all hosts on the target vCenter server.
- Permission existing local users on vCenter Server.
Note: logincreator.pl does not permission existing local AD users on vCenter Server.
If you do not specify passwords in your command, Splunk will prompt you to enter them when the command runs.
For ActiveDirectory accounts, use UID@domain
.
Reference the table for a complete description of the tool.
Tool name |
logincreator.pl
|
Location |
The logincreator.pl file is located on the FA VM in the $SPLUNK_HOME/etc/apps/Splunk_TA_vmware/bin directory.
|
Prerequisites |
- You must deploy the FA VM before you can use the
logincreator.pl script.
- You must have the VMware Perl SDK installed on the FA VM before you use the
logincreator.pl script.
- You must have the vCenter server admin user name and password (where applicable).
- You must have the ESX/i host admin user name and password (where applicable).
- The FA VM must be in the same subnet as the vCenter server.
- The FA VM must have DNS configured if you want to use fully-qualified domain names for your vCenter server or ESX/i hosts.
- Run the
logincreator.pl script using the splunkadmin login.
|
Command line usage |
~$ perl logincreator.pl --help to get help.
|
Arguments |
-target is the vCenter server or ESX/i host domain name or IP address.
-ad is an admin user ID on the target.
-adpwd is the corresponding admin password on the target.
-alt is the ESX/i host admin user ID if the target is the vCenter server.
-altpwd is the ESX/i host admin user's corresponding password.
-newuser is the new user account you want to create on your ESX/i host(s).
-newpwd is the corresponding user password for the ESX/i host(s).
--help provides a list of al the arguments that work with the tool.
|
Examples |
- To create accounts on all ESX/i hosts managed by a target vCenter server
./logincreator.pl --target vcenter33.splunk.com --allhosts --ad vcenteradmin --adpwd vcenteradminpwd123 --alt esxhostadmin --altpwd esxhostadminpwd123 --newuser splunkuseresxhost --newpwd splunkuseresxhostpwd123
- To create an account on a single target ESX/i host
./logincreator.pl --target esxhost1.splunk.com --ad esxhostadmin --adpwd esxhostadminpwd123 --newuser splunkuseresxhost --newpwd splunkuseresxhostpwd123
- To find valid accounts on vCenter server and managed hosts
./logincreator.pl --target <vcenterserver> --allhosts --ad <uid> --adpwd<pwd> [--alt <uid>] [altpwd <pwd>]
* To find valid accounts on the target vCenter server
./logincreator.pl --target <vcenterserver| esxhost> --ad <uid> --adpwd<pwd>
- To list all the hosts on the target vCenter server
./logincreator.pl --target <vcenterserver| esxhost> --ad <uid> --adpwd<pwd> --justlisthosts
|
Feedback submitted, thanks!