mrxinu / gosolar

A SolarWinds client written in Go.
Apache License 2.0
15 stars 6 forks source link

Need more samples #13

Open AmbicaY opened 4 years ago

AmbicaY commented 4 years ago

hi,

Can you create more sample codes for:

mrxinu commented 4 years ago

Hey @AmbicaY, thanks for your feedback! There are a bunch of examples over on this repository though none of the ones you've requested.

SolarWinds Orion Go Samples

I'll create the ones from your list this week and get them into the samples directory.

AmbicaY commented 4 years ago

Hey @mrxinu

Created a sample for reference. Please take a look.

AmbicaY commented 4 years ago

I need sample code for AddInterfacesOnNode, similar to: https://github.com/solarwinds/orionsdk-python/blob/master/samples/discover_and_add_interfaces.py

I tried something like:

properties = []interface{}{
    nodeid,
    eth_only,
    "AddDefaultPollers",
}

res, err = n.Invoke("Orion.NPM.Interfaces", "AddInterfacesOnNode", properties)

Does not seem to be working