-
1. Re: bulkSetServerPropertyValues Not Working?
Bill RobinsonJun 8, 2016 12:03 PM (in response to Todd Schaal)
Are you cd’d into vmslcblasp02 ?
-
2. Re: bulkSetServerPropertyValues Not Working?
Todd Schaal Jun 8, 2016 12:05 PM (in response to Bill Robinson)yes:
vmslcblasp02% pwd
//vmslcblasp02/c/TMP
-
3. Re: bulkSetServerPropertyValues Not Working?
Bill RobinsonJun 8, 2016 12:07 PM (in response to Todd Schaal)
the file needs to be local to where you started nsh. and i believe you can’t be cd’d into a server either. even if it’s the same system w/ the file on it.
-
4. Re: bulkSetServerPropertyValues Not Working?
Yanick Girouard Jun 8, 2016 12:10 PM (in response to Todd Schaal)That's something else I know, but once you fix ths first error you'll get another about the parsing of the csv... It's bugged, the csv parse functions of the api doesn't like spaces, and there's nothing you can do to fix it. You either have to not use spaces, or use the individual command instead (Server setPropertyValueByName target property_name value).
-
5. Re: bulkSetServerPropertyValues Not Working?
Todd Schaal Jun 8, 2016 12:13 PM (in response to Yanick Girouard)Just to clarify, you are talking about the space between the date and time in the csv file?
lslcetcat04,LAST_REBOOT_TIME,"2016-05-22[this space ?]02:59:23"
-
6. Re: bulkSetServerPropertyValues Not Working?
Yanick Girouard Jun 8, 2016 12:30 PM (in response to Todd Schaal)Yes
I can't remember which version of BSA this bug started to appear in though. I'm running 8.5 SP1 Patch 5 and it's there, and I'm not sure it was fixed in 8.7 (to be checked...).
-
7. Re: bulkSetServerPropertyValues Not Working?
Jegavelan Sargunan Jun 9, 2016 11:04 AM (in response to Todd Schaal)Put the file(CSV) in your app server and execute from there, it will work
-
8. Re: bulkSetServerPropertyValues Not Working?
Bill RobinsonJun 9, 2016 11:07 AM (in response to Jegavelan Sargunan)
Not if you are running the blcli started on your client.
-
9. Re: bulkSetServerPropertyValues Not Working?
Jegavelan Sargunan Jun 9, 2016 12:48 PM (in response to Bill Robinson)That`s what I too said in terms of execute from there
-
10. Re: bulkSetServerPropertyValues Not Working?
Bill RobinsonJun 9, 2016 1:03 PM (in response to Jegavelan Sargunan)
You have to actually start the blcli from the appserver in that case.
-
11. Re: bulkSetServerPropertyValues Not Working?
Yanick Girouard Jun 13, 2016 6:51 AM (in response to Todd Schaal)Just make it a NSH Script Job, and by the way, you should really use blcli_execute instead of blcli !
-
12. Re: bulkSetServerPropertyValues Not Working?
Jegavelan Sargunan Jul 1, 2016 11:58 AM (in response to Todd Schaal)Hi All,
I have created a job with following nsh cmd, If I run the job it gives the error
blcli_execute Server bulkSetServerPropertyValues "/tmp" "Trend.csv"
Command execution failed. com.bladelogic.om.infra.mfw.util.BlException: java.io.FileNotFoundException: /tmp/Trend.csv (No such file or directory)
I can confirm the permission are good to that file
-
13. Re: bulkSetServerPropertyValues Not Working?
Bill RobinsonJul 1, 2016 12:01 PM (in response to Jegavelan Sargunan)
what type of nsh job is this - 1 or 2 ?
the Trend.csv is on what server?
the job is running from what server ? (not targeted to, running from)
-
14. Re: bulkSetServerPropertyValues Not Working?
Jegavelan Sargunan Jul 1, 2016 12:31 PM (in response to Todd Schaal)Never mind got that working, so my question if there are three app server the nsh 2 jobs will work only on one server always ?