Junos Space Developer
Highlighted
Junos Space Developer

Security Director 17.2r1 Can't delete devices

‎09-19-2018 03:50 AM

Hi,

 

From Devices > Security Devices I have tried deleting all firewalls but they are still listed, only now the Operations menu is greyed out.

 

Does anyone know of a way to delete the firewalls from security director, or maybe delete the database from the CLI?

 

I can rediscover firewalls, but this adds them to the list so I end up with 2 of the same device listed.

 

Thanks.

7 REPLIES 7
Junos Space Developer

Re: Security Director 17.2r1 Can't delete devices

‎09-19-2018 05:35 AM

Are there references to the devices in policies or other areas?

I think you cannot remove an object with other references.

 

Steve Puluka BSEET - Juniper Ambassador
IP Architect - DQE Communications Pittsburgh, PA (Metro Ethernet & ISP)
http://puluka.com/home
Junos Space Developer

Re: Security Director 17.2r1 Can't delete devices

‎09-19-2018 07:12 AM

I've tried removing all policy, VPN objects, Address objects and services but the firewalls are still listed within security devices.

 

When I deleted them, the job stated "completed successfully" but they remain :/

Junos Space Developer
Solution
Accepted by topic author WingingIt
‎09-19-2018 11:54 PM

Re: Security Director 17.2r1 Can't delete devices

‎09-19-2018 08:39 AM

Hi MStokes,

 

Copy the attached file in Space server and run below command:

# mysql -ujboss -p$(grep mysql.jboss /etc/sysconfig/JunosSpace/pwd | awk -F= '{print$2}') sm_db < Stale_devices_cleanup.txt

 

-PL

If this worked for you please flag my post as an "Accepted Solution" so others can benefit.

Attachments

Junos Space Developer

Re: Security Director 17.2r1 Can't delete devices

‎09-19-2018 11:55 PM

Perfect, this cleaned it up.

 

Thanks

Junos Space Developer

Re: Security Director 17.2r1 Can't delete devices

‎01-07-2019 02:47 PM

Ran into this problem today. Thanks for putting in the work to get that query working.

Junos Space Developer

Re: Security Director 17.2r1 Can't delete devices

‎05-16-2019 04:06 AM

could you please cofirm where exaclty i need to copy this file

Thank you


@PML wrote:

Hi MStokes,

 

Copy the attached file in Space server and run below command:

# mysql -ujboss -p$(grep mysql.jboss /etc/sysconfig/JunosSpace/pwd | awk -F= '{print$2}') sm_db < Stale_devices_cleanup.txt

 

-PL

If this worked for you please flag my post as an "Accepted Solution" so others can benefit.


@PML wrote:

Hi MStokes,

 

Copy the attached file in Space server and run below command:

# mysql -ujboss -p$(grep mysql.jboss /etc/sysconfig/JunosSpace/pwd | awk -F= '{print$2}') sm_db < Stale_devices_cleanup.txt

 

-PL

If this worked for you please flag my post as an "Accepted Solution" so others can benefit.



 

Junos Space Developer

Re: Security Director 17.2r1 Can't delete devices

‎05-16-2019 04:12 AM
You can put anywhere and run as mentioned.

e.g. scp to /home/admin

Thank you.

-PL