Media Flow Controller CLI Commands : namespace : (namespace) object list | delete | revalidate

(namespace) object list | delete | revalidate
namespace <name> object {list | delete | revalidate} {all | <URI> | pattern} [<domain>] [<port>]
EXEC command. Perform a list or delete operation on the contents in a namespace, or use revalidate all to validate the contents of the cache present under the namespace; from the time when issued, Media Flow Controller serves the content to the client only after re-validating the content with the origin. All objects stored by Media Flow Controller, RAM cache and disk cache, are stored as UUID:/uri/filename, this command derives the UUID from the specified namespace.
Note! The domain and port options only apply to namespaces with proxy-mode mid-tier or proxy-mode virtual. This way, objects cached for a given domain or domain and port are listed rather than all objects irrespective of domain.
Example namespace configuration and object list | delete actions:
namespace ns1
domain example.com
match uri /abc
Suppose your URL is http://example.com/abc/def/file.flv. To list an object and get its characteristics, issue the following command:
namespace ns1 object list /abc/def/file.flv
To delete an object with the same URL as above:
namespace ns1 object delete /abc/def/file.flv
To delete all the objects in that namespace’s disk cache with the same URL as above:
namespace ns1 object delete all
To list all objects in a disk cache and create a file named with the UUID of the namespace use the command below. In the example, if the namespace had a UUID of 80213A2C, the file containing the list is 80213A2C.lst. Use the upload command to view the file.
namespace ns1 object list all
You can also list and delete based on patterns. For example; you can specify *.flv as a pattern. Media Flow Controller doesn’t support a full Regular Expression for deleting or listing. The command namespace ns1 object list all is equivalent to namespace ns1 object list /abc/def/*.
Note! For Release 2.0.2, only the asterisk (*) wildcard is available for pattern use. Asterisk (*) matches zero or more characters of any kind as indicated above.
Example output for namespace test_ns object list all:
Objects in cache for namespace : test_ns
---------------------------------------------------------------------------
*Loc Size(KB) Expiry URL
*--------------------------------------------------------------------------
RAM 512 Tue Nov 24 01:59:13 2009 example.local:80/tmp/ram/data/test.0.flv
RAM 512 Tue Nov 24 01:59:14 2009 example.local:80/tmp/ram/data/test.4.flv
RAM 512 Tue Nov 24 01:59:13 2009 example.local:80/tmp/ram/data/test.3.flv
RAM 512 Tue Nov 24 01:59:14 2009 example.local:80/tmp/ram/data/test.5.flv
*Loc Size(KB) Expiry URL
*--------------------------------------------------------------------------
dc_1 512 Tue Nov 24 01:59:14 2009 example.local:80/tmp/ram/data/test.4.flv
dc_1 512 Tue Nov 24 01:59:13 2009 example.local:80/tmp/ram/data/test.3.flv
dc_1 512 Tue Nov 24 01:59:14 2009 example.local:80/tmp/ram/data/test.5.flv
dc_1 512 Tue Nov 24 01:59:14 2009 example.local:80/tmp/ram/data/test.6.flv

Report an Error
Media Flow Controller Administrator's Guide and CLI Command Reference
Copyright © 2010 Juniper Networks, Inc.