formulas and computer groups
Windows Server Forum Index Windows Server
Server discussion on Windows platform.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web winserverhelp.com
formulas and computer groups

 
Post new topic   Reply to topic    Windows Server Forum Index -> MOM
Author Message
Terry Matthews
Guest





Posted: Fri Nov 04, 2005 8:24 am    Post subject: formulas and computer groups Reply with quote

I want to create some computer groups based off region.

To do this I figure I can create a formula that reads the IP Subnet and if
it matches what I've determined to be say "northwest" it will add the
computers.

So I created a formula AttributeValue(IPSubnet)="*192.168.202.*"

I have enabled searching of all computers

I go to the root of the computer groups and say "Calculate Group membership"

Wait for a while...

Then go to my machines that I know are in that subnet and go to their
properties to see what Computer groups they are part of... (yes I've also
looked in the operator console) They show some of the other computer groups
they are part of but not my regional computer group??

What am I doing wrong?

I have tried different formulas too. Like specifying computer name (as a
test) and it didn't work. I tried IPAddress. I tried Subnet. I've tried
not using any wild cards, I've tried the exact subnet.... I've tried most
things.

Thanks,
Terry
Back to top
Arie de Haan
Guest





Posted: Fri Nov 04, 2005 9:51 am    Post subject: Re: formulas and computer groups Reply with quote

In article <#LqItbO4FHA.636@TK2MSFTNGP10.phx.gbl>, nospam@hotmail.com
says...
Quote:
I want to create some computer groups based off region.

To do this I figure I can create a formula that reads the IP Subnet and if
it matches what I've determined to be say "northwest" it will add the
computers.

So I created a formula AttributeValue(IPSubnet)="*.*"


Try this formula:

MatchWildcard(AttributeValue(IPAddress), "192.168.202.*")

--
Greetz,

Arie
This posting is provide "AS IS" with no guarantees, warranties, rigths
etc.
Back to top
Arie de Haan
Guest





Posted: Fri Nov 04, 2005 9:51 am    Post subject: RE: formulas and computer groups Reply with quote

In article <vIFnS8R4FHA.2984@TK2MSFTNGXA01.phx.gbl>,
leelili@online.microsoft.com says...
Quote:
Dear Terry,

Thank you for posting.

This is Lee and I am glad to meet you in the newsgroup.
The parameter used in the AttributeValue function must exist in the
"computer attributes" list.
You can find all the computer attributes in the MOM admin console =
"computer attributes".
By default, there is no attribute called IPSubnet/IPAddress/Subnet.
There is an 'built-in' attribute called IPAddress which can be used as

can be seen in my previous post. I've checked that options and it works

With built-in i mean it isn't something thats available in the attribute
node of the admin console


--
Greetz,

Arie
This posting is provide "AS IS" with no guarantees, warranties, rigths
etc.
Back to top
Lee Li[MSFT]
Guest





Posted: Fri Nov 04, 2005 9:51 am    Post subject: RE: formulas and computer groups Reply with quote

Dear Terry,

Thank you for posting.

This is Lee and I am glad to meet you in the newsgroup.
The parameter used in the AttributeValue function must exist in the
"computer attributes" list.
You can find all the computer attributes in the MOM admin console =>
"computer attributes".
By default, there is no attribute called IPSubnet/IPAddress/Subnet.

Computer attribute are got from the reigstry on the computer, the Ip
address will not exist in the registry by default.
So by default, MOM cannot get such subnet/IP informtion from the client
computer.

So the AttributeValue(IPSubnet) will never work because there is no such
attribute and AttributeValue function cannot be used to meet your
requirement.
You may need to write some MOM scripts to extend the attribute.
These issues may require a bit more in depth attention and may fall under
the umbrella of Advisory Services. For more information on Advisory
Services, please see:
http://www.microsoft.com/business/services/mcs.asp?&SD=GN&LN=EN-US&gssnb=1

To this issue, We recommend Microsoft Advisory Services, a
remotely-delivered, consultative support option that adds the element of
proactive support,
providing a comprehensive result beyond your break-fix product maintenance
needs. More information on this service here:
http://support.microsoft.com/gp/advisoryservice

Thank you for your understanding and cooperation. Have a nice day!

Sincerely,

Lee Li
Microsoft Online Partner Support

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
=====================================================
Business-Critical Phone Support (BCPS) provides you with technical phone
support at no charge during critical LAN outages or "business down"
situations. This benefit is available 24 hours a day, 7 days a week to all
Microsoft technology partners in the United States and Canada.

