- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: Getting "Device Offline" status from DCL
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
тАО04-23-2007 04:38 AM
тАО04-23-2007 04:38 AM
I'm trying to determine if a disk is Offline from within a DCL script. Looks like F$GETDVI returns this with either the DEVDEPEND or DEVDEPEND2 keyword, but not being familiar with system service calls I can't figure out which of the above keywords to use, and which bit within that keyword gives me what I want (seems to be related to the SS$_DEVOFFLINE status word). Can someone help? TIA
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-23-2007 05:00 AM
тАО04-23-2007 05:00 AM
Re: Getting "Device Offline" status from DCL
regards Kalle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-23-2007 05:55 AM
тАО04-23-2007 05:55 AM
Re: Getting "Device Offline" status from DCL
I get a TRUE return for both EXISTS & AVL on an Offline disk.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-23-2007 06:15 AM
тАО04-23-2007 06:15 AM
SolutionFrom DCL (replacing 'disk' with whatever you find appropriate
$ pipe libr/extr=$ucbdef/out=sys$output sys$share:lib.mlb | -
sear sys$pipe ucb$m_online
$ ucb$m_online = %x10
$ disk = "DKA0"
$ if (f$getdvi(disk,"sts") .and. UCB$M_ONLINE) .ne. UCB$M_ONLINE -
then write sys$output "''disk' is offline"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-23-2007 06:23 AM
тАО04-23-2007 06:23 AM
Re: Getting "Device Offline" status from DCL
"AVL" corresponds to whether or not the device has been declared AVAILABLE/NOAVAILABLE( SET DEVICE/[NO]AVAILABLE).
Have you tried path_available or path_not_responding to see what you get from those? You may well have to extract it from the DEVDEPEND* fields. I found this:
UCB$L_DK_DEVOFFLINE = 804,0,32,1 %; ! SS$_DEVOFFLINE ...
The contents of the DEVDEPEND* are defined under each of the drivers in the IO User's Reference Manual. I suspect you will want to consult that manual.
Robert
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-23-2007 06:47 AM
тАО04-23-2007 06:47 AM
Re: Getting "Device Offline" status from DCL
$ search sys$share:*.req ucb$m_online
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-23-2007 07:28 PM
тАО04-23-2007 07:28 PM
Re: Getting "Device Offline" status from DCL
A simple packack program e.g. in
< http://wwwvms.mppmu.mpg.de/~huber/util/main/packack.for >