Agent Display Name - How to Modify?
Home  » Operations Manager  » Agent Display Name - How to Modify?

Agent Display Name - How to Modify?
Posted: Thu, Jul 09, 2009 4:25 PM :: Rank: 0
Author
Points: 270
Level: System Center Hero

I see that an Operations Manager 2007 agent has a name field and a display name field.  With those two names I would assume that the name is the hostname on the server, and the display name could be modified.  In other words, I could set the display name to something I wanted to view. If this is possible how do I modify the display name easily?

Reply  
Report Abuse
RE: Agent Display Name - How to Modify?
Posted: Thu, Jul 09, 2009 6:39 PM :: Rank: 0
Author
Points: 20575
Level: System Center Expert

Sorry, agent display name is not an editable field, but to my knowledge is defined in the whatever code is responsible for discovery and population of agent in the Operational database.

Reply  
Report Abuse
Re: Agent Display Name - How to Modify?
Posted: Thu, Jul 09, 2009 7:10 PM :: Rank: 0
Author
Points: 954
Level: System Center Hero
I modify my snmp devices display name. I suspect it would be suicide to change it for an agent managed device...but I could be wrong? In the table dbo.BaseManagedEntity I change the value of DisplayName. I have a sql script to do it but don't want to provide it because if anyone reading this can't write it themselves and therefore appreciate the backup etc requirements then they shouldn't be doing a direct db edit. I have had zero side effects from change.....but I have my R2 upgrade this weekend :-) Aengus
Reply  
Report Abuse
RE: Agent Display Name - How to Modify?
Posted: Fri, Jul 10, 2009 12:34 PM :: Rank: 0
Author
Points: 545
Level: System Center Hero

touching DB directly voids the "waranty" and is considered unsupported by product team. The way to change properties of discovered instance is to run different/another discovery and populate instance with new value for given property. This itself carries some risks (discovery is complex business, each instance has a ref-count of discoveries) which may affect instance deletion (when object is removed). Overall, doable but should be seriously considered prior attempting to complete. DisplayName was not supposed to be used inside of workflows when decision is being made, but that cannot be guaranteed either so changing name may cause something stop working ...

Reply  
Report Abuse
RE: Agent Display Name - How to Modify?
Posted: Mon, Jul 13, 2009 10:49 AM :: Rank: 0
Author
Points: 270
Level: System Center Hero

So, my root issue is, I want to use a different name as  a "display name"  in OpsMgr for alerts and reporting.  Is that possible?  Maybe not using the displayname as discussed before, but some other way.  Any ideas on how to accomplish this?

Reply  
Report Abuse
Re: Agent Display Name - How to Modify?
Posted: Mon, Jul 13, 2009 7:39 PM :: Rank: 0
Author
Points: 954
Level: System Center Hero

Thanks for the feedback Marius,

"The way to change properties of discovered instance is to run different/another discovery and populate instance with new value for given property." Sounds like the better way to go I'll try out later this week, I should have thought of that already as I think I do it (or follow the concept) within my custom MP's already, e.g. (brackets used for formating purposes)

 

(InstanceSettings)
            (Settings)
              (Setting)
                (Name)$MPElement[Name="Windows!Microsoft.Windows.Computer"]/PrincipalName$</Name>
                (Value)$Target/Property[Type="Windows!Microsoft.Windows.Computer"]/PrincipalName$</Value)
              (/Setting)
              (Setting)
                (Name)$MPElement[Name="System!System.Entity"]/DisplayName$(/Name)
                (Value)MindSrv Srvc on $Target/Property[Type="Windows!Microsoft.Windows.Computer"]/NetbiosComputerName$</Value>
              (/Setting)
            (/Settings)
          (/InstanceSettings)

 

JoinTheClub, I'll write out my steps and reply here if it works.

Cheers, Aengus

Reply  
Report Abuse

Home  » Operations Manager  » Agent Display Name - How to Modify?
Tag Cloud
Quick Links
Top Contributors
Pete Zerger
Points: 28919
Level: System Center Expert
Simon Skinner
Points: 23973
Level: System Center Expert
Tommy Gunn
Points: 20575
Level: System Center Expert
Stefan Koell
Points: 12304
Level: System Center Expert
MadHatter
Points: 11676
Level: System Center Expert