Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SMS Adv client query

Status
Not open for further replies.

bowwow

IS-IT--Management
Jun 11, 2002
60
GB
Ive an agent that is assigning itself to the wrong site. Is there away of hardcoding Adv cliets to particular site?

Any help much appreciated...
 
If it has the correct IP-address then it should be assigning itself to the correct site. SMS is integrated with your AD (if you have SMS 2003 that is) and based upon the subnet you've defined in your sites and services and your boundaries it will connect to the SMS server with that criteria.

I hope you find this post helpful.

Regards,
GSC
 
Changing the SMS Client Site Code can also be done via a simple VBScript. You can then run the script manually, or deploy with SMS or GPO. Here's a sample I use and have posted on my blog (DotVBS.blogspot.com), nothing fancy. You can also use command line variables in the script to pass the site code rather than hardcode it.

----Begin VBScript----

On Error Resume Next

'Your site code goes here
siteCode = "xyz"

Dim oSMSClient

Set oSMSClient = CreateObject ("Microsoft.SMS.Client")

If Err.Number <> 0 Then
WScript.quit
End If

oSMSClient.SetAssignedSite siteCode

Set oSMSClient=Nothing
----End VBScript----
 
BOWWOW, Correct, you can use the above method to "hard code" the site code, or you can manually set it, however, you may have a bigger issue if you are atuomatically detecting the wrong site.

Is the machine in :
a) the correct physical topology with connection to the site server?
b) within the DNS Zone / IP Subnet as that defined on the primary site server.

Neil J Cotton
Technical Consultant
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top