Quantcast
Channel: THWACK: Popular Discussions - IP Address Manager
Viewing all 12396 articles
Browse latest View live

Set hostname using REST API

$
0
0

Hi,

 

I really need to set the hostname parameter on an ip record in the IPAM database.

 

I am using the set node ip status in the orchestrator plugin to set a IP address as being used, but I really ned to add the hostname of the VM I am deploying on the ip node record.

 

How can this be done using REST?

 

This is the code being used for setting the status:

requestURL = "/Solarwinds/InformationService/v3/json/Invoke/IPAM.SubnetManagement/ChangeIpStatus";

payload = "[\"" + IP + "\",\"" + Status + "\"]";

 

Best Regards

Brian


Update IPAM using REST API

$
0
0

Hi,


Is it possible to up the IPAM using the REST API.

 

Best Regards,

Kevin Downey

Am I Smoking Crack? Orionsdk-python IPAM.Subnet Polling Engine for automatic scanning

$
0
0

Am I Smoking Crack?  -- it's okay if you say Yes,.. 

 

I am at my wits end, I'm trying to automatic some internal business workflows;

 

Using Orionsdk-python, I am creating subnets.  While creating these subnets I notice in IPAM that the 'Automatic Scanning' 'Polling Engine' is not set.

Example:

Solarwinds IPAM: Automatic scanning: Polling Engine: Not Set

 

My python 'meat' to create this subnets are as follows;

######## Python ###########

props = {

                        'Address': device_route.Network,

                        'CIDR': device_route.Mask,

                        'VLAN': Vlan_id,

                        'Location':CountyName + "." + CountyNumber,

                        'ParentId': parent_id,

                        'ScanInterval': 240,

                        'EngineId':1,

                        'DisableNeighborScanning':True

                    }

 

  #get the credentials

  mycreds = tsLocalTools.credentials

  #Connect to SolarWinds and get ready to create subnets

  swis = orionsdk.SwisClient(mycreds.credentials.swServer, mycreds.credentials.swUsername,mycreds.credentials.swPassword)

#create subnet

sw_results = swis.create('IPAM.Subnet',**props)

print(sw_results)

 

############ End Python ################

 

As you can see in the picture, the subnet is created,...  but the Polling Engine is left blank.. for automatic subnet scanning

So any subnet that I create will not Automatically be scanned,..  

 

How can I specify what polling engine to use??   Any ideas would greatly be welcomed!  Thank you ahead of time,  and thank you for at least reading this.

 

Have a great one,..

 

* IPAM V4.7

Display DHCP-Server in Report

$
0
0

Hi,

 

I am currently working on creating some custom reports and was wondering how I can create a report containing subnets as well as the dhcp-server where these subnets are configured.

I have different sites, some subnets are in one site while the corresponding dhcp server is located somewhere else - if someone searches for a subnet and then wants to make some changes at the dhcp server, the person needs to know which dhcp-server he needs to alter.

 

My reports look e.g. something like this:

select * from IPAM_Group g

join IPAM_GroupAttrData d on g.GroupId = d.GroupId

where g.GroupType='8' and d.Category='Client'

order by g.Location, d.Site;

 

Is there maybe already a attribute in this tables that contain the name of the dhcp server, or can i join this information into my query somehow??

DHCP Scope Options

$
0
0

Hello everyone,

 

I would like to create a report that delivers a list of all DHCP Scopes and the scope options:

Capture.JPG

Can anyone please help me with the query? The output should contain the name of the DHCP Server, the name and address range of the Scope and the Scope Options

IPs not showing after adding a subnet

$
0
0

Hello everybody sorry if this has been asked previously but I didn't find anything after a quick search.

 

My problem is, I'm using the trial version of IPAM and when I'm trying to add a subnet bigger than a /22, example /20 or /21, it's saving my request but nothing is showing inside the table :

 

 

Is this a limitation of the trial version or am I doing something wrong ?

 

Thanks in advance for your help

Having Issue to Reserve IP Using Python-orionsdk

$
0
0

We are having the issue to use the orionsdk-python to reserve IP.

 

Here are some details

 

1. The solarwinds IP address Manager version is 4.5.2.

2. We are using the python docker container as the run-time environment to run the script.  Here is the dockerfile we used for this image:

 

FROM python:2.7

 

