Quantcast
Viewing all 2677 articles
Browse latest View live

SWIS connection problem

1)I am having trouble connecting to SWIS using the Powershell module from my pc.

 

PS C:\Users\wh24xu> Connect-Swis -Hostname wp046e

cmdlet Connect-Swis at command pipeline position 1

Supply values for the following parameters:

(Type !? for Help.)

 

 

OperationTimeout Channel ClientChannel ChannelFactory                                                                       

---------------- ------- ------------- --------------                                                                       

01:00:00                               System.ServiceModel.ChannelFactory`1[SolarWinds.InformationService.Contract2.IStrea...

 

2)I can connect using SWQL studio from the same pc without any problems.

 

 

I am suspecting a local firewall issue.  Is this connection over TCP 17777?  I have created an allow rule in the local Windows firewall to allow TCP 17777 but same issue.

 

 

Any suggestions would be appreciated.  Thanks, Louis


Adding values to an existing custom property

Hi, I'm new to SolarWinds and I am hoping that someone can help me with a problem that I am having and cannot find an answer to.

 

I have an existing custom property drop down control populated with values and I would like to add additional values via the Rest Api.  I am making the following call:

 

https://<Myserver>:<MyPort>/SolarWinds/InformationService/v3/Json/Create/Orion.CustomPropertyValues

 

and passing the following JSON payload:

 

{

    "Table": "NodesCustomProperties",

    "Field": "CarrierName",

    "Value": "aaaTest"

}

 

Making this call via PostMan returns the following

 

{

    "Message": "Entity Orion.CustomPropertyValues does not contain any key properties.\r\nParameter name: entityType",

    "ExceptionType": "System.ArgumentException",

    "FullException": "System.ArgumentException: Entity Orion.CustomPropertyValues does not contain any key properties.\r\nParameter name: entityType\r\n   at SolarWinds.InformationService.Core.CrudProcessor.<CreateInternal>d__18.MoveNext()\r\n   at System.Linq.Enumerable.First[TSource](IEnumerable`1 source)\r\n   at SolarWinds.InformationService.Core.CrudProcessor.Create(String entityType, IDictionary`2 properties, IQueryExecutionContext context)\r\n   at SolarWinds.InformationService.Core.InformationService.Create(String entityType, IDictionary`2 properties)"

}

 

If anyone can point me in the right direction, I would appreciate it. 

Image may be NSFW.
Clik here to view.

Automation of interface create

I am using a powershell script to create an automation for node creation.  I have found that when the discovery credential is WMI none of the interfaces are added, which is fine.  However; when the discovery credential is SNMP all of the interfaces are added so I added the following code to remove the interfaces from autoimporting but it is not working all of the interfaces are still being added for SNMP discovered devices.

 

#$CorePluginConfiguration = $CorePluginTemp.DocumentElement

 

