Friday, June 3, 2011

All ESXi host config files in webAccessibleConfigFiles.xml

ESXi 4.1 server has interesting file '/etc/vmware/hostd/webAccessibleConfigFiles.xml' where is all configuration files are listed. You can find its names and paths there.

Actually it's list of all config files those are available with web access:
...

<configfileinfo>
<urireference>/host/vmware.lic</urireference>
<path>/etc/vmware/vmware.lic</path>
<displayname>vmware.lic</displayname>
<mimetype>text/plain</mimetype>
<method>GET</method>
<method>HEAD</method>
<method>PUT</method>
</configfileinfo>
<configfileinfo>
<urireference>/host/vmware_config</urireference>
<path>/etc/vmware/config</path>
<displayname>vmware_config</displayname>
<mimetype>text/plain</mimetype>
<method>GET</method>
<method>HEAD</method>
<method>PUT</method>
</configfileinfo>
<configfileinfo>
<urireference>/host/vmware_configrules</urireference>
<path>/etc/vmware/configrules</path>
<displayname>vmware_configrules</displayname>
<mimetype>text/plain</mimetype>
<method>GET</method>
<method>HEAD</method>
<method>PUT</method>
</configfileinfo>

...

2 comments:

  1. Hi MaxBread:

    Please see if you can help me here. I'm looking to
    read the SSH configuration on ESX Host, for this I should be able to
    read the content of the file /etc/ssh/sshd_config. The vifs does not
    allow files other than host config and log files also direct editing of
    etc/vmware/hostd/webAccessibleConfigFiles.xml is not supported, so I
    will not be able to configure the ssh file here to enable the webaccess.
    Have you come across any tools which can help me read the ESX's any
    file content. I know SCP like utils can be used, however I'm looking at
    automating this for N number of hosts. Please advice.

    Thanks,

    Parash

    ReplyDelete
  2. Hi Parash,
    sorry, I don't know ways to read sshd_config remotely.

    ReplyDelete

Note: Only a member of this blog may post a comment.