Send netdisco-users mailing list submissions to
        netdisco-users@lists.sourceforge.net

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.sourceforge.net/lists/listinfo/netdisco-users
or, via email, send a message with subject or body 'help' to
        netdisco-users-requ...@lists.sourceforge.net

You can reach the person managing the list at
        netdisco-users-ow...@lists.sourceforge.net

When replying, please edit your Subject line so it is more specific
than "Re: Contents of netdisco-users digest..."
Today's Topics:

   1. Adding Community String (Denny Sabu)
   2. Re: perl script for custom reports (Miha Kralj)
--- Begin Message ---
Hello All,

I’m trying to add a community string to the deployments.yml file,

I’ve added a community tag

community:
 - public
- private
- ******

This doesn’t seem to work, so I also added to the device_auth section:

device_auth
[…]
- tag: “private_str”
community: ‘*****’
read: true
write: false

However, netdisco doesn’t seem to be able to connect.

I can snmpwalk the machine from the same server with the community string and 
it connects, but a ./netdisco-do discover -d [IP] ends with “Could not SNMP 
connect to [IP]”

Thanks in advance.

--- End Message ---
--- Begin Message ---
Hi,
There is a simple way to make custom reports...
My way to create custom reports is to place yml code at the end in
environments/deployment.yml file like this:

reports:
  - tag: List_of_devices
    label: 'List of devices'
    category: Device
    columns:
    - { name: Device}
    - { ip: ip}
    - { creation: First_seen}
    - { last_discover: Last_discover}
    query: |
      SELECT name, ip, creation::timestamp(0), last_discover::timestamp(0)
from device
        ORDER BY name

After that you can find a report on the web interface "Reports -- > Device
-- > List of devices".
I hope it helps.

On Sun, Jun 20, 2021 at 3:31 PM Ruben Moretti via netdisco-users <
netdisco-users@lists.sourceforge.net> wrote:

> Hello !
> Can anyone post some simple perl script example  for them ?
> Thanks a lot.
>
>
> https://github.com/netdisco/netdisco/wiki/Configuration#reports
>
> You can munge the data retrieved from the database by placing a Perl
> script with the same name as the reports key into the “site_plugins”
> directory of Netdisco’s home area. The script can access $config for its
> configuration and @data for the retrieved data. It should return a list
> of munged data
>
> _______________________________________________
> Netdisco mailing list
> netdisco-users@lists.sourceforge.net
> https://sourceforge.net/p/netdisco/mailman/netdisco-users/

--- End Message ---
_______________________________________________
Netdisco mailing list - Digest Mode
netdisco-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/netdisco-users

Reply via email to