- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: Hi script OpenVms and PML
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2009 11:38 PM
08-15-2009 11:38 PM
Hi script OpenVms and PML
I hope that you can help me.
Thanks a lot.
This is my little script, but no ok the sentense pmlfile...
$ create mi.pml
$ open /write /error=SEND_PML PMLFILE mi.pml
$ write pmlfile "CONNECT"
$ write pmlfile "ENABLE OUTPUT /FILE=salida.txt"
$ write pmlfile "show class smh /sm_rec/sm_trans /notif_trans"
$ write pmlfile "show class smh /msg_buff"
$ write pmlfile "DISCONNECT"
$ write pmlfile "EXIT"
$ close pmlfile PML
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2009 03:36 AM
08-16-2009 03:36 AM
Re: Hi script OpenVms and PML
Welcome to the HP ITRC OpenVMS forum!
The script in the original posting merely creates the file, it does nothing to feed the file into PML.
The sample code appears almost identical to that in an article on OpenVMS.org at http://dcl.openvms.org/stories.php?story=09/01/04/7641409
One difference is that the example has variable data to be included in the commands, and this sample code does not.
The invocation of PMI from the above article is:
pml := $smsc$root:[bin]pml
$ define/user sys$output nla0:
$ pml/input_file='pml_script'/queue=send_pml_command/response_time=60
If the commands are the same every time, and do not include any variable data, it is often better if you do not build an auxiliary file, and merely pass them implicitly using SYS$INPUT, to wit:
$ pml/input=sys$input/...
connect
enable output/file=salida.txt
show class smh ...
show class smh ...
DISCONNECT
EXIT
$ (whatever other commands are to follow the code).
If there is actually variable data in the input file, then creating the intermediate file is needed, and the example on OpenVMS.org is appropriate.
Any output will appear on SYS$OUTPUT or SYS$ERROR, as appropriate.
- Bob Gezelter, http://www.rlgsc.com
- Tags:
- here doc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-25-2013 12:31 PM
02-25-2013 12:31 PM
Re: Hi script OpenVms and PML
Hi,
I didn't understand the line: $ pml/input=sys$input/...
can you explain?
I wanna put some PML commands in my script...
Please help me!
Thanks!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-26-2013 08:18 PM
02-26-2013 08:18 PM
Re: Hi script OpenVms and PML
Benito,
You are asking for an explanation on standard OpenVMS methods/behaviour.
IF (and only if) you haved FIXED (static ) input data to provide to a file, then you can put that data straight into the DCL script file.
After starting an executable, any line NOT starting with a $ sign is available as a file "sys$input:"
For example:
$ TYPE sys$input:
hello
world
$ EXIT
Now if the data is variable ( dynamic ) then is first needs to be written to a file (or pipe or maillbox ) and thne that file can be indicated as input stream.
Note: Be sure to check out : $ HELP DECK
Hope this helps,
Hein