Video Screencast Help

Linux Client not rebooting from within a Task

Created: 22 Oct 2013 | 7 comments

Hi Guys,

I'm just come to my first Linux (Redhat 5.7) client, and trying to reboot this into a WinPE situation, so that I could re-image the Pc to a different image, or even go on an Create an Image from this PC.

This is all DS7.1

The Agent is loaded , registered and running on the client, and shown to be ok with the aex-sendbasicenv command.

With aex-helper list , I can see the Plugin: SMF.RebootTaskHandler is available.

But sending a Task from the NS it just fails with a return code of -2111635346

An Unknown exception was thrown

Failed to find task handler

at the NS end,

But no logs created in the /opt/altiris/nofication/nsagent/var/tasks area even though some .nst files are created in the tasks directory underneath this.

 

Is there a good method to debug/diagnose the issues here ? 

Are there further log files available ?

Operating Systems:

Comments 7 CommentsJump to latest comment

Andrei Fedulin's picture

Hi Petris,

Can you please specify which task did you use to reboot the client?

Try to check if you have /opt/altiris/notification/nsagent/var/aex-client.log log file.

You can check if there are some errors. You can post error messages here (or you can send entire log fole directly to me)

Thanks,

Andrei

PetrisSysAdmin's picture

I have tried several tasks, and each fail to be executed:

Reboot to production

Reboot to LinPE

Reboot to WinPE

Create Image

 

Here's the content's of the log file aex-client.log , I have set the debug level to 0 so I'm getting alot of messages out, but can't interpret it:

NOTE 2013-11-04 09:20:06.755      8362    4149115792  PluginLoader > Plug-in "AeXRebootTask" (28) has 0 references, isLoaded = false.
NOTE 2013-11-04 09:20:06.755      8362    4149115792  PluginLoader > Trying to unload plug-in "AeXRebootTask"...
NOTE 2013-11-04 09:20:06.847      8362    4149115792  PluginLoader > Plug-in "AeXResetTaskAgentTask" (21) has 0 references, isLoaded = false.
NOTE 2013-11-04 09:20:06.847      8362    4149115792  PluginLoader > Trying to unload plug-in "AeXResetTaskAgentTask"...
NOTE 2013-11-04 09:20:06.939      8362    4149115792  PluginLoader > Plug-in "AeXSMFAgent" (24) has 0 references, isLoaded = true.
NOTE 2013-11-04 09:20:06.939      8362    4149115792  PluginLoader > Trying to unload plug-in "AeXSMFAgent"...
DEBG 2013-11-04 09:20:06.939      8362    4149115792  SMF-AgentObject > Uninitialize request
DEBG 2013-11-04 09:20:06.939      8362    4149115792  SMF-AgentObject > Uninitialize refused
NOTE 2013-11-04 09:20:06.939      8362    4149115792  PluginWrapper > PluginRequestUnload(): Plugin refused to unload.
NOTE 2013-11-04 09:20:06.939      8362    4149115792  PluginWrapper > CPluginWrapper::TryUnload: RequestUnload() returned 2164785208, Plugin refused to unload
NOTE 2013-11-04 09:20:06.939      8362    4149115792  PluginLoader > Plug-in "AeXSMFAgent" refused to unload.
NOTE 2013-11-04 09:20:07.032      8362    4149115792  PluginLoader > Plug-in "AeXSWDClientAgent" (7) has 0 references, isLoaded = false.
NOTE 2013-11-04 09:20:07.032      8362    4149115792  PluginLoader > Trying to unload plug-in "AeXSWDClientAgent"...
NOTE 2013-11-04 09:20:07.124      8362    4149115792  PluginLoader > Plug-in "AeXScriptTask" (17) has 0 references, isLoaded = false.
NOTE 2013-11-04 09:20:07.124      8362    4149115792  PluginLoader > Trying to unload plug-in "AeXScriptTask"...
NOTE 2013-11-04 09:20:07.216      8362    4149115792  PluginLoader > Plug-in "AeXServiceControlTask" (19) has 0 references, isLoaded = false.
NOTE 2013-11-04 09:20:07.216      8362    4149115792  PluginLoader > Trying to unload plug-in "AeXServiceControlTask"...
NOTE 2013-11-04 09:20:07.308      8362    4149115792  PluginLoader > Plug-in "AeXSetupPolicy" (30) has 0 references, isLoaded = false.
NOTE 2013-11-04 09:20:07.308      8362    4149115792  PluginLoader > Trying to unload plug-in "AeXSetupPolicy"...
NOTE 2013-11-04 09:20:07.400      8362    4149115792  PluginLoader > Plug-in "AeXSoftwareDelivery" (29) has 0 references, isLoaded = false.
NOTE 2013-11-04 09:20:07.400      8362    4149115792  PluginLoader > Trying to unload plug-in "AeXSoftwareDelivery"...
NOTE 2013-11-04 09:20:07.492      8362    4149115792  PluginLoader > Plug-in "AeXSoftwareExecutionTask" (26) has 0 references, isLoaded = false.
NOTE 2013-11-04 09:20:07.492      8362    4149115792  PluginLoader > Trying to unload plug-in "AeXSoftwareExecutionTask"...
NOTE 2013-11-04 09:20:07.584      8362    4149115792  PluginLoader > Plug-in "AeXTaskScheduler" (6) has 1 references, isLoaded = true.
NOTE 2013-11-04 09:20:07.676      8362    4149115792  PluginLoader > Plug-in "AeXTickleAgent" (9) has 0 references, isLoaded = false.
NOTE 2013-11-04 09:20:07.676      8362    4149115792  PluginLoader > Trying to unload plug-in "AeXTickleAgent"...
NOTE 2013-11-04 09:20:07.768      8362    4149115792  PluginLoader > Plug-in "AeXWebServiceTask" (20) has 0 references, isLoaded = false.
NOTE 2013-11-04 09:20:07.768      8362    4149115792  PluginLoader > Trying to unload plug-in "AeXWebServiceTask"...
NOTE 2013-11-04 09:20:07.860      8362    4149115792  PluginLoader > Plug-in "DeploymentSolutionAgentTaskHandler" (31) has 0 references, isLoaded = false.
NOTE 2013-11-04 09:20:07.860      8362    4149115792  PluginLoader > Trying to unload plug-in "DeploymentSolutionAgentTaskHandler"...
NOTE 2013-11-04 09:20:07.860      8362    4149115792  PluginLoader > Term thread has finished plug-ins unloading
NOTE 2013-11-04 09:20:26.926      8350    4149959568  Monitor > Awaken.
NOTE 2013-11-04 09:20:26.927      8350    4149959568  Monitor > Ok. Sleep 60 sec(s).

