[Veritas-bu] vmquery
2001-08-24 19:11:44
Here's a snippet from an old email.
Haven't tried it, haven't had to yet...but sounds like a winner.
Good luck
David
-----Original Message-----
From: veritas-bu-admin AT Eng.Auburn DOT EDU
[mailto:veritas-bu-admin AT Eng.Auburn DOT EDU]On Behalf Of Rodrigo Pereira
Sent: Thursday, March 08, 2001 2:42 PM
To: 'Zufall, Ken'; 'Tim Allen'; veritas-bu AT mailman.eng.auburn DOT edu
Subject: RE: [Veritas-bu] converting unix time
If you really need to do that, you can use the gnu date utility. You can
download the source code at http://www.ibiblio.org/pub/gnu/sh-utils/. The
syntax is:
date -d "MM/DD/YYYY HH:MM:SS" "+%s"
Hope that helps.
Rod.
-----Original Message-----
From: Zufall, Ken
Sent: Wednesday, March 07, 2001 6:40 PM
To: 'Tim Allen'; veritas-bu AT mailman.eng.auburn DOT edu
Subject: RE: [Veritas-bu] converting unix time
/usr/openv/netbackup/bin/bpdbm -ctime unix_time
This is the command to use, am unaware of any scripts that might do the same
thing.
Now, here's a question for everyone: How do you convert date/time format to
unix time?
Ken Zufall
Technical Analyst
Phone: 216.471.3613
Pager: 440.303.1656
Fax: 216.491.4051
<><><><><><><><><><><><><><><><><><><><>
David A. Chapa
Consulting Manager
DataStaff, Inc.
847 413 1144
http://www.consulting.datastaff.com
---------------------------------------
NBU-LSERV AT datastaff DOT com - Adv. Scripting
http://www.xbpadm-commands.com
-----Original Message-----
From: veritas-bu-admin AT mailman.eng.auburn DOT edu
[mailto:veritas-bu-admin AT mailman.eng.auburn DOT edu]On Behalf Of ADAM
Sent: Friday, August 24, 2001 5:23 PM
To: Veritas-Bu (E-mail)
Subject: [Veritas-bu] vmquery
Out of curiosity don't know how to convert to UNIX time? here what I am
looking for :
I can do this:
$bpdbm -ctime 897897865
897897865 = Mon Jun 15 04:04:25 1998
But how can I convert "Mon Jun 15 04:04:25 1998" back to "897897865"? The
reason that I am asking because I am using the command vmquery to reassign
media to an other pool:
Example:
$vmquery -m media_id (to get the pool_number the status 0,1,2)
$vmquery -deassignbyid <media_id> <pool_number> <status>
$vmquery -assignbyid <media_id> <media_type> <pool_number> <status>
<assigntime>
and here where get stuck assigntime it must be a UNIX time.
Your help is appreciated.
Thanks
Adam
_______________________________________________
Veritas-bu maillist - Veritas-bu AT mailman.eng.auburn DOT edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu
|
|
|