Hi,
I am writing a DCL procedure to mount via nfs tcp(5.1) version a disk
on a remote server.
$ TCPIP MOUNT DNF0: /HOST="K9" /PATH="/DISKx"
How does one obtain the next DNFx number that is used, as each time
you mount a disk it uses a uses the next number.
If is try and force to to dnf10: it just start from 10 again.
I know I could use do something like:-
$ def sys$output t.tmp
and then read in the line to find out what device it has use, but this
look very messy..
mark
|
|
0
|
|
|
|
Reply
|
mb301 (68)
|
12/2/2003 1:44:27 PM |
|
"MB" <mb301@hotmail.com> wrote in message news:1d08b916.0312020544.4f254fcf@posting.google.com...
> $ TCPIP MOUNT DNF0: /HOST="K9" /PATH="/DISKx"
>
> How does one obtain the next DNFx number that is used, as each time
> you mount a disk it uses a uses the next number.
It's usually best to avoid trying to get physical device names to do want you
want. Is there any reason why you can't just use the logical name parameter
on the mount?
|
|
0
|
|
|
|
Reply
|
R.Brodie (551)
|
12/2/2003 2:00:41 PM
|
|
Add a logical name to your mount command! Use the logical name to refer
to that mount. I can't think of a single instance in which you would
need the DNF number.
Using a physical device name, particularly for a disk, is just asking
for trouble!
MB wrote:
>Hi,
>
>I am writing a DCL procedure to mount via nfs tcp(5.1) version a disk
>on a remote server.
>
>$ TCPIP MOUNT DNF0: /HOST="K9" /PATH="/DISKx"
>
>How does one obtain the next DNFx number that is used, as each time
>you mount a disk it uses a uses the next number.
>
>If is try and force to to dnf10: it just start from 10 again.
>
>I know I could use do something like:-
>
>$ def sys$output t.tmp
>and then read in the line to find out what device it has use, but this
>look very messy..
>
>
>
>mark
>
>
|
|
0
|
|
|
|
Reply
|
rgilbert88 (4359)
|
12/3/2003 12:45:48 PM
|
|
Can anyone explain the following:-
Why do the lexical functions work for a UNIX server and not for
OpenVMS server running the same o/s (7.2-1) and tcpip 5.1 (eco+5)
$ SH DEV DN
Device Device Error Volume Free
Trans Mnt
Name Status Count Label Blocks
Count Cnt
DNFS0: (DOG) Online 0
DNFS2: (DOG) Mounted 0 UNX:/ 71707088
1 1
DNFS35: (DOG) Mounted 0 ALPHA1:/ *********
1 1
$ FREE=F$GETDVI("DNFS35:","FREEBLOCKS")
$ SH SYM FREE
FREE = 1000000000 Hex = 3B9ACA00 Octal = 07346545000
$ MAX=F$GETDVI("DNFS35:","MAXBLOCK")
$ SH SYM MAX
MAX = 8388608 Hex = 00800000 Octal = 00040000000
This looks like a limitation.....
Any ideas anyone????
|
|
0
|
|
|
|
Reply
|
mb301 (68)
|
12/3/2003 2:47:51 PM
|
|