Splunk® App for VMware (Legacy)

Installation and Configuration Guide

On August 31, 2022, the Splunk App for VMware will reach its end of life. After this date, Splunk will no longer maintain or develop this product. The functionality in this app is migrating to a content pack in Data Integrations. Learn about the Content Pack for VMware Dashboards and Reports.
This documentation does not apply to the most recent version of Splunk® App for VMware (Legacy). For documentation on the most recent version, go to the latest release.

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
Last modified on 26 September, 2012
About installation tools   Enginebuilder.py

This documentation applies to the following versions of Splunk® App for VMware (Legacy): 1.0.2, 1.0.3, 2.0


Was this topic useful?







You must be logged into splunk.com in order to post comments. Log in now.

Please try to keep this discussion focused on the content covered in this documentation topic. If you have a more general question about Splunk functionality or are experiencing a difficulty with Splunk, consider posting a question to Splunkbase Answers.

0 out of 1000 Characters