Skip to content
This repository has been archived by the owner on Jun 14, 2022. It is now read-only.

Need more samples #13

Open
AmbicaY opened this issue Jun 22, 2020 · 3 comments
Open

Need more samples #13

AmbicaY opened this issue Jun 22, 2020 · 3 comments

Comments

@AmbicaY
Copy link

AmbicaY commented Jun 22, 2020

hi,

Can you create more sample codes for:

  • Node creation
  • Interface discovery
  • Adding pollers, etc
@mrxinu
Copy link
Owner

mrxinu commented Jun 22, 2020

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
Copy link
Author

AmbicaY commented Jun 23, 2020

Hey @mrxinu

Created a sample for reference. Please take a look.

@AmbicaY
Copy link
Author

AmbicaY commented Jun 23, 2020

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants