Automation

 View Only
  • 1.  Enable SNMP and Syslog on entire cluster

    Posted Apr 07, 2022 09:50 AM

    Hi All,

     

    Could you please share any script to enable SNMP and Syslog on the entire cluster?

     

    Thanks



  • 2.  RE: Enable SNMP and Syslog on entire cluster

    Broadcom Employee
    Posted Apr 07, 2022 10:28 AM

    On the assumption that you meant with PowerCLI for a vSphere cluster, I've reported your thread so moderators should move it to the correct area.

    You should definitely search the PowerCLI area though, the likelihood is that you're not the first person to have such a requirement.

     



  • 3.  RE: Enable SNMP and Syslog on entire cluster

    Posted Apr 07, 2022 11:56 AM

    Hello,

    Are you talking about the syslog of the ESXIs constituting your Cluster?
    If so, you can use this command to configure the syslog of your ESXIs

     

     

     

     

     

     

    Then if you want to check the configuration of your ESXIs:

     get-vmhost | select name, @{N='Exception';E={($_ | Get-VMHostFirewallException -Name syslog).name}},@{N='Enabled';E={($_ | Get-VMHostFirewallException -Name syslog).enabled}} | Format-Table -AutoSize
     
    Name                   Exception   Enabled
    ----                       ---------          -------
    esxi1.domaine.fr   syslog         True
    esxi2.domaine.fr   syslog         True
    esxi3.domaine.fr   syslog         True

     



  • 4.  RE: Enable SNMP and Syslog on entire cluster

    Posted Apr 07, 2022 01:10 PM

    Hi,

     

    Can we add a network firewall ruleset with this command?

     

    Thanks



  • 5.  RE: Enable SNMP and Syslog on entire cluster

    Posted Apr 07, 2022 02:13 PM

    HI,

    If you want to act on the ESXI firewall, i think you should use the cmdlets:

    • Get-VMHostFirewallException
    • Set-VMHostFirewallException

     

    For Example, to enable or disable the "SSH Client" port: : 

     

     

     

     

     

     

     

     

    For SNMP  :