8 Replies Latest reply: Oct 11, 2011 7:03 AM by Luis Millán RSS

    Can't delete some devices in ProactiveNet Performance Mangement

    Luis Garcia Martinez

      Hello.

       

      There are some devices I can't delete form Administration Console in ProactiveNet Performance Management. If I click right button over some devices "delete" option is disabled.  I supose they have dependencies which not allow to delete them.

       

      How can I delete this devices?.

       

      Thanks in advance

        • 1. Re: Can't delete some devices in ProactiveNet Performance Mangement
          Garland Smith

          More information is needed regarding the devices in question.

           

          1.  Are these devices added manually to ProactiveNet or are they

               auto-discovered devices (devices inserted into ProactiveNet using

               an adapter such as PATROL Adapter, PORTAL Adapter,

               TM-ART, etc...).

           

          2.  What monitors have been added to these devices?

           

          Garland Smith

          • 2. Re: Can't delete some devices in ProactiveNet Performance Mangement
            Luis Garcia Martinez

            Hello.

             

            1. My ProactiveNet server is part of a BMC CLM environment (Atrium CMDB an ADDM are also part of it) so has been auto-discovered. I haven't the knowledge about the whole environment so I'm not sure which agent has been the responsible (PATROL may be).

             

            2. The devices are Server types (Windows) so they have default windows monitors.

             

            I've been able to delete other same type devices so I don't know why it happens with some of them. For example, issue happens with my windows and linux vmware templates.

            • 3. Re: Can't delete some devices in ProactiveNet Performance Mangement
              Niranjan Panigrahi

              Hello Luis,

               

              Do you observe a difference in the Icon of the devices that you are able to delete and the one's that you are not.

              I assume that these are CMDB sync devices, thereofre you are not able to delete them.

               

              To delete these CMDB sync devices You can create a windows batch file with the following contents.

               

              @echo off

              echo Start updating marked for delete devices
              echo .
              sqli "UPDATE DEVICE_CNTL SET MASK=0 WHERE MASK=1"
              echo ......
              echo commiting the changes.
              sqli "commit"
              echo commited.
              echo Done.
              echo Updated Successfully.

               

              1.Copy the script to where pnet server is running. Ex: "c:\temp"

              2.Open Pw Commands window. Change directory to script location. Ex:cd "c:\temp"

              3.Execute the script to unset all the devices which are set as CMDB synced.

              4.Restart the PNET server using command "pw system start"

              5. Now try to delete the device.

               

               

               

               

              • 4. Re: Can't delete some devices in ProactiveNet Performance Mangement
                Luis Garcia Martinez

                Hello.

                 

                I tested the script and got no errors or correct results about the sqli "UPDATE DEVICE_CNTL SET MASK=0 WHERE MASK=1" command.

                 

                After executing I restarted PNET and tried to delete the devices but still same problem..

                • 5. Re: Can't delete some devices in ProactiveNet Performance Mangement
                  Garland Smith

                  Is it possible these are "auto-discovered" devices (devices that came in from

                  PatrolAgent or other

                  adapter are special and can't be removed through normal means).  If so, they

                  will be deleted after

                  7 days (based on a cleanuptime property in pronet.conf).  If this is the case,

                  if you want to take

                  extreme measures, you can set the cleanuptime property to 0 and restart

                  jserver.  Doing this

                  is potentially dangerous because it will delete things that may be disconnected

                  for some reason

                  but not intended to be delted.  The following information from the BMC knowledge

                  base may

                  help:

                   

                  Home > Knowledge Article > Knowledge Article Detail

                  Knowledge Article

                  How to Delete ProactiveNet Auto Sync Monitor Instances and devices from the

                  system with respect to BMC Patrol Adapters?

                   

                    Back to Answers    Printer Friendly    Rate this Page 

                   

                  Knowledge Article ID:    KA287306

                  Version:    1.0

                  Status:    Published

                  Published date:    01/20/2011

                   

                   

                  Problem

                  How to Delete ProactiveNet Auto Sync Monitor Instances and devices from the

                  system with respect to BMC Patrol Adapters?

                  BMC ProactiveNet Analytics for Servers (version 7.6.00)

                  ProactiveNet

                  Solution

                  By default, we don't allow deletion of auto-discovered devices.  This is

                  to prevent device deletion (and corresponding loss of historical data, stats,

                  rate, baseline, etc...) due to temporary glitches where an instance was not

                  available due to administrative functions, scheduled downtime, etc...  The 7

                  day default should be sufficient to prevent this from happening.

                  1.  Change the following property in the pronet.conf file on the admin side

                       (in case of remote admin) and ProactiveNet Server:

                       pronet.autosync.device.delete.enabled=true

                  2.  By default, autodiscovery cleanup time is set to one week.  Change the

                       following property in the pronet.conf file on the ProactiveNet Server:

                       pronet.autodiscovery.cleanuptime=0

                  3.  Reload the properties on the jserver: pw j r

                  4.  Go through the Patrol Proxy configuration and remove the PatrolAgent(s)

                       that are not connected.

                  5. After the next auto sync poll all the instances should be deleted from the

                      particular device.

                  After you complete this exercise, change the properties for

                  pronet.autosync.device.delete.enabled and pronet.autodiscovery.cleanuptime

                  back to their default settings.

                  Note:  It is highly recommended not to delete devices which have auto

                            discovered instances associated with them.

                  Background information:

                   

                  Each of the Patrol Agents will be an auto sync device in the ProactiveNet

                  system.

                   

                  Deletion of Auto Sync Monitor Instances

                   

                  Default behavior:

                   

                        

                  • If the monitor instance is not available on the target patrol agent, then

                  same will not be discovered by the Patrol Adapter during its auto sync cycle

                  (which by default is set to every 24 hours)

                   

                        

                  • There is a configuration parameter in the pronet.conf:

                  “pronet.autodiscovery.cleanuptime” which by default is set to 604800 ( 7 days)

                   

                        

                  • This ensures that the instance is deleted from proactivenet system if and

                  only if, the instance is not discovered during auto sync poll for 7 days (7

                  consecutive auto sync cycles).

                   

                  The Reasons for doing this:

                   

                        

                  • There may be temporary glitches which would make an instance not available

                  during an auto discovery poll. In such a scenario, we do not want to delete the

                  instance(s) as by doing so we would loose all the historical data (stats, rate,

                  baseline).

                   

                        

                  • There may be a scheduled downtime on the particular monitor instances and we

                  would not want to delete the same from the ProactiveNet System for the same

                  reason mentioned above

                   

                        

                  • The 7 day limit provide a sufficient tolerance to guard against such

                  glitches. If there are specific requirements at the customer, the limit can be

                  tuned appropriately.

                   

                  How to ensure immediate delete of instances.

                        

                  • Set the property in pronet.conf (server side)

                  “pronet.autodiscovery.cleanuptime = 0”

                   

                  Device Deletion

                   

                  Default Behavior

                  We do not allow the users to delete the auto discovered devices

                   

                  The reasons for doing this

                  We do not currently allow deletion of devices from the ProactiveNet system

                  primarily for the following reasons.

                   

                        

                  • The same device can hold a combination of discovered instances (discovered as

                  part of the adapter discovery cycles) and manually created monitors (created

                  manually from Proactivenet). By deleting the device, all the monitor instances

                  (both discovered and manually created) will be deleted. 

                   

                        

                  • Generally, the instances are more dynamic nature. The chances of devices

                  being taken off from a monitoring system is less frequent

                   

                        

                  • The cost of creating a device in Proactivenet is expensive in terms of

                  processing performance.  Hence given that the devices are by large static in

                  nature for a monitoring system (i.e the probability of devices going off the

                  system and coming back into the system is less), we do not delete the devices.

                   

                  Mechanism available to delete Auto Discovered Device

                  Manual Deletion of Devices

                   

                  It is highly recommended not to delete devices which have auto discovered

                  instances associated with them.

                   

                  To manually delete the devices from the Admin UI and HTML UI

                   

                        

                  • Set the following property in pronet.conf  (on both admin side (in case of

                  remote admin) and the server side) :  pronet.autosync.device.delete.enabled =

                  true.

                   

                        

                  • Reload the properties on the server using the command

                  $>pw j r

                   

                        

                  • Restart the admin and now you would be able to delete the device.

                        

                  • Follow the steps in the screen shot to delete the device

                   

                  Scenario 1: The user wants to delete a specific Device

                   

                   

                  Scenario 2:  The user wants to determine the set of devices that are currently

                  not connected to the Patrol Proxy Server and delete the same in Proactivenet.

                   

                  This can be achieved by following the screen shots provided in attachment...

                   

                  Go through the Patrol Proxy configuration and remove the PatrolAgent(s)

                  that are not connected.

                   

                  To delete the agents which are not to connected state as shown above follow

                  scenario: 1

                   

                  Recommend Approach

                   

                       1. Make sure that the patrol agent in question is removed using the Patrol

                  Proxy Configuration UI. Make the parameter “pronet.autodiscovery.cleanuptime =

                  0”

                   

                       2. After the next auto sync poll all the instances shall be deleted from the

                  particular device.

                   

                       3. Using scenario 1 as specified above we can then delete the device from the

                  ProactiveNet System.

                  Garland Smith

                  • 6. Can't delete some devices in ProactiveNet Performance Mangement
                    Luis Millán

                    Hi Luis,

                     

                    Do you try to delete each monitor instances into the device? Sometimes to delete the device it's necesary delete each instance (ex. Ping, Port, Agent Availability...).

                     

                    I'll wait your answer.

                     

                    Thanks,

                    Luis

                    • 7. Re: Can't delete some devices in ProactiveNet Performance Mangement
                      Garland Smith

                      Are the device "auto-discovered" devices (i.e. devices that are created

                      automatically by an

                       

                      integration such as PATROL Integration)?  Auto-Discovered devices are

                      deleted automatically

                       

                      after a week if there is no data.  If these are not auto-discovered devices,

                      then (as mentioned

                       

                      below) you will need to remove all monitors/instances in order to delete the

                      device.

                       

                       

                       

                      Garland Smith

                      • 8. Re: Can't delete some devices in ProactiveNet Performance Mangement
                        Luis Millán

                        In my case, we had an "auto-discovered" device through a Patrol adapter and the device don't removed automatically. We deleted all instances one to one and disappeared the device.

                         

                        Luis Millán