Unsolved

This post is more than 5 years old

5 Posts

2698

September 3rd, 2008 08:00

Command line restores using avamar 3.7.1-100

Hello everyone.

I have another question that hopefully someone has an answer for, but first a little back story so people know where I'm coming from. I have a directory that is being backed up (from a Solaris 10 box) but I'm having trouble restoring from. It's actually not a problem with restoring - but rather the GUI blows up whenever I attempt to browse the directory so I can then select the file and restore. However, I do know the file is being backed up, as I can search for the file and find the different revisions of the file. (I have a ticket on the GUI error, so I'm not really asking about that - I'll let tech support take care of that one, particularly since I suspect it would take a new administration client to fix).

Does anyone know of a command line reference for Avamar? Ideally, I would like the ability to browse backups using the command line, but right now I'd settle for the ability to restore files using the command line. In digging around, I have this as an example command. (Not for the solaris box, I'm starting with something a little more basic for testing purposes.)

mccli snapup restore --data=f:\profiles\scripts\dwc.bat --dest-dir=f:\profiles\scripts\ --domain=Deerwood --labelNum=191 --name=dwc-staff-01.fccj.org --plugin=

So far, everything seems fairly straight forward, but I can't find any sort of listing for the plugins. Being windows and ntfs, I was imagining the plugin number would be fairly straightforward, and likely one of the first plugins developed (Yeah, I know - a windows bias, so sue me ;) ). With that in mind, I started at 0 and worked up to 5 or 6. But it didn't work.

So, I suppose I'm stating that I'll even take a listing of the plugin numbers if I can't get an entire command reference.

Thanks!

Bill

6 Operator

 • 

14.4K Posts

 • 

56.2K Points

September 4th, 2008 04:00

Out of curiosity, your GUI restore was done via admin GUI or Web Restore interface?

As for CLI, I never used that for restore with Avamar so I really don't know, but I believe plugins I had to choose when defining policy thus I would suspect you would list same plugin as you used for backup (actually that would be file system which would be on target and I would expect Avamar to be intelligent enough that it is using same plugin as for backup if restoring to the same client thus you would not need to list it in first place).

5 Posts

September 4th, 2008 07:00

It's done (or was attempted) via the admin GUI. Honestly, it never occurred to me to try it from the web page. I used that one, and still got the same error as my locally installed client (event code 21007 - Internal administrator client error).

I'm sure you're correct about the plugin, you're primarily choosing the filesystem you're using for the backups and restores - but the command seemed to be asking for a plugin number rather than a name, and I didn't really have a good guess as to what that might be.

5 Posts

September 4th, 2008 08:00

Actually, I was questioning if I was correct that it was looking for a number, so I tried the following command line

mccli snapup restore --data=f:\profiles\scripts\dwc.bat --dest-dir=f:\profiles\scripts\ --domain=Deerwood --labelNum=191 --name=dwc-staff-01.fccj.org --plugin="Windows File System"

And I got the following result.

1,23009,Invalid plugin specified on the CLI.
Attribute Value
--------- ---------------------------------
error Invalid plug-in number specified.

This error message really gives you a better description than the Event code listing

CODE : 23009
GENERATED BY : MCS:CR
SUMMARY : INVALID PLUGIN SPECIFIED ON THE CLI.
CATEGORY : SYSTEM
TYPE : WARNING
SEVERITY : 2:PROCESS
DESCRIPTION :
FOR WHOM : FIELD SUPPORT PERSONNEL
REMEDY : NO ACTION REQUIRED.

Message was edited by:
BillV
(copied code 23010 rather than the correct one)

5 Posts

September 15th, 2008 11:00

I noticed that there's a plugin section of mccli and naturally it made me think of this issue I had in the past.

If you enter the command: 'mccli plugin show' you will get a list of the plugins recognized by the catalog (with this in mind, I suppose I could have simply looked at the catalog file itself). Tools -> Manage agents and plugins seems to basically show you everything except the plugin number itself. You can then grep the output (or simply dump it to a file that you can look through later) and look for the plugin name you're looking for.

For instance, the "Windows File System" that I'm looking for here is plugin number 3001 (which, so far, is consistent across all versions of this type of plugin - regardless of the avamar client version. "Windows Oracle RMAN" is plugin 3002.)

Ultimately, this game me the updated command line of:

mccli snapup restore --data=f:/profiles/scripts/dwc.bat --dest-dir=f:/profiles/scripts --domain=Deerwood --labelNum=179 --name=dwc-staff-01.fccj.org --plugin=3001

You will notice that the slash is the opposite of your standard windows path (most likely a result of Avamar itself being Unix based).

6 Operator

 • 

14.4K Posts

 • 

56.2K Points

September 21st, 2008 04:00

In NetWorker world in past we also had issues with backslash.... so perhaps with Avamar using F:\\profiles\\scripts\\dwc.bat would work to... I really have no idea. I might need to test it next week when I plan to install demo box.
No Events found!

Top