Prev: Have group members in wrong format
Next: Can a vbscript identify the program/process that called the sc
From: Pegasus [MVP] on 11 Mar 2010 18:29 "Leon" <kim.zethsen(a)gmail.com> wrote in message news:f9d98c33-d656-424b-9ce5-91da71945168(a)d27g2000yqf.googlegroups.com... > Hi guys! > > Now I was able to hit.. > I'll try this out.. > > Thanks.. > > The thing is that I want to monitor sererel servers.. and want to run > the script on a central pc. > s� running script remotely does not bring me closer - I think.. > Mayby I havent got the clu - I'l invest your suggeston. > > Thanks for answering! :-) > Cheers When you play with psexec.exe then you will see that you can invoke it from your own machine so that it runs its task on any number of remote machines. If you do it correctly then you can get each of these tasks to report its result on your own machine. The key is that you must play with it to understand it. Om du lekar med psexec en stund s� kan du snart se hur den funkar.
From: Leon on 12 Mar 2010 04:59 Hi Pegasus I'll for sure try it out!! Thanks!!! :-) Have a nice weekend Go helg On 12 Mar., 00:29, "Pegasus [MVP]" <n...(a)microsoft.com> wrote: > "Leon" <kim.zeth...(a)gmail.com> wrote in message > > news:f9d98c33-d656-424b-9ce5-91da71945168(a)d27g2000yqf.googlegroups.com... > > > Hi guys! > > > Now I was able to hit.. > > I'll try this out.. > > > Thanks.. > > > The thing is that I want to monitor sererel servers.. and want to run > > the script on a central pc. > > så running script remotely does not bring me closer - I think.. > > Mayby I havent got the clu - I'l invest your suggeston. > > > Thanks for answering! :-) > > Cheers > > When you play with psexec.exe then you will see that you can invoke it from > your own machine so that it runs its task on any number of remote machines. > If you do it correctly then you can get each of these tasks to report its > result on your own machine. The key is that you must play with it to > understand it. Om du lekar med psexec en stund så kan du snart se hur den > funkar.
From: Leon on 12 Mar 2010 08:57 Hi again In order to speed up things I can see that it is faster to make a redirection of a ls or dir command to a file. Then from the file take out the last modified timestamp. The thing is that dir gives some disk info.. and when adding the /b option no diskinfo is comming up BUT the time info is omitted. So I need something in between. On 12 Mar., 10:59, Leon <kim.zeth...(a)gmail.com> wrote: > Hi Pegasus > > I'll for sure try it out!! > Thanks!!! > :-) > Have a nice weekend > Go helg > > On 12 Mar., 00:29, "Pegasus [MVP]" <n...(a)microsoft.com> wrote: > > > > > "Leon" <kim.zeth...(a)gmail.com> wrote in message > > >news:f9d98c33-d656-424b-9ce5-91da71945168(a)d27g2000yqf.googlegroups.com.... > > > > Hi guys! > > > > Now I was able to hit.. > > > I'll try this out.. > > > > Thanks.. > > > > The thing is that I want to monitor sererel servers.. and want to run > > > the script on a central pc. > > > så running script remotely does not bring me closer - I think.. > > > Mayby I havent got the clu - I'l invest your suggeston. > > > > Thanks for answering! :-) > > > Cheers > > > When you play with psexec.exe then you will see that you can invoke it from > > your own machine so that it runs its task on any number of remote machines. > > If you do it correctly then you can get each of these tasks to report its > > result on your own machine. The key is that you must play with it to > > understand it. Om du lekar med psexec en stund så kan du snart se hur den > > funkar.- Skjul tekst i anførselstegn - > > - Vis tekst i anførselstegn -
From: Pegasus [MVP] on 12 Mar 2010 10:21 I don't quite see what your two points have to do with each other: - Redirect the output from the "dir" command into a file - Select a specific output format. To me they look completely independent. What information do you actually reqjuire? Let's see an example! "Leon" <kim.zethsen(a)gmail.com> wrote in message news:d3d1062f-436d-420f-abea-26d5c5fd99f3(a)o3g2000yqb.googlegroups.com... > Hi again > > In order to speed up things I can see that it is faster to make a > redirection of a ls or dir command to a file. > Then from the file take out the last modified timestamp. > > The thing is that dir gives some disk info.. and when adding the /b > option no diskinfo is comming up BUT the time info is omitted. > > So I need something in between. > > > On 12 Mar., 10:59, Leon <kim.zeth...(a)gmail.com> wrote: >> Hi Pegasus >> >> I'll for sure try it out!! >> Thanks!!! >> :-) >> Have a nice weekend >> Go helg >> >> On 12 Mar., 00:29, "Pegasus [MVP]" <n...(a)microsoft.com> wrote: >> >> >> >> > "Leon" <kim.zeth...(a)gmail.com> wrote in message >> >> >news:f9d98c33-d656-424b-9ce5-91da71945168(a)d27g2000yqf.googlegroups.com... >> >> > > Hi guys! >> >> > > Now I was able to hit.. >> > > I'll try this out.. >> >> > > Thanks.. >> >> > > The thing is that I want to monitor sererel servers.. and want to run >> > > the script on a central pc. >> > > s� running script remotely does not bring me closer - I think.. >> > > Mayby I havent got the clu - I'l invest your suggeston. >> >> > > Thanks for answering! :-) >> > > Cheers >> >> > When you play with psexec.exe then you will see that you can invoke it >> > from >> > your own machine so that it runs its task on any number of remote >> > machines. >> > If you do it correctly then you can get each of these tasks to report >> > its >> > result on your own machine. The key is that you must play with it to >> > understand it. Om du lekar med psexec en stund s� kan du snart se hur >> > den >> > funkar.- Skjul tekst i anf�rselstegn - >> >> - Vis tekst i anf�rselstegn - >
From: Leon on 14 Mar 2010 18:06 Basicly I want to monitor severel forlders on severel servers. In each folder I want to find the newest file - if any. Filename and LastModified timestamp. As network traffic slows down the proces getting information from names like \\server1\data\something... I want to make this faster F.example a cal to a certain remote folder with over 800 files takes severel minutes (4 to 5 minutes) On local server it takes a blink of an eye.. I'm using this function... (takes 5 minutes on certain folders..too much I think) (The timestamp array is to have full control og datetime format which gave me some challange in danish interpretion of month day.. ) Sub CheckFolder(Fldr, mask, idx) NewestFileInFolder = "" Set oFolder = CreateObject("scripting.filesystemobject").getfolder(Fldr) For Each aFile In oFolder.Files If NewestFileInFolder = "" Then Set NewestFileInFolder = aFile Else If RegExpTest(mask, aFile.Name) Then If NewestFileInFolder.DateLastModified < aFile.DateLastModified Then Set NewestFileInFolder = aFile FileList(idx) = NewestFileInFolder.Name TimeStampLastModifiedArray(idx, 1) = Year(aFile.DateLastModified) TimeStampLastModifiedArray(idx, 2) = Month(aFile.DateLastModified) TimeStampLastModifiedArray(idx, 3) = Day(aFile.DateLastModified) TimeStampLastModifiedArray(idx, 4) = Hour(aFile.DateLastModified) TimeStampLastModifiedArray(idx, 5) = Minute(aFile.DateLastModified) TimeStampLastModifiedArray(idx, 6) = Second(aFile.DateLastModified) End If End If End If Next End Sub (This information tells me that some processes are runing as they suppose to do. some file have to be updated in certain intervals. Files certain folders gives me kinda status from processes..) On 12 Mar., 16:21, "Pegasus [MVP]" <n...(a)microsoft.com> wrote: > I don't quite see what your two points have to do with each other: > - Redirect the output from the "dir" command into a file > - Select a specific output format. > > To me they look completely independent. What information do you actually > reqjuire? Let's see an example! > > "Leon" <kim.zeth...(a)gmail.com> wrote in message > > news:d3d1062f-436d-420f-abea-26d5c5fd99f3(a)o3g2000yqb.googlegroups.com... > > > > > Hi again > > > In order to speed up things I can see that it is faster to make a > > redirection of a ls or dir command to a file. > > Then from the file take out the last modified timestamp. > > > The thing is that dir gives some disk info.. and when adding the /b > > option no diskinfo is comming up BUT the time info is omitted. > > > So I need something in between. > > > On 12 Mar., 10:59, Leon <kim.zeth...(a)gmail.com> wrote: > >> Hi Pegasus > > >> I'll for sure try it out!! > >> Thanks!!! > >> :-) > >> Have a nice weekend > >> Go helg > > >> On 12 Mar., 00:29, "Pegasus [MVP]" <n...(a)microsoft.com> wrote: > > >> > "Leon" <kim.zeth...(a)gmail.com> wrote in message > > >> >news:f9d98c33-d656-424b-9ce5-91da71945168(a)d27g2000yqf.googlegroups.com... > > >> > > Hi guys! > > >> > > Now I was able to hit.. > >> > > I'll try this out.. > > >> > > Thanks.. > > >> > > The thing is that I want to monitor sererel servers.. and want to run > >> > > the script on a central pc. > >> > > så running script remotely does not bring me closer - I think.. > >> > > Mayby I havent got the clu - I'l invest your suggeston. > > >> > > Thanks for answering! :-) > >> > > Cheers > > >> > When you play with psexec.exe then you will see that you can invoke it > >> > from > >> > your own machine so that it runs its task on any number of remote > >> > machines. > >> > If you do it correctly then you can get each of these tasks to report > >> > its > >> > result on your own machine. The key is that you must play with it to > >> > understand it. Om du lekar med psexec en stund så kan du snart se hur > >> > den > >> > funkar.- Skjul tekst i anførselstegn - > > >> - Vis tekst i anførselstegn -- Skjul tekst i anførselstegn - > > - Vis tekst i anførselstegn -
First
|
Prev
|
Next
|
Last
Pages: 1 2 3 4 Prev: Have group members in wrong format Next: Can a vbscript identify the program/process that called the sc |