What level of debug is best to debug this?

 

 

PetrisSysAdmin's picture

After posting this, found more entries connected with a Reboot Task, these maybe better in the debug process:

InterfaceClient > GetIDsFromModule: Getting interface IDs from '/opt/altiris/notification/smfagent/bin/aex-ir-task-handler.so
NOTE 2013-11-04 09:35:25.627     11565    4151851840  InterfaceClient > GetIDsFromModule: '/opt/altiris/notification/smfagent/bin/aex-ir-task-handler.so' is loaded, V3 - 0x0
VERB 2013-11-04 09:35:25.627     11565    4151851840  InterfaceClient > GetIDsFromModule: There is no PluginGetInternalInterfaceIDsV3 in '/opt/altiris/notification/smfagent/bin/aex-ir-task-handler.so', skip it
NOTE 2013-11-04 09:35:25.627     11565    4151851840  BaseSDK > CSharedLib: Unloading shared library with handle: 0x9353d40...
NOTE 2013-11-04 09:35:25.627     11565    4151851840  BaseSDK > CSharedLib: Shared library with handle: 0x9353D40 unloaded succesfully.
NOTE 2013-11-04 09:35:25.627     11565    4151851840  InterfaceClient > GetIDsFromModule: Getting interface IDs from '/opt/altiris/notification/smfagent/bin/aex-reboot-task-handler.so
NOTE 2013-11-04 09:35:25.628     11565    4151851840  InterfaceClient > GetIDsFromModule: '/opt/altiris/notification/smfagent/bin/aex-reboot-task-handler.so' is loaded, V3 - 0x0
VERB 2013-11-04 09:35:25.628     11565    4151851840  InterfaceClient > GetIDsFromModule: There is no PluginGetInternalInterfaceIDsV3 in '/opt/altiris/notification/smfagent/bin/aex-reboot-task-handler.so', skip it

.

.

.

NOTE 2013-11-04 10:06:23.048     12218    4152113984  InterfaceClient > GetIDsFromModule: Getting interface IDs from '/opt/altiris/notification/smfagent/bin/aex-reboot-task-handler.so
NOTE 2013-11-04 10:06:23.049     12218    4152113984  InterfaceClient > GetIDsFromModule: '/opt/altiris/notification/smfagent/bin/aex-reboot-task-handler.so' is loaded, V3 - 0x0
VERB 2013-11-04 10:06:23.049     12218    4152113984  InterfaceClient > GetIDsFromModule: There is no PluginGetInternalInterfaceIDsV3 in '/opt/altiris/notification/smfagent/bin/aex-reboot-task-handler.so', skip it
NOTE 2013-11-04 10:06:23.049     12218    4152113984  BaseSDK > CSharedLib: Unloading shared library with handle: 0x8089d40...
NOTE 2013-11-04 10:06:23.049     12218    4152113984  BaseSDK > CSharedLib: Shared library with handle: 0x8089D40 unloaded succesfully.

 

Andrei Fedulin's picture

Hi Petris,

Thanks for log, but unfortunatly this piece of log doesn't contain usefull info.

The best level for troubleshoting is devnote. Check this article http://www.symantec.com/business/support/index?page=content&id=HOWTO93171 - see section "Table: Log file commands"

(there is command you can used to set it and unset after troubleshooting is finished, as devnote level can fill your disk quickly, so don't forget to unset it).

Can you please confirm if DS plugin was installed on this client? You can issue `aex-helper list` to see if Deployment Agent is installed(and post results here).

If it is not - then you should enable DS plugin installation policy on SMP console ( Go to Actions->Agent/Plugins ->Rollout Agents/Plugins; under  Deployment and Migration folder find Linux folder and enable "Deployment plugin for linux" policy)

Thanks,

Andrei 

PetrisSysAdmin's picture

More output found in the aex-client.log referencing REBOOT task, does that show any further light on the problem:

NOTE 2013-11-04 10:06:23.048     12218    4152113984  InterfaceClient > GetIDsFromModule: Getting interface IDs from '/opt/altiris/notification/smfagent/bin/aex-reboot-task-handler.so
NOTE 2013-11-04 10:06:23.049     12218    4152113984  InterfaceClient > GetIDsFromModule: '/opt/altiris/notification/smfagent/bin/aex-reboot-task-handler.so' is loaded, V3 - 0x0
VERB 2013-11-04 10:06:23.049     12218    4152113984  InterfaceClient > GetIDsFromModule: There is no PluginGetInternalInterfaceIDsV3 in '/opt/altiris/notification/smfagent/bin/aex-reboot-task-handler.so', skip it
NOTE 2013-11-04 10:06:23.049     12218    4152113984  BaseSDK > CSharedLib: Unloading shared library with handle: 0x8089d40...
NOTE 2013-11-04 10:06:23.049     12218    4152113984  BaseSDK > CSharedLib: Shared library with handle: 0x8089D40 unloaded succesfully.

 

Otherwise all the plugin info looks good,

 

Output from aex-helper list:

Solutions:

CTAGENT
CTBASEHANDLERS
aex-iragent
aex-smfagent
DeploymentSolution

Subagents:

Altiris Client Task Agent
Altiris Client Task Scheduling Agent
Altiris Base Task Handlers
Altiris Inventory Rule Agent
Altiris Software Management Framework Agent
Deployment Solution Agent Task Handler

Plugins:

Altiris.AeXClientTransport
Altiris.AeXNfySvrClientEvent
Altiris.AeXMachineID
Altiris.MaintenanceWindowAgent
Altiris.AeXPolicyManager
Altiris.AeXNSClientConfigUpdate
Altiris.AeXTaskScheduler
Altiris.SWD
Altiris.SWDAgent
Altiris.SWDTaskProcessor
Altiris.AeXPackageDelivery
Altiris.AeXTickleAgent
Altiris.AeXNSManager
Altiris.HttpdIntegration
Altiris.NotificationManager
Altiris.ClientScheduler
Altiris.ClientTaskAgent
Altiris.CTSchedulingAgent
Altiris.AlertUserTaskAgent
Altiris.ScriptTaskAgent
Altiris.PowerControlTaskAgent
Altiris.ServiceControlTaskAgent
Altiris.WebServiceTaskAgent
Altiris.ResetTaskAgent
Altiris.AgentControlTask
Altiris.InventoryRuleAgent
SMFAgent.SMFAgent
SMFAgent.DownloadSoftwareTaskHandler
SMFAgent.SoftwareExecutionTaskHandler
SMFAgent.InventoryRuleTaskHandler
SMFAgent.RebootTaskHandler
SMFAgent.DeliverySoftwareTaskHandler
SMFAgent.SetupPolicyTaskHandler
DeploymentSolutionAgent_Task

Roles:

 

Andrei Fedulin's picture

Hi Petris,

Thanks for log you sent to me!

Seems that DS plugin cannot load some libs, as they are missed. Lets try to create links for next libraries under /opt/altiris/notification/nsagent/lib directory:

cd /opt/altiris/notification/nsagent/lib/

ln -s libssl.so.1.0.0 libssl.so.0.9.8
ln -s libcrypto.so.1.0.0 libcrypto.so.0.9.8

After that try to run task again.

Thanks,

Andrei

PetrisSysAdmin's picture

Hi Andrei,

That seems to have cured that problem, thanks, as it now can reboot into LinuxPE_pxe .

The only problem with this is that LinuxPe that has been created, it seems without containing /lib/plugins/ClientRebootTo.so and /lib/plugins/CreateImage.so , actually there are no directory "plugins" in /lib.

These are what agent is looking for to run the tasks asked of it by the notification server and reading the log files, in the /opt/altiris/notification/nsagent/var area.

I've found a ClientRebootTo.so in the /opt/altiris/notificationDeploymentSoultionAgent/lib/plugins so create a symbolic link to this , from  /opt/altiris/notification/nsagent/lib/pluigins but still it fails to  reboot

Is there another step that I have skipped over to have these loaded ?

 

Also, trying to grab the Linux image to deploy later,  I don't seem to get Ghost to work, as it's constantly looking for window partions, even when runing the -ir switch for a raw image. Are there other switches to ensure ghost doesn't look for window partitions ?

Regards,

Ralph