Unsolved
This post is more than 5 years old
2 Intern
•
176 Posts
0
1956
May 23rd, 2011 13:00
Another command line request....
Is there a way to query a utility node to see when maint is scheduled?
Thanks....
Joe Despres
No Events found!
Unsolved
This post is more than 5 years old
2 Intern
•
176 Posts
0
1956
May 23rd, 2011 13:00
Is there a way to query a utility node to see when maint is scheduled?
Thanks....
Joe Despres
Top
arif_ahmad
20 Posts
1
May 23rd, 2011 13:00
In Avamar version 5 SP1 onwards, you may run status.dpn and see the output towards the end to see if the maint is STOPPED or running. It shows the time of each maint activity there. For example:
Maintenance windows scheduler capacity profile is active.
--Arif
rpervan
266 Posts
0
May 25th, 2011 02:00
Hello Joe,
Here is one small home made bash script for you ... hahaha
- Just touch a file name you wish (or something like "maintstatus") in "/usr/local/avamar/bin"
- chmod on file to get permission to execute ...
- start script with "maintstatus" without
<< snip >>
#!/bin/bash
OSType=`uname -s`
KernelRelease=`uname -r`
HostName=`hostname -f`
DateStamp=`date +%s`
AvaServerVers=`rpm -qa | grep dpnserver`
AvaServerIP=`hostname -i`
NumberOfNodes=`mccli server show-prop | grep "Number of nodes" | awk '{ print $4}'`
NextBackStartTime=`avmaint sched status --avamaronly --xmlperline=99 | grep "backup-window next-start-time"| awk '{ print $2}' | cut -c18-27`
NextBlackoutStartTime=`avmaint sched status --avamaronly --xmlperline=99 | grep "blackout-window next-start-time"| awk '{ print $2}' | cut -c18-27`
NextMaintStartTime=`avmaint sched status --avamaronly --xmlperline=99 | grep "maintenance-window next-start-time" | awk '{ print $2}' | cut -c18-27`
echo ' '
echo 'Status report for time stamp: ' $DateStamp
echo '----------------------------'
echo 'AVAMAR SERVER HOSTNAME:' $HostName ' OS type:' $OSType ' Kernel Release:' $KernelRelease
echo 'AVAMAR SERVER VERSION: ' $AvaServerVers ' Avamar Server IP:' $AvaServerIP ' Number of Storage Nodes:' $NumberOfNodes
echo ' '
echo 'Next backup window start time: '
t.pl $NextBackStartTime
echo '------------------------------------'
echo 'Next blackout window start time: ' i
t.pl $NextBlackoutStartTime
echo '------------------------------------'
echo 'Next maintenance window start time: '
t.pl $NextMaintStartTime
echo '------------------------------------'
echo ' '
<< snip >>
Cheers,
.r
jdespres
2 Intern
•
176 Posts
0
May 25th, 2011 14:00
Very cool.......
This has given me a few idea's....
Now I need to find a xml -to-> html converter
Thanks!
Joe Despres
rpervan
266 Posts
0
May 26th, 2011 04:00
jdespres,
any other wishes we could script maybe ?
rpervan
266 Posts
0
May 26th, 2011 04:00
Yes, there is a script from EMC which could be use for replication monitoring from shell ...
I will find it for you .
jdespres
2 Intern
•
176 Posts
0
May 26th, 2011 04:00
Do you have anything to monitor & manage replications ?
Thanks!
Joe Despres
rpervan
266 Posts
0
May 26th, 2011 05:00
> Do you have anything to monitor & manage replications ?
to monitor: https://community.emc.com/thread/121117?tstart=0
to manage there is EMS possibilities ... or create your own "replication" script
jdespres
2 Intern
•
176 Posts
0
May 26th, 2011 05:00
Dang............. Forgot about that one...
Thanks for the help!
Joe Despres