1 Reply Latest reply: May 17, 2010 12:36 AM by 807567 RSS

    Trying to upload a file to the knowledge base via CLI

    807567
      Morning Group,

      Trying to implement a script to upload new releases of a file to UCE for eventual use in profiles but having some problems with the cli.

      Grabbed the information which I think is relevant. We have an active support contract but thought I'd give forums a try first.

      $ /opt/SUNWuce/cli/bin/uce_cli -ld
      Initializing
      Available Distributions:
      SOLARIS8_SPARC
      SOLARIS10_SPARC

      $ /opt/SUNWuce/cli/bin/uce_cli -fc -T "ROOT/Local/Pre-actions" -sons
      Initializing
      ROOT/Local/Pre-actions/file1
      ROOT/Local/Pre-actions/file2
      ROOT/Local/Pre-actions/file3
      ROOT/Local/Pre-actions/file4

      $ ls -l /home/username/temporaryfile
      -rw-r--r-- 1 username group 0 May 3 16:50 /home/username/temporaryfile

      $ /opt/SUNWuce/cli/bin/uce_cli -atl -f "/home/username/temporaryfile" -pT "ROOT/Local/Pre-actions" -ds "description" -tP "preactionname" -D SOLARIS10_SPARC
      Initializing
      SOLARIS10_SPARC
      Cannot find requested component.
      Failed to execute: ./bin/uce_cli.bin -atl -f "/home/username/temporaryfile" -pT "ROOT/Local/Pre-actions" -ds "description" -tP "preactionname" -D SOLARIS10_SPARC



      Appreciate the help.
        • 1. Re: Trying to upload a file to the knowledge base via CLI
          807567
          I was able to find the answer quite quickly via support:

          Rather than executing
          $ /opt/SUNWuce/cli/bin/uce_cli -atl -f "/home/username/temporaryfile" -pT "ROOT/Local/Pre-actions" -ds "description" -tP "preactionname" -D

          I should have been executing
          $ /opt/SUNWuce/cli/bin/uce_cli -atl -f "/home/username/temporaryfile" -pT "Local/Pre-actions" -ds "description" -tP "preactionname" -D

          Updated for the archives :)