Tuesday, 10 June 2014

Checking the status of your Avamar node from the CLI

Checking the status of your Avamar node can be done with a few simple commands via a telnet client. To check the current status of the node run "dpnctl status".

AVAMARNODE:~/#: dpnctl status
Identity added: /home/dpn/.ssh/dpnid (/home/dpn/.ssh/dpnid)
dpnctl: INFO: gsan status: up
dpnctl: INFO: MCS status: up.
dpnctl: INFO: EMS status: up.
dpnctl: INFO: Backup scheduler status: up.
dpnctl: INFO: dtlt status: up.
dpnctl: INFO: Maintenance windows scheduler status: enabled.
dpnctl: INFO: Unattended startup status: enabled.

Everything should be "up" and the maintenance windows enabled unless your have deliberately disabled them to perform e.g. An out of schedule garbage collection.

The next command "status.dpn" will give us the system-status, access-status, checkpoint, garbage collection & hfscheck statuses. Use this command to confirm your maintenance activities have run correctly. If they haven't run you'll need to investigate the logs.

AVAMARNODE:~/#: status.dpn
Tue Jun 10 17:34:57 EST 2014  [AVAMARNODE] Tue Jun 10 07:34:57 2014 UTC (Initialized Thu Jun 27 02:17:56 2013 UTC)
Node   IP Address     Version   State   Runlevel  Srvr+Root+User Dis Suspend Load UsedMB Errlen  %Full   Percent Full and Stripe Status by Disk
0.0     xxx.xxx.xxx.xxx   x.x.x-xxx  ONLINE fullaccess mhpu+0hpu+0hpu   1 false   0.21 30737  3921868  20.4%  20%(onl:1777) 20%(onl:1772) 20%(onl:1779) 20%(onl:1769) 20%(onl:1772) 20%(onl:1770)
Srvr+Root+User Modes = migrate + hfswriteable + persistwriteable + useraccntwriteable

All reported states=(ONLINE), runlevels=(fullaccess), modes=(mhpu+0hpu+0hpu)
System-Status: ok
Access-Status: full

Last checkpoint: cp.20140609233540 finished Tue Jun 10 09:39:21 2014 after 03m 41s (OK)
Last GC: finished Tue Jun 10 17:06:24 2014 after 14m 52s >> recovered 10.69 GB (OK)
Last hfscheck: finished Tue Jun 10 09:35:09 2014 after 26m 20s >> checked 3635 of 3635 stripes (OK)

Maintenance windows scheduler capacity profile is active.
  The maintenance window is currently running.
  Next backup window start time: Tue Jun 10 18:00:00 2014 EST
  Next blackout window start time: Wed Jun 11 06:00:00 2014 EST
  Next maintenance window start time: Wed Jun 11 09:00:00 2014 EST

How to find the serial number of your Avamar node from the CLI

Note: All commands are run from the CLI using putty or some other telnet/ssh terminal.

For Avamar Datastore Gen 2 and Gen 3 nodes

/usr/bin/omeport chassis frontpanel | grep "LCD Line"

For Avamar Gen 2 and Gen 3 nodes setup in a RAIN array connect to the Utility node and run

mapall --all+ --quiet '/usr/bin/omreport chassis frontpanel | grep "LCD Line 1" | sed "s/^.*: *\(.*\)/\1/"'

For Avamar Datastore Generation 4 nodes

/usr/bin/ipmitool fru print 0 | grep "Product Asset Tag" | sed "s/^.*: *\(.*\)/\1/"

For Avamar Gen 4 nodes in RAIN array connect to the Utility node and run

mapall --noerror --user=root --nodes=all+ --quiet 'echo `hostname -i`": "`/usr/bin/ipmitool fru print 0 | grep "Product Asset Tag" | sed "s/^.*:\s\(.*$\)/\1/"`'

The serial number will be the first part of the result. You will also receive the IP address of the node.

Avamar default passwords

To access an Avamar node use a telnet/ssh client such as putty all the default passwords are below:

avamar_passwords.jpg

You should have changed your default passwords with the EMC engineer during the installation process. If not change them!

Introduction

I've been working with Avamar for over 5 years, It's now time to share some of the quirky commands and knowledge I've acquired over the years.

For those of you new to Avamar you'll fall in love with the Avamar Administrator while also loosing some hair ;) but after a while you'll get used to the quirks and realise the CLI is your friend and much faster than the GUI.

I hope the tips and commands I share help you in some way.

Enjoy.

Jason