cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot connect to a host to retrieve logs

I cannot connect to a host to retrieve logs using SCP. I receive the following error: NotOk Testing for directory /var/opt/ericsson/smrsstore/CORE/EVENT/GMSC/AUB1GSP/ALOG failed.

Labels (2)
7 Replies
akerr Reliable Contributor
Reliable Contributor
Report Inappropriate Content
Message 2 of 8

Re: Cannot connect to a host to retrieve logs

Check for more detailed errors on the receiver where the data source is applied.  Could be an incorrect username/password, or perhaps strick host checking is on.

Re: Cannot connect to a host to retrieve logs

It is not an incorrect username/password. I know how that error looks like. This is the error: NotOk cannot list /var/opt/ericsson/smrsstore/CORE/EVENT/GMSC/AUB1GSP/ALOG. It is a SCP File Retrieval. I have tried from CLI to SCP the files and it is working. But from the GUI I receive the above error. Is there a place where I can find more detailed log? Where should I be looking for them?

Thanks

akerr Reliable Contributor
Reliable Contributor
Report Inappropriate Content
Message 4 of 8

Re: Cannot connect to a host to retrieve logs

The web interface does not provide accurate error messages in a lot of cases.  

 

When you try from the CLI, what CLI?  The ESM, receiver?  Are you running a combo box?

On the receiver, look for errors relating to what you're trying to do in /var/log

Re: Cannot connect to a host to retrieve logs

I have a VM actualy. You can say a combo box. Yes from the ESM/receiver CLI I am trying the SCP and it is working.

I have looked in /var/log/ for some errors relating to my error, but I have found nothing. Maybe I am looking in a wrong place. Is there a special log for SCP File Retrieval?

akerr Reliable Contributor
Reliable Contributor
Report Inappropriate Content
Message 6 of 8

Re: Cannot connect to a host to retrieve logs

Doesn't really matter if it's a VM or not.  I'm not sure if you mean it is a combo box or not.  Is it a combination ESM & Rec?

 

If so, I'd try grepping for the hostname/ip of the remote server you're trying to collect logs from.

 

What do the logs on the remote device say?

Highlighted

Re: Cannot connect to a host to retrieve logs

Yes, it is a combination of ESM and Rec.

I have grepped for the IP when I issued the connect test button and nothing:

 # tail -f /var/log/*.* | grep 10.192.40.1
tail: /var/log/sshtunneld.log: file truncated
tail: /var/log/sshtunneld.log: file truncated
tail: /var/log/sshtunneld.log: file truncated
tail: /var/log/sshtunneld.log: file truncated
tail: /var/log/sshtunneld.log: file truncated
tail: /var/log/sshtunneld.log: file truncated

 

On the remote device I do not have permissions to access the log files.

akerr Reliable Contributor
Reliable Contributor
Report Inappropriate Content
Message 8 of 8

Re: Cannot connect to a host to retrieve logs

tail -f will only give you the last 10 lines or so of a file.

 

Just do something like grep 10.192.40.1 /var/log/*

You Deserve an Award
Don't forget, when your helpful posts earn a kudos or get accepted as a solution you can unlock perks and badges. Those aren't the only badges, either. How many can you collect? Click here to learn more.

Community Help Hub

    New to the forums or need help finding your way around the forums? There's a whole hub of community resources to help you.

  • Find Forum FAQs
  • Learn How to Earn Badges
  • Ask for Help
Go to Community Help

Join the Community

    Thousands of customers use the McAfee Community for peer-to-peer and expert product support. Enjoy these benefits with a free membership:

  • Get helpful solutions from McAfee experts.
  • Stay connected to product conversations that matter to you.
  • Participate in product groups led by McAfee employees.
Join the Community
Join the Community