Skip to content

Commit 8157f80

Browse files
authored
Merge pull request solarwinds#73 from ministrycork/patch-1
Update discover_one_node.py
2 parents 1f89efc + 54de281 commit 8157f80

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

samples/discover_one_node.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,12 @@ def main():
88
username = 'admin'
99
password = ''
1010
target_node_ip = '1.2.3.4'
11-
snmpv3_credential_id = 3
11+
#Credential ID from Orion.Credential where Orion.Credential.CredentialOwner is:
12+
#SolarWinds.Orion.Core.Models.Credentials.SnmpCredentialsV2 or
13+
#SolarWinds.Orion.Core.Models.Credentials.SnmpCredentialsV3 or
14+
#SolarWinds.Orion.Core.SharedCredentials.Credentials.UsernamePasswordCredential
15+
#where 3 is SNMPV2 community string 'public' and present by default.
16+
credential_id = 3
1217
orion_engine_id = 1
1318

1419
swis = SwisClient(npm_server, username, password)
@@ -18,7 +23,7 @@ def main():
1823
'BulkList': [{'Address': target_node_ip}],
1924
'Credentials': [
2025
{
21-
'CredentialID': snmpv3_credential_id,
26+
'CredentialID': credential_id,
2227
'Order': 1
2328
}
2429
],

0 commit comments

Comments
 (0)