VMware Cloud Community
zenariga
Enthusiast
Enthusiast
Jump to solution

SNMP ESXi 4.1.2 configuration

Hello guys I need to configure more 3 targets in my SNMP configuration. How I perform that?

I have the command:

vicfg-snmp.pl --server host.example.com --username root --password password -t target.example.com@162/public

I need to run this command 3 times or I use commas to insert all targets?

Anyone knows?

thanks.

0 Kudos
1 Solution

Accepted Solutions
kjb007
Immortal
Immortal
Jump to solution

Just tested the below string.

vicfg-snmp.pl --server <esx_host_name> --username root -t 1.1.1.1@162/public,2.2.2.2@162/public

/etc # cat /etc/vmware/snmp.xml
<config>
  <snmpSettings>
    <communities/>
    <enable>false</enable>
    <targets>1.1.1.1@162 public;2.2.2.2@162 public</targets>
  </snmpSettings>
</config>/etc #

-KjB

vExpert/VCP/VCAP vmwise.com / @vmwise -KjB

View solution in original post

0 Kudos
5 Replies
kjb007
Immortal
Immortal
Jump to solution

Multiple targetes are separated by commas.

-KjB

vExpert/VCP/VCAP vmwise.com / @vmwise -KjB
0 Kudos
zenariga
Enthusiast
Enthusiast
Jump to solution

Didn't work using commas. My snmp.xml file don't appear any target

/etc/vmware # cat snmp.xml

<config>
  <snmpSettings>
    <communities>erinyes</communities>
    <enable>false</enable>
    <targets/>
  </snmpSettings>
/etc/vmware #
0 Kudos
kjb007
Immortal
Immortal
Jump to solution

Just tested the below string.

vicfg-snmp.pl --server <esx_host_name> --username root -t 1.1.1.1@162/public,2.2.2.2@162/public

/etc # cat /etc/vmware/snmp.xml
<config>
  <snmpSettings>
    <communities/>
    <enable>false</enable>
    <targets>1.1.1.1@162 public;2.2.2.2@162 public</targets>
  </snmpSettings>
</config>/etc #

-KjB

vExpert/VCP/VCAP vmwise.com / @vmwise -KjB
0 Kudos
milton123
Hot Shot
Hot Shot
Jump to solution

You better write a script for this. That will give result.

Cheers, Yours Udin

0 Kudos
zenariga
Enthusiast
Enthusiast
Jump to solution

Hello thanks for your reply. Only work after I copy a new snmp.xml file with configurations in blank.

I already edited the file using one target.

Thanks.

0 Kudos