VM

Expand all | Collapse all

VM:Manager suggestion for VMPTFS

Jump to Best Answer
  • 1.  VM:Manager suggestion for VMPTFS

    Posted 01-16-2019 10:45 AM

    The VMPTFS command in VM:Manager only supports the FILE option.

    A stack option could be nice too..?

     

    Regards

    Alain



  • 2.  Re: VM:Manager suggestion for VMPTFS
    Best Answer

    Posted 01-16-2019 11:00 AM

    Hello Alain, 
    unfortunately you used a type of question rather than Idea. 
    enhancement needs to be raised as IDEA in the community, so that Productmanager could review them. 
    Unfortuntaely, i am unable to convert a question into an idea. 
    Could you please raise the same as a type of idea? 
    I can then update the question to point to the idea. 
    Sorry for the inconvenience. 
    Regards

    Holger



  • 3.  Re: VM:Manager suggestion for VMPTFS

    Posted 01-18-2019 08:37 AM

    Additional information provided to the customer it his case are:

    The fact that you are requesting a "STACK" option indicates that you need or want to run VMPTFS from a program of some kind ... otherwise a STACK option has no value.

    Here are a couple lines you can add to your program to easily get the VMPTFS output in a .STEM variable or STACK, then you can do whatever you need to do with the output:

    <<< snip >>>
    ===== * * * Top of File * * *
    ===== /* Front End for VMPTFS */
    =====
    ===== prod = 'VMSECURE'
    =====
    ===== /* Issue VMPTFS Command and Capture Response */
    ===== 'PIPE CMD EXEC VMPTFS' prod ,
    ===== '| stem ptflist.'
    =====
    ===== /* Use Response .stem. to Output File */
    ===== 'PIPE stem ptflist.' ,
    ===== '| > myptf data a'
    =====
    ===== /* Use Response .stem. to the STACK ... */
    ===== 'PIPE stem ptflist.' ,
    ===== '| stack'
    =====
    ===== Exit
    ===== * * * End of File * * *
    <<< snip >>>

    Using ... 'PIPE CMD EXEC VMPTFS' prod , ... should give you all the flexibility you need to deal with the output in your program.

     

    If you want the output in the STACK instead of the CONS ... just change your PIPE to this:

    <<< snip >>>
    ===== /* Front End for VMPTFS */
    =====
    ===== prod = 'VMSECURE'
    =====
    ===== /* Issue VMPTFS Command and put Response in STACK */
    ===== 'PIPE CMD EXEC VMPTFS' prod ,
    ===== '| STACK'
    <<< snip >>>

    Of course you need to write some code to take it from the STACK and do something else with it.