Strange issue with a custom inventory field
Hello,
We use a vb script who detect and list all of the active monitors on our computer into a txt file, we have added this script into our k1000, made a custom inventory field for adding the monitors returned information from the script into our custom inventory field with the command "ShellCommandTextReturn"
Our problem is that the custom inventory field never get the information ...
We have tried with the fileexist command, who return a boolean, and we get a custom software who appear in the software list, that make us think that our custom inventory field is correctly setup. But when we change the command fileexist for the shellcommandtextreturn, the custom program disappear from the software list, and the custom inventory field is still blank.
Could someone help us with this problem ?
Here our K1000 version : v5.3.47927
Thanks by advance
We use a vb script who detect and list all of the active monitors on our computer into a txt file, we have added this script into our k1000, made a custom inventory field for adding the monitors returned information from the script into our custom inventory field with the command "ShellCommandTextReturn"
Our problem is that the custom inventory field never get the information ...
We have tried with the fileexist command, who return a boolean, and we get a custom software who appear in the software list, that make us think that our custom inventory field is correctly setup. But when we change the command fileexist for the shellcommandtextreturn, the custom program disappear from the software list, and the custom inventory field is still blank.
Could someone help us with this problem ?
Here our K1000 version : v5.3.47927
Thanks by advance
0 Comments
[ + ] Show comments
Answers (21)
Please log in to answer
Posted by:
dchristian
13 years ago
Posted by:
airwolf
13 years ago
Posted by:
demonvip
13 years ago
Posted by:
airwolf
13 years ago
The command is correct. Did this used to work and all of the sudden stop working?
I'm guessing this may be a 5.3 bug. Have you contacted support?
Another thought is that you may be exceeding the maximum field size (i.e. the text in the file is too long), and the K1000 may just dump the entire shell output as a result. Try modifying that file on a test system to only contain 1 line of text and try again. If it works, then that is the problem.
I'm guessing this may be a 5.3 bug. Have you contacted support?
Another thought is that you may be exceeding the maximum field size (i.e. the text in the file is too long), and the K1000 may just dump the entire shell output as a result. Try modifying that file on a test system to only contain 1 line of text and try again. If it works, then that is the problem.
Posted by:
airwolf
13 years ago
Posted by:
demonvip
13 years ago
Posted by:
tomikuku
12 years ago
Posted by:
scottlutz
12 years ago
Custom inventory rules like this are dependant on a number of factors. Some things to check:
1. Is there data in that file?
2. If you open a command prompt and execute that command, do you get data?
3. Is the machine your testing running an OS that is selected in the Supported OS section of the custom Software Inventory rule?
4. If you look in the KDeploy log, you should see reference to this CI rule being processed. What does it say?
1. Is there data in that file?
2. If you open a command prompt and execute that command, do you get data?
3. Is the machine your testing running an OS that is selected in the Supported OS section of the custom Software Inventory rule?
4. If you look in the KDeploy log, you should see reference to this CI rule being processed. What does it say?
Posted by:
tomikuku
12 years ago
1) There is data in that file:
Memory installed in . (VMware Virtual Platform)
----------------------------------------------
Slot 1 : 1GB EDO DRAM MHz
Slot 2 : -- empty --
Slot 3 : -- empty --
Slot 4 : -- empty --
Slot 5 : -- empty --
Slot 6 : -- empty --
Slot 7 : -- empty --
Slot 8 : -- empty --
Slot 9 : -- empty --
Slot 10 : -- empty --
Slot 11 : -- empty --
Slot 12 : -- empty --
Slot 13 : -- empty --
Slot 14 : -- empty --
Slot 15 : -- empty --
1GB Installed
256GB Maximum
2) Yes I do get output from cmd.
3) I`m testing it on virtual Win7 Ent x86
4) mmm.. where can I find that log?
Memory installed in . (VMware Virtual Platform)
----------------------------------------------
Slot 1 : 1GB EDO DRAM MHz
Slot 2 : -- empty --
Slot 3 : -- empty --
Slot 4 : -- empty --
Slot 5 : -- empty --
Slot 6 : -- empty --
Slot 7 : -- empty --
Slot 8 : -- empty --
Slot 9 : -- empty --
Slot 10 : -- empty --
Slot 11 : -- empty --
Slot 12 : -- empty --
Slot 13 : -- empty --
Slot 14 : -- empty --
Slot 15 : -- empty --
1GB Installed
256GB Maximum
2) Yes I do get output from cmd.
3) I`m testing it on virtual Win7 Ent x86
4) mmm.. where can I find that log?
Posted by:
scottlutz
12 years ago
Posted by:
tomikuku
12 years ago
Posted by:
tomikuku
12 years ago
Posted by:
dchristian
12 years ago
Posted by:
tomikuku
12 years ago
Here is screenshot and contents of file:
Microsoft (R) Windows Script Host Version 5.8
Copyright (C) Microsoft Corporation. All rights reserved.
Memory installed in . (OptiPlex 980)
----------------------------------------------
Slot 1 : 2GB DDR 1333MHz
Slot 2 : 2GB DDR 1333MHz
Slot 3 : -- empty --
Slot 4 : -- empty --
4GB Installed
16GB Maximum
Microsoft (R) Windows Script Host Version 5.8
Copyright (C) Microsoft Corporation. All rights reserved.
Memory installed in . (OptiPlex 980)
----------------------------------------------
Slot 1 : 2GB DDR 1333MHz
Slot 2 : 2GB DDR 1333MHz
Slot 3 : -- empty --
Slot 4 : -- empty --
4GB Installed
16GB Maximum
Posted by:
dchristian
12 years ago
Posted by:
tomikuku
12 years ago
Posted by:
dchristian
12 years ago
Posted by:
tomikuku
12 years ago
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.