6 Replies Latest reply on May 2, 2011 3:26 AM by Andreas Koppenhoefer

    bulkSetServerPropertyValues usage in OM script

      I'm trying to use the script below to do a bulk set of values that is on each server.

      -


      #!/bin/sh

      serverName=`uname -n`

      print "$serverName"

      TMP_DIR="/c/Temp"

      CSV_FILE="CMDB_Attributes.csv"

      serverCheck=`cat $TMP_DIR/$CSV_FILE`

      print "$serverCheck"

      blcli Server bulkSetServerPropertyValues "$TMP_DIR" "$CSV_FILE"

      -


       

      The values for the path work fine when it outputs serverCheck, but fail when it gets to the blcli. Here's what I get in the log.

       

      -


      Job Name,"SetManuSerialNumber - Run at Feb 15, 2008 10:41:25 AM"

      Start Time,Feb 15, 2008 10:41:25 AM

      End Time,Feb 15, 2008 10:41:31 AM

      Status,Completed with Errors

       

      Participant,Type,Date,Message

      "Run at Feb 15, 2008 10:41:25 AM",Info,Feb 15, 2008 10:41:25 AM,Started running the job 'SetManuSerialNumber' on application server 'csc06pbldlgc01.keybank.com'(1)

      CSC06ISOSCRA01S,Info,Feb 15, 2008 10:41:28 AM,CSC06ISOSCRA01S

      CSC06ISOSCRA01S,Info,Feb 15, 2008 10:41:28 AM,"CSC06ISOSCRA01S,SERIAL_NUMBER,'VMware-50 31 7e 22 98 35 d7 07-06 8b 0b 42 4e 92 f8 73'"

      CSC06ISOSCRA01S,Info,Feb 15, 2008 10:41:28 AM,"CSC06ISOSCRA01S,MANUFACTURER,'Phoenix Technologies LTD'"

      CSC06ISOSCRA01S,Info,Feb 15, 2008 10:41:28 AM,"CSC06ISOSCRA01S,MODEL,'VMware Virtual Platform'"

      CSC06ISOSCRA01S,Info,Feb 15, 2008 10:41:28 AM,"CSC06ISOSCRA01S,NUMBER_OF_PROCESSORS,'1'"

      CSC06ISOSCRA01S,Info,Feb 15, 2008 10:41:28 AM,"CSC06ISOSCRA01S,PROCESSOR_TYPE,'Intel(R) Xeon(R) CPU X5365 @ 3.00GHz'"

      CSC06ISOSCRA01S,Info,Feb 15, 2008 10:41:28 AM,"CSC06ISOSCRA01S,PROCESSOR_SPEED,'2666 MHZ'"

      CSC06ISOSCRA01S,Info,Feb 15, 2008 10:41:28 AM,"CSC06ISOSCRA01S,SYSTEM_MEMORY,'768 MB'"

      CSC06ISOSCRA01S,Info,Feb 15, 2008 10:41:28 AM,"CSC06ISOSCRA01S,IS_VIRTUAL,'TRUE'"

      CSC06ISOSCRA01S,Info,Feb 15, 2008 10:41:31 AM,Command execution failed. java.io.FileNotFoundException: /c/Temp/CMDB_Attributes.csv (No such file or directory)

      CSC06ISOSCRA01S,Info,Feb 15, 2008 10:41:31 AM,Exit Code 1

      "Run at Feb 15, 2008 10:41:25 AM",Info,Feb 15, 2008 10:41:31 AM,The job 'SetManuSerialNumber' has failed

       

      -


       

       

      I have also tried this with the servername in the TMP path, but it seems to strip that out anyway.