$InterfacesPluginConfigurationContext = ([xml]"

<InterfacesDiscoveryPluginContext xmlns='http://schemas.solarwinds.com/2008/Interfaces' xmlns:a='http://schemas.microsoft.com/2003/10/Serialization/Arrays'>

    <AutoImportStatus>

    </AutoImportStatus>

    <AutoImportVirtualTypes>

    </AutoImportVirtualTypes>

    <AutoImportVlanPortTypes>

    </AutoImportVlanPortTypes>

    <UseDefaults>false</UseDefaults>

</InterfacesDiscoveryPluginContext>

").DocumentElement

 

 

$InterfacesPluginConfiguration = Invoke-SwisVerb $swis Orion.NPM.Interfaces CreateInterfacesPluginConfiguration @($InterfacesPluginConfigurationContext)

 

 

$StartDiscoveryContext = ([xml]"

Node Additon using SNMP v3

Can we add node (snmp v3 ) using java ?

Off the wall Orion DB question

All, I have an off the wall Orion DB question, that I was hoping someone could answer. Here's the scenario.

 

I'm building a simple SWQL Studio report that shows users in a Solarwinds groups and the last time the logged in.  This will be posted on the Solarwinds Admin home page and it'll include the search feature to search the AccountID.  While writing the SWQL query I came across something interesting and I'm too afraid to pull the trigger to possibly resolve my issue.

 

Where's the simple SWQL query;

 

SELECT  AccountID , LastLogin , AccountType , GroupInfo

 

FROM Orion.Accounts

WHERE AccountType='4' or AccountType='3'

 

Here's an example of the results:

AccountIDLastLoginAccountTypeGroupInfo
DOM\Joe2016-06-09 17:52:39.5334DOM\Helpdesk
DOM\Read_Only2017-05-04 19:48:56.2433DOM\Sam

 

So here's my question, DOM\Joe in the account Group DOM\Helpdesk hasn't logged into Solarwinds in 2 years and DOM\Read_Only account in GroupI DOM\SAM hasn't logged in 1 year. Can I  truncate the Accounts table to remove old entries or is there away I can strategically remove old entries?  I'm worried that if I truncate the table I'll do unrecoverable damage.

Is it possible to use Windows Authentication with the Orion REST API?

I am attempting to query the Orion REST API without having to provide an explicit username and password. Using the CSRestClient example from GitHub (OrionSDK/Samples/CSharp at master · solarwinds/OrionSDK · GitHub ) as as springboard, I have successfully interacted with the dashboard website programmatically using Windows Authentication (by setting the Credentials field of the WebRequestHandler to CredentialCache.DefaultNetworkCredentials). However, I am unable to do the same with the REST API, it simply gives me a 401 (Unauthorized).

 

Is it possible to hit the REST API using Windows Authentication, and if so, how?

Rest/API Node Create on NCM 7.6 doesnt work as expected

We’re trying to Create an Orion Node in NCM using a REST Implementation. We’re Hitting the URL [Server]/SolarWinds/InformationService/v3/Json/Create/Orion.Nodes with a Payload of: (IP ect. fake example data)

{

                "Allow64BitCounters":false,

                "DynamicIP":false,

                "BufferLgMissToday":"0",

                "RWCommunity":"private",

                "BufferSmMissToday":"0",

                "StatCollection":"43200",

                "ObjectSubType":"SNMP",

                "BufferSmMissThisHour":"0",

                "BufferHgMissThisHour":"0",

                "UnManaged":false,

                "SNMPVersion":"2",

                "BufferNoMemToday":"0",

                "BufferBgMissToday":"0",

                "Status":"1",

                "EngineID":"1",

                "PollInterval":"3600",

                "BufferMdMissThisHour":"0",

                "BufferLgMissThisHour":"0",

                "MachineType":"",

                "Caption":"Caption",

                "VendorIcon":"",

                "BufferNoMemThisHour":"0",

                "BufferBgMissThisHour":"0",

                "IPAddressGUID":"AB123456-0000-0000-0000-000000000000",

                "BufferMdMissToday":"0",

                "IPAddress":"1.2.3.4",

                "BufferHgMissToday":"0",

                "SysObjectID":"",

                "Community":"public"

}

 

The Response we’re getting is a normal response, with status 200 and a swis e.g. "swis://[Server]/Orion/Orion.Nodes/NodeID=28".

However the SWIS returned does not point to a newly created node. But instead an already existing one and this causes the existing node data to either be modified or deleted..!

 

We are using version 7.6 NCM - the above implementation works on version 7.3.2 - however Solarwinds will not provide any details as to why this doesn't work on 7.6 (SDK not supported !!).  Has anybody else seen this issue or can anybody tell what needs to change in our implementation for this to work.

Enable IP SLA Operation Monitoring via API

Hi,

 

Is there a way to enable monitoring of a (preconfigured) IP SLA operation via the API?

 

We'd want to look at pushing the monitoring operations via another tool and then have that tool talk to the Orion API to enable monitoring of the (preconfigured) IP SLA operations.

 

thanks!

Image may be NSFW.
Clik here to view.

All the credentials via API?

I current have a python script that allows us to pull unique snmpv3 credentials from a database and run discovery with that credential.  But, I'd like to also use the api to push cli credentials for those platforms that support it (Cisco ASA and Cisco Nexus), as well as NCM credentials and VNQM credentials for those platforms that support them.  There doesn't seem to be a common credential library that I can update once and tell each device to reference.  How would I go about adding those other credentials?    

Solarwinds Integartion with Netcool through the JDBC probe

Hi,

 

I am trying to integrate Solarwinds with Netcool where the using the Netcool JDBC probe to read the Database. How to establish connection between the two wherein i am using the default port 1433?

Image may be NSFW.
Clik here to view.

Off the shelf Customer Portal - or list of Orion SDK tested / compatible products

Hello,

 

I'm looking into refreshing in house developed customer portal for standard stuff like Device and Interface stats and history.

Just curious if there are any third party tools / products to deliver easy "drag and drop" enabled multi-tenant portal for Solarwinds NPM/NCM products.

 

We build customer portal in first place as an abstraction layer b/w customer and Solarwinds. This is because in old days there was confidence in Solarwinds own interface able to provide required level of segregation between customers.

 

Any advise is appreciated.

 

Regards,

Sergej

 

P.S. I was looking for list of third party vendors and tools. Something like Service Now store here - https://store.servicenow.com/ Does such thing exist for Solarwinds?

Image may be NSFW.
Clik here to view.

What's an EngineID?

I can't find this documented anywhere.  Virtually all the examples on the web use an EngineID of "1", but that doesn't work for me.  I've tried 1, 0, and 2.  I could keep guessing numbers, but, what is it?

 

Error -

Unable to create Node. Details : Error : In property EngineID. Reason : Invalid EngineID. Value : 1.

Acknowledge Alert via SDK Perl

I am calling the Acknowledge Alert syntax using the example from the sample.pl file for the Perl example.

When I do the following

 

      my $alertDefId = $alert->{alertdefid};

       my $alertNodeId = $alert->{activeobject};

       my $node_alerts = \SOAP::Data->name('ArrayOfAlertInfo')->value(

                      SOAP::Data->name('AlertInfo')->attr({xmlns=>'http://schemas.solarwinds.com/2008/Orion'})->value(

                      SOAP::Data->name('DefinitionId')->type('')->value($alertDefId),

                      SOAP::Data->name('ObjectType')->type('')->value('Node'),

                      SOAP::Data->name('ObjectId')->type('')->value($alertNodeId)

                     )

                   );

       my $result = $swql->swis->Invoke( 'Orion.AlertStatus', 'Acknowledge', [$node_alerts] );

 

I get a return value of 'false' and the Alert is NOT Acknowledged. 

 

How can I acknowledge the Alert through the SDK, remember I am doing this with PERL and I am using the InformationService.pm and Orion.pm modules?

 

Thank you,

Charles

SWIS Schema - How to learn which entity types permit CRUD operations?

I love how the SWIS schema lists all the attributes and verbs for each entity type. But, I can't seem to find information on which entities support which CRUD interfaces.

 

The About SWIS page on the OrionSDK wiki states "there may be entity types that do not support this interface or provide only limited support due to technical or design reasons. In these cases, the operations may reject requests".

 

Is there a document, or even a strategy that people are using to check which entities support CRUD? I figured I'd ask before attempting to manually check every endpoint.

 

Thanks

add node using powershell

We are trying to automate the server build process so wanted to know how to add node in solarwinds using powershell for monitoring.

Image may be NSFW.
Clik here to view.

Python command to create dependencies

in a old post found the following command: but what's the existing one please

 

$swis = Connect-Swis -UserName admin -Password ''

 

New-SwisObject $swis Orion.Dependencies @{Name="test1";ParentUri='swis://tdanner-dev.swdev.local/Orion/Orion.Nodes/NodeID=1';ChildUri='swis://tdanner-dev.swdev.local/Orion/Orion.Nodes/NodeID=2'}

Image may be NSFW.
Clik here to view.

How to identify the EngineID of your pollers

How do you find the EngineID of your main and all additional pollers?

SDK/PowerShell - Group Creation Script Issue


Trying to use the following script (based on the 'Groups' example in the SDK) to add groups based on Nodes.Location and a CustomProperty !=

 

if (! (Get-PSSnapin | where {$_.Name -eq "SwisSnapin"})) {    Add-PSSnapin "SwisSnapin"
}
# Connect to SWIS
$hostname = "localhost"
$username = "username here"
$password = "password here" | ConvertTo-SecureString -asPlainText -Force
$cred = New-Object -typename System.Management.Automation.PSCredential -argumentlist $username, $password 
$swis = Connect-Swis -host $hostname -cred $cred
#Set the locatoin of the csv
Set-Location 'C:\Users\username here\Desktop'
# read in csv file
$importFile="./MakeGroups.csv"
$importList=IMPORT-CSV $importFile
#iterate through each entry in csv file
FOREACH($import in $importList)
{    $SiteCode = $import.Location    $members = @(  @{ Name = "$SiteCode"; Definition = "filter:/Orion.Nodes[Location='$SiteCode' AND CustomProperties.Device_Type != 'Router']" }
)
$groupId = (Invoke-SwisVerb $swis "Orion.Container" "CreateContainer" @(    # group name    "$SiteCode",    # owner, must be 'Core'    "Core",    # refresh frequency    60,    # Status rollup mode:    # 0 = Mixed status shows warning    # 1 = Show worst status    # 2 = Show best status    0,    # group description    "Group created by the PowerShell sample script.",    # polling enabled/disabled = true/false (in lowercase)    "true",    # group members    ([xml]@(       "<ArrayOfMemberDefinitionInfo xmlns='http://schemas.solarwinds.com/2008/Orion'>",       [string]($members |% {         "<MemberDefinitionInfo><Name>$($_.Name)</Name><Definition>$($_.Definition)</Definition></MemberDefinitionInfo>"         }       ),       "</ArrayOfMemberDefinitionInfo>"    )).DocumentElement  )).InnerText     
}

 

 

Keep getting this error:

 

Invoke-SwisVerb : Entity Orion.Nodes does not contain requested property A

At C:\Users\username here\Desktop\MakeGroups.ps1:32 char:14

+  $groupId = (Invoke-SwisVerb $swis "Orion.Container" "CreateContainer" @(

+              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    + CategoryInfo          : InvalidOperation: (:) [Invoke-SwisVerb], FaultException`1

    + FullyQualifiedErrorId : SwisError,SwisPowerShell.InvokeSwisVerb

 

 

Looking in the DB, the script is creating the group under 'Containers', but there is not an entry being created under 'ContainerMemberDefinitions'

 

All help is appreciated

Trying to set custom properties on IPs

In our organization we very frequently use custom properties in IPAM when assigning IPs. We are looking at automating the process of getting certain IPs, however we need this process to be able to set the custom values. I have currently been trying in powershell with the following, but I am having no luck. Any suggestions?

Custom Field name Device_Location

Set-SwisObject $swis -Uri 'swis://localhost/Orion/IPAM.IPNode/IpNodeId=6/Custom' @{ Device_Location = 'test5' }

SWIS - Encryption over TCP 17777 - EOC > Remote Orion instances.

Hey all,

 

Been trawling through the SDK info in GitHub, trying to work out the encryption method used by SWIS, when EOC gathers information from remote Orion instances. Try as I might, I can't find a single entry which explains it in enough detail for me to put in a security statement.

 

Does anyone have any information that could help me answer this question properly?

Image may be NSFW.
Clik here to view.
Viewing all 2677 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>