Hi

 

I successfully assigned the computer name P4300001 to a mac address with a CSV database. The system also gets his organization name.

 

But I can’t get it to get his OS_media automatically.

 

I use the following default code in config.pl :

 

# Lookup OS Directory from database, if possible.
$u->push_value ('_meta', 'OS_media',
sub {
my $os_dir = $u->{'_meta'}->{'OS_dir'};
defined $os_dir
or return undef;
my $os_media = lookup_property('OS_media');
defined $os_media
or return undef;
$os_media =~ /^[a-z]:/i
or $os_media = $os_dir . '\\' . $os_media;
opendir OSMEDIA, dos_to_host ($os_media)
or return undef;
closedir OSMEDIA;
return $os_media;
});

 

And this line in unattended.csv :

 

P4300001,OS_media ,z:\os\xpsp2

 

I also tried the value xpsp2.

 

When I hardcode it in config.pl it works (but of course that’s not what I want)

$u->push_value ('_meta', 'OS_media',
sub {
return 'z:\\os\\xpsp2';

);

 

 

Any ideas?

 

Xavier Douville

Reply via email to