[OpenAFS-devel] extract token from kernel, afsclient_TokenGetNew()
Alf Wachsmann
alfw@slac.stanford.edu
Fri, 14 Dec 2007 10:18:49 -0800 (PST)
On Fri, 14 Dec 2007, Adam Megacz wrote:
> Is there any way to retrieve the current PAG's token (ie the actual
> bytes) for a given cell from the cache manager?
You could use the AFS Perl module.
It has an example scripts that does exactly what you are asking for:
AFS-2.4.0/examples/v2/ktct/GetToken
and one that does the reverse:
AFS-2.4.0/examples/v2/ktct/SetToken
-- Alf.
-----------------------------------------------------------------------
Alf Wachsmann | e-mail: alfw@slac.stanford.edu
SLAC - Scientific Computing | Phone: +1-650-926-4802
2575 Sand Hill Road, M/S 97 | FAX: +1-650-926-3329
Menlo Park, CA 94025, USA | Office: Bldg. 50/323
-----------------------------------------------------------------------
http://www.slac.stanford.edu/~alfw (PGP)
-----------------------------------------------------------------------