Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Checking the Job Status on Multiple Servers Expand / Collapse
Author
Message
Posted Monday, September 7, 2009 12:12 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Friday, October 23, 2009 9:59 AM
Points: 1, Visits: 26
Comments posted to this topic are about the item Checking the Job Status on Multiple Servers
Post #783627
Posted Monday, September 7, 2009 3:19 AM


SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Tuesday, September 23, 2014 8:08 AM
Points: 2,365, Visits: 1,846
nice article, but is there any method other than linked server to connect to various servers.

"Keep Trying"
Post #783677
Posted Monday, September 7, 2009 8:23 AM
Valued Member

Valued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued Member

Group: General Forum Members
Last Login: Friday, September 26, 2014 6:42 AM
Points: 64, Visits: 279
I always seem to get this error:

Msg 7357, Level 16, State 2, Line 1
Cannot process the object "exec msdb.dbo.sp_help_job". The OLE DB provider "SQLNCLI" for linked server "JOB_TSSQL6" indicates that either the object has no columns or the current user does not have permissions on that object.


JOB_TSSQL6 is the name of my linked server.
Post #783804
Posted Monday, September 7, 2009 1:42 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Wednesday, September 23, 2009 1:33 PM
Points: 1, Visits: 9
Just to be completely open about all this, I am employed by BMC Software. Having said that, I would like to suggest using an Enterprise Job Scheduler, like BMC CONTROL-M, that provides the ability to run SQL Server jobs such as sql scripts or stored procedures. If you use CONTROL-M, you get centralized job status monitoring from single management console across any number of database instances. You get all the infrastructure that has usually been built to manage scheduling such as 24x7 staffing, alerting via the scheduling console, email, automatic incident creation in Remedy, Service Desk Express, HP Service Desk and other such tools, ability to define automatic recovery actions and simple and intuitive dependencies between database tasks and other batch such as running your apps, file transfers, managing ERPs like SAP, Peoplesoft or Oracle eBusiness Suite, etc.

You don't need to create additional databases to track anything because CONTROL-M does it all for you. You don't need to write and maintain scripts and perhaps best of all, DBAs can spend their time administering databases rather than doing job scheduling.
Post #783898
Posted Tuesday, September 8, 2009 5:01 AM
Valued Member

Valued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued Member

Group: General Forum Members
Last Login: Friday, September 26, 2014 6:42 AM
Points: 64, Visits: 279
Is it not possible to run stored procedures through a linked server? I have RPC set to true.
Post #784118
Posted Tuesday, September 8, 2009 1:26 PM
Valued Member

Valued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued Member

Group: General Forum Members
Last Login: Yesterday @ 10:33 AM
Points: 70, Visits: 812
You can use powershell to execute a script on multiple servers. This article shows how to do this, populating an excel worksheet with information on failed jobs: http://www.mssqltips.com/tip.asp?tip=1798

I modified that script, adding sheets showing backups, database data file space, and recent lines in the error log, filtering out mundane messages. Failed jobs, failed backups and data files with less than a certain percentage of free space are in red.

I then scheduled a job executing this script each morning before I come in, resulting in a quick summary of our servers.
Post #784518
Posted Wednesday, September 9, 2009 11:26 AM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Wednesday, August 27, 2014 8:25 PM
Points: 150, Visits: 400
Hi , its a very cool article.

Can't we get the information of the jobs running under master server.
Post #785192
Posted Wednesday, September 23, 2009 12:50 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Friday, October 23, 2009 9:59 AM
Points: 1, Visits: 26
Hi,

Thanks for your comment. Yes you should be able to get the jobs from the master server too. Pls check that the master server is listed in the sysservers table.

Regards,
Siva.
Post #792879
Posted Wednesday, October 21, 2009 12:11 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Friday, October 17, 2014 7:14 AM
Points: 5, Visits: 156
I am getting the following error when I try to run the usp_help_job_status stored procedure.

Msg 208, Level 16, State 1, Procedure usp_help_job_status, Line 17
Invalid object name 'mondb.dbo.job_status'.

What am I doing wrong?
Post #806702
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse