-
1. Re: Blade Logic NSH Script Job (Execute Powershell through nexec)
Jim Wilson Jul 14, 2014 10:40 AM (in response to Zach Born)Discussion successfully moved from BMC Bladelogic to Server Automation
-
2. Re: Blade Logic NSH Script Job (Execute Powershell through nexec)
Bill RobinsonJul 14, 2014 10:41 AM (in response to Zach Born)
Target agent version ?
-
3. Re: Blade Logic NSH Script Job (Execute Powershell through nexec)
Zach Born Jul 14, 2014 10:48 AM (in response to Bill Robinson)Target Agent Version: 8.2.01.273
-
4. Re: Blade Logic NSH Script Job (Execute Powershell through nexec)
Bill RobinsonJul 14, 2014 11:04 AM (in response to Zach Born)
8.2.01 doesn’t support 2012. Does the same work in 2008 ?
-
5. Re: Blade Logic NSH Script Job (Execute Powershell through nexec)
Zach Born Jul 14, 2014 12:18 PM (in response to Bill Robinson)Right now I am unable to test this script execution on a 2008 server. I would have to request access to one which would probably take days... As far as what you said, why wouldn't this agent version support 2012? I am able to send things to it and run commands on it through the SAC?
-
6. Re: Blade Logic NSH Script Job (Execute Powershell through nexec)
Bill RobinsonJul 14, 2014 12:20 PM (in response to Zach Born)
8.2.01 was not tested w/ 2012. It may work but not supported… specifically there were some issues w/ stdin on 2012 which may be related to your problem.
-
7. Re: Blade Logic NSH Script Job (Execute Powershell through nexec)
Zach Born Jul 14, 2014 12:22 PM (in response to Bill Robinson)Oh I see. Alright. Is there any update available right now to accommodate for WIN2K12 servers?
-
8. Re: Blade Logic NSH Script Job (Execute Powershell through nexec)
Bill RobinsonJul 14, 2014 7:06 PM (in response to Zach Born)
actually - what's in the powershell script ?
-
9. Re: Blade Logic NSH Script Job (Execute Powershell through nexec)
Zach Born Jul 15, 2014 7:15 AM (in response to Bill Robinson)Get eventlog,
pulling out elements we want and then
ConvertTo-Csv
Out-File
Is that what you meant?
-
10. Re: Blade Logic NSH Script Job (Execute Powershell through nexec)
Steffen Kreis Jul 15, 2014 9:11 AM (in response to Zach Born)Hi,
i think Server 2012 Support was added in 8.3 directly, not sure if it was back-ported to 8.2...
Steffen
-
11. Re: Blade Logic NSH Script Job (Execute Powershell through nexec)
Bill RobinsonJul 15, 2014 1:29 PM (in response to Zach Born)
Can you post the contents of the script? I can test it in house and see if I can reproduce the issue.
-
12. Re: Blade Logic NSH Script Job (Execute Powershell through nexec)
Zach Born Jul 15, 2014 1:39 PM (in response to Bill Robinson)Thanks Bill, I appreciate it.
-
13. Re: Blade Logic NSH Script Job (Execute Powershell through nexec)
Zach Born Jul 18, 2014 7:28 AM (in response to Bill Robinson)Bill,
Have you had any luck with it?
-ZB
-
14. Re: Blade Logic NSH Script Job (Execute Powershell through nexec)
Gregory Rodrigues Jul 18, 2014 7:49 AM (in response to Zach Born)This is a know issue where the console would hang when you use powershell commands.. AFAIK its a limitation on powershell side not BL.. you need to trigger the powershell within the cmd ... use something like:
nexec -i -e cmd /c "echo . | powershell C:/scripts/exchange_server_info.ps1"