Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Insight - create object IP address

Administrator Eversis
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 22, 2018

Hi,

I think my case shouldn't be a big problem but i can't find any solution.

I create in insight two Object Types:

  • Server - with attributes like OS, hostname, IP address etc.
  • IP address - with attributes like ipaddress(Type value - Text), subnetwork

Object IP address is attribute of object Server.

Type of value for attribute ipaddress is "Text".

My problem is order objects "IP address" and "Servers" based on attribute "ipaddress".

For example following servers: 10.10.40.1, 10.10.40.12, 10.10.40.2 are listed like:

  • 10.10.40.1
  • 10.10.40.12
  • 10.10.40.2

I know it is properly for type "Text" but i want it will be:

  • 10.10.40.1
  • 10.10.40.2
  • 10.10.40.12

What should i do to list ipaddress in properly order?

2 answers

1 accepted

1 vote
Answer accepted
Zihni Saglam
Contributor
October 30, 2018

Hi  

Also, you could make sure you have the same number of leading zero’s in your formatting. So it would look like:  
10.10.40.001
10.10.40.002
...

10.10.40.010
10.10.40.011

10.10.40.012

You can do this manually or force it by requiring a regex validation in the attribute type configuration for IP address.

0 votes
Nader Nassif
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 22, 2018

Hi,

The problem with value type text is that Insight is not going to anticipate if you enter IP there or some other data format. The sorting is occurring on a text basis and hence why you are getting this result.

We currently have an open feature request to introduce a similar feature for "Dates" in our open portal ICS-991. I would recommend for you to add a comment to that case to add sorting for IP addresses too. Alternatively you can create a new ticket that is IP specific (only applies for this example).

Cheers!

Nader

Suggest an answer

Log in or Sign up to answer