Skip to content

Commit

Permalink
Merge pull request #73 from ministrycork/patch-1
Browse files Browse the repository at this point in the history
Update discover_one_node.py
  • Loading branch information
danjagnow committed Jan 5, 2023
2 parents 1f89efc + 54de281 commit 8157f80
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions samples/discover_one_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,12 @@ def main():
username = 'admin'
password = ''
target_node_ip = '1.2.3.4'
snmpv3_credential_id = 3
#Credential ID from Orion.Credential where Orion.Credential.CredentialOwner is:
#SolarWinds.Orion.Core.Models.Credentials.SnmpCredentialsV2 or
#SolarWinds.Orion.Core.Models.Credentials.SnmpCredentialsV3 or
#SolarWinds.Orion.Core.SharedCredentials.Credentials.UsernamePasswordCredential
#where 3 is SNMPV2 community string 'public' and present by default.
credential_id = 3
orion_engine_id = 1

swis = SwisClient(npm_server, username, password)
Expand All @@ -18,7 +23,7 @@ def main():
'BulkList': [{'Address': target_node_ip}],
'Credentials': [
{
'CredentialID': snmpv3_credential_id,
'CredentialID': credential_id,
'Order': 1
}
],
Expand Down

0 comments on commit 8157f80

Please sign in to comment.