Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Assistance with command line app
#1
Greetings all,

I run a registered version of siw and have been trying to use it to extract sensor data, appending to a file.

The command that I have currently is;

siw.exe /log:csv[="c:\logfile.csv"] /append /h:

However - I am unsure what number to put after the "/h:" to extract the temperature information.

Does anyone know how to use the /h: command in this way?

Many thanks,

Dan
Reply
#2
(05-31-2012, 06:01 AM)djwellis Wrote: Greetings all,

I run a registered version of siw and have been trying to use it to extract sensor data, appending to a file.

The command that I have currently is;

siw.exe /log:csv[="c:\logfile.csv"] /append /h:

However - I am unsure what number to put after the "/h:" to extract the temperature information.

Does anyone know how to use the /h: command in this way?

Many thanks,

Dan

siw.exe /log:csv="c:\logfile.csv" /append /s:0 /h:8192 /n:0
See Command Line Arguments page.
Reply
#3
Excellent, thank you very much for this!
Reply
#4
Hi,
I have a problem with the CLI as well.

If I run the command below locally I get the answer I expect which is a list of licences for the machine and nothing else. When I run it as part of a script on a remote machine I seem to get everythything.

The first line sets up the current directory which contains the required files and is the location for the output file. The second line should run SIW so the output is limited to a list of licences on the target machine.

pushd \\<server name>\InstallationFiles\AssetTracking
SIW.exe /s:1073741824 /silent /log:csv=Licences.csv

The number 1073741824 is the one listed on the SIW Command Line Arguments document.

The script is run on the target PC and all the files are in the server share.

The entries are for the correct machine; there are just too many of them!!

Any help would be appreciated.
Regards,
Tegglet
Reply
#5
(10-30-2012, 10:21 AM)Tegglet Wrote: Hi,
I have a problem with the CLI as well.

If I run the command below locally I get the answer I expect which is a list of licences for the machine and nothing else. When I run it as part of a script on a remote machine I seem to get everythything.

The first line sets up the current directory which contains the required files and is the location for the output file. The second line should run SIW so the output is limited to a list of licences on the target machine.

pushd \\<server name>\InstallationFiles\AssetTracking
SIW.exe /s:1073741824 /silent /log:csv=Licences.csv

The number 1073741824 is the one listed on the SIW Command Line Arguments document.

The script is run on the target PC and all the files are in the server share.

The entries are for the correct machine; there are just too many of them!!

Any help would be appreciated.
Regards,
Tegglet

Please use /s:1073741824 /h:0 /n:0 if you don't want hardware and network info
Reply
#6
Hi Gabriel,
Worked a treat, many thanks, and thanks for responding so promptly.

Just one thing, why did I not need /h:0 and /n:0 when I ran it locally? What happens that is different?

Regards,
Ted
Reply
#7
(10-30-2012, 12:25 PM)Tegglet Wrote: Hi Gabriel,
Worked a treat, many thanks, and thanks for responding so promptly.

Just one thing, why did I not need /h:0 and /n:0 when I ran it locally? What happens that is different?

Regards,
Ted

I guess that your siw_init.xml file has zeros for hardware and network:
<Log>
<DetailedReports>no</DetailedReports>
<Software mask="1073741824" />
<Hardware mask="0" />
<Network mask="0" />
</Log>
Reply
#8
Cheers.
This tool has done very quickly what I have taken days to do in the past but the best bit is that it can be run on a regular basis and so keep the information up to date.
Many thanks.
Reply




Users browsing this thread: 1 Guest(s)