Aix alatt a smit segédprogram log fájljából sok hasznos információt kinyerhetünk.
smit.log helye: /smit.log
Stop a Print Queue
/usr/bin/enq -D -P 'scabc:@scabc'
Start a Print Queue
/usr/bin/enq -U -P 'scabc:@scabc'
-D
Device DOWN. Turns off the device associated with the queue.
-P Queue
Specifies the queue to which the job is sent. A particular device
on a queue can be specified by typing -P Queue:Device.
-U
Brings UP the device associated with a queue.
A következő címkéjű bejegyzések mutatása: Unix. Összes bejegyzés megjelenítése
A következő címkéjű bejegyzések mutatása: Unix. Összes bejegyzés megjelenítése
2009. július 20., hétfő
2009. június 30., kedd
Converting Unix Timestamps
If you import data you might encounter time values stored as Unix timestamps. Unix time is defined as the number of seconds since midnight (GMT time) on January 1, 1970 -- also known as the Unix epoch.
For example, here's the Unix timestamp for August 4, 2008 at 10:19:08 pm (GMT):
1217888348
To create an Excel formula to convert a Unix timestamp to a readable data and time, start by converting the seconds to days. This formula assumes that the Unix timestamp is in cell A1:
=(((A1/60)/60)/24)
Then, you need to add the result to the date value for January 1, 1970. The modified formula is:
=(((A1/60)/60)/24)+DATE(1970,1,1)
Finally, you need to adjust the formula for the GMT offset. For example, if you're in New York the GMT offset is -5. Therefore, the final formula is:
=(((A1/60)/60)/24)+DATE(1970,1,1)+(-5/24)
A simpler (but much less clear) formula that returns the same result is:
=(A1/86400)+25569+(-5/24)
Both of these formulas return a date/time serial number, so you need to apply a number format to make it readable as a date and time.
Forrás: Spreadsheetpage.com
For example, here's the Unix timestamp for August 4, 2008 at 10:19:08 pm (GMT):
1217888348
To create an Excel formula to convert a Unix timestamp to a readable data and time, start by converting the seconds to days. This formula assumes that the Unix timestamp is in cell A1:
=(((A1/60)/60)/24)
Then, you need to add the result to the date value for January 1, 1970. The modified formula is:
=(((A1/60)/60)/24)+DATE(1970,1,1)
Finally, you need to adjust the formula for the GMT offset. For example, if you're in New York the GMT offset is -5. Therefore, the final formula is:
=(((A1/60)/60)/24)+DATE(1970,1,1)+(-5/24)
A simpler (but much less clear) formula that returns the same result is:
=(A1/86400)+25569+(-5/24)
Both of these formulas return a date/time serial number, so you need to apply a number format to make it readable as a date and time.
Forrás: Spreadsheetpage.com
2009. május 11., hétfő
Aix system-backup
Backup készítése szalagra
parancssorosan:
/usr/bin/mksysb -i /dev/rmt0
smit programmal:
System Storage Management (Physical & Logical Storage)
System Backup Manager
Back Up the System
Back Up This System to Tape/File
Backup DEVICE or FILE [/dev/rmt0]
parancssorosan:
/usr/bin/mksysb -i /dev/rmt0
smit programmal:
System Storage Management (Physical & Logical Storage)
System Backup Manager
Back Up the System
Back Up This System to Tape/File
Backup DEVICE or FILE [/dev/rmt0]
Feliratkozás:
Bejegyzések (Atom)