mmclidecode command

Decodes the parseable command output field.

Synopsis

mmclidecode EncodedString

Availability

Available on all IBM Spectrum Scale editions.

Description

The parseable output of a command might contain a colon (:) which interferes with the field delimiter character colon (:) of the command output. Therefore, the filed output that might contain colon needs to be encoded. Since, Percent-encoding, also known as URL encoding, is used to encode the output fields, the characters in the following table are also encoded if present in the output field.

Character Encoded text
! %21
# %23
$ %24
& %26
' %27
( %28
) %29
* %2A
+ %2B
, %2C
/ %2F
: %3A
; %3B
= %3D
? %3F
@ %40
[ %5B
] %5D

The output fields can be decoded using the mmclidecode command.

Note: If you run the mmclidecode command on non-encoded strings, the command leaves them intact.

Parameters

EncodedString
The encoded string to decode.

Exit status

0
Successful completion.
Nonzero
A failure occurred.

Security

The mmclidecode execution does not require root user.

Examples

  1. The date is encoded due to the presence of colon (:). It can be decoded as:
    mmclidecode "Mon Jan 30 10%3A43%3A29 2017"
    Mon Jan 30 10:43:29 2017
  2. The encoded path is decoded as follows:
    mmclidecode "%2Fmnt%2Fgpfs0"
    /mnt/gpfs0

Location

/usr/lpp/mmfs/bin