VMware Cloud Community
RobBenedit
Enthusiast
Enthusiast

Question about SNMP trap test output to .cvs

Hello,

I am preparing for my VCAP exam and need some help with saving the cvs to a local folder.

VCAP Objective:

Setup SNMP and save the test trap to .cvs on your PC.

vMA SNMP setup:

vicfg-snmp -c public

vicfg-snmp -t server.local@161\public

vicfg-snmp -E

vicfg-snmp -s

I run this command and the .cvs is placed into the vMA BIN folder instead of my test folder.

vicfg-snmp -T > c:\SNMP\snmptest.cvs

CLi

esxcli system snmp -T > c:\snmp\test.cvs

No output

Can someone point me in the right direction with why the > file location is not working? 

Thanks,

Rob-o


Rob-o Benedit
Tags (5)
0 Kudos
2 Replies
scott28tt
VMware Employee
VMware Employee

Moderator note: Although this is part of your VCAP preparation, it's really a product-specific issue, so I've moved this post to the vMA forum area.


-------------------------------------------------------------------------------------------------------------------------------------------------------------

Although I am a VMware employee I contribute to VMware Communities voluntarily (ie. not in any official capacity)
VMware Training & Certification blog
0 Kudos
elegipcio
Enthusiast
Enthusiast

Did you manage to resolve it ?

Kindly share if you knew, as also I am trying to make the same

/var/log # esxcli system snmp test > test.csv

so when I browse the file:

/var/log # cat test.csv

   Comments: There is 1 target configured, send warmStart requested, test completed normally.

/var/log #

then later you may transfer the file over winscp , or over ssh to copy a file to a datastore then use powercli to copy the file to local HD.

0 Kudos