Video Screencast Help

System.NullReferenceException from Get Computer Info component

Created: 15 Nov 2012 | 6 comments

I am trying to use Get Computer Info component to use within a monitoring Workflow to determine free disk space on a number of servers within our Altiris infrastructure.

We have a Domain forest consisiting of a toplevel ad.sys and 4 child domains dom1, 2 3 and 4

We have service accounts for each domain that have full admin access on the Altiris servers in that domain.

For every domain except dom4 get Computer Info is working perfectly. But in dom4 I get the following error :-

 

LogicBase.Components.Default.GetComputerInfo

Get Computer Info

a2418995-28b7-11e2-a90c-08edb9de4ff7

System.NullReferenceException

Object reference not set to an instance of an object.

System.NullReferenceException: Object reference not set to an instance of an object. at LogicBase.Components.Default.ComputerInfoType..ctor(String host, Boolean useImpersonation, String userName, String password) at LogicBase.Components.Default.GetComputerInfo.Run(IData data) at LogicBase.Core.ExecutionEngine.SinglePathProcessComponentExecutionDelegate.Execute(IData data, IOrchestrationComponent comp, String& outputPath, IExecutionEngine engine, TLExecutionContext context) at LogicBase.Core.ExecutionEngine.AbstractExecutionEngine.RunComponent(TLExecutionContext context, IData data, IOrchestrationComponent comp)

 

What is strange is the account Im using I know has full admin access, also I have checked things like RPC are running on the server.

I cant understand what may be wrong at either end and was wondering if anyone had seen this issue before and knew any way around it or what to adjust on the server I am trying to check ?

Many tanks for any help.

 

Comments 6 CommentsJump to latest comment

reecardo's picture

This was reported recently: 2910075 Get Computer Info component will throw a cast error if the Remote Host input is a process variable or dynamic value.

It will be fixed in 7.5

kayos99's picture

Hi reecardo,

 

that sounds good as it measn we can have a solution, thank you. I am passing the hostname as a process variable that I have read from a SQL database.

 

What is strange is that it only affects machines in one of our Domains, all machines are going through the same 'Next elemnet in Collection' loop and the rest are working fine, which doesnt make sense. I would have expected it to eitehr work for all hostnames or fail for all hostnames.

 

I sthere anything furtehr I could do to prove this is the issue you describe in case it is something else that may be easier to fix before 7.5 is released ?

 

kind regards,

 

Tim

reecardo's picture

For some reason, this was blowing up in some environments. The fix was to wrap a segment of code (around fetching "Daylight in Effect" from the ManagementObject) in a try/catch to catch any exceptions. Apparently "Daylight in Effect" isn't supported on some OSes.
               
                try
                {
                    dayLightInEffect = (bool)MO["DaylightInEffect"];
                }
                catch
                {

                    ...
                }

Here's a post somewhat regarding the issue:

http://www.techques.com/question/1-1797758/Check-f...

kayos99's picture

Hi Reecardo,

 

Im still trying to get this to work. Where do I look to put this bit of code in , I also dont quite follow the tech article, is it suggetsing I disable Daylight Saving on the servers that are giving me problems ?

Kind regards,

 

Tim

 

reecardo's picture

You can't put that code in... I was just directing you to where the code was blowing up.

Right now, this issue should be fixed in 7.5. If there's an immediate need for this, it may be possible to push this down to rollups of older versions. You'd have to contact support for that.

kayos99's picture

Hi Reecardo,

 

Sandeep from support managed to get the SystemUtilities dll from 7.5 and the Workflow appears to now work.

 

I am going to test it on my pre production server on friday after re-installing Workflow (we tried to install 7.5 and ended up breaking the server as it wouldnt install). Once it works I will let you know and mark this as the solution.

 

Kind regards,

Tim