This and other support options are available here:
BCPS:
https://partner.microsoft.com/US/technicalsupport/supportoverview/40010469
Others: https://partner.microsoft.com/US/technicalsupport/supportoverview/

If you are outside the United States, please visit our International
Support page:
http://support.microsoft.com/default.aspx?scid=%2finternational.aspx.

=====================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
Back to top
Terry Matthews
Guest





Posted: Fri Nov 04, 2005 5:51 pm    Post subject: Re: formulas and computer groups Reply with quote

I've installed about 20 Management Packs and yes IPAddress, subnet, etc..
are all there. Thanks though. I just used the picker for attributes in the
formula area.

I thought those were all built in along with computer name, but if you say
not then I guess I'll believe and just assume that a management pack put
them there.

Terry

""Lee Li[MSFT]"" <leelili@online.microsoft.com> wrote in message
news:vIFnS8R4FHA.2984@TK2MSFTNGXA01.phx.gbl...
Quote:
Dear Terry,

Thank you for posting.

This is Lee and I am glad to meet you in the newsgroup.
The parameter used in the AttributeValue function must exist in the
"computer attributes" list.
You can find all the computer attributes in the MOM admin console =
"computer attributes".
By default, there is no attribute called IPSubnet/IPAddress/Subnet.

Computer attribute are got from the reigstry on the computer, the Ip
address will not exist in the registry by default.
So by default, MOM cannot get such subnet/IP informtion from the client
computer.

So the AttributeValue(IPSubnet) will never work because there is no such
attribute and AttributeValue function cannot be used to meet your
requirement.
You may need to write some MOM scripts to extend the attribute.
These issues may require a bit more in depth attention and may fall under
the umbrella of Advisory Services. For more information on Advisory
Services, please see:
http://www.microsoft.com/business/services/mcs.asp?&SD=GN&LN=EN-US&gssnb=1

To this issue, We recommend Microsoft Advisory Services, a
remotely-delivered, consultative support option that adds the element of
proactive support,
providing a comprehensive result beyond your break-fix product maintenance
needs. More information on this service here:
http://support.microsoft.com/gp/advisoryservice

Thank you for your understanding and cooperation. Have a nice day!

Sincerely,

Lee Li
Microsoft Online Partner Support

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
=====================================================
Business-Critical Phone Support (BCPS) provides you with technical phone
support at no charge during critical LAN outages or "business down"
situations. This benefit is available 24 hours a day, 7 days a week to all
Microsoft technology partners in the United States and Canada.

This and other support options are available here:
BCPS:
https://partner.microsoft.com/US/technicalsupport/supportoverview/40010469
Others: https://partner.microsoft.com/US/technicalsupport/supportoverview/

If you are outside the United States, please visit our International
Support page:
http://support.microsoft.com/default.aspx?scid=%2finternational.aspx.

=====================================================
This posting is provided "AS IS" with no warranties, and confers no
rights.
Back to top
Terry Matthews
Guest





Posted: Fri Nov 04, 2005 5:51 pm    Post subject: Re: formulas and computer groups Reply with quote

Thanks, I'll give this a try.
Terry

"Arie de Haan" <com.pandinus@ariedh.reversed> wrote in message
news:MPG.1dd53c568fc26589989a8a@msnews.microsoft.com...
Quote:
In article <#LqItbO4FHA.636@TK2MSFTNGP10.phx.gbl>, nospam@hotmail.com
says...
I want to create some computer groups based off region.

To do this I figure I can create a formula that reads the IP Subnet and
if
it matches what I've determined to be say "northwest" it will add the
computers.

So I created a formula AttributeValue(IPSubnet)="*.*"


Try this formula:

MatchWildcard(AttributeValue(IPAddress), "192.168.202.*")

--
Greetz,

Arie
This posting is provide "AS IS" with no guarantees, warranties, rigths
etc.
Back to top
Terry Matthews
Guest





Posted: Fri Nov 04, 2005 5:51 pm    Post subject: Re: formulas and computer groups Reply with quote

Awesome that worked perfectly.

I added that, did a calculate group membership. Went to one of my managed
machines and looked at properties and instantly the computer group showed
up!!
So I created a new Computer group.
Created a new formula
MatchWildcard(AttributeValue(ComputerName), "CFT*")

Made sure searching all systems was turned on.
Hit Apply
Hit ok
Refreshed group membership
went to my managed systems, to machines with that name...
Nothing?
I also tried "*"
Nothing

