Topic
  • 4 replies
  • Latest Post - ‏2013-08-23T09:03:23Z by marknolan
marknolan
marknolan
8 Posts

Pinned topic Export inventory on the command line?

‏2013-07-17T14:13:32Z |

Hi all,

I wondered if it's possible to export collected inventory to a html file from the command line?

I know that it's possible in the GUI, but I'd like to run a scheduled task to export the data and email it to someone. I can't seem to find any commands in the reference to do this.

Is it possible?

Thanks in advance,

Mark

Windows Server 2008 R2 / ISD 6.3.2

  • RS_UK_HAL
    RS_UK_HAL
    190 Posts
    ACCEPTED ANSWER

    Re: Export inventory on the command line?

    ‏2013-08-08T22:51:28Z  
    • marknolan
    • ‏2013-07-18T07:06:12Z

    Hi, thanks for the reply. It's a shame, but oh well.

    I am familiar with the lsinv command, wasnt aware of the other information regarding APIs etc, so, thanks very much for that information. At least I've got something to go on now.

    Thanks once more for the reply

    Cheers,

    Mark

    Once you have your CSV output file, you can download any number of free CSV to HTML command line converter tools that will easily do the job for you.  And because they're CLI-based, you can include them in your scheduled script.

     

    Search for "free command line tool to convert csv to html" on the internet.

     

    Updated on 2013-08-08T22:53:06Z at 2013-08-08T22:53:06Z by RS_UK_HAL
  • gcorneau
    gcorneau
    234 Posts

    Re: Export inventory on the command line?

    ‏2013-07-17T15:03:46Z  

    HTML?  No

    XML or CSV?  Yes

    The "smcli lsinv" command is what you need to use:

    http://pic.dhe.ibm.com/infocenter/director/pubs/topic/com.ibm.director.cli.helps.doc/fqm0_r_cli_lsinv.html

    Otherwise, you're left to more programmatic methods like using the REST APIs:

    http://pic.dhe.ibm.com/infocenter/director/devsdk/topic/com.ibm.usmi.dir63x.doc/dir6_1_2_collecting_inventory.html

  • marknolan
    marknolan
    8 Posts

    Re: Export inventory on the command line?

    ‏2013-07-18T07:06:12Z  

    Hi, thanks for the reply. It's a shame, but oh well.

    I am familiar with the lsinv command, wasnt aware of the other information regarding APIs etc, so, thanks very much for that information. At least I've got something to go on now.

    Thanks once more for the reply

    Cheers,

    Mark

  • RS_UK_HAL
    RS_UK_HAL
    190 Posts

    Re: Export inventory on the command line?

    ‏2013-08-08T22:51:28Z  
    • marknolan
    • ‏2013-07-18T07:06:12Z

    Hi, thanks for the reply. It's a shame, but oh well.

    I am familiar with the lsinv command, wasnt aware of the other information regarding APIs etc, so, thanks very much for that information. At least I've got something to go on now.

    Thanks once more for the reply

    Cheers,

    Mark

    Once you have your CSV output file, you can download any number of free CSV to HTML command line converter tools that will easily do the job for you.  And because they're CLI-based, you can include them in your scheduled script.

     

    Search for "free command line tool to convert csv to html" on the internet.

     

    Updated on 2013-08-08T22:53:06Z at 2013-08-08T22:53:06Z by RS_UK_HAL
  • marknolan
    marknolan
    8 Posts

    Re: Export inventory on the command line?

    ‏2013-08-23T09:03:23Z  
    • RS_UK_HAL
    • ‏2013-08-08T22:51:28Z

    Once you have your CSV output file, you can download any number of free CSV to HTML command line converter tools that will easily do the job for you.  And because they're CLI-based, you can include them in your scheduled script.

     

    Search for "free command line tool to convert csv to html" on the internet.

     

    Hi, sorry for the late reply.

    Thanks for the reply and answer.

    Cheers,

    Mark