ARG user=jenkins

ARG group=jenkins

ARG uid=1000

ARG gid=1000

 

# Install any needed packages specified in requirements.txt

RUN pip install --upgrade pip

RUN pip install orionsdk

 

ENV HOME /home/jenkins

RUN groupadd -g ${gid} ${group}

RUN useradd -d "/home/jenkins" -u "${uid}" -g "${gid}" -m -s /bin/bash "${user}"

 

3. Here is the scripts we are used in this test:

 

import requests, os

from orionsdk import SwisClient

 

npm_server = 'server1'

username = os.environ['USERNAME']

password = os.environ['PASSWORD']

 

verify = False

if not verify:

    from requests.packages.urllib3.exceptions import InsecureRequestWarning

    requests.packages.urllib3.disable_warnings(InsecureRequestWarning)

 

verify = False

if not verify:

    from requests.packages.urllib3.exceptions import InsecureRequestWarning

    requests.packages.urllib3.disable_warnings(InsecureRequestWarning)

 

def main():

    swis = SwisClient(npm_server, username, password)

 

    query = """

        SELECT TOP 1 I.uri, I.Status, I.DisplayName

        FROM IPAM.IPNode I

        WHERE Status=2 AND I.Subnet.DisplayName = @id

    """

    results = swis.query(query, id='DEV')

    for row in results['results']:

        print("{Status} [{Status}] : {DisplayName} [{DisplayName}]".format(**row))

 

    ipAddr=results['results'][0]['DisplayName']

    print(ipAddr)

    ipStatus=results['results'][0]['Status']

    print(ipStatus)

    ipUri=results['results'][0]['uri']

    print(ipUri)

 

    swis.update(ipUri, Status='Used')

 

if __name__ == '__main__':

    main()

 

4.  Here is the error message we got:

 

Traceback (most recent call last):

  File "getIp.py", line 49, in <module>

  main()

  File "getIp.py", line 46, in main

  swis.update('swis://pasnorion1.wam.westernasset.local/Orion/IPAM.IPNode/IpNodeId=1094', Status='Used')

  File "/usr/local/lib/python2.7/site-packages/orionsdk/swisclient.py", line 40, in update

  self._req("POST", uri, properties)

  File "/usr/local/lib/python2.7/site-packages/orionsdk/swisclient.py", line 59, in _req

  resp.raise_for_status()

  File "/usr/local/lib/python2.7/site-packages/requests/models.py", line 935, in raise_for_status

  raise HTTPError(http_error_msg, response=self)

requests.exceptions.HTTPError: 403 Client Error: Access to IPAM.IPNode denied. for url: https://pasnorion1.wam.westernasset.local:17778/SolarWinds/InformationService/v3/Json/swis://pasnorion1.wam.westernasset.local/Orion/IPAM.IPNode/IpNodeId=1094

 

Please help.

 

Thanks

 

Louie Liu

IPAM Export and Import (migration to new server)

$
0
0

I am interested in rebuilding our entire SolarWinds Orion suite on a new set of servers. Our environment has changed radically, so we are going to start over with devices, configuration, etc.  The only data I want to carry over to the new platform is the IPAM database.

 

What would be the best suggestion for doing this?  Is there an easy way to export all the IPAM data from the old system and bring it in to the new system?


Import Subnets to IPAM through excel

$
0
0

Hi there,

 

I am trying to importing a subnet data to IPAM through an excel sheet. But once imported I see the subnet is added, but there are no ips displayed. Excel sheet have the below columns

 

Address/CIDRAddressCIDRTypeDisplay NameMASKDescriptionNode Expunge IntervalRetain User DataTransient PeriodDisable Neighbor ScanningVLANLocationScan IntervalNeighbor Scan AddressNeighbor Scan Interval
192.168.192.0/24192.168.192.024SubnetImported Subnet255.255.255.0my subnet2400240novlan 1Austin240240

 

 

I expect the list of IPs that is from 192.168.192.1 to 192.168.192.254 display under the subnet. Could you please help in suggesting if this method works?

 

Reards

Hari

IPAM python API query Error 403

$
0
0

I'm stuck troubleshooting an error with a python script authentication when querying an IPAM server.

Looking for any guidance or suggestions on what to check next.

Checked the forum, but none of the other resolutions for "Error 403" worked for me.