Yes, Computer Name is an attribute, got it from the attribute selector.
Also tried this with the attribute "Subnet"
tried "192.168.202.*"
Nothing
tried "255.255.*"
Nothing
Tried "192.168.202.0/*"
Nothing

So then just to be sure I tried the
MatchWildcard(AttributeValue(IPAddress), "192.168.202.*")
Again (in this different computer group)
Refreshed membership
Went to my systems
and it was there, worked perfectly??

So why is it the IPAddress one works great but can't get anything else
working??

Thanks,
Terry

"Terry Matthews" <nospam@hotmail.com> wrote in message
news:uEOoZoV4FHA.3276@TK2MSFTNGP10.phx.gbl...
Quote:
Thanks, I'll give this a try.
Terry

"Arie de Haan" <com.pandinus@ariedh.reversed> wrote in message
news:MPG.1dd53c568fc26589989a8a@msnews.microsoft.com...
In article <#LqItbO4FHA.636@TK2MSFTNGP10.phx.gbl>, nospam@hotmail.com
says...
I want to create some computer groups based off region.

To do this I figure I can create a formula that reads the IP Subnet and
if
it matches what I've determined to be say "northwest" it will add the
computers.

So I created a formula AttributeValue(IPSubnet)="*.*"


Try this formula:

MatchWildcard(AttributeValue(IPAddress), "192.168.202.*")

--
Greetz,

Arie
This posting is provide "AS IS" with no guarantees, warranties, rigths
etc.


Back to top
Steve M.
Guest





Posted: Sat Nov 05, 2005 1:50 am    Post subject: Re: formulas and computer groups Reply with quote

I had the same problem with ComputerName from the drop down list. So, I
Created my own Computer Attribute called "MyComputerName" which points to the
String Value from key:

SYSTEM\CurrentControlSet\Control\ComputerName\ActiveComputerName\ComputerName
I then can see MyComputerName form the drop down list and use it in all my
formulas.

Check in about a day for the attribute to process. It should work.



"Terry Matthews" wrote:

Quote:
I've installed about 20 Management Packs and yes IPAddress, subnet, etc..
are all there. Thanks though. I just used the picker for attributes in the
formula area.

I thought those were all built in along with computer name, but if you say
not then I guess I'll believe and just assume that a management pack put
them there.

Terry

""Lee Li[MSFT]"" <leelili@online.microsoft.com> wrote in message
news:vIFnS8R4FHA.2984@TK2MSFTNGXA01.phx.gbl...
Dear Terry,

Thank you for posting.

This is Lee and I am glad to meet you in the newsgroup.
The parameter used in the AttributeValue function must exist in the
"computer attributes" list.
You can find all the computer attributes in the MOM admin console =
"computer attributes".
By default, there is no attribute called IPSubnet/IPAddress/Subnet.

Computer attribute are got from the reigstry on the computer, the Ip
address will not exist in the registry by default.
So by default, MOM cannot get such subnet/IP informtion from the client
computer.

So the AttributeValue(IPSubnet) will never work because there is no such
attribute and AttributeValue function cannot be used to meet your
requirement.
You may need to write some MOM scripts to extend the attribute.
These issues may require a bit more in depth attention and may fall under
the umbrella of Advisory Services. For more information on Advisory
Services, please see:
http://www.microsoft.com/business/services/mcs.asp?&SD=GN&LN=EN-US&gssnb=1

To this issue, We recommend Microsoft Advisory Services, a
remotely-delivered, consultative support option that adds the element of
proactive support,
providing a comprehensive result beyond your break-fix product maintenance
needs. More information on this service here:
http://support.microsoft.com/gp/advisoryservice

Thank you for your understanding and cooperation. Have a nice day!

Sincerely,

Lee Li
Microsoft Online Partner Support

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
=====================================================
Business-Critical Phone Support (BCPS) provides you with technical phone
support at no charge during critical LAN outages or "business down"
situations. This benefit is available 24 hours a day, 7 days a week to all
Microsoft technology partners in the United States and Canada.

This and other support options are available here:
BCPS:
https://partner.microsoft.com/US/technicalsupport/supportoverview/40010469
Others: https://partner.microsoft.com/US/technicalsupport/supportoverview/

If you are outside the United States, please visit our International
Support page:
http://support.microsoft.com/default.aspx?scid=%2finternational.aspx.

=====================================================
This posting is provided "AS IS" with no warranties, and confers no
rights.



Back to top
 
Post new topic   Reply to topic    Windows Server Forum Index -> MOM All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




New Topics Powered by phpBB