Information

This site will undergo a brief period of maintenance on Thursday, 23 April at 2:30 AM Central/1:00 PM IST. During a 30 minute window, site availability may be intermittent.

Information
Unsupported content This version of the documentation is no longer supported. However, the documentation is available for your convenience. You will not be able to leave comments.

BlPackage - getPackageDateCreated


BlPackage - getPackageDateCreated

Description :

This command gets the date the package was created.

Return type : java.util.Date

Command Input :

Variable Name

Variable Type

Description

pkgPath

String

Path to the package.

pkgName

String

Name of the package.

Example

The following example compares the date a package was created to the most recent date the package was modified, to see if anyone has changed the package since it was first created.

Script





DATE_CREATED=`blcli BlPackage getPackageDateCreated /Depot/Packages "Test Package"`

DATE_MODIFIED=`blcli BlPackage getPackageDateCreated /Depot/Packages "Test Package"`

if [ "$DATE_MODIFIED" = "$DATE_CREATED" ]

then

echo "Package is in it's initial state"

else

echo "Package has been modified since creation"

fi



 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*

BMC Server Automation Command Line Interface 8.5