Written by Suhas Savkoor
Here is a set of commands for various operations that you can perform from the SSH of the VDP appliance. I will update this article as I come across new commands.
dpnctl status all
//Sample output:
dpnctl: INFO: gsan status: up
dpnctl: INFO: MCS status: up.
dpnctl: INFO: emt status: up.
dpnctl: INFO: Backup scheduler status: up.
dpnctl: INFO: axionfs status: down.
dpnctl: INFO: Maintenance windows scheduler status: enabled.
dpnctl: INFO: Unattended startup status: enabled.
dpnctl: INFO: avinstaller status: up.
dpnctl: INFO: [see log file "/usr/local/avamar/var/log/dpnctl.log"]
status.dpn
//Sample output
Thu Apr 7 20:02:17 IST 2016 [vdp.vcloud.local] Thu Apr 7 14:32:17 2016 UTC (Initialized Mon Apr 4 18:47:03 2016 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 192.168.1.206 7.2.80-94 ONLINE fullaccess mhpu+0hpu+0hpu 1 false 0.38 3420 102774 0.6% 0%(onl:13 ) 0%(onl:12 ) 0%(onl:12 )
Srvr+Root+User Modes = migrate + hfswriteable + persistwriteable + useraccntwriteable
System ID: 1459795623@00:50:56:B9:6B:3C
All reported states=(ONLINE), runlevels=(fullaccess), modes=(mhpu+0hpu+0hpu)
System-Status: ok
Access-Status: full
Last checkpoint: cp.20160407033314 finished Thu Apr 7 09:03:33 2016 after 00m 19s (OK)
Last GC: finished Thu Apr 7 08:00:39 2016 after 00m 16s >> recovered 64.05 MB (OK)
Last hfscheck: finished Thu Apr 7 09:03:05 2016 after 02m 01s >> checked 32 of 32 stripes (OK)
Maintenance windows scheduler capacity profile is active.
The backup window is currently running.
Next backup window start time: Fri Apr 8 20:00:00 2016 IST
Next maintenance window start time: Fri Apr 8 08:00:00 2016 IST
capacity.sh
//Sample output
Date New Data #BU Removed #GC Net Change
---------- ---------- ----- ---------- ----- ----------
2016-04-04 1047 mb 1 0 mb 1047 mb
2016-04-05 3311 mb 4 0 mb 1 3311 mb
---------- ---------- ----- ---------- ----- ----------
Average 2179 mb 0 mb 2179 mb
Top 3 High Change Clients:
--------------------------
Total for all clients 4358 mb 100.0%
Windows_2008_UDmaxWmHw0pC0PB5bXgAKg 3306 mb 75.8%
CentOS7_UDlmW0iZnAAWleQvAdTtog 1052 mb 24.2%
mccli activity show
//Sample output
ID Status Error Code Start Time Elapsed End Time Type Progress Bytes New Bytes Client Domain
---------------- ------- ---------- -------------------- ----------- -------------------- ---------------- -------------- --------- ------------ ----------------------------
9146003975305509 Running 0 2016-04-07 20:05 IST 00h:00m:16s 2016-04-08 20:05 IST On-Demand Backup 0 bytes 0% Windows 2008 /192.168.1.1/VirtualMachines
mccli activity get-log --id=XXXXXXXXXX
mccli activity cancel --id=XXXXXXXXXX
//Sample output
0,22205,Backup cancelled via console
Attribute Value
----------- ----------------
activity-id 9146003975305509
mccli client show --recursive=true
//Sample output
Client Domain Client Type
---------------- ---------------------------- ------------------------------------
Windows 2008 /192.168.1.1/VirtualMachines Virtual Machine
192.168.1.1 /192.168.1.1 vCenter
vdp.vcloud.local /clients VMware Image Proxy with Guest Backup
mccli backup show --name=/vCenter/VirtualMachines/VirtualMachine_Name --recursive=true
//Sample Command
mccli backup show --name=/192.168.1.1/VirtualMachines/CentOS7 --recursive=true
//Sample Output
Created LabelNum Size Retention Hostname Location
----------------------- -------- ------- --------- ---------------- --------
2016-04-07 20:31:34 IST 1 16.0 GB DWMY vdp.vcloud.local Local
mccli client backup-dataset --name=VM_NAME --domain=/VM/DOMAIN
//Sample Command:
mccli client backup-dataset --name="Windows 2008" --domain=/192.168.1.1/VirtualMachines
//Sample output
Attribute Value
----------- -----------------------------------------
client /192.168.1.1/VirtualMachines/Windows 2008
activity-id 9146004043408409
dataset /VMware Image Dataset
cplist
//Sample output
cp.20160407033040 Thu Apr 7 09:00:40 2016 valid rol --- nodes 1/1 stripes 37
cp.20160407033314 Thu Apr 7 09:03:14 2016 valid --- --- nodes 1/1 stripes 37
mccli server show-prop
//Sample output
Attribute Value
-------------------------------- ----------------------------
State Full Access
Active sessions 1
Total capacity 575.9 GB
Capacity used 5.3 GB
Server utilization 0.9%
Bytes protected 0 bytes
Bytes protected quota Not configured
License expiration Never
Time since Server initialization 2 days 20h:04m
Last checkpoint 2016-04-07 09:03:14 IST
Last validated checkpoint 2016-04-07 09:00:40 IST
System Name vdp.vcloud.local
mccli server show-services
//Sample output
Name Status
---------------------------------- ---------------------------
Hostname vdp.vcloud.local
IP Address 192.168.1.206
Load Average 0.31
Last Administrator Datastore Flush 2016-04-07 19:45:00 IST
PostgreSQL database Running
Web Services Error
Web Restore Disk Space Available 266,182,888K
Login Manager Running
snmp sub-agent Disabled
ConnectEMC Disabled
snmp daemon Disabled
ssh daemon Running
Data Domain SNMP Manager Not Running
Remote Backup Manager Service Running
RabbitMQ Not Running
Replication cron job Not Running
/192.168.1.1 All vCenter connections OK.
emwebapp.sh --restart / --stop / --start//Command to restart tomcat service for VDP. If this service is stopped you cannot connect VDP to Web Client or access VDP GUI page on 8543.
//Sample successful start
INFO: Copying CST libs to tomcat
Administrator Server is not running.
Starting the database server.
Waiting for postmaster to start ...Started
No script specified
Database server is still running...
Starting tomcat
/usr/local/avamar-tomcat/bin/startup.sh
Using CATALINA_BASE: /usr/local/avamar-tomcat
Using CATALINA_HOME: /usr/local/avamar-tomcat
Using CATALINA_TMPDIR: /usr/local/avamar-tomcat/temp
Using JRE_HOME: /usr/java/latest
Using CLASSPATH: /usr/local/avamar-tomcat/bin/bootstrap.jar:/usr/local/avamar-tomcat/bin/tomcat-juli.jar
Using CATALINA_PID: /usr/local/avamar-tomcat/avamar-tomcat.pid
Tomcat started.
dpnctl start gsan / mcs / axionfs
avmaint hfscheck --ava --full//To run a full integrity check on your VDP appliance
//Sample successful output
<hfscheck
checkpoint="cp.20160407033314"
status="waitcgsan"
type="full"
checks="full"
elapsed-time="70"
start-time="1460064369"
end-time="0"
check-start-time="0"
check-end-time="0"
generation-time="1460064439"
percent-complete="0.00">
<hfscheckerrors/>
</hfscheck>
avmaint hfscheckstatus --ava//To check hfscheck status. This tells the last cp that was created during the integrity check and the status.
//Sample output
checkpoint="cp.20160407033314"
status="completed"