Logincreator.pl
What it does
- Creates service accounts on all ESX/i hosts managed by the target vCenter server.
- Creates a service account on a single ESX/i host managed or unmanaged.
- Finds valid accounts on a vCenter server and its managed hosts.
- Finds valid accounts on a vCenter server or single ESX/i host.
- Lists all hosts on the target vCenter server.
Where it is
The logincreator.pl
file is located on the FA OVA in the $SPLUNK_HOME/etc/apps/Splunk_TA_vmware/bin
directory.
You must deploy the FA OVA before you can use the logincreator.pl
script.
Prerequisites
- You must have the VMware Perl SDK installed on the FA OVA 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 OVA must be in the same subnet as the vCenter server.
- The FA OVA 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.
Arguments
-target
- The vCenter server or ESX/i host domain name or IP address.
-ad
- An admin user ID on the target.
-adpwd
- The corresponding admin password on the target.
-alt
- The ESX/i host admin user ID if the target is the vCenter server.
-altpwd
- The ESX/i host admin user's corresponding password.
-newuser
- The new user account you want to create on your ESX/i host(s).
-newpwd
- The corresponding user password for the ESX/i host(s).
Run logincreator.pl
with the help parameter to see all the available arguments:
~$ perl logincreator.pl --help
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
User name and password options
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
.
The data collection components | Enginebuilder.py |
This documentation applies to the following versions of Splunk® App for VMware (Legacy): 1.0, 1.0.1
Feedback submitted, thanks!