![]() |
![]() |
Subject: | Zenoss Core 5 API or Zendmd script - How Do I create a new SNMPv3 Command using the API or Zendmd script? |
Author: | Ken Jenkins |
Posted: | 2016-10-12 18:19 |
Zenoss Core 5 API or Zendmd script question.
I need to know how I can add a new SNMPv3 Command using the API or Zendmd script to Zenoss.
https://zenoss/zport/dmd/userCommands/snmpwalkV3
I know I can add a new command using the dashboard Advanced -> Settings -> Commandsbut I need to a way to add the command via command line.
Also, how does Zenoss know to use the SNMPv2 versus the SNMPv3 command when modeling and polling
Thank you,
Ken
Subject: | Hi Ken, |
Author: | Jane Curry |
Posted: | 2016-10-13 03:07 |
Hi Ken,
The "which version on modelling and polling" question is answered by "it uses the device's zSnmpVer property". It is only the commands in the GUI where there are the the 2 versions and you have to know which to use.
Can't give you such a quick answer though for creating a new one :(
Cheers,
Jane
Email: jane.curry@skills-1st.co.uk Web: https://www.skills-1st.co.uk
Subject: | To see the snmpwalkV3 command |
Author: | Jane Curry |
Posted: | 2016-10-17 13:36 |
To see the snmpwalkV3 command, start from INFRASTRUCTURE, click DETAILS and then "Device Administration". This shows you commands that apply to all devices. Double-click the snmpwalk_v3 command to see what is run:
snmpwalk -${device/zSnmpVer} -l authNoPriv -a ${device/zSnmpAuthType} -x ${device/zSnmpPrivType} -A ${device/zSnmpAuthPassword} -X ${device/zSnmpPrivPassword} -u ${device/zSnmpSecurityName} ${device/snmpwalkPrefix}${here/manageIp}:${here/zSnmpPort} system
Cheers,
Jane
Email: jane.curry@skills-1st.co.uk Web: https://www.skills-1st.co.uk
Subject: | Jane, |
Author: | Ken Jenkins |
Posted: | 2016-10-17 13:40 |
Jane,
Thanks for the response. I know how to view what is in the command since I created the snmpwalkv3 command from scratch.
What I need to know is, on a device, once I assign the v3 property to the device, what tells Zenoss to use this snmpwalkV3 command and not another command
Thanks,
Ken
< |
Previous bug: wrongly formatted JSON in zenoss_zep / event_summary / notes_json |
Next No new events - possible database table corrupted |
> |