Tried looking for logfile in "C:\Program Files (x86)\SolarWinds\Orion\Information Service\3.0" for troubleshooting, but no log file exists.

The SWIS Query works in SWQL Studio using  ActiveDirectory credentials and OrionV3 Authenticattion.

 

## parameters

- username is of the format domain\ADUser

- npm_server is ip address of IPAM server

- using Python 2.7.14

- latest orionsdk-python

 

## Error received

requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://a.b.c.d:17778/SolarWinds/InformationService/v3/Json/Query

 

## script

import requests

from orionsdk import SwisClient

import getpass

 

npm_server = 'a.b.c.d'

username = raw_input('Username: ')

password = getpass.getpass()

 

verify = False

if not verify:

    from requests.packages.urllib3.exceptions import InsecureRequestWarning

    requests.packages.urllib3.disable_warnings(InsecureRequestWarning)

 

swis = SwisClient(npm_server, username, password)

 

addresses = swis.query('SELECT TOP 1 I.Status, I.DisplayName FROM IPAM.IPNode I WHERE Status=2 AND I.Subnet.DisplayName =''Server Rack One''')

for address in addresses:

     print("Free IP Address is"+address.DisplayName)

 

Thanks,

Mike

How do I move a subnet to a different group?

$
0
0

We recently added IPAM to our NPM and I am trying to figure out how to move subnet around from group to group. As it stands, I used the DHCP monitor to discover the majority of the subnets in our network. When they appear they are in the "Discovered Subnets" group.  I would like to categorize our subnets and have created groups for these subnets.  I need to move subnets from the Discovered Subnets to these other groups. How do I do that?  Or is this not possible.  I really don't want to have to readd every subnet I want to categorize since they've already been discovered.  If this is not possible, then consider this a feature request.

IPAM 4.6.1 - vRO Workflows

$
0
0

Noticed something odd today while working on getting vRO/vRA to play nice with the solarwinds IPAM.

Here is my overall processs

1. Import IPAM pack into vRO

2. Add a IPAM host via the 'SolarWinds IPAM' workflows per documentation here Integrate SolarWinds IPAM with VMware vRealize Orchestrator - SolarWinds Worldwide, LLC. Help and Support

3. Register the host to vRA per Integrate SolarWinds IPAM with VMware vRealize Automation - SolarWinds Worldwide, LLC. Help and Support   making sure to use  adminstrator@vsphere.local for the login info

4. within vRA - configured the IPAM endpoint.  NOTE:  do not put HTTP/HTTPS in the url here there is a part of the workflow that adds this prefix and you will end up with it twice in the swis call and it will fail)

5. within vRA - created a network profile using my SW IPAM endpoint, picked the right address space and range

6. saved network profile

 

So now i switched back to vRO and refreshed by console.  noticed i now have 7 IPAM endpoints under my inventory. The one I made in step 2, and then 6 new ones.

Looking at the 'Get Address Spaces' and 'Get IP Ranges' workflows, it looks like they both have the same 'Add IPAM Host' that i ran in part 2, as part of their workflow.

It looks like it is used to generate the 'SWIS_host' parameter for the next step in the script 'SWIS request'.

 

Is this the intended behavior for these workflows? to add an IPAM endpoint everytime the Network profile is used/edited?  or is there a "Get IPAM Host" workflow that should be in there instead.

IPAM error saving address during edit

$
0
0

 

 

Infrastructure Component is Offline

The Information Service and Orion Module Engine are required components for this website to function, and at least one of them is currently unavailable.

 

Helpful Hints

  • Your firewall may be preventing local connections to Port 17777
  • A required Windows Service may be disabled: "Net.TCP Port Sharing"
  • The "SolarWinds Information Service" and "SolarWinds Orion Module Engine" Windows Services may not be started

 

Additional Information

Cannot insert the value NULL into column 'SubnetId', table 'NetPerfMon.dbo.IPAM_NodeAttrData'; column does not allow nulls. INSERT fails. The statement has been terminated.

 

 

Error Type

There is no error type information available.

 

 

Stack Trace

Server stack trace: at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc) at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout) at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation) at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)  Exception rethrown at [0]: at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) at SolarWinds.IPAM.Contract.Service.IIpamIpNodeProxy.Update(IPNode node) at SolarWinds.IPAM.Client.BusinessLayerProxy.IpamBusinessLayerProxyClient.SolarWinds.IPAM.Contract.Service.IIpamIpNodeProxy.Update(IPNode node) at SolarWinds.IPAM.Client.IPAMEntityIPNode.Update(IPNode node) at SolarWinds.IPAM.Web.Common.PageIPEditor.<>c__DisplayClass8.<SaveObject>b__7(IpamClientProxy proxy) at SolarWinds.IPAM.Web.Common.CommonPageServices.UseSWIS(String description, SwisDelegate fn, SwisExceptionDelegate error)

 

 

Any Suggestions??

IPAM Chart View Colour

$
0
0

On IPAM When viewing a subnet in chart view the colour of the available IP’s on the chart does not match the KEY? i.e. it is displaying available IP's as grey and not green is this a known issue or is there a way to change this, see example below.

Anyone with IPAM have experience with migrating DHCP Scopes to a new DHCP servers?

$
0
0

Our server team is rebuilding the DHCP environment. The existing DHCP environment is setup in IPAM. How did you handle updating IPAM?  Delete the existing DHCP scopes and servers and then reload by adding the new servers? Any issues to consider?


IPAM Subnet Search

$
0
0

Is there a way to search on subnet details?  I only see options to search for IP addresses and their associated fields.

 

We have a large network with many remote locations.  It would be extremely useful to be able to search for that location name, already in the subnet description, and get those subnets in the results.

 

Thanks,

Wayne

Solarwinds Integration with ServiceNow

$
0
0

I am with a new company that just purchased ServiceNow. Currently our only SW product is IPAM. I am in the process of updating the Orion engine and IPAM then installing NPM and NTA. I know that NPM and SAM can be integrated into ServiceNow to generate tickets, but can IPAM? I can't think of a reason IPAM would need to open a ticket automatically and I don't see any mention of IPAM integration anywhere. Can NTA be integrated to open an incident response ticket with ServiceNow?

 

 

 

Thanks for any help,

Derek

IPAM python API query Error 403

$
0
0

I'm stuck troubleshooting an error with a python script authentication when querying an IPAM server.

Looking for any guidance or suggestions on what to check next.

Checked the forum, but none of the other resolutions for "Error 403" worked for me.

Tried looking for logfile in "C:\Program Files (x86)\SolarWinds\Orion\Information Service\3.0" for troubleshooting, but no log file exists.

The SWIS Query works in SWQL Studio using  ActiveDirectory credentials and OrionV3 Authenticattion.

 

## parameters

- username is of the format domain\ADUser

- npm_server is ip address of IPAM server

- using Python 2.7.14

- latest orionsdk-python

 

## Error received

requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://a.b.c.d:17778/SolarWinds/InformationService/v3/Json/Query

 

## script

import requests

from orionsdk import SwisClient

import getpass

 

npm_server = 'a.b.c.d'

username = raw_input('Username: ')

password = getpass.getpass()

 

verify = False

if not verify:

    from requests.packages.urllib3.exceptions import InsecureRequestWarning

    requests.packages.urllib3.disable_warnings(InsecureRequestWarning)

 

swis = SwisClient(npm_server, username, password)

 

addresses = swis.query('SELECT TOP 1 I.Status, I.DisplayName FROM IPAM.IPNode I WHERE Status=2 AND I.Subnet.DisplayName =''Server Rack One''')

for address in addresses:

     print("Free IP Address is"+address.DisplayName)

 

Thanks,

Mike

Help with VRFs in IPAM please?

$
0
0

Hi,

 

Have discovered L3 switches which have all 4 VRFs in NPM.

But can't see Solarwinds discovering those VRFs.

 

Please can somebody help me to discover VRFs and display them clearly in the IPAM module?

 

 

Thanking you in anticipation.

Does Orion Platform 2015.1.2 with IPAM 4.3 support VRFs?

$
0
0

Does Orion Platform 2015.1.2 with IPAM 4.3 support VRFs?

We have a large network with hundreds of VRFs with non-overlapping subnets. We are trying to enable neighbor scanning on VRF aware routers ….so far we have not had success with this.

Any help with this is much appreciated,

 

-Andres

Viewing all 12396 articles
Browse latest View live


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