- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- DFU Results Symbol Creation
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
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
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
тАО03-13-2006 11:16 AM
тАО03-13-2006 11:16 AM
results of cmds such as: DFU sea/ver=min=20000?
It would be useful to know if there is at
least one match without having to parse
a log file. Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-13-2006 11:37 AM
тАО03-13-2006 11:37 AM
SolutionRunning DFU V2.7-A (old?), I can't find any symbols or logical names defined after a DFU SEARCH command. $STATUS is SS$_NORMAL regardless of the number of files found.
>at least one match without having
>to parse a log file.
With PIPE you never have to parse a log file again! ;-) The following pipeline will define the JOB logical name FOUND with the number of files found:
$ DEFINE DFU$NOSMG TRUE ! don't do SMG output
$ PIPE MCR DFU SEARCH/VERSION=MIN=20000 | -
SEARCH SYS$PIPE "%DFU-S-FND" | -
(READ SYS$PIPE LINE ; -
found=F$ELEMENT(0,",",F$ELEMENT(1,":",line)) ; -
DEFINE/JOB/NOLOG FOUND &FOUND)
Now test the logical name:
$ IF 'F$TRNLNM("FOUND").GT.0
$ THEN
$ ! At least one match
$ ELSE
$ ! no matches
$ ENDIF
Somewhere in the DFU docs there's an email address to send enhancement requests.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-13-2006 03:41 PM
тАО03-13-2006 03:41 PM
Re: DFU Results Symbol Creation
With perl a similar problem would be solved with:
$ perl -e "foreach (`dir/tot `) { $ENV{TEMP}=$1 if /of (\d+)/}"
$ show log temp
"TEMP" = "170" (LNM$PROCESS_TABLE)
The (untested) DFU example is probably:
$ perl -e "foreach (`DFU SEARCH/VERSION=MIN=20000`) { $ENV{FOUND}=$1 if /found : (\d+)/}"
Moreover, you could readily do stuff with the strings found.
fwiw,
Hein.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-14-2006 12:20 AM
тАО03-14-2006 12:20 AM
Re: DFU Results Symbol Creation
Please see my reply under:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1008543
Robert
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-14-2006 04:43 AM
тАО03-14-2006 04:43 AM
Re: DFU Results Symbol Creation
John - I use PIPE lots for this sort of thing. Just wanted to see if there was another way.
Hein - You seem to be a 1-man bandwagon for getting more people to use Perl! I'll have to spend more time with it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-19-2006 12:02 PM
тАО03-19-2006 12:02 PM
Re: DFU Results Symbol Creation
Ah, I missed this comment.
Yeah, I realize it's not too popular within VMS circles to talk perl, awk, or... shudder... vi. But hese things have their purposes.
I was semi-forced to do Unix for a while (actually, still do) be decided NOT to learn a SHell, as none of those can not compete with DCL (can they now?)
I opted to learn perl a little and it has served me well under Tru64, HPUX, Linux, as well as windows and OpenVMS.
I feel I am the right person to show Perl as an option because (I'd like to think that) folks know I know DCL inside out.
Some times DCL is more efficient (when many commands are issued), many times Perl or Awk is advantageous (when the script is mostly about data/text processing).
Cheers,
Hein.