5 Replies Latest reply on Jul 16, 2012 7:44 AM by Bill Robinson

    [ NSH ] How to check "BladeLogic authent status"

    Clement BARRET



      I got a nsh script that can either be run from a NSHScripJob or directly from a ssh terminal in a nsh shell environment.


      In the first case, the nsh script job is run from the BladeLogic console and thus the nsh script can directly use blcli_execute commands since it's already "registered" (or "authenticated") to BladeLogic.


      In the later case, I need to check if I'm not already "authenticated" before using some blcred commands to register my nsh agent and then be able to use blcli_execute commands...


      So I would like some piece of nsh code that would tell me if I'm already "logged" in BladeLogic or not.


      Any idea ?