Solved

BGinfo: Auto Refresh

Posted on 2010-08-16
6
5,092 Views
Last Modified: 2013-11-10
I have BGinfo running across my domain. we are using it to collect software install and uptime, we are currently working on running it into SQL.

Right now I log into ALL of my servers every morning in order to gather some information from BGinfo into a spreadsheet.

I am VERY interested in finding something that will allow BGinfo to 'refresh' automatically at the same time everyday.

I attempted this with a scheduled task...however that didn't seem to work. I am open to ideas here, BUT I thought that there may be some way to write a script that will 'call' the Bginfo.bgi file and then I could schedule the script as a task.

0
Comment
Question by:Sleestack90
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 
LVL 8

Expert Comment

by:SylvainDrapeau
ID: 33448428
Hello !

I remember running BGInfo as a scheduled task so you may want to troubleshoot that instead of creating a script.

The most common problems I had with scheduled tasks were :

- Executable files located on a network drive not available when the user was not logged on (drive not mapped)
- Password changed after the task was created and the task was not updated
- Task run as local admin trying to write data to a network share (access denied)
- The executable string was written incorrectly when LFN are used with parameters. Ex.: "C:\Long File Name\exe.exe -option" is wrong, it should be "C:\Long File Name\exe.exe" -option

Syldra
0
 

Author Comment

by:Sleestack90
ID: 33453882
Actually, it's probably the first problem you mentioned affecting me. What did you do to correct this? Just drop a copy of the file on each local machine it was susposed to run on? I can see where that might fix it, I really wanted a centerally located solution...but i would rather have it automated than central.
0
 
LVL 8

Expert Comment

by:SylvainDrapeau
ID: 33454082
Hello !

I'm not 100% sure that this is what I did then, but that's certainly what I would do now.

Create a "generic" domain user that's power user on every computer but remove the right to "Logon interactively" for that user. That user will have read/write acces everywhere but not being able to logon this lessen the security risk. Use that user the start the Scheduled Task. That way you're not forced to use a domain admin account to run the task.

Syldra
0
What Is Transaction Monitoring and who needs it?

Synthetic Transaction Monitoring that you need for the day to day, which ensures your business website keeps running optimally, and that there is no downtime to impact your customer experience.

 

Author Comment

by:Sleestack90
ID: 33458695
I created a command file which runs the following: C:\Program Files\BTSMain\BGinfo\BGinfo.exe C:\Program Files\BTSMain\BGinfo\Server.bgi /nolicprompt /log /timer:0

However that doesn't seem to work for me. Any suggenstions?
0
 
LVL 8

Accepted Solution

by:
SylvainDrapeau earned 500 total points
ID: 33461224
Hello !

in your batch file, is it written exactly as you put it or do you use quotes ? Do you provide the log file/db path ?

The line should look like this :

"C:\Program Files\BTSMain\BGinfo\BGinfo.exe" "C:\Program Files\BTSMain\BGinfo\Server.bgi" /nolicprompt /silent /log:"Path to log file" /timer:0
0
 

Author Comment

by:Sleestack90
ID: 33480005
That worked, thanks!
0

Featured Post

Enroll in June's Course of the Month

June’s Course of the Month is now available! Experts Exchange’s Premium Members, Team Accounts, and Qualified Experts have access to a complimentary course each month as part of their membership—an extra way to sharpen your skills and increase training.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
Simple Linear Regression

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question