Video Screencast Help
Give us your opinion and win with Symantec! Please help us by taking this survey to tell us about your experience with Symantec Connect, so that we can continue to grow and improve.  Take the survey.

Searching for ESm agents using command line

Created: 22 Sep 2011 • Updated: 23 Sep 2011 | 4 comments
This issue has been solved. See solution.

How can I search agents using command line of ESM or show agent command  if I know  server name partly only .

for example I want to search servers with name starting with serveruk* in domain

Thanks in advance


Discussion Filed Under:

Comments 4 CommentsJump to latest comment

crazyesm's picture

Thanks for the reference ,but I'm looking for a command line search not a graphical search

Vighnesh's picture


Using ESM's command line utility (esmc) in batch mode you can achieve this in the following way. I am giving an example of the script for Solaris SPARC.

bash# /esm/bin/solaris-sparc/esmc -m <ESMMANAGER> -U $ESMUSER -P $ESMPWD show agents | grep <options> <agent-regular-exp>

for example bash# /esm/bin/solaris-sparc/esmc -m <ESMMANAGER> -U $ESMUSER -P $ESMPWD show agents | grep -i "serveruk*"

Hope this helps.

crazyesm's picture

Thanks actually I haven't thought of using OS command in conjunction with ESM CLI .

basicall I was trying to find any option in ESM CLI itself.

I think this will solve my prob..