File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,12 @@ def main():
8
8
username = 'admin'
9
9
password = ''
10
10
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
12
17
orion_engine_id = 1
13
18
14
19
swis = SwisClient (npm_server , username , password )
@@ -18,7 +23,7 @@ def main():
18
23
'BulkList' : [{'Address' : target_node_ip }],
19
24
'Credentials' : [
20
25
{
21
- 'CredentialID' : snmpv3_credential_id ,
26
+ 'CredentialID' : credential_id ,
22
27
'Order' : 1
23
28
}
24
29
],
You can’t perform that action at this time.
0 commit comments