Re: [Networker] Savepnpc command

2008-05-18 10:33:16
Subject: Re: [Networker] Savepnpc command
From: Joris Soeurt <joris AT PEPPERNUTS DOT NL>
Date: Sun, 18 May 2008 04:47:06 -0400
>> I'm trying to use the savepnpc command to backup a export of a Windows IAS
>> (Radius) database, but I cannot get it to work.
>> I changed the backup command to savepnpc and edited the file: C:\Program
>> Files\Legato\nsr\res\Backup.res (I know, 'Backup' as name for a backup group
>> isn't the best name, but it just a test environment) to the following:
>> type: savepnpc;
>> precmd: "cmd.exe /C netsh.exe aaaa show config >
>> C:\Backup_Export\radius_config.txt";
>> pstcmd: "";
>> timeout: "12:00:00";
>> abort precmd with group: No;
>> The saveset of the client resource includes the directory: C:\Backup_Export
>> When I execute the command manually (start,run) it works perfectly, and
>> dumps the radius config to: C:\Backup_Export\radius_config.txt But when I
>> start the backup, the config output file doesn't appear. Does anyone know
>> what I'm doing wrong? If possible I would prefer this over using system save
>> sets. 

>You need double \\ instead of the single ones to make it work. This is due to
>the interpretation of strings in the C-language.
>Also think about the fact that the PATH will be the default PATH for the
>SYSTEM user at execution.


Thx for the help. I got it working using the following:


type: savepnpc;
precmd: "C:\\progra~1\\Legato\\nsr\\radius.bat";
pstcmd: "";
timeout: "12:00:00";
abort precmd with group: No;


c:\windows\system32\cmd.exe /C c:\windows\system32\netsh.exe aaaa show
config > C:\Backup_Export\radius_config.txt


Joris Soeurt

To sign off this list, send email to listserv AT listserv.temple DOT edu and 
type "signoff networker" in the body of the email. Please write to 
networker-request AT listserv.temple DOT edu if you have any problems with this 
list. You can access the archives at or
via RSS at

<Prev in Thread] Current Thread [Next